/* Páginas por rubro (rubros.php) */

/* ---------- Encabezado con la mascota ---------- */
.ds-rb-hero { position: relative; overflow: clip; padding: clamp(6.5rem, 12vw, 8rem) 0 clamp(2.5rem, 6vw, 4rem); }
.ds-rb-crumbs { margin-bottom: 1.4rem; font-size: 0.82rem; color: var(--ds-text-dim); }
.ds-rb-crumbs a { color: inherit; text-decoration: none; }
.ds-rb-crumbs a:hover { color: var(--ds-magenta); }
.ds-rb-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
.ds-rb-badge { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.42rem 0.95rem; border-radius: 999px; border: 1px solid var(--ds-line); background: var(--ds-card); font-size: 0.82rem; font-weight: 600; }
.ds-rb-badge i { width: 8px; height: 8px; border-radius: 50%; background: #2ee88a; box-shadow: 0 0 10px #2ee88a; }
.ds-rb-hero h1 { margin: 1rem 0; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.07; font-weight: 800; letter-spacing: -0.03em; }
.ds-rb-lead { margin: 0 0 1.6rem; max-width: 600px; font-size: 1.08rem; line-height: 1.7; color: var(--ds-text-dim); }
.ds-rb-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.ds-rb-cta .ds-btn svg { width: 18px; height: 18px; }
.ds-rb-trust { margin: 1.6rem 0 0; font-size: 0.84rem; line-height: 1.7; color: var(--ds-text-dim); }
.ds-rb-trust b { color: var(--ds-text); font-weight: 600; }

.ds-rb-mascot { position: relative; width: 100%; height: min(62vh, 500px); pointer-events: none; }
.ds-rb-mascot::before { content: ""; position: absolute; inset: 12% 2%; border-radius: 50%; border: 1px dashed rgba(212,0,255,0.45); transform: rotate(-18deg); animation: ds-rb-orbit 24s linear infinite; }
.ds-rb-mascot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(160,32,240,0.38), transparent 65%); filter: blur(10px); }
.ds-rb-bubble { position: absolute; z-index: 2; left: -2%; top: 4%; max-width: 250px; padding: 0.7rem 1rem; border-radius: 18px 18px 18px 4px; font: 700 0.92rem/1.3 Inter, system-ui, sans-serif; color: #1a0b26; background: #fff; box-shadow: 0 16px 40px -14px rgba(212,0,255,0.7); opacity: 0; animation: ds-rb-pop 0.6s 1.4s ease forwards, ds-rb-bob 4s 2s ease-in-out infinite; }
.ds-rb-cap { position: absolute; z-index: 2; right: 6%; bottom: 6%; padding: 0.5rem 0.8rem; border-radius: 12px; font-size: 0.78rem; font-weight: 700; border: 1px solid var(--ds-line); background: var(--ds-card); backdrop-filter: blur(8px); }
@keyframes ds-rb-orbit { to { transform: rotate(342deg); } }
@keyframes ds-rb-pop { to { opacity: 1; } }
@keyframes ds-rb-bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ds-rb-mascot::before, .ds-rb-bubble { animation: none; opacity: 1; } }

/* ---------- Problema → solución ---------- */
.ds-rb-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.ds-rb-pain { padding: 1.5rem; border-radius: 22px; border: 1px solid var(--ds-line); background: var(--ds-card); }
.ds-rb-pain > span { font-size: 0.78rem; font-weight: 700; color: #ff7a9c; }
.ds-rb-pain h3 { margin: 0.45rem 0; font-size: 1.1rem; }
.ds-rb-pain p { margin: 0; color: var(--ds-text-dim); font-size: 0.92rem; line-height: 1.6; }
.ds-rb-pain b { display: block; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--ds-line); font-size: 0.9rem; font-weight: 600; }
.ds-rb-pain b::before { content: "✓ "; color: #2ee88a; font-weight: 800; }

/* ---------- Qué incluye ---------- */
.ds-rb-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ds-rb-feat { display: flex; gap: 0.95rem; padding: 1.25rem; border-radius: 20px; border: 1px solid var(--ds-line); background: var(--ds-card); }
.ds-rb-feat i { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-style: normal; font-size: 1.35rem; background: linear-gradient(135deg, rgba(160,32,240,0.35), rgba(212,0,255,0.18)); }
.ds-rb-feat h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.ds-rb-feat p { margin: 0; color: var(--ds-text-dim); font-size: 0.88rem; line-height: 1.55; }

/* ---------- Software propio ---------- */
.ds-rb-saas { padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: 28px; border: 1px solid rgba(212,0,255,0.45); background: radial-gradient(120% 90% at 100% 0%, rgba(212,0,255,0.25), transparent 60%), linear-gradient(160deg, rgba(58,20,96,0.55), rgba(22,11,36,0.55)); }
.ds-rb-saas .ds-h2 { margin: 0.6rem 0 0.7rem; }
.ds-rb-saas p { margin: 0 0 1.2rem; max-width: 720px; color: var(--ds-text-dim); line-height: 1.7; }
.ds-rb-saas ul { margin: 0 0 1.6rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; max-width: 720px; font-size: 0.93rem; }
.ds-rb-saas li::before, .ds-rb-plan li::before { content: "✓ "; color: #2ee88a; font-weight: 800; }

/* ---------- Proyectos reales ---------- */
.ds-rb-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.ds-rb-work { display: block; color: inherit; text-decoration: none; }
.ds-rb-work .ds-pa-browser { position: relative; inset: auto; aspect-ratio: 16 / 10.5; transition: transform 0.3s ease, border-color 0.3s ease; }
.ds-rb-work .ds-pa-browser__view { height: calc(100% - 30px); overflow: hidden; }
.ds-rb-work .ds-pa-browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ds-rb-work:hover .ds-pa-browser { transform: translateY(-4px); }
.ds-rb-work small { display: block; margin-top: 0.9rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ds-magenta); }
.ds-rb-work h3 { margin: 0.3rem 0 0.4rem; font-size: 1.02rem; line-height: 1.35; }
.ds-rb-work > span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.86rem; font-weight: 700; }
.ds-rb-work > span svg { width: 15px; height: 15px; }

/* ---------- Planes ---------- */
.ds-rb-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 900px; margin-inline: auto; }
.ds-rb-plan { display: flex; flex-direction: column; padding: 1.7rem; border-radius: 24px; border: 1px solid var(--ds-line); background: var(--ds-card); }
.ds-rb-plan.is-main { border-color: rgba(212,0,255,0.55); background: linear-gradient(160deg, rgba(160,32,240,0.16), var(--ds-card)); }
.ds-rb-plan h3 { margin: 0; font-size: 1.15rem; }
.ds-rb-plan__price { margin: 0.6rem 0 0.15rem; font-size: 1.9rem; font-weight: 800; }
.ds-rb-plan__price small { font-size: 0.85rem; font-weight: 600; color: var(--ds-text-dim); }
.ds-rb-plan__time { font-size: 0.86rem; color: var(--ds-text-dim); }
.ds-rb-plan ul { margin: 1rem 0 1.4rem; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.ds-rb-plan .ds-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Preguntas ---------- */
.ds-rb-faq { max-width: 840px; margin-inline: auto; display: grid; gap: 0.7rem; }
.ds-rb-faq details { padding: 1.05rem 1.25rem; border-radius: 18px; border: 1px solid var(--ds-line); background: var(--ds-card); }
.ds-rb-faq summary { cursor: pointer; list-style: none; font-weight: 700; }
.ds-rb-faq summary::-webkit-details-marker { display: none; }
.ds-rb-faq summary::after { content: "+"; float: right; margin-left: 1rem; font-weight: 800; color: var(--ds-magenta); }
.ds-rb-faq details[open] summary::after { content: "–"; }
.ds-rb-faq p { margin: 0.7rem 0 0; color: var(--ds-text-dim); line-height: 1.7; }

/* ---------- Cierre ---------- */
.ds-rb-final { padding: clamp(2rem, 5vw, 3.2rem); border-radius: 28px; text-align: center; border: 1px solid rgba(212,0,255,0.4); background: radial-gradient(600px 300px at 50% 0, rgba(212,0,255,0.22), transparent 70%), var(--ds-card); }
.ds-rb-final h2 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; }
.ds-rb-final > p { margin: 0 auto 1.5rem; max-width: 560px; color: var(--ds-text-dim); }
.ds-rb-final .ds-rb-cta { justify-content: center; }
.ds-rb-final .ds-rb-alt, .ds-rb-final .ds-rb-others { margin: 1.2rem 0 0; font-size: 0.88rem; }
.ds-rb-final a:not(.ds-btn) { color: var(--ds-text); text-decoration: underline; text-decoration-color: rgba(212,0,255,0.55); text-underline-offset: 3px; }

/* ---------- Tablet y celular ---------- */
@media (max-width: 980px) {
	.ds-rb-hero__grid { grid-template-columns: 1fr; }
	.ds-rb-mascot { order: -1; width: min(240px, 64vw); height: auto; aspect-ratio: 1; margin: 0 auto; }
	.ds-rb-bubble { left: 58%; top: -2%; max-width: 150px; padding: 0.5rem 0.7rem; font-size: 0.76rem; }
	.ds-rb-cap { display: none; }
	.ds-rb-pains, .ds-rb-feats, .ds-rb-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* En celular el 3D no se carga (velocidad), como en el inicio: sin caja vacía antes del título. */
@media (max-width: 767px) {
	.ds-rb-mascot { display: none; }
}
@media (max-width: 640px) {
	.ds-rb-hero { padding-top: 5.8rem; }
	.ds-rb-pains, .ds-rb-feats, .ds-rb-works, .ds-rb-plans, .ds-rb-saas ul { grid-template-columns: 1fr; }
	.ds-rb-cta .ds-btn { width: 100%; justify-content: center; }
}
