/*
Theme Name: CertifiD
Theme URI: https://certifid.cl
Author: Kromatix
Author URI: https://kromatix.cl
Description: Tema oficial de CertifiD para la gestión, emisión y validación de certificados digitales, credenciales académicas y registro de OTECs.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: certifid
Tags: education, certification, digital-certificates, otec, online-training, business, technology, professional-services, landing-page, responsive-layout, custom-colors, custom-logo, accessibility-ready, translation-ready
*/

/* ============================================================
   CertifiD — Sistema visual 2.0
   Paleta extraída del logotipo: petróleo #155e63 → esmeralda #1dd17b
   Tipografía: Sora (display) + Manrope (UI / cuerpo)
   ============================================================ */

:root {
    /* Marca */
    --primary: #155e63;          /* Azul petróleo (letras "Certifi") */
    --primary-700: #0e484c;
    --primary-900: #082f31;
    --accent: #1dd17b;           /* Verde esmeralda (la "D" / llave) */
    --accent-600: #16b06a;
    --accent-700: #128a55;

    /* Degradado de marca (recurso principal) */
    --grad: linear-gradient(118deg, #155e63 0%, #189a6c 52%, #1dd17b 100%);
    --grad-deep: linear-gradient(150deg, #0e484c 0%, #155e63 60%, #16805a 100%);

    /* Tinta y texto */
    --ink: #0f2f2e;              /* Titulares */
    --body: #3a585a;             /* Cuerpo */
    --muted: #6c8a8b;            /* Secundario */

    /* Superficies */
    --surface: #ffffff;
    --bg: #f3f9f6;               /* Sección suave */
    --bg-2: #ebf4ef;
    --line: #deeae5;
    --line-strong: #c9ded7;

    /* Sombras (tintadas con la marca) */
    --shadow-xs: 0 1px 2px rgba(8, 47, 49, .05);
    --shadow-sm: 0 2px 8px -2px rgba(8, 47, 49, .10);
    --shadow-md: 0 12px 30px -12px rgba(8, 47, 49, .18);
    --shadow-lg: 0 30px 70px -28px rgba(8, 47, 49, .32);
    --ring: 0 0 0 4px rgba(29, 209, 123, .22);

    /* Forma */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-pill: 999px;

    --maxw: 1160px;
    --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Anti-overflow global: nada se sale del viewport en móvil */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }

::selection { background: rgba(29, 209, 123, .25); color: var(--primary-900); }

/* Utilidades */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
section { padding: 104px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
    display: inline-block; font-family: var(--font-body); font-weight: 700;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-700); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 3.4vw, 40px); color: var(--ink); font-weight: 700; }
.section-sub { margin-top: 16px; font-size: 17px; color: var(--muted); }

/* ============================================================
   Botones
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: var(--r-pill);
    font-family: var(--font-body); font-weight: 700; font-size: 15px;
    text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
    white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(22, 176, 106, .8); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(22, 176, 106, .7); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--bg); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ============================================================
   Tarjeta (glass / surface)
   ============================================================ */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 36px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.glass-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ============================================================
   Navbar
   ============================================================ */
.cfd-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
.cfd-nav__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cfd-nav__logo { display: flex; align-items: center; height: 36px; flex: 0 0 auto; }
.cfd-nav__logo img { height: 100%; width: auto; max-width: none; display: block; }
.cfd-nav__links { display: flex; gap: 28px; align-items: center; }

/* Botón hamburguesa (oculto en escritorio) */
.cfd-nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; color: var(--ink); flex: 0 0 auto; }
.cfd-nav__bars, .cfd-nav__bars::before, .cfd-nav__bars::after { display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 3px; transition: transform .28s ease, opacity .2s ease, background .2s ease; }
.cfd-nav__bars { position: relative; }
.cfd-nav__bars::before, .cfd-nav__bars::after { content: ""; position: absolute; left: 0; }
.cfd-nav__bars::before { top: -7px; }
.cfd-nav__bars::after { top: 7px; }
.cfd-nav.is-open .cfd-nav__bars { background: transparent; }
.cfd-nav.is-open .cfd-nav__bars::before { transform: translateY(7px) rotate(45deg); }
.cfd-nav.is-open .cfd-nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
.cfd-nav__link {
    position: relative; text-decoration: none; color: var(--ink);
    font-size: 15px; font-weight: 600; transition: color .2s;
}
.cfd-nav__link::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.cfd-nav__link:hover { color: var(--primary); }
.cfd-nav__link:hover::after { width: 100%; }
@media (max-width: 720px) {
    .cfd-nav__toggle { display: inline-flex; }
    .cfd-nav__logo { height: 30px; }
    /* Panel desplegable: links en columna bajo la barra */
    .cfd-nav__links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 14px 24px 20px; box-shadow: var(--shadow-md);
        display: none;
    }
    .cfd-nav.is-open .cfd-nav__links { display: flex; }
    .cfd-nav__link { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
    .cfd-nav__link::after { display: none; }
    .cfd-nav__cta { width: 100%; justify-content: center; margin-top: 12px; }
}
@media (max-width: 360px) {
    .cfd-nav__logo { height: 26px; }
}

/* ============================================================
   Hero
   ============================================================ */
.cfd-hero { position: relative; overflow: hidden; padding: 92px 0 96px; background: var(--bg); }
.cfd-hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cfd-hero__bg::before {
    /* malla de puntos sutil */
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(21, 94, 99, .10) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 35%, transparent 75%);
    mask-image: radial-gradient(120% 90% at 70% 10%, #000 35%, transparent 75%);
    opacity: .7;
}
.cfd-hero__glow-a, .cfd-hero__glow-b { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.cfd-hero__glow-a { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(29,209,123,.55), transparent 65%); }
.cfd-hero__glow-b { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(21,94,99,.40), transparent 65%); }

.cfd-hero__grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.cfd-hero__badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .8); color: var(--primary);
    padding: 7px 15px 7px 9px; border-radius: var(--r-pill);
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-xs);
    margin-bottom: 26px;
}
.cfd-hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(29,209,123,.2); }
.cfd-hero__title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; color: var(--ink); margin-bottom: 22px; }
.cfd-hero__sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--body); max-width: 560px; margin-bottom: 34px; text-wrap: pretty; }
.cfd-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.cfd-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.cfd-hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--primary-700); }
.cfd-hero__trust .tick {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(29,209,123,.16); color: var(--accent-700); flex: none;
}
.cfd-hero__trust .tick svg { width: 12px; height: 12px; }

/* ---- Tarjeta-credencial flotante (visual de producto) ---- */
.cfd-hero__visual { position: relative; display: grid; place-items: center; }
.cred {
    position: relative; width: min(420px, 100%); background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
    transform: rotate(-1.4deg);
    animation: cred-float 7s ease-in-out infinite;
}
@keyframes cred-float { 0%,100% { transform: rotate(-1.4deg) translateY(0); } 50% { transform: rotate(-1.4deg) translateY(-12px); } }
.cred__bar { height: 8px; background: var(--grad); }
.cred__pad { padding: 26px 26px 24px; text-align: center; }
.cred__issuer { display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 7px 16px; margin-bottom: 22px; }
.cred__shield { width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, rgba(29,209,123,.20), rgba(21,94,99,.07)); color: var(--accent-700); }
.cred__shield svg { width: 34px; height: 34px; }
.cred__status { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--accent-700); margin-bottom: 8px; }
.cred__statustext { font-size: 13.5px; color: var(--muted); max-width: 300px; margin: 0 auto 18px; line-height: 1.5; }
.cred__aptitud { display: inline-block; white-space: nowrap; background: rgba(29,209,123,.14); color: var(--accent-700); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; padding: 9px 22px; border-radius: var(--r-pill); margin-bottom: 22px; }
.cred__info { text-align: left; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 18px; background: #fcfefe; }
.cred__row { padding: 13px 0; border-bottom: 1px solid var(--line); }
.cred__row:last-child { border-bottom: none; }
.cred__row span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.cred__row b { font-family: var(--font-display); font-size: 15px; color: var(--ink); font-weight: 600; }
.cred__row b.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .03em; }
.cred__validate { margin-top: 16px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--body); background: #fff; }
.cred__tech { margin-top: 16px; font-size: 12px; color: var(--muted); }
.cred__tech b { color: var(--primary); font-weight: 700; }

/* Chip verificación flotante */
.cred-chip {
    position: absolute; bottom: 22px; right: -6px; z-index: 3;
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 10px 16px 10px 12px; box-shadow: var(--shadow-md);
    animation: chip-float 7s ease-in-out infinite .8s;
}
@keyframes chip-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.cred-chip .ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; flex: none; }
.cred-chip .ic svg { width: 15px; height: 15px; }
.cred-chip b { display: block; font-family: var(--font-display); font-size: 13px; color: var(--ink); }
.cred-chip span { font-size: 11px; color: var(--muted); }

/* ============================================================
   Fondos de sección
   ============================================================ */
.cfd-bg-white { background: #fff; }
.cfd-bg-soft { background: var(--bg); }

/* ============================================================
   Beneficios (problema / solución)
   ============================================================ */
.cfd-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; max-width: 920px; margin: 0 auto; }
.cfd-benefit { position: relative; padding: 34px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.cfd-benefit--problem { background: #fbf6f5; border-color: #f0dcd9; }
.cfd-benefit--solution { background: linear-gradient(160deg, #f0fbf6 0%, #ffffff 100%); border-color: #cdeede; }
.cfd-benefit__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; }
.cfd-benefit__icon svg { width: 22px; height: 22px; }
.cfd-benefit--problem .cfd-benefit__icon { background: #fde8e6; color: #c0392b; }
.cfd-benefit--solution .cfd-benefit__icon { background: var(--grad); color: #fff; }
.cfd-benefit__title { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.cfd-benefit--problem .cfd-benefit__title { color: #a8362a; }
.cfd-benefit--solution .cfd-benefit__title { color: var(--primary); }
.cfd-benefit__text { font-size: 15px; color: var(--body); line-height: 1.7; }

/* ============================================================
   Precios
   ============================================================ */
.cfd-pricing-group { margin-bottom: 64px; }
.cfd-pricing-group:last-child { margin-bottom: 0; }
.cfd-pricing-group__title { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 700; margin-bottom: 8px; text-align: center; }
.cfd-pricing-group__hint { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 6px; }
.cfd-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 22px; margin-top: 34px; }
.cfd-price { text-align: center; position: relative; padding: 34px 26px; display: flex; flex-direction: column; border-top-width: 4px; border-top-style: solid; }
.cfd-price--rec { border-color: #bfe9d4; border-top-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.cfd-price--alt { border-top-color: var(--line-strong); }
.cfd-price--pro { border-top-color: var(--primary); }
.cfd-price__badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--grad); color: #fff; padding: 5px 16px; border-radius: var(--r-pill);
    font-size: 11px; font-weight: 800; letter-spacing: .08em; box-shadow: var(--shadow-sm);
}
.cfd-price__name { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; color: var(--primary); font-weight: 700; }
.cfd-price__meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; min-height: 16px; }
.cfd-price__amount { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--ink); margin-bottom: 4px; letter-spacing: -.03em; }
.cfd-price__amount small { font-size: 15px; color: var(--muted); font-weight: 600; }
.cfd-price__note { font-size: 13.5px; color: var(--accent-700); font-weight: 700; margin-bottom: 22px; }
.cfd-price__note--neutral { color: var(--primary); }
.cfd-price .btn { margin-top: auto; }
.cfd-price__annual { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ============================================================
   Registro (sección de conversión, fondo profundo)
   ============================================================ */
.cfd-register { position: relative; overflow: hidden; background: var(--grad-deep); padding: 104px 0; }
.cfd-register__bg { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.cfd-register__bg::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 70%);
    mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 70%);
}
.cfd-register__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, rgba(29,209,123,.35), transparent 65%); top: -260px; right: -160px; }
.cfd-reg { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; }
.cfd-reg__card { background: #fff; padding: 40px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.5); }
.cfd-reg__head { text-align: center; margin-bottom: 28px; }
.cfd-reg__icon { height: 46px; width: auto; margin-bottom: 16px; }
.cfd-reg__title { font-size: 25px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.cfd-reg__sub { color: var(--muted); font-size: 15px; }
.cfd-field { margin-bottom: 18px; }
.cfd-field--last { margin-bottom: 26px; }
.cfd-label { display: block; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 7px; }
.cfd-input {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-xs);
    font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fcfefe;
    transition: border-color .2s, box-shadow .2s;
}
.cfd-input::placeholder { color: #9bb3b3; }
.cfd-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: #fff; }
.cfd-slug { display: flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--r-xs); overflow: hidden; background: #fcfefe; transition: border-color .2s, box-shadow .2s; }
.cfd-slug:focus-within { border-color: var(--accent); box-shadow: var(--ring); background: #fff; }
.cfd-slug__input { flex: 1; padding: 13px 14px; border: none; font-family: var(--font-body); font-size: 15px; text-align: right; background: transparent; color: var(--ink); }
.cfd-slug__input:focus { outline: none; }
.cfd-slug__suffix { background: var(--bg-2); padding: 13px 14px; color: var(--primary); font-size: 14px; border-left: 1px solid var(--line-strong); font-family: ui-monospace, Menlo, monospace; font-weight: 700; display: flex; align-items: center; }
.cfd-error { display: none; margin-top: 16px; color: #b0271b; background: #fdecea; border: 1px solid #f6d2cd; padding: 11px; border-radius: var(--r-xs); font-size: 14px; text-align: center; font-weight: 600; }
.cfd-error.cfd-ok { color: var(--accent-700); background: #e8faf1; border-color: #bfe9d4; }

/* Checkbox de diseño (+$50.000) y nota de precio de habilitación */
.cfd-check { display: flex; align-items: flex-start; gap: 10px; }
.cfd-check__box { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.cfd-check__label { font-size: 13.5px; color: var(--ink); line-height: 1.5; cursor: pointer; }
.cfd-reg__fee { margin: 0 0 18px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-xs); font-size: 13px; color: var(--primary); line-height: 1.5; }

/* ============================================================
   Contacto
   ============================================================ */
.cfd-contact__card { max-width: 680px; margin: 0 auto; }
.cfd-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfd-textarea { resize: vertical; min-height: 130px; line-height: 1.6; font-family: var(--font-body); }
@media (max-width: 560px) { .cfd-contact__row { grid-template-columns: 1fr; gap: 0; } }

/* Honeypot */
.cfd-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ============================================================
   Footer
   ============================================================ */
.cfd-footer { background: var(--primary-900); color: #a8c4c4; padding: 64px 0 40px; text-align: center; font-size: 14px; }
.cfd-footer__icon { height: 38px; filter: brightness(0) invert(1); margin-bottom: 16px; opacity: .92; }
.cfd-footer__brand { font-family: var(--font-display); color: #fff; font-weight: 700; margin-bottom: 8px; font-size: 18px; letter-spacing: -.01em; }
.cfd-footer p { color: #93b3b3; }
.cfd-footer__legal { font-size: 12.5px; color: #5f8484; max-width: 660px; margin: 18px auto 0; line-height: 1.6; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }

/* ============================================================
   404
   ============================================================ */
.cfd-404 { text-align: center; padding: 130px 0; }
.cfd-404__code { font-family: var(--font-display); font-size: clamp(80px, 14vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.cfd-404__text { color: var(--muted); font-size: 18px; margin: 14px 0 32px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.is-in { opacity: 1; transform: none; }
}

/* Foco accesible */
.btn:focus-visible, .cfd-nav__link:focus-visible, .cfd-input:focus-visible, .cfd-slug__input:focus-visible, a:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
    .cfd-hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .cfd-hero__visual { order: -1; }
    .cred { width: min(380px, 100%); }
}
@media (max-width: 640px) {
    section { padding: 68px 0; }
    .container { padding: 0 18px; }
    .cfd-hero { padding: 64px 0 72px; }
    .cfd-hero__cta { gap: 12px; }
    .cfd-hero__cta .btn { flex: 1 1 100%; }
    .cfd-nav__links { gap: 14px; }
    /* Beneficios y precios a una sola columna real (sin minmax que desborde) */
    .cfd-benefits, .cfd-price-grid { grid-template-columns: 1fr; }
    .cfd-price--rec { transform: none; }
    .cred-chip { right: 50%; transform: translateX(50%); bottom: -18px; }
    .cfd-reg__card, .glass-card { padding: 26px; }
    /* Evitar texto cortado dentro de la credencial en pantallas chicas */
    .cred__issuer, .cred__aptitud { white-space: normal; }
    .cred__row b { word-break: break-word; }
}
@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .cfd-reg__card, .glass-card, .cfd-benefit { padding: 22px; }
    .cfd-price__amount { font-size: 30px; }
    .cred__pad { padding: 22px 18px 20px; }
}
