/* ============================================================
   Pasaporte en Línea · Guía — Hoja de estilos
   Tema: Corporativo · paleta índigo + cian, estilo institucional
   ============================================================ */

:root {
    --indigo-900: #1e1b4b;
    --indigo-700: #4338ca;
    --indigo-600: #4f46e5;
    --indigo-100: #e0e7ff;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --ink: #111827;
    --gray-600: #4b5563;
    --gray-400: #9ca3af;
    --bg: #ffffff;
    --bg-alt: #f5f6fb;
    --border: #e5e7eb;
    --ok: #16a34a;
    --radius: 10px;
    --shadow: 0 12px 28px rgba(30, 27, 75, .1);
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
    --max: 1160px;
    --font: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--indigo-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Aviso superior institucional ---------- */
.gov-strip { background: var(--indigo-900); color: #c7d2fe; font-size: .82rem; }
.gov-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 22px; }
.gov-strip a { color: var(--cyan-400); }

/* ---------- Encabezado ---------- */
.masthead { background: #fff; border-bottom: 3px solid var(--indigo-700); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark {
    width: 46px; height: 46px; border-radius: 8px;
    background: var(--indigo-700); color: #fff; display: grid; place-items: center;
    font-weight: 700; font-size: 1.4rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.brand .name { font-size: 1.18rem; font-weight: 700; color: var(--indigo-900); line-height: 1.2; }
.brand .name small { display: block; font-size: .72rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .8px; }

.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { color: var(--gray-600); font-weight: 600; font-size: .92rem; padding: 10px 14px; border-radius: 6px; }
.topnav a:hover { color: var(--indigo-700); background: var(--indigo-100); text-decoration: none; }
.topnav a.cta { background: var(--indigo-700); color: #fff; }
.topnav a.cta:hover { background: var(--indigo-900); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; font-size: 1.3rem; padding: 6px 12px; cursor: pointer; color: var(--indigo-900); }

/* ---------- Botones ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 700; font-size: .96rem; cursor: pointer; border: 2px solid transparent; transition: background .15s ease, transform .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cyan-500); color: #04323b; }
.btn-primary:hover { background: var(--cyan-400); }
.btn-indigo { background: var(--indigo-700); color: #fff; }
.btn-indigo:hover { background: var(--indigo-900); }
.btn-line { background: transparent; border-color: #fff; color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero institucional ---------- */
.intro { background: linear-gradient(120deg, var(--indigo-900) 0%, var(--indigo-700) 60%, var(--indigo-600) 100%); color: #eef2ff; position: relative; overflow: hidden; }
.intro::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.35), transparent 70%); }
.intro .container { padding: 70px 22px 76px; position: relative; z-index: 2; }
.intro .tag { display: inline-block; border: 1px solid rgba(199,210,254,.5); padding: 6px 14px; border-radius: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .6px; margin-bottom: 20px; }
.intro h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; max-width: 760px; margin-bottom: 18px; }
.intro h1 u { text-decoration-color: var(--cyan-400); text-underline-offset: 6px; }
.intro p.sub { font-size: 1.14rem; color: #d6dbff; max-width: 620px; margin-bottom: 28px; }
.intro-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.fact { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 14px 18px; min-width: 150px; }
.fact b { display: block; font-size: 1.5rem; color: var(--cyan-400); }
.fact span { font-size: .85rem; color: #d6dbff; }

/* ---------- Aviso legal destacado ---------- */
.notice { background: #fffbeb; border-left: 5px solid #f59e0b; padding: 16px 20px; margin: 26px 0; border-radius: 6px; }
.notice strong { color: #92400e; }
.notice p { color: #78350f; font-size: .92rem; }

/* ---------- Estructura de secciones ---------- */
section.sec { padding: 70px 0; }
section.sec.alt { background: var(--bg-alt); }
.sec-title { max-width: 760px; margin-bottom: 40px; }
.sec-title span { color: var(--indigo-600); font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; font-size: .78rem; }
.sec-title h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--indigo-900); margin: 8px 0 10px; }
.sec-title p { color: var(--gray-600); font-size: 1.04rem; }

/* ---------- Bloque "qué es" en dos columnas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split .feature-list { display: grid; gap: 16px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.feature .fi { width: 46px; height: 46px; border-radius: 8px; background: var(--indigo-100); color: var(--indigo-700); display: grid; place-items: center; font-size: 1.3rem; }
.feature h4 { color: var(--indigo-900); margin-bottom: 2px; }
.feature p { color: var(--gray-600); font-size: .94rem; }
.panel { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.panel h3 { color: var(--indigo-900); margin-bottom: 14px; }
.panel ul { list-style: none; display: grid; gap: 12px; }
.panel li { padding-left: 26px; position: relative; color: var(--gray-600); }
.panel li::before { content: "›"; position: absolute; left: 6px; color: var(--cyan-500); font-weight: 800; font-size: 1.2rem; line-height: 1; }

/* ---------- Requisitos en columnas tipo ficha ---------- */
.req-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 22px; }
.req-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.req-card .head { background: var(--indigo-700); color: #fff; padding: 16px 20px; font-weight: 700; }
.req-card .head.alt2 { background: var(--cyan-500); color: #04323b; }
.req-card .head.alt3 { background: var(--indigo-900); }
.req-card .body { padding: 20px; }
.req-card ul { list-style: none; display: grid; gap: 10px; }
.req-card li { padding-left: 24px; position: relative; color: var(--gray-600); font-size: .94rem; }
.req-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* ---------- Procedimiento horizontal numerado ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 18px; counter-reset: paso; }
.flow .node { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--cyan-500); border-radius: 10px; padding: 24px 20px; position: relative; box-shadow: var(--shadow-sm); }
.flow .node .n { position: absolute; top: -16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--indigo-700); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.flow .node h4 { color: var(--indigo-900); margin-bottom: 8px; font-size: 1.02rem; }
.flow .node p { color: var(--gray-600); font-size: .9rem; }

/* ---------- Plataformas oficiales ---------- */
.links-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.link-card { border: 1px solid var(--border); border-radius: 12px; padding: 26px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.link-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.link-card .fi { font-size: 1.8rem; margin-bottom: 10px; }
.link-card h4 { color: var(--indigo-900); margin-bottom: 6px; }
.link-card p { color: var(--gray-600); font-size: .92rem; margin-bottom: 14px; }

/* ---------- Tabla de costos ---------- */
.cost-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-width: 520px; }
.cost-table th, .cost-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.cost-table thead th { background: var(--indigo-100); color: var(--indigo-900); }
.cost-table tbody tr:hover { background: var(--bg-alt); }
.scroll-x { overflow-x: auto; }

/* ---------- FAQ acordeón ---------- */
.qa { max-width: 840px; }
.qa-item { border-bottom: 1px solid var(--border); }
.qa-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 0; font-size: 1.04rem; font-weight: 700; color: var(--indigo-900); cursor: pointer; display: flex; justify-content: space-between; gap: 14px; }
.qa-q .pm { color: var(--cyan-500); font-size: 1.4rem; line-height: 1; }
.qa-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.qa-a p { padding-bottom: 20px; color: var(--gray-600); }
.qa-item.open .pm { transform: rotate(45deg); transition: transform .2s ease; }

/* ---------- Llamado final ---------- */
.final { background: linear-gradient(120deg, var(--indigo-700), var(--indigo-900)); color: #eef2ff; border-radius: 14px; padding: 48px; text-align: center; }
.final h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; color: #fff; }
.final p { color: #d6dbff; margin-bottom: 24px; }

/* ---------- Pie ---------- */
.foot { background: var(--indigo-900); color: #c7d2fe; padding: 54px 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.foot h4 { color: #fff; margin-bottom: 14px; }
.foot a { color: #c7d2fe; display: block; margin-bottom: 8px; font-size: .92rem; }
.foot a:hover { color: var(--cyan-400); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-bottom .lk a { display: inline; margin: 0 0 0 16px; }

/* ---------- Páginas internas ---------- */
.inner-hero { background: linear-gradient(120deg, var(--indigo-900), var(--indigo-700)); color: #eef2ff; padding: 54px 0; }
.inner-hero h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.inner-hero p { color: #d6dbff; margin-top: 6px; }
.doc { max-width: 880px; margin: 0 auto; padding: 54px 0; }
.doc h2 { color: var(--indigo-900); margin: 26px 0 10px; font-size: 1.28rem; }
.doc h3 { color: var(--indigo-700); margin: 18px 0 8px; font-size: 1.04rem; }
.doc p, .doc li { color: var(--gray-600); margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; }
.doc .date { color: var(--gray-400); font-size: .9rem; margin-bottom: 22px; }

/* ---------- Contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.info-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.info-card .line { display: flex; gap: 14px; margin-bottom: 18px; }
.info-card .line .fi { font-size: 1.3rem; color: var(--indigo-700); }
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; color: var(--indigo-900); font-size: .92rem; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .95rem; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--cyan-500); border-color: transparent; }
.ok-msg { background: #dcfce7; color: #166534; padding: 12px 16px; border-radius: 8px; display: none; }
.hint { font-size: .85rem; color: var(--gray-400); }

.muted { color: var(--gray-400); }
.mt { margin-top: 26px; }
.center { text-align: center; }

/* ---------- Banner cookies ---------- */
#cookieBar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--indigo-900); color: #eef2ff; padding: 16px 22px; z-index: 100; box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
#cookieBar .inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
#cookieBar p { font-size: .9rem; }
#cookieBar a { color: var(--cyan-400); }
#cookieBar .acts { display: flex; gap: 10px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .topnav { position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 22px; gap: 6px; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .25s ease; z-index: 40; }
    .topnav.open { transform: translateY(0); }
    .menu-btn { display: block; }
    .foot-grid { grid-template-columns: 1fr; }
}
