/* ==========================================================================
   BennuIT — estilos del sitio (sin frameworks)
   ========================================================================== */

:root {
    --ink: #0b1220;
    --ink-2: #111a2e;
    --ink-3: #1b2640;
    --text: #1d2433;
    --text-muted: #5b6475;
    --text-inverse: #e7ecf5;
    --text-inverse-muted: #9aa6bd;
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --line: #e3e7ef;
    --line-dark: #26324d;

    --accent: #f26b1d;          /* brasa: el fuego del Bennu */
    --accent-2: #ffb547;
    --accent-ink: #ffffff;
    --accent-soft: #fff1e8;

    --bad: #c2410c;
    --bad-soft: #fef2f2;
    --good: #15803d;
    --good-soft: #f0fdf4;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 8px 24px rgb(16 24 40 / .08);
    --shadow-lg: 0 20px 50px rgb(11 18 32 / .25);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .9em; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}
.lead-text { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }
.tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-left: .4rem;
}
/* ---- Botones ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--primary {
    background: linear-gradient(135deg, var(--accent), #e2550b);
    color: var(--accent-ink);
    box-shadow: 0 6px 18px rgb(242 107 29 / .35);
}
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn--danger:hover { background: var(--bad); color: #fff; }
.btn--sm { padding: .4rem .9rem; font-size: .875rem; }
.btn--lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---- Navegación ----------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(11 18 32 / .88);
    backdrop-filter: blur(10px);
    color: var(--text-inverse);
    border-bottom: 1px solid var(--line-dark);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: inherit;
    text-decoration: none;
}
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text small { font-size: .7rem; font-weight: 500; letter-spacing: .04em; color: var(--text-inverse-muted); }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a:not(.btn) { color: var(--text-inverse-muted); text-decoration: none; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--text-inverse); }
.nav__icon { display: inline-flex; align-items: center; padding: .25rem; border-radius: 6px; transition: color .15s ease; }
.nav__links .nav__icon:hover { color: #0a66c2; background: #fff; }
.nav__links form { margin: 0; }
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-dark); border-radius: 999px; }
.nav__links .lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    transition: background .15s ease, color .15s ease;
}
.nav__links .lang-switch a.is-active { background: var(--ink-3); color: var(--text-inverse); }
.lang-switch .flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / .15); }
.lang-switch a:not(.is-active) .flag { opacity: .6; }
.lang-switch a:hover .flag { opacity: 1; }
@media (max-width: 720px) {
    .nav__links > a:not(.btn):not(.nav__icon) { display: none; }
    .lang-switch span { display: none; }
    .nav--admin .nav__links a:not(.btn) { display: inline; }
}

/* ---- Hero ----------------------------------------------------------------- */

.hero {
    background:
        radial-gradient(900px 500px at 85% -10%, rgb(242 107 29 / .22), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgb(255 181 71 / .10), transparent 60%),
        var(--ink);
    color: var(--text-inverse);
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero .lead-text { color: var(--text-inverse-muted); }
.hero__content > div { max-width: 860px; }
/* Evita que contenido ancho estire las columnas en pantallas chicas. */
.cards > *, .cta__grid > *, .stack > * { min-width: 0; }
h1, h2 { overflow-wrap: break-word; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.hero__proof {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
    color: var(--text-inverse-muted);
    font-size: .92rem;
}
.hero__proof strong { color: var(--text-inverse); }
@media (max-width: 480px) {
    .nav__links .btn { display: none; }
}

/* ---- Secciones ------------------------------------------------------------ */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: var(--text-inverse); }
.section--dark p { color: var(--text-inverse-muted); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem;
}

/* Tarjetas Antes / Después */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
/* Versión resumida (home): tres por fila, descripción de hasta tres líneas. */
.cards--compact { grid-template-columns: repeat(3, 1fr); }
.cards--compact > :last-child:nth-child(odd) { grid-column: auto; }
@media (max-width: 1000px) { .cards--compact { grid-template-columns: repeat(2, 1fr); } }
.service--compact { color: inherit; text-decoration: none; }
.service--compact p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }
/* Con cantidad impar de tarjetas, la última ocupa el ancho completo en vez de quedar sola en una columna. */
.cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.service { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgb(16 24 40 / .12); }
.service__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    border-radius: 12px;
    background: var(--accent-soft);
    margin-bottom: 1rem;
}
.service__cta { margin-top: auto; padding-top: 1rem; font-weight: 600; text-decoration: none; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: .5rem; }
@media (max-width: 560px) { .ba { grid-template-columns: 1fr; } }
.ba__col { border-radius: var(--radius-sm); padding: 1rem; font-size: .92rem; }
.ba__col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.ba__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ba__col li { position: relative; padding-left: 1.4rem; }
.ba__col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ba__col--before { background: var(--bad-soft); }
.ba__col--before h4 { color: var(--bad); }
.ba__col--before li::before { content: "✕"; color: var(--bad); }
.ba__col--after { background: var(--good-soft); }
.ba__col--after h4 { color: var(--good); }
.ba__col--after li::before { content: "✓"; color: var(--good); }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent-2);
    font-weight: 800;
    margin-bottom: .9rem;
}

/* Stack */
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr; } }
.stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 2.4rem; font-weight: 800; color: var(--accent-2); line-height: 1; }
.stats span { font-size: .85rem; color: var(--text-inverse-muted); margin-top: .35rem; }
.stack__groups { display: grid; gap: 1.2rem; }
.stack__group { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.stack__group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-inverse-muted); margin-bottom: .8rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--ink-3);
    border: 1px solid var(--line-dark);
    font-size: .88rem;
    font-weight: 500;
}

/* Casos reales */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; } }
.case { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.case__sector { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.case h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.case p { font-size: .93rem; color: var(--text-muted); }
.case p:last-child { margin-bottom: 0; }
.case strong { color: var(--text); }
.soft { margin-top: 3rem; }
.soft__title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .5rem; }
.soft__lead { margin-bottom: 1.5rem; max-width: 60ch; }
.soft__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .soft__items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .soft__items { grid-template-columns: 1fr; } }
.soft__item { border-top: 3px solid var(--accent); padding-top: 1rem; }
.soft__item h4 { font-size: 1rem; margin: 0 0 .4rem; }
.soft__item p { margin: 0; font-size: .93rem; }

/* Formas de contratación */
.engagements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 3.5rem; }
@media (max-width: 900px) { .engagements { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .engagements { grid-template-columns: 1fr; } }
.engagement { border-top: 3px solid var(--accent); padding-top: 1rem; }
.engagement h3 { font-size: 1.05rem; }
.engagement p { margin: 0; font-size: .93rem; }
.steps__title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 1.5rem; }

/* CTA */
/* Sobre mí */
.about { max-width: 760px; }
.about__text { font-size: 1.15rem; line-height: 1.7; color: var(--text-muted); margin: 0 0 1.25rem; }
.about__signature { display: flex; align-items: center; gap: 1rem; }
.about__signature > div { display: flex; flex-direction: column; gap: .15rem; }
.about__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.about__photo--initials {
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent);
    font-weight: 800; font-size: 1.4rem;
}

.about__signature { min-height: 72px; } /* reserva el lugar mientras carga la firma */

/* Páginas de aterrizaje */
.ba--wide { max-width: 980px; margin-top: 0; }
.ba--wide .ba__col { padding: 1.4rem; font-size: 1rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: 0; }
.features__note { margin: 2rem 0 0; font-weight: 600; }
.faq { max-width: 820px; display: grid; gap: .75rem; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .75rem 0 0; color: var(--text-muted); }
.landing__more { margin-top: 2rem; font-weight: 600; }

/* Landing del chat: capturas de wchat */
#wchat { border-bottom: 1px solid var(--line); }
.showcase__code {
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    font-size: .85rem;
    white-space: pre-wrap;
    word-break: break-all;
}
.showcase { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.showcase__row { display: grid; grid-template-columns: 5fr 7fr; gap: 2.5rem; align-items: center; }
.showcase__row--flip .showcase__text { order: 2; }
.showcase__text h3 { font-size: 1.5rem; }
.showcase__text .checks { margin-top: 1rem; }
.showcase__shots { display: grid; gap: 1rem; }
.showcase__shots--phone { grid-template-columns: 1fr 34%; align-items: center; }
@media (max-width: 900px) {
    .showcase__row { grid-template-columns: 1fr; gap: 1.5rem; }
    .showcase__row--flip .showcase__text { order: 0; }
}
.shot {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg);
    cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; }
.shot--phone { border-radius: 22px; border-width: 6px; border-color: var(--ink); }
.showcase__demo { margin: 2.5rem 0 0; text-align: center; }

.client {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.client h3 { font-size: 1.5rem; }
@media (max-width: 900px) { .client { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Landing de infraestructura: despliegue propio */
#ejemplo { border-bottom: 1px solid var(--line); }
.deploy__title { font-size: 1.25rem; margin: 0 0 1.25rem; }
.flow { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
.flow__step { position: relative; display: grid; align-content: start; gap: .35rem; padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius-sm); }
.flow__step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -1.35rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 700;
}
.flow__num {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--bg);
    color: var(--accent);
    font-weight: 600;
    font-size: .85rem;
}
@media (max-width: 900px) {
    .flow { grid-template-columns: 1fr; gap: 1.5rem; }
    .flow__step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -1.4rem; transform: translateX(-50%); }
}

.arch { display: grid; gap: 1rem; margin-bottom: 3.5rem; }
.arch__node { display: grid; gap: .2rem; padding: 1rem 1.25rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.arch__node--edge { justify-self: center; text-align: center; min-width: 16rem; background: var(--bg-alt); border: 0; }
.arch__node--edge::after { content: "↓"; color: var(--accent); font-weight: 700; margin-top: .4rem; }
.arch__server { display: grid; gap: .75rem; padding: clamp(1rem, 3vw, 1.75rem); background: var(--bg-alt); border-radius: var(--radius); }
.arch__label { margin: 0; font-weight: 600; color: var(--text-muted); font-size: .9rem; }
.arch__apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.arch__node--app { border-color: var(--accent); }
.arch__data { margin-top: .4rem; padding-top: .4rem; border-top: 1px dashed var(--line); color: var(--text-muted); }
.arch__node--runner { border-style: dashed; }
@media (max-width: 720px) { .arch__apps { grid-template-columns: 1fr; } }

.deploy__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.deploy__cards .checks { margin-top: 1rem; font-size: .95rem; }
@media (max-width: 900px) { .deploy__cards { grid-template-columns: 1fr; } }

/* Landing de Google Cloud: antes / después del caso "De 1 servidor a alta disponibilidad". */
#arquitectura { border-bottom: 1px solid var(--line); }
.cloud { display: grid; grid-template-columns: 4fr 8fr; gap: 2rem; align-items: start; }
.cloud__before .arch__server { opacity: .8; }
.arch__node--more { border-style: dashed; color: var(--text-muted); }
.arch__node--db { border-color: var(--text-muted); }
.cloud__stats { margin: 2.5rem 0 1rem; }
@media (max-width: 900px) { .cloud { grid-template-columns: 1fr; } }

.zoom {
    max-width: min(1400px, 96vw);
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    overflow: auto;
}
.zoom::backdrop { background: rgb(11 18 32 / .75); }
.zoom img { display: block; max-width: 100%; height: auto; }
.zoom__close {
    position: sticky;
    top: .5rem;
    float: right;
    margin: .5rem .5rem -3rem 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.cta { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }
.cta__alt { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .1rem;
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

/* ---- Formularios ------------------------------------------------------------ */

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
input, select, textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--text);
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(242 107 29 / .18);
}
textarea { resize: vertical; }
.input-validation-error { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: .8rem; font-weight: 500; }
.field-error:empty { display: none; }
.form__note { font-size: .8rem; color: var(--text-muted); text-align: center; margin: 0; }
.form__error { margin: 0; text-align: center; }
.form__note a { color: inherit; }
/* Badge flotante de reCAPTCHA oculto: el aviso que exige Google está debajo del formulario. */
.grecaptcha-badge { visibility: hidden; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: var(--bad-soft); color: var(--bad); padding: .7rem 1rem; border-radius: var(--radius-sm); margin: 0; }

.thanks { text-align: center; padding: 3rem 2rem; }
.thanks__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--good-soft);
    color: var(--good);
    font-size: 2rem;
    font-weight: 800;
}

/* ---- Footer ------------------------------------------------------------------- */

.footer { background: var(--ink); color: var(--text-inverse); padding: 2.5rem 0 6rem; border-top: 1px solid var(--line-dark); }
.footer .muted { color: var(--text-inverse-muted); max-width: 46ch; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; font-size: .9rem; }
.footer__links a { color: var(--text-inverse-muted); }

.prose { max-width: 70ch; }

/* ---- Admin ----------------------------------------------------------------------- */

.admin { padding-block: 2rem 4rem; }
.admin h1 { font-size: 1.4rem; }
.empty { padding: 2rem; text-align: center; color: var(--text-muted); background: var(--bg-alt); border-radius: var(--radius); }

.leads { display: grid; gap: 1rem; }
.lead { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.lead.is-handled { border-left-color: var(--line); opacity: .65; }
.lead header { display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; }
.lead header time { margin-left: auto; font-size: .78rem; color: var(--text-muted); }
.lead__meta { font-size: .88rem; margin: .3rem 0 .6rem; }
.lead__msg { white-space: pre-wrap; font-size: .93rem; }

.admin__section { margin-top: 2.5rem; }
.email-log__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.email-log { width: 100%; border-collapse: collapse; font-size: .88rem; }
.email-log th, .email-log td { text-align: left; vertical-align: top; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.email-log th { background: var(--bg-alt); font-weight: 600; white-space: nowrap; }
.email-log tr:last-child td { border-bottom: none; }
.email-log td:first-child { white-space: nowrap; }

.login { min-height: 60vh; display: grid; place-items: center; }
.login .form { width: min(400px, 100%); }
.login h1 { font-size: 1.4rem; }

.nav--admin .tag { background: var(--ink-3); color: var(--accent-2); }

/* ==========================================================================
   Tema claro (estilo minimalista): fondos blancos y gris muy claro, un solo
   acento, sin degradés ni sombras marcadas. Redefine los tokens oscuros.
   ========================================================================== */

:root {
    --ink: #1d1d1f;
    --ink-2: #ffffff;
    --ink-3: #f5f5f7;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --text-inverse: #1d1d1f;
    --text-inverse-muted: #6e6e73;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --line: #e5e5ea;
    --line-dark: #e5e5ea;

    --accent: #0071e3;
    --accent-2: #2997ff;
    --accent-soft: #eef5fd;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow: none;
    --shadow-lg: 0 24px 60px rgb(0 0 0 / .12);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
}

body { line-height: 1.55; }
h1, h2, h3, h4 { letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-weight: 600; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--accent); }
.accent { background: none; color: var(--accent); }

/* Botones: planos, sin degradé ni sombra. */
.btn { font-weight: 500; }
.btn:hover { transform: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn--primary:hover { background: #0077ed; }
.btn--ghost { border-color: transparent; color: var(--accent); }
.btn--ghost:hover { text-decoration: underline; }

/* Navegación translúcida clara. */
.nav { background: rgb(255 255 255 / .8); backdrop-filter: saturate(180%) blur(20px); color: var(--text); border-bottom: 1px solid rgb(0 0 0 / .08); }
.nav__links a:not(.btn) { color: var(--text); font-size: .9rem; font-weight: 400; opacity: .8; }
.nav__links a:not(.btn):hover { color: var(--text); opacity: 1; }
.brand { font-weight: 600; }
.brand__text small { color: var(--text-muted); }
.nav__links .lang-switch a.is-active { background: var(--bg-alt); color: var(--text); }
.lang-switch .flag { box-shadow: 0 0 0 1px rgb(0 0 0 / .1); }

/* Hero con mucho aire. */
.hero { background: var(--bg-alt); color: var(--text); padding: clamp(1.75rem, 4vw, 3.25rem) 0; }
.hero .lead-text { color: var(--text-muted); }
/* Títulos que son una propuesta de valor completa (una oración larga, no un eslogan). */
.hero h1.hero__title--long { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.hero__proof { color: var(--text-muted); }
.hero__proof strong { color: var(--text); font-weight: 600; }

/* Secciones */
.section { padding: clamp(2.25rem, 4.5vw, 4rem) 0; }
.section__head { margin-bottom: 3.5rem; }
.section--dark { background: var(--bg-alt); color: var(--text); }
.section--dark p { color: var(--text-muted); }

/* Tarjetas: superficies grises sin borde sobre fondo blanco (y blancas sobre gris). */
.card, .case, .step, .feature, .faq details { border: none; background: var(--bg-alt); box-shadow: none; }
.section--alt .card, .section--alt .case, .section--alt .step, .section--alt .feature, .section--alt .faq details { background: var(--bg); }
.service:hover { transform: scale(1.015); box-shadow: none; }
.service__icon { background: var(--bg); border-radius: 14px; color: var(--accent); }
.service__cta { color: var(--accent); font-weight: 500; }
.case__sector { letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: .85rem; }
.soft__item, .engagement { border-top: 1px solid var(--line); }
.step__num { background: var(--bg); color: var(--accent); font-weight: 600; }
.section--alt .step__num { background: var(--bg-alt); }

/* Stack */
.stats strong { color: var(--text); font-weight: 700; }
.stats span { color: var(--text-muted); }
.stack__group { background: var(--bg); border: none; }
.stack__group h3 { color: var(--text-muted); letter-spacing: .02em; text-transform: none; font-size: .9rem; }
.chips li { background: var(--bg-alt); border: none; color: var(--text); }

/* Contacto y pie */
.cta { background: var(--bg); }
.cta__alt { color: var(--text); }
.footer { background: var(--bg-alt); color: var(--text); border-top: 1px solid var(--line); }
.footer .muted, .footer__links a { color: var(--text-muted); }

.nav--admin .tag { background: var(--bg-alt); color: var(--accent); }
.case .case__sector, .section--dark .eyebrow { color: var(--accent); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--text); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgb(0 113 227 / .18); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
