/* Páginas de detalle de funciones (/secretaria-ia, /consulta-ia): mismo lenguaje visual que la landing. */
:root { --blue: #3c75f0; --blue-dark: #2f66e0; --navy: #0a0044; --ink: #111827; --muted: #6b7280; --line: #e5e7eb; --teal: #48a890; --wa: #25d366; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(30px, 3.2vw, 44px); text-wrap: balance; }
h2 span, h1 span { color: var(--blue); }
.lead { font-size: 17px; line-height: 1.6; color: #4b5563; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 28px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(60,117,240,.28); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-white { background: #fff; color: var(--ink); border: 1.5px solid #dfe5ee; }
.btn-white:hover { border-color: #b9cbf5; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.28); }
.btn-wa:hover { background: #1fbf5b; }
section { padding: 96px 0; }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head .lead { margin-top: 14px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #1f2937; }
.checks li i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }

/* ===== Nav (igual que la landing) ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.nav.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(20px); box-shadow: 0 4px 30px rgba(0,0,0,.05); }
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 6px; }
.brand img { height: 28px; width: auto; }
.brand span { font-size: 20px; font-weight: 800; color: #474e79; }
.brand span b { color: #4bb098; font-weight: 800; }
.nav-center { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; color: #4b5563; }
.nav-center a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; color: #4b5563; }
.nav .btn { padding: 11px 24px; font-size: 14px; box-shadow: none; }
.nav-burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f3f4f6; color: var(--ink); font-size: 16px; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 32px 18px; background: rgba(255,255,255,.97); border-top: 1px solid #f0f2f6; }
.nav-mobile a { padding: 12px 0; font-size: 15px; font-weight: 600; color: #1f2937; border-bottom: 1px solid #f3f4f6; }
.nav-mobile a.cta { margin-top: 12px; border: 0; text-align: center; background: var(--blue); color: #fff; border-radius: 999px; padding: 12px; }
.nav-mobile.open { display: flex; }

/* ===== Hero: foto a sangre con el texto sobre la pared ===== */
.hero { position: relative; overflow: hidden; background-color: #f3f7fc; background-image: var(--hero-img); background-repeat: no-repeat; background-position: center; background-size: cover; min-height: 600px; height: 56vw; max-height: 800px; }
.hero .wrap { height: 100%; display: flex; align-items: center; padding-top: 68px; }
.hero-copy { max-width: 440px; }
.hero h1 { font-size: clamp(32px, 3.1vw, 46px); font-weight: 900; margin-top: 16px; text-wrap: balance; color: #0f172a; }
.hero .lead { margin-top: 18px; font-size: 17px; color: #374151; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ===== Bloques imagen + texto (familias de fondo de la landing) ===== */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat + .feat { margin-top: 96px; }
.feat.rev .shot { order: -1; }
.feat h2 { margin-top: 12px; }
.feat .lead { margin-top: 16px; }
.shot { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 32px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 3%; }
.shot::before, .shot::after { content: ''; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.shot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(10,0,68,.12)); }
.shot--grad { background: linear-gradient(135deg, #2b5fe8 0%, #3c75f0 34%, #48a890 100%); }
.shot--navy { background: linear-gradient(135deg, #0a0044 0%, #1f2a83 48%, #3c75f0 100%); }
.shot--grad img, .shot--navy img { filter: drop-shadow(0 22px 34px rgba(4,0,40,.35)); }
.shot--corners { --r1: 12px; --r2: 26px; border: 1px solid #e9edf5; padding: 6%; background:
    linear-gradient(135deg, rgba(10,0,68,.50) 0, rgba(10,0,68,.50) 5%, rgba(146,144,240,.45) 5.1%, rgba(146,144,240,.45) 7.8%, rgba(255,255,255,0) 7.9%),
    linear-gradient(315deg, rgba(146,144,240,.50) 0, rgba(146,144,240,.50) 5%, rgba(103,232,249,.50) 5.1%, rgba(103,232,249,.50) 7.8%, rgba(255,255,255,0) 7.9%), #fff; }
.shot--corners::before, .shot--corners::after { width: 20%; aspect-ratio: 1; }
.shot--corners::before { top: 0; right: 0; transform: translate(50%, -50%); background: rgba(60,117,240,.55); box-shadow: 0 0 0 var(--r1) rgba(60,117,240,.18), 0 0 0 var(--r2) rgba(60,117,240,.08); }
.shot--corners::after  { bottom: 0; left: 0; transform: translate(-50%, 50%); background: rgba(72,168,144,.55); box-shadow: 0 0 0 var(--r1) rgba(72,168,144,.20), 0 0 0 var(--r2) rgba(72,168,144,.09); }
.shot.tall img { height: 100%; width: auto; }
.d-only { display: inline; } .m-only { display: none; }

/* ===== Pasos ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 30px 28px; border-radius: 24px; background: #f8fafd; border: 1px solid #eaeff7; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step b { display: block; margin-top: 18px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: #4b5563; }
.step small { display: block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* ===== Tarjetas de capacidades ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px 24px; border-radius: 22px; background: #fff; border: 1px solid #e3e9f3; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #b9cbf5; transform: translateY(-2px); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: #eef4ff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.card b { display: block; margin-top: 16px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: #4b5563; }
.soft { background: #f8fafd; }

/* ===== Conversaciones de ejemplo (burbujas en CSS, textos reales) ===== */
.chats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chat { border-radius: 22px; background: #efeae2; border: 1px solid #e3ddd3; overflow: hidden; display: flex; flex-direction: column; }
.chat .top { padding: 12px 16px; background: #f6f6f6; border-bottom: 1px solid #e5e5e5; font-size: 13px; font-weight: 700; color: #111; display: flex; align-items: center; gap: 8px; }
.chat .top i { color: var(--wa); }
.chat .top small { font-weight: 500; color: #666; }
.chat .msgs { padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.m { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.m.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.m.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.m a, .m u { color: #0b57d0; text-decoration: underline; }
.chat .why { padding: 12px 16px; background: #fff; border-top: 1px solid #e5e5e5; font-size: 13px; color: #4b5563; }
.chat .why b { color: var(--ink); }

/* ===== Sí / No ===== */
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.yn { padding: 30px 30px 26px; border-radius: 26px; border: 1px solid #e3e9f3; background: #fff; }
.yn.si { background: #f3fbf7; border-color: #cfead9; }
.yn.no { background: #fff7f5; border-color: #f3d3cb; }
.yn h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.yn h3 i { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.yn.si h3 i { background: #16a34a; } .yn.no h3 i { background: #dc2626; }
.yn ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.yn li { font-size: 15px; line-height: 1.5; color: #1f2937; padding-left: 18px; position: relative; }
.yn li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ===== Ejemplos antes → después ===== */
.ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ex { padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid #e3e9f3; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.ex .said { font-size: 15px; line-height: 1.45; color: #374151; font-style: italic; }
.ex .said::before { content: '“'; color: #9ca3af; } .ex .said::after { content: '”'; color: #9ca3af; }
.ex .arr { color: var(--blue); font-size: 16px; }
.ex .got { font-size: 14px; line-height: 1.45; color: var(--ink); font-weight: 600; }
.ex .got code { font-family: 'Inter', sans-serif; background: #eef4ff; color: var(--blue); padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.ex-note { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }

/* ===== Campos que llena ===== */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.field { padding: 18px 18px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f3; }
.field b { display: block; font-size: 15px; font-weight: 800; }
.field span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; color: #6b7280; }

/* ===== Panel oscuro (plan / cierre) ===== */
.panel { border-radius: 36px; background: linear-gradient(135deg, #0a0044 0%, #1f2a83 48%, #3c75f0 100%); color: #fff; padding: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; overflow: hidden; }
.panel h2 { color: #fff; } .panel h2 span { color: #9fd7ff; } .panel .kicker { color: #9fd7ff; } .panel .lead { color: #d6def8; }
.panel .btn-white { border: 0; }
.panel-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.panel .price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.panel .price b { font-size: 48px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.panel .price span { color: #d6def8; }
.panel ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.panel li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e5ebff; line-height: 1.5; }
.panel li i { color: #9fd7ff; margin-top: 4px; font-size: 12px; }
.panel .art { display: flex; justify-content: center; }
.panel .art img { width: min(100%, 360px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
details { border: 1px solid #e3e9f3; border-radius: 18px; background: #fff; padding: 0 24px; }
details[open] { border-color: #b9cbf5; }
summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary i { color: var(--blue); transition: transform .2s; font-size: 13px; }
details[open] summary i { transform: rotate(45deg); }
details p { padding: 0 0 20px; font-size: 15px; line-height: 1.6; color: #4b5563; }

/* ===== Footer (igual que la landing) ===== */
footer { padding: 64px 0 40px; background: #fff; border-top: 1px solid #f0f2f6; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.foot-grid p { margin-top: 18px; font-size: 14px; line-height: 1.6; color: #4b5563; max-width: 320px; }
.foot-grid h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #4b5563; }
.foot-grid ul a:hover { color: var(--ink); }
.foot-bottom { border-top: 1px solid #e5e7eb; padding-top: 28px; text-align: center; font-size: 14px; color: #4b5563; }

/* ===== Tablet ===== */
@media (max-width: 960px) {
    .nav-center, .nav-right .hide-m { display: none; }
    .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
    .feat, .yesno, .ex-grid, .panel { grid-template-columns: 1fr; }
    .feat.rev .shot { order: 0; }
    .steps, .cards, .chats { grid-template-columns: 1fr; }
    .fields { grid-template-columns: repeat(2, 1fr); }
    .panel { padding: 40px 28px; }
}
/* Tablet: foto de escritorio con el texto arriba (sin texto encima de la foto) */
@media (min-width: 700px) and (max-width: 960px) {
    .hero { height: auto !important; max-height: none; min-height: 0; padding: 116px 0 0; background-image: none !important; }
    .hero::after { content: ''; display: block; width: 100%; height: 56vw; margin-top: 32px; background-image: var(--hero-img); background-size: cover; background-position: 70% center; }
}
/* ===== Teléfono (<700px): foto VERTICAL hecha para móvil, texto centrado en la pared (como la landing) =====
   La foto es 1088x1904: pared limpia arriba; el sujeto empieza al ~52% de la altura. */
@media (max-width: 699px) {
    .wrap { padding: 0 18px; }
    section { padding: 60px 0; }
    .hero { height: auto !important; min-height: 0; max-height: none; aspect-ratio: 1088 / 1904; background: #f1f6fd var(--hero-img-m) no-repeat center top / 100% auto; }
    .hero .wrap { height: auto; display: block; padding-top: 0; }
    .hero-copy { box-sizing: border-box; max-width: none; height: calc(100vw * 1.75 * 0.52); padding-top: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
    .hero h1 { font-size: clamp(26px, 7.6vw, 36px); margin-top: 10px; max-width: 11em; }
    .hero .lead { font-size: 15px; margin-top: 12px; max-width: 26em; }
    .hero-cta { flex-wrap: nowrap; justify-content: center; gap: 10px; margin-top: 18px; }
    .hero-cta .btn { padding: 12px 18px; font-size: 14px; }
    .hero-note { display: none; }
    .d-only { display: none !important; } .m-only { display: inline; }
    .hero .lead { max-width: 20em; }
    .sec-head { margin-bottom: 28px; }
    h2 { font-size: 26px; }
    .lead { font-size: 15.5px; }
    .steps { gap: 12px; }
    .step { padding: 22px 20px; }
    /* Bloques: UNA tarjeta por función; título → frase → imagen → detalles */
    .feat { gap: 0; max-width: 600px; margin-left: auto; margin-right: auto; padding: 24px 18px 22px; background: #fff; border: 1px solid #e6ebf3; border-radius: 24px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 14px 34px rgba(30,58,138,.07); }
    .feat + .feat, .feat[style] { margin-top: 18px !important; }
    .feat > div:not(.shot) { display: contents; }
    .feat .kicker { order: 1; }
    .feat h2 { order: 2; margin: 8px 0 8px; }
    .feat .lead { order: 3; margin: 0 0 18px; }
    .feat .shot, .feat.rev .shot { order: 4; margin: 0 -18px 18px; border-radius: 0; aspect-ratio: 4 / 3; padding: 4%; }
    .feat .checks { order: 5; margin-top: 0; }
    .feat .checks li { font-size: 14.5px; }
    .shot.tall img { height: 100%; width: auto; }
    .fields { grid-template-columns: 1fr; }
    .ex { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
    .ex .arr { display: none; }
    .ex:nth-child(n+4) { display: none; }   /* en teléfono solo los 3 primeros ejemplos */
    .ex .said { font-size: 14px; }
    .ex .got { font-size: 13.5px; }
    .yesno { gap: 12px; }
    .yn { padding: 22px 20px; }
    .panel { padding: 36px 20px; border-radius: 26px; }
    .panel .price b { font-size: 40px; }
    .panel-cta .btn { width: 100%; }
    details { padding: 0 18px; }
    summary { font-size: 15px; padding: 16px 0; }
    .nav-mobile { padding: 8px 18px 18px; }
    footer { padding: 44px 0 32px; }
    .foot-grid { flex-direction: column; gap: 24px; }
}
