@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,560;0,9..144,680;1,9..144,560&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --paper: #ffffff;
    --paper-deep: #eef4fb;
    --white: #ffffff;
    --ink: #16324a;
    --muted: #5a7190;
    --teal: #2b7de9;
    --teal-deep: #1a5fbf;
    --gold: #5eb6f5;
    --line: rgba(43, 90, 140, 0.16);
    --mint: #e7f3fc;
    --danger: #9d3b32;
    --ok: #1a6fd4;
    --shadow: 0 24px 60px rgba(22, 50, 74, 0.08);
    --radius: 28px;
    --font: "Manrope", sans-serif;
    --display: "Fraunces", serif;
    --scroll-thumb: rgba(43, 125, 233, .42);
    --scroll-thumb-hover: #1a5fbf;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-thumb-hover);
}

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical:start:decrement,
*::-webkit-scrollbar-button:vertical:end:increment,
*::-webkit-scrollbar-button:horizontal:start:decrement,
*::-webkit-scrollbar-button:horizontal:end:increment {
    display: none;
    width: 0;
    height: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--ink);
    color: white;
    padding: 8px 12px;
    z-index: 20;
}
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    background: transparent;
    pointer-events: none;
}
.header-inner, .section, .page-hero, .service-list, .about-layout, .contact-layout, .auth-shell, .account-hero, .cta-band, .footer-grid, .footer-base {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}
.header-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 6px 8px 6px 16px;
    background: var(--paper-deep);
    border: 1px solid rgba(43, 90, 140, 0.18);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 28px rgba(22, 50, 74, 0.10),
        0 2px 6px rgba(22, 50, 74, 0.05);
}
.site-header.is-scrolled .header-inner {
    background: color-mix(in srgb, var(--paper-deep) 94%, transparent);
    backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 16px 40px rgba(22, 50, 74, 0.16);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.03em; }
.brand em { font-style: italic; color: var(--teal); }

.nav-panel { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.72); }
.nav-links a.is-active {
    color: #fff;
    background: var(--teal);
    box-shadow: 0 6px 14px rgba(43, 125, 233, 0.28);
}
.nav-links a.is-active:hover { color: #fff; background: var(--teal-deep); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions form { margin: 0; }
.cuenta-menu { position: relative; }
.btn-cuenta {
    background: #fff;
    color: var(--ink);
    border-color: var(--cuenta, var(--teal));
}
.btn-cuenta:hover,
.btn-cuenta.is-current,
.cuenta-menu.is-open .btn-cuenta {
    background: color-mix(in srgb, var(--cuenta, var(--teal)) 12%, #fff);
}
.cuenta-chevron { transition: transform .15s ease; }
.cuenta-menu.is-open .cuenta-chevron { transform: rotate(180deg); }
.avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--avatar, var(--teal));
    color: var(--avatar-ink, #fff);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--avatar, var(--teal));
    user-select: none;
}
.avatar > * { grid-area: 1 / 1; }
.avatar img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar-md { width: 42px; height: 42px; font-size: .9rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.65rem; }
.avatar .avatar-icono { line-height: 1; }
.avatar-sm .avatar-icono { font-size: 13px; }
.avatar-md .avatar-icono { font-size: 18px; }
.avatar-lg .avatar-icono { font-size: 36px; }
.avatar .fa-user.avatar-icono {
    width: 100%;
    height: 100%;
    font-size: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='25' r='11' fill='white'/%3E%3Cpath fill='white' d='M2 66c4-20 14-28 30-28s26 8 30 28'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='25' r='11' fill='white'/%3E%3Cpath fill='white' d='M2 66c4-20 14-28 30-28s26 8 30 28'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.avatar .fa-user.avatar-icono::before { content: none; }
.cuenta-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--cuenta, var(--teal));
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 40;
}
.cuenta-menu.is-open .cuenta-dropdown { display: grid; }
.cuenta-dropdown a,
.cuenta-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}
.cuenta-dropdown form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.cuenta-dropdown a.cuenta-resumen {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.cuenta-resumen-texto { min-width: 0; }
.cuenta-resumen-texto strong,
.cuenta-resumen-texto small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cuenta-resumen-texto strong { font-size: .95rem; }
.cuenta-resumen-texto small { margin-top: 2px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.cuenta-dropdown a:hover,
.cuenta-dropdown button:hover,
.cuenta-dropdown a.is-active {
    background: var(--mint);
    color: var(--teal-deep);
}
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn.is-loading { opacity: .7; cursor: wait; }
.btn:disabled:not(.is-loading) { cursor: not-allowed; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero {
    width: min(1120px, calc(100% - 40px));
    margin: 28px auto 10px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}
.hero h1, .page-hero h1, .account-hero h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.hero h1 em, .page-hero h1 em { font-style: italic; color: var(--teal); }
.lead { margin-top: 16px; color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 26px; }
.hero-points li {
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .9rem;
    font-weight: 600;
}
.hero-visual { position: relative; }
.hero-visual img, .about-layout img, .service-list img, .bento img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}
.hero-visual > img { height: 520px; box-shadow: var(--shadow); }
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
    min-width: 180px;
}
.float-card span, .float-card small { display: block; color: var(--muted); font-size: .78rem; }
.float-card strong { display: block; font-family: var(--display); font-size: 1.35rem; margin: 2px 0; }
.float-card-a { left: -28px; bottom: 46px; }
.float-card-b { right: 16px; top: 22px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); margin: 42px 0 10px; background: var(--paper); }
.marquee-track { display: flex; gap: 42px; padding: 16px 0; width: max-content; animation: march 28s linear infinite; }
.marquee span { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-size: .82rem; }
.marquee span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 42px; border-radius: 50%; background: var(--gold); transform: translateY(-1px); }
@keyframes march { to { transform: translateX(-50%); } }

.section { padding: 78px 0; }
.section-tint {
    background: #ffffff;
    border-block: 1px solid var(--line);
    width: 100%;
}
.section-tint .section-head, .section-tint .bento, .section-tint .section-link { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2, .cta-band h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.section-head p:last-child { margin-top: 12px; color: var(--muted); }
.section-link { margin-top: 22px; }
.section-link a { color: var(--teal-deep); font-weight: 700; }

.problem-grid, .soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon-grid { grid-template-columns: repeat(4, 1fr); }
.problem-grid article, .soon-grid article, .form-card, .contact-aside, .account-card, .auth-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.problem-grid article, .soon-grid article { padding: 24px; }
.problem-grid span, .soon-grid span { color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .12em; }
.problem-grid h3, .soon-grid h3, .bento h3 { margin: 10px 0; font-size: 1.7rem; }
.problem-grid p, .soon-grid p, .bento p, .steps p, .service-list p { color: var(--muted); }

.bento { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.bento article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.bento img { height: 230px; border-radius: 0; }
.bento-wide { grid-row: span 2; }
.bento-wide img { height: 360px; }
.bento div { padding: 20px 22px 24px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: paso; }
.steps li { padding-top: 14px; border-top: 2px solid var(--teal); }
.steps strong { display: block; font-family: var(--display); font-size: 1.45rem; margin-bottom: 8px; }

.page-hero { padding: 54px 0 10px; }
.page-hero .lead { margin-bottom: 10px; }

.service-list { display: grid; gap: 28px; padding-bottom: 40px; }
.service-blocks { display: contents; }
.service-list article {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    align-items: center;
}
.service-list img { height: 320px; box-shadow: var(--shadow); }
.service-list.is-reverse, .service-list article.is-reverse { direction: rtl; }
.service-list article.is-reverse > * { direction: ltr; }
.service-list ul { margin-top: 14px; padding-left: 18px; color: var(--ink); }
.service-list li + li { margin-top: 6px; }
.service-list .text-only {
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    direction: ltr;
}
.service-list .text-only > div { padding: 22px; }

.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 28px 0 10px; }
.about-layout img { height: 420px; box-shadow: var(--shadow); }
.about-layout p { color: var(--muted); margin-top: 14px; }

.contact-layout, .auth-shell, .account-hero { display: grid; gap: 28px; align-items: start; padding: 20px 0 70px; }
.contact-layout { grid-template-columns: 1.2fr .8fr; }
.form-card, .contact-aside, .auth-card, .account-card { padding: 28px; }
.contact-aside ol { margin: 14px 0 18px 18px; }
.contact-aside li + li { margin-top: 8px; }
.contact-aside a { color: var(--teal-deep); }

label { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; margin-bottom: 14px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(43, 125, 233, .16); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-alert { min-height: 0; margin: 0 0 12px; font-size: .92rem; display: none; }
.form-alert.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    border-left-width: 4px;
    font-weight: 700;
    line-height: 1.35;
}
.form-alert.is-visible::before {
    font-family: FontAwesome;
    flex: none;
    line-height: 1.35;
}
.form-alert.is-ok {
    background: var(--verde-suave, #e8f6ee);
    color: var(--verde-texto, #146c3a);
    border-color: color-mix(in srgb, var(--verde-texto, #146c3a) 32%, transparent);
}
.form-alert.is-ok::before { content: "\f00c"; }
.form-alert.is-error {
    background: var(--rojo-suave, #f8e8e6);
    color: var(--danger, #9d3b32);
    border-color: color-mix(in srgb, var(--danger, #9d3b32) 32%, transparent);
}
.form-alert.is-error::before { content: "\f06a"; }
.form-alert.is-aviso,
.form-alert.is-warning {
    background: var(--ambar-suave, #fff6e8);
    color: var(--ambar-texto, #8a5a12);
    border-color: var(--ambar-borde, #efd3a4);
}
.form-alert.is-aviso::before,
.form-alert.is-warning::before { content: "\f071"; }

.toasts {
    position: fixed;
    z-index: 90;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    width: min(380px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    overflow: hidden;
    padding: 14px 12px 18px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
    border-left-width: 4px;
    box-shadow: 0 16px 36px rgba(8, 20, 40, .18);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    transform-origin: right bottom;
    animation: toast-in .4s cubic-bezier(.16, 1.12, .32, 1);
}

.toast.is-ok {
    background: var(--verde-suave, #e8f6ee);
    color: var(--verde-texto, #146c3a);
}

.toast.is-error {
    background: var(--rojo-suave, #f8e8e6);
    color: var(--danger, #9d3b32);
}

.toast.is-aviso {
    background: var(--ambar-suave, #fff6e8);
    color: var(--ambar-texto, #8a5a12);
}

.toast p { flex: 1; margin: 0; }

.toast-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: color-mix(in srgb, currentColor 14%, transparent);
    font-size: 1rem;
}

.toast-tiempo {
    position: absolute;
    left: 14px;
    right: 12px;
    bottom: 8px;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, currentColor 22%, transparent);
    pointer-events: none;
}

.toast-barra {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform: scaleX(1);
    transform-origin: left center;
    background: currentColor;
}

.toast-x {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -2px -2px 0 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.toast-x:hover,
.toast-x:focus-visible {
    background: color-mix(in srgb, currentColor 16%, transparent);
}

.toast.is-out {
    pointer-events: none;
    animation: toast-out .28s ease forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateX(16px) scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
    .toast,
    .toast.is-out {
        animation: none;
        transform: none;
    }
    .toast.is-out { opacity: 0; }
}
.form-hint, .check-line { color: var(--muted); font-weight: 500; font-size: .88rem; }
.check-line { display: flex; align-items: center; gap: 8px; }
.check-line input { width: auto; }

.auth-shell { grid-template-columns: .9fr 1.1fr; padding-top: 36px; }
.auth-marca { display: block; width: min(100%, 420px); height: auto; margin: 0 0 28px; }
.auth-intro ul { margin-top: 22px; padding-left: 18px; color: var(--muted); }
.auth-intro li + li { margin-top: 8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--paper-deep); padding: 6px; border-radius: 16px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: transparent; border-radius: 12px; min-height: 42px; font-weight: 700; cursor: pointer; }
.auth-tabs button.is-active { background: white; box-shadow: 0 6px 16px rgba(28,36,48,.06); }
.auth-form[hidden] { display: none; }
.auth-olvido {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--teal-deep);
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
}
.auth-olvido:hover,
.auth-olvido:focus-visible { text-decoration: underline; }
.auth-form .btn + .auth-olvido { margin-top: 12px; }
.auth-recuperar-titulo {
    margin: 0 0 6px;
    font-family: var(--display);
    font-size: 1.7rem;
    color: var(--ink);
}
.auth-pasos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 16px;
}
.auth-pasos span {
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--line);
}
.auth-pasos span.is-active {
    color: var(--teal-deep);
    border-bottom-color: var(--teal);
}
.codigo-entrada {
    letter-spacing: .35em;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}

.account-hero { grid-template-columns: 1.1fr .9fr; padding-top: 48px; }
.account-hello { display: flex; align-items: center; gap: 22px; }
.perfil-hero .eyebrow,
.account-hero .eyebrow { color: var(--acento, var(--teal)); }
.account-hero .account-card,
.config-section .config-card { border-top: 4px solid var(--acento, var(--teal)); }
.account-card dl { display: grid; gap: 12px; margin: 16px 0 0; }
.account-card div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.account-card dt { color: var(--muted); }
.account-card dd { margin: 0; font-weight: 700; text-align: right; }
.account-actions { margin-top: 18px; }
.config-section { padding-top: 8px; }
.config-card { max-width: 720px; }
.perfil-editor {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.perfil-editor input[type="file"] { padding: 8px; background: var(--paper-deep); cursor: pointer; }
.color-label { margin: 4px 0 8px; font-size: .86rem; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(22, 50, 74, 0.18);
    background: var(--swatch);
    padding: 0;
    cursor: pointer;
}
.swatch.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--swatch); }
.color-nativo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 220px;
}
.color-nativo input[type="color"] {
    width: 52px;
    height: 40px;
    padding: 4px;
    border-radius: 12px;
    cursor: pointer;
    flex: none;
}
.icono-field { margin-top: 14px; }
.iconos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
    max-width: 460px;
    margin-bottom: 8px;
}
.icono-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(22, 50, 74, 0.18);
    background: var(--paper-deep);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-size: 1.05rem;
}
.icono-btn .fa { line-height: 1; }
.icono-btn.is-selected {
    background: var(--avatar, var(--acento, var(--teal)));
    color: var(--avatar-ink, #fff);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--avatar, var(--acento, var(--teal)));
}
.config-back { margin: 16px 0 0; }
.config-back a { color: var(--teal-deep); font-weight: 700; text-decoration: none; }

.cta-band {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 320px;
    border-radius: 36px;
    margin-bottom: 70px;
    align-items: center;
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band div { position: relative; padding: 48px; max-width: 640px; }
.cta-plain { background: var(--white); border: 1px solid var(--line); min-height: 0; box-shadow: var(--shadow); }

.site-footer { padding: 28px 0 20px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 24px; }
.footer-grid h2 { font-family: var(--font); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); text-decoration: none; margin-top: 8px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; color: var(--muted); font-size: .88rem; padding-bottom: 10px; }

::selection { background: #d6e9fb; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

@media (max-width: 980px) {
    .hero, .bento, .steps, .service-list article, .about-layout, .contact-layout, .auth-shell, .account-hero, .footer-grid, .problem-grid, .soon-grid, .service-list .text-only {
        grid-template-columns: 1fr;
    }
    .bento-wide { grid-row: auto; }
    .bento-wide img, .hero-visual > img, .service-list img, .about-layout img { height: 280px; }
    .service-list article.is-reverse { direction: ltr; }
    .float-card-a { left: 12px; }
    .nav-toggle { display: flex; }
    .nav-panel {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 16px;
        box-shadow: var(--shadow);
    }
    .nav-panel.is-open { display: flex; }
    .nav-links, .nav-actions { flex-direction: column; align-items: stretch; }
    .nav-links a { padding: 12px 14px; }
    .header-inner { position: relative; border-radius: 24px; padding: 8px; }
    .cuenta-menu, .btn-cuenta { width: 100%; }
    .cuenta-dropdown {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }
}

@media (max-width: 720px) {
    .header-inner, .section, .page-hero, .service-list, .about-layout, .contact-layout, .auth-shell, .account-hero, .cta-band, .footer-grid, .footer-base, .hero {
        width: min(1120px, calc(100% - 28px));
    }
    .form-row { grid-template-columns: 1fr; }
    .hero h1, .page-hero h1 { font-size: 2.45rem; }
    .float-card-b { display: none; }
    .cta-band div { padding: 28px 22px; }
    .footer-base { flex-direction: column; }
    .account-card div { flex-direction: column; gap: 2px; }
    .account-card dd { text-align: left; }
    .account-hello, .perfil-editor { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
    .btn, .cuenta-chevron { transition: none; }
    .revision-ring,
    .revision-core,
    .revision-orbita,
    .revision-punto,
    .revision-chispa { animation: none; }
}

.sistema-elige {
    margin: 4px 0 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper-deep);
}

.sistema-elige legend {
    padding: 0 6px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal);
}

.sistema-opcion {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid transparent;
}

.sistema-opcion:has(input:checked) {
    border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
    box-shadow: 0 8px 20px rgba(43, 125, 233, .08);
}

.sistema-opcion input { width: auto; margin-top: 4px; }

.sistema-opcion span:last-child { display: grid; gap: 2px; }

.sistema-opcion small {
    color: var(--muted);
    font-weight: 500;
}

.sistema-punto {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    flex: none;
}

.revision {
    width: min(720px, calc(100% - 40px));
    margin: 28px auto 70px;
}

.revision-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 42px 32px 32px;
    border-radius: var(--radius);
    background:
        radial-gradient(420px 180px at 50% 0%, rgba(94, 182, 245, .28), transparent 70%),
        #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.revision-card h1 { font-size: clamp(2rem, 4vw, 3rem); }

.revision-texto {
    max-width: 46ch;
    margin: 14px auto 0;
    color: var(--muted);
}

.revision-stage {
    position: relative;
    width: 168px;
    height: 168px;
    margin: 0 auto 18px;
}

.revision-ring,
.revision-orbita,
.revision-core,
.revision-chispa {
    position: absolute;
    border-radius: 50%;
}

.revision-ring {
    inset: 0;
    border: 1px solid rgba(43, 125, 233, .35);
    animation: revision-pulso 2.8s ease-out infinite;
}

.revision-ring:nth-child(2) { inset: 18px; animation-delay: .45s; }
.revision-ring:nth-child(3) { inset: 36px; animation-delay: .9s; }

.revision-orbita {
    inset: 22px;
    border: 1px dashed rgba(43, 125, 233, .35);
    animation: revision-gira 12s linear infinite;
}

.revision-orbita::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 16px rgba(43, 125, 233, .7);
}

.revision-core {
    inset: 52px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(160deg, var(--teal-deep), var(--gold));
    box-shadow: 0 16px 40px rgba(43, 125, 233, .32);
    animation: revision-flota 3.2s ease-in-out infinite;
}

.revision-check { display: none; }

.revision-chispa {
    width: 8px;
    height: 8px;
    background: var(--teal);
    opacity: 0;
}

.revision-stage .revision-chispa:nth-child(6) { top: 18px; left: 24px; }
.revision-stage .revision-chispa:nth-child(7) { top: 30px; right: 18px; }
.revision-stage .revision-chispa:nth-child(8) { bottom: 28px; left: 16px; }
.revision-stage .revision-chispa:nth-child(9) { bottom: 18px; right: 28px; }

.revision-sistemas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    list-style: none;
}

.revision-sistemas li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--mint);
    font-weight: 700;
}

.revision-sistemas .sistema-punto { margin-top: 0; }

.revision-estado {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff8ea;
    color: #8a5a12;
    font-weight: 800;
}

.revision-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0a100;
    box-shadow: 0 0 0 0 rgba(224, 161, 0, .55);
    animation: revision-punto 1.6s ease-out infinite;
}

.revision.is-lista .revision-card {
    background:
        radial-gradient(420px 180px at 50% 0%, rgba(43, 125, 233, .22), transparent 70%),
        #fff;
}

.revision.is-lista .revision-core svg:first-child { display: none; }
.revision.is-lista .revision-check { display: block; }
.revision.is-lista .revision-ring { animation: none; opacity: .35; border-color: var(--teal); }
.revision.is-lista .revision-estado { background: var(--mint); color: var(--teal-deep); }
.revision.is-lista .revision-punto,
.revision-punto.is-ok { background: var(--teal); box-shadow: none; animation: none; }

.revision.is-lista .revision-chispa {
    animation: revision-chispa .9s ease-out forwards;
}

.revision.is-lista .revision-stage .revision-chispa:nth-child(7) { animation-delay: .08s; }
.revision.is-lista .revision-stage .revision-chispa:nth-child(8) { animation-delay: .16s; }
.revision.is-lista .revision-stage .revision-chispa:nth-child(9) { animation-delay: .24s; }

@keyframes revision-pulso {
    0% { transform: scale(.92); opacity: .15; }
    70% { opacity: .65; }
    100% { transform: scale(1.06); opacity: 0; }
}

@keyframes revision-flota {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes revision-gira { to { transform: rotate(360deg); } }

@keyframes revision-punto {
    70% { box-shadow: 0 0 0 8px rgba(224, 161, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 161, 0, 0); }
}

@keyframes revision-chispa {
    0% { opacity: 0; transform: scale(.4); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-18px) scale(1.3); }
}

[hidden] { display: none !important; }

html.en-editor [data-campo] { cursor: pointer; }
html.en-editor [data-campo]:hover {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 8px;
}

