:root {
    --ck-navy: #031b46;
    --ck-blue: #082f67;
    --ck-gold: #f5b800;
    --ck-gold-soft: #ffe08a;
    --ck-ink: #172033;
    --ck-muted: #6d7483;
    --ck-line: #e6e9ef;
    --ck-surface: #ffffff;
    --ck-soft: #f6f8fb;
    --ck-pale: #edf2f8;
    --ck-pale-strong: #dde7f2;
    --ck-radius: 30px;
    --ck-shadow: 0 18px 44px rgba(3, 27, 70, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ck-ink);
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--ck-muted);
    line-height: 1.75;
}

#servicios {
    scroll-margin-top: -90px;
}

/* =========================================================
   ESTRUCTURA GENERAL
   ========================================================= */

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-shell > main {
    flex: 1 0 auto;
}

.section {
    padding: 6.5rem 0;
}

.section-white {
    background: #fff;
}

.section-soft {
    background: var(--ck-pale);
}

.section-title {
    max-width: 760px;
    margin-right: auto;
    margin-bottom: 2.5rem;
    margin-left: auto;
}

.section-title.text-center {
    max-width: 850px;
}

.section-title h1,
.section-title h2 {
    color: var(--ck-navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.section-title p {
    font-size: 1.05rem;
}

.accent-text {
    color: var(--ck-blue);
}

/* =========================================================
   TIPOGRAFÍA
   ========================================================= */

h1,
h2,
.display-6,
.section-title h1,
.section-title h2,
.page-hero h1 {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: -0.035em;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    background: var(--ck-navy);
    border: 0;
}

.topbar a {
    color: rgba(255, 255, 255, 0.76);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar-clean {
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    box-shadow: 0 8px 28px rgba(3, 27, 70, 0.07);
    backdrop-filter: blur(12px);
}

.brand-logo {
    width: 196px;
    max-height: 68px;
    object-fit: contain;
}

.nav-link {
    position: relative;
    padding: 0.8rem 0.9rem !important;
    color: var(--ck-ink);
    font-size: 0.94rem;
    font-weight: 600;
    border: 0;
}

.nav-link::after {
    position: absolute;
    right: 0.9rem;
    bottom: 0.45rem;
    left: 0.9rem;
    height: 2px;
    content: "";
    background: var(--ck-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ck-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* =========================================================
   BOTONES
   ========================================================= */

.btn-gold,
.btn-outline-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.88rem 1.4rem;
    font-weight: 700;
    border-radius: 10px;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.btn-gold {
    color: var(--ck-navy);
    background: var(--ck-gold);
    border: 1px solid var(--ck-gold);
    box-shadow: 0 12px 30px rgba(245, 184, 0, 0.22);
}

.btn-gold:hover {
    color: var(--ck-navy);
    background: #e9aa00;
    border-color: #e9aa00;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(3, 27, 70, 0.16);
}

.btn-gold:disabled,
.btn-gold[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.btn-outline-brand {
    color: var(--ck-navy);
    background: #fff;
    border: 1px solid rgba(3, 27, 70, 0.22);
}

.btn-outline-brand:hover {
    color: var(--ck-blue);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(3, 27, 70, 0.12);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: var(--ck-ink);
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(245, 184, 0, 0.16),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            var(--ck-pale) 0%,
            #f8fafc 58%,
            var(--ck-pale-strong) 100%
        );
}

.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5.6rem 0 8.6rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--ck-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 36px;
    height: 2px;
    content: "";
    background: var(--ck-gold);
}

.hero h1 {
    max-width: 760px;
    color: var(--ck-navy);
    font-size: clamp(3rem, 5.7vw, 5.4rem);
    font-weight: 700;
    line-height: 1.02;
}

.hero h1 em,
.hero .accent-text {
    color: var(--ck-blue);
    font-style: normal;
}

.hero p {
    max-width: 690px;
    color: var(--ck-muted);
    font-size: 1.08rem;
}

.hero-checks {
    max-width: 650px;
    margin: 1.7rem 0 2rem;
}

.hero-checks li {
    align-items: flex-start;
    color: var(--ck-ink);
    font-weight: 600;
}

.hero-checks i {
    color: var(--ck-blue);
}

.hero-visual-wrap {
    position: relative;
    padding: 1.5rem 1.5rem 0;
}

.hero-visual {
    width: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 180px 30px 30px 30px;
    box-shadow: 0 28px 60px rgba(3, 27, 70, 0.18);
}

.hero-visual-wrap::before {
    position: absolute;
    inset: 4.5rem 0 2rem 4.5rem;
    content: "";
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 34px;
    pointer-events: none;
}

.hero-badge {
    position: absolute;
    bottom: 2rem;
    left: 0;
    max-width: 260px;
    padding: 1rem 1.2rem;
    color: var(--ck-navy);
    background: rgba(255, 255, 255, 0.94);
    border-left: 4px solid var(--ck-gold);
    border-radius: 12px;
    box-shadow: var(--ck-shadow);
    backdrop-filter: blur(10px);
}

.hero-badge strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
}

/* =========================================================
   PASOS
   ========================================================= */

.home-steps {
    position: relative;
    z-index: 2;
    margin-top: -76px;
    padding: 4.8rem 0 5.4rem;
    background: #fff;
    border-radius: 72px 72px 0 0;
}

.step-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.7rem;
    background: #fff;
}

.step-number-editorial {
    color: var(--ck-blue);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 0.8;
}

.step-number-editorial small {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.step-card h3 {
    color: var(--ck-navy);
    font-size: 1.12rem;
    font-weight: 800;
}

.step-card p {
    margin: 0;
    line-height: 1.55;
}

/* =========================================================
   CARDS
   ========================================================= */

.step-card,
.service-card,
.plain-card,
.quote-card,
.contact-card {
    border: 1px solid rgba(3, 27, 70, 0.07);
    border-radius: var(--ck-radius);
    box-shadow: var(--ck-shadow);
}

.step-card,
.service-card,
.plain-card,
.quote-card,
.contact-card {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.service-card,
.plain-card,
.quote-card {
    height: 100%;
    padding: 2rem;
    background: var(--ck-surface);
}

.service-card:hover,
.plain-card:hover,
.quote-card:hover,
.step-card:hover {
    border-color: rgba(8, 47, 103, 0.18);
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(3, 27, 70, 0.14);
}

.service-card .icon,
.plain-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    color: var(--ck-navy);
    background: rgba(245, 184, 0, 0.24);
    border-radius: 16px;
}

.service-card h3,
.plain-card h3 {
    margin-bottom: 0.65rem;
    color: var(--ck-navy);
    font-size: 1.25rem;
    font-weight: 800;
}

.service-card-image {
    width: calc(100% + 4rem);
    height: 220px;
    margin: -2rem -2rem 1.7rem;
    object-fit: cover;
    border-radius: var(--ck-radius) var(--ck-radius) 70px 0;
}

/* =========================================================
   LISTAS
   ========================================================= */

.feature-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 0.75rem;
    color: var(--ck-muted);
}

.feature-list i {
    margin-top: 0.25rem;
    color: var(--ck-gold);
}

/* =========================================================
   BLOQUES AZULES
   ========================================================= */

.band {
    margin: 0 2rem 5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ck-navy), var(--ck-blue));
    border-radius: 60px;
}

.band p {
    color: rgba(255, 255, 255, 0.78);
}

.process-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-step:last-child {
    border-bottom: 0;
}

.step-number {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--ck-navy);
    font-weight: 800;
    background: var(--ck-gold);
    border-radius: 50%;
}

/* =========================================================
   CONTENIDO EDITORIAL
   ========================================================= */

.editorial-image {
    width: 100%;
    min-height: 470px;
    object-fit: cover;
    border-radius: 34px 110px 34px 34px;
    box-shadow: var(--ck-shadow);
}

.editorial-copy {
    max-width: 620px;
}

.editorial-copy h2 {
    color: var(--ck-navy);
    font-size: clamp(2.5rem, 4.5vw, 4.1rem);
    line-height: 1.08;
}

.editorial-copy p {
    font-size: 1.05rem;
}

/* =========================================================
   COMPARACIÓN
   ========================================================= */

.comparison-shell {
    padding: 4.5rem;
    color: #fff;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(245, 184, 0, 0.24),
            transparent 30%
        ),
        linear-gradient(135deg, var(--ck-navy), var(--ck-blue));
    border-radius: 60px;
}

.comparison-shell p {
    color: rgba(255, 255, 255, 0.76);
}

.comparison-card {
    height: 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.comparison-card.highlight {
    color: var(--ck-navy);
    background: #fff;
}

.comparison-card.highlight p {
    color: var(--ck-muted);
}

.comparison-card h3 {
    font-family: "Playfair Display", Georgia, serif;
}

.comparison-card .feature-list i {
    color: var(--ck-gold);
}

.comparison-card.highlight .feature-list i {
    color: var(--ck-blue);
}

/* =========================================================
   ESTADÍSTICAS
   ========================================================= */

.stats-row {
    position: relative;
    z-index: 2;
    margin-top: -54px;
}

.stat-tile {
    height: 100%;
    padding: 1.7rem 1rem;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--ck-shadow);
}

.stat-tile strong {
    display: block;
    color: var(--ck-blue);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.6rem;
}

.stat-tile span {
    color: var(--ck-muted);
    font-size: 0.9rem;
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */

.quote-card {
    border-color: rgba(8, 47, 103, 0.22);
}

.quote-card p {
    font-style: italic;
}

/* =========================================================
   PAGE HERO
   ========================================================= */

.page-hero {
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 7rem 0 8rem;
    color: var(--ck-navy);
    background:
        linear-gradient(
            90deg,
            rgba(237, 242, 248, 0.98) 0%,
            rgba(237, 242, 248, 0.9) 45%,
            rgba(237, 242, 248, 0.22) 75%
        ),
        var(--page-hero-image, url("../img/breadcrumb.png")) center right /
            cover no-repeat;
    border-radius: 0 0 72px 72px;
}

.page-hero h1 {
    max-width: 870px;
    color: var(--ck-navy) !important;
    font-weight: 700;
}

.page-hero p {
    max-width: 680px;
    color: var(--ck-ink);
}

/* =========================================================
   CONTACTO / FORMULARIOS
   ========================================================= */

.contact-card {
    padding: 2.2rem;
    background: #fff;
}

.form-control,
.form-select {
    min-height: 52px;
    background: #f9fbfd;
    border-color: #d9dee7;
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ck-gold);
    box-shadow: 0 0 0 0.22rem rgba(245, 184, 0, 0.18);
}

textarea.form-control {
    min-height: 120px !important;
}

/* Iconos de información de contacto */
.contact-icon {
    color: var(--ck-blue);
}

/* Botón de WhatsApp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    border-radius: 10px;
    background: #25d366;
    border: 1px solid #25d366;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp i {
    font-size: 1.1rem;
}

/* =========================================================
   PARTNERS
   ========================================================= */

.partner-band {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    background: #fff;
    border: 0;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 136px;
    height: 68px;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid var(--ck-line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(3, 27, 70, 0.08);
}

.partner-logo img {
    max-width: 100%;
    max-height: 46px;
    object-fit: contain;
}

/* =========================================================
   RATING
   ========================================================= */

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    color: #cbd2dc;
    cursor: pointer;
    font-size: 1.75rem;
    transition:
        color 0.15s,
        transform 0.15s;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: var(--ck-gold);
    transform: translateY(-1px);
}

.stars-read {
    color: var(--ck-gold);
    letter-spacing: 0.08rem;
}

/* =========================================================
   FORO
   ========================================================= */

.forum-section {
    padding: 3.5rem 0;
}

.forum-layout {
    align-items: flex-start;
}

.forum-posts .pagination {
    margin: 1.5rem 0 0;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.pagination {
    gap: 0.35rem;
}

.pagination .page-link {
    color: var(--ck-navy);
    border: 0;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(3, 27, 70, 0.08);
}

.pagination .active > .page-link {
    color: #fff;
    background: var(--ck-blue);
}

/* =========================================================
   PROCESO / CONSULTA
   ========================================================= */

.process-lookup-button {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(3, 27, 70, 0.3);
}

.process-journey {
    display: grid;
    gap: 0;
    margin-top: 1.25rem;
}

.journey-step {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.8rem;
    min-height: 68px;
}

.journey-step:not(:last-child)::before {
    position: absolute;
    top: 38px;
    bottom: 0;
    left: 20px;
    width: 2px;
    content: "";
    background: #dfe4eb;
}

.journey-step.completed:not(:last-child)::before {
    background: #24976f;
}

.journey-marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #7c8490;
    background: #eef1f5;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #dfe4eb;
}

.journey-step.completed .journey-marker {
    color: #fff;
    background: #24976f;
    box-shadow: 0 0 0 1px #24976f;
}

.journey-step.current .journey-marker {
    color: var(--ck-navy);
    background: var(--ck-gold);
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.22);
}

.journey-label {
    padding-top: 0.5rem;
    color: #7c8490;
    font-weight: 600;
}

.journey-step.completed .journey-label {
    color: #24976f;
}

.journey-step.current .journey-label {
    color: var(--ck-navy);
    font-weight: 800;
}

.lookup-case {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--ck-line);
    border-radius: 10px;
}

.lookup-status {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =========================================================
   BOTÓN VOLVER AL INICIO
========================================================= */

.back-to-top-button {
    position: fixed;
    right: 24px;
    bottom: 90px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--ck-blue);
    color: #fff;

    font-size: 1rem;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background 0.2s ease;

    z-index: 1040;

    box-shadow: 0 8px 24px rgba(3, 27, 70, 0.2);
}

.back-to-top-button:hover {
    background: var(--ck-navy);
    color: #fff;
    transform: translateY(-2px);
}

.back-to-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 2rem 0 2rem;
    color: var(--ck-ink);
    background: linear-gradient(135deg, var(--ck-pale-strong), var(--ck-pale));
    border-radius: 70px 70px 18px 18px;
}

.footer p,
.footer a {
    color: var(--ck-muted);
}

.footer a:hover {
    color: var(--ck-blue);
}

.footer h3.text-white {
    color: var(--ck-navy) !important;
}

.footer [style*="rgba(255,255,255"] {
    color: var(--ck-muted) !important;
}

.footer .border-top {
    border-color: rgba(3, 27, 70, 0.12) !important;
}

.footer-logo {
    width: 320px;
    max-width: 100%;
    height: 160px;
    padding: 1rem 1.25rem;
    object-fit: contain;
    border-radius: 28px;
    /*background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 30px rgba(3, 27, 70, .14);*/
    filter: none;
}

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand .footer-logo {
    display: block;
}

@media (max-width: 575.98px) {
    .footer-logo {
        width: 280px;
        height: 120px;
        border-radius: 22px;
    }
}

.footer-brand a {
    text-decoration: none;
}

/* =========================================================
   MODALES
   ========================================================= */

.modal-content {
    border-radius: 28px !important;
}

.modal .btn-close {
    opacity: 1;
    filter: none;
}

.modal .btn-close:hover {
    opacity: 0.75;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 4.5rem 0 8rem;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .hero-visual {
        min-height: 420px;
        border-radius: 100px 28px 28px 28px;
    }

    .home-steps {
        border-radius: 46px 46px 0 0;
    }

    .comparison-shell {
        padding: 3rem 2rem;
        border-radius: 40px;
    }

    .band {
        margin-right: 1rem;
        margin-left: 1rem;
        border-radius: 40px;
    }

    .page-hero {
        min-height: 430px;
        border-radius: 0 0 46px 46px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-content {
        padding-top: 3.3rem;
    }

    .hero-visual-wrap {
        padding: 0.5rem 0 0;
    }

    .hero-visual {
        min-height: 340px;
        border-radius: 70px 22px 22px 22px;
    }

    .hero-badge {
        right: 1.5rem;
        bottom: 1rem;
        left: -0.25rem;
    }

    .section {
        padding: 4.5rem 0;
    }

    .home-steps {
        padding-top: 3.6rem;
    }

    .step-card {
        grid-template-columns: 72px 1fr;
    }

    .step-number-editorial {
        font-size: 3.4rem;
    }

    .editorial-image {
        min-height: 340px;
        border-radius: 28px 70px 28px 28px;
    }

    .comparison-shell {
        margin-right: -0.25rem;
        margin-left: -0.25rem;
        padding: 2.5rem 1.25rem;
        border-radius: 30px;
    }

    .page-hero {
        min-height: 390px;
        padding: 5rem 0 6rem;
    }

    .footer {
        margin: 0;
        border-radius: 46px 46px 0 0;
    }

    .process-lookup-button {
        right: 0.75rem;
        bottom: 0.75rem;
    }
}
