/* ==========================================================================
   YieldPip · estilos de la portada (sobre base.css)
   ========================================================================== */

/* ---------- portada (de B) ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero .lead { margin-top: 20px; max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--tx-3); }
.bleed { position: relative; width: 150%; }
.bleed .frame { border-radius: 12px 0 0 12px; border-right: 0; }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts .w { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 22px 20px; border-left: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { font-family: var(--mono); font-weight: 500; font-size: 20px; }
.facts span { font-size: 14px; color: var(--tx-3); }

/* ---------- lo que incluye el panel (de C) ---------- */
.feat-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.feat-head .lead { max-width: 46ch; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { display: block; padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .2s; }
.feat:hover { background: var(--bg-2); }
.feats .feat:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.ico { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--tx-2); transition: color .2s; }
.feat:hover .ico { color: var(--brand); }
.ico svg { width: 20px; height: 20px; }
.feat h3 { margin-top: 20px; font-size: 17px; font-weight: 600; }
.feat p { margin-top: 8px; color: var(--tx-2); font-size: 15px; }

/* ---------- filas con imagen a cada lado (de A) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 12vw, 140px); }
.feature.flip .feature-text { order: 2; }
.feature-text .h2 { margin-top: 10px; }
.feature-text .lead { margin-top: 14px; }
.points { margin-top: 28px; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--tx-2); }
.points li b { font-weight: 500; color: var(--tx); }
.points li span:last-child { font-family: var(--mono); font-size: 13px; color: var(--tx-3); text-align: right; }
.stage { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 36px); }
.shot-tall { max-width: 360px; margin: 0 auto; }
.shot-mid { max-width: 560px; margin: 0 auto; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.shot-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; max-width: 1040px; margin: 0 auto; }
.shot-stack { display: grid; gap: 14px; }

/* filas a todo el ancho: texto arriba, imagen grande debajo (capturas anchas) */
.feature-wide { display: grid; gap: 40px; }
.feature-wide .feature-text { max-width: 720px; }
.feature + .feature-wide, .feature-wide + .feature, .feature-wide + .feature-wide { margin-top: clamp(96px, 12vw, 140px); }
/* continuación de la fila de encima (misma función, otra imagen): más pegada y con título pequeño */
.feature + .feature-wide.feature-cont { margin-top: clamp(48px, 6vw, 72px); }
.feature-cont { gap: 24px; }
.feature-cont .lead { margin-top: 8px; }
.section-alt { background: var(--bg-2); }
.section-alt .stage { background: var(--bg); }

/* ---------- bots ---------- */
.bots-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 40px; }
/* bot propio antes y después de activarlo: dos capturas con su paso encima */
.bots-steps { display: grid; gap: clamp(32px, 5vw, 56px); }
.bots-step-label { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 15.5px; font-weight: 500; color: var(--tx); }
.bots-step-label span { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; color: var(--brand); }

/* ---------- fiabilidad ---------- */
.rel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); }
.rel .lead { margin-top: 14px; }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec div:first-child { border-top: 1px solid var(--line); }
.spec dt { color: var(--tx-2); }
.spec dd { font-family: var(--mono); font-size: 14px; text-align: right; }

/* ---------- preguntas (de C) ---------- */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }

/* ---------- cierre ---------- */
.end { padding: 0 0 clamp(80px, 10vw, 120px); }
.end-box { border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(40px, 6vw, 72px); text-align: center; background: var(--bg-2); }
.end-box .body { margin-top: 12px; }
.end-box .hero-cta { justify-content: center; }

@media (max-width: 900px) {
    .hero-grid, .feature, .bots-head, .rel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .bleed { width: 100%; } .bleed .frame { border-radius: 12px; border-right: 1px solid var(--line-2); }
    .facts .w { grid-template-columns: 1fr 1fr; }
    .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
    .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .feats { grid-template-columns: 1fr 1fr; }
    .feats .feat:last-child:nth-child(3n+1) { grid-column: auto; }
    .feature.flip .feature-text { order: 0; }
    .faq-cols { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) { .nav-links a:nth-child(n+5) { display: none; } }
@media (max-width: 560px) {
    .feats { grid-template-columns: 1fr; }
    .shot-trio { grid-template-columns: 1fr; max-width: 360px; }
}

/* ---------- páginas legales (riesgo.html) ---------- */
.legal { padding: clamp(56px, 8vw, 104px) 0; }
.legal .w { max-width: 780px; }
.legal .updated { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--tx-3); }
.legal h2 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin-top: 44px; }
.legal p, .legal li { color: var(--tx-2); margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
