/* FINANCIERA 360 — PORTADA / SELECTOR DE SEDES (ESTÉTICA LUXURY ESMERALDA & ORO) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
    background:
        radial-gradient(850px 520px at 50% 0%, rgba(16, 185, 129, 0.16) 0%, transparent 75%),
        radial-gradient(750px 480px at 90% 45%, rgba(207, 169, 92, 0.08) 0%, transparent 70%),
        linear-gradient(165deg, #03160e 0%, #07261a 45%, #04170f 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #e5ece8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Fondo dinámico Aurora */
.gateway-aurora-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: url('/website/assets/img/f360_gold_emerald_aurora.svg') center 0 / cover no-repeat;
    opacity: 0.72;
    mix-blend-mode: screen;
    z-index: 0;
    animation: auroraBreathe 8s ease-in-out infinite alternate;
}
@keyframes auroraBreathe {
    0% { transform: scale(1) translateY(0); opacity: 0.65; }
    100% { transform: scale(1.04) translateY(-10px); opacity: 0.82; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head, 'Outfit', system-ui, sans-serif);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* ── HERO HEADER ── */
.gateway-header {
    position: relative;
    text-align: center;
    padding: calc(75px + 2.5rem + env(safe-area-inset-top)) 1.5rem 3.5rem;
    z-index: 2;
}
.header-container {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(10, 36, 25, 0.85);
    border: 1px solid rgba(207, 169, 92, 0.45);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e2c27b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.25rem;
}
.hero-pill-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.header-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.header-title .gold-accent {
    background: linear-gradient(135deg, #f2d793 0%, #cfa95c 50%, #99732f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(207, 169, 92, 0.35));
}
.header-subtitle {
    font-size: clamp(0.96rem, 2.2vw, 1.12rem);
    color: #c1d5cb;
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto 2.25rem;
    font-weight: 500;
}

.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 36, 25, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(207, 169, 92, 0.35);
    padding: 0.55rem 1.15rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1ebd8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.trust-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 194, 123, 0.6);
}

/* ── GRID DE SEDES ── */
.gateway-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4.5rem;
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 2;
}

.sedes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.sede-card {
    background: rgba(10, 36, 25, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1.5px solid rgba(207, 169, 92, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(226, 194, 123, 0.2);
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}
.sede-card:hover {
    transform: translateY(-6px);
    border-color: rgba(226, 194, 123, 0.7);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(207, 169, 92, 0.2);
}

.sede-img-link {
    position: relative;
    height: 215px;
    overflow: hidden;
    background: #03160e;
    display: block;
    text-decoration: none;
}
.sede-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sede-card:hover .sede-photo {
    transform: scale(1.06);
}
.sede-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 22, 14, 0.1) 20%, rgba(3, 22, 14, 0.85) 100%);
    pointer-events: none;
}

.badge-city-code {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(3, 20, 13, 0.9);
    color: #e2c27b;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(207, 169, 92, 0.5);
    font-family: var(--font-mono, monospace);
}

.badge-proxima-apertura {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #f2d793 0%, #cfa95c 100%);
    color: #051a10;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.38rem 0.85rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
}

.badge-stock {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(3, 20, 13, 0.92);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(207, 169, 92, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.badge-stock i {
    color: #4ade80;
}

.sede-card-body {
    padding: 1.4rem 1.45rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sede-headline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}
.sede-city-name {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.sede-state-name {
    font-size: 0.72rem;
    font-weight: 800;
    color: #e2c27b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.sede-details-list {
    margin: 0.85rem 0 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}
.sede-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: #c1d5cb;
    line-height: 1.45;
}
.sede-detail-row i {
    color: #e2c27b;
    font-size: 0.92rem;
    margin-top: 0.18rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.sede-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
}
.btn-enter-hub {
    background: linear-gradient(135deg, #f2d793 0%, #cfa95c 50%, #99732f 100%);
    color: #051a10;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 900;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    transition: transform 0.25s, filter 0.25s, box-shadow 0.25s;
    box-shadow: 0 8px 24px rgba(207, 169, 92, 0.35);
}
.btn-enter-hub i {
    color: #051a10;
    transition: transform 0.2s;
}
.btn-enter-hub:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(207, 169, 92, 0.5);
}
.btn-enter-hub:hover i {
    transform: translateX(4px);
}

.btn-enter-hub.btn-enter-soon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.btn-enter-hub.btn-enter-soon i {
    color: #ffffff;
}

.sede-sub-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.btn-sub-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.75rem;
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    min-height: 44px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}
.btn-sub-maps {
    background: rgba(3, 20, 13, 0.7);
    color: #ffffff;
    border: 1px solid rgba(207, 169, 92, 0.3);
}
.btn-sub-maps i {
    color: #e2c27b !important;
}
.btn-sub-maps:hover {
    border-color: #e2c27b;
    background: rgba(226, 194, 123, 0.15);
    color: #e2c27b;
}

.btn-sub-wa {
    background: rgba(3, 20, 13, 0.7);
    color: #ffffff;
    border: 1px solid rgba(37, 211, 102, 0.35);
}
.btn-sub-wa i {
    color: #25d366 !important;
}
.btn-sub-wa:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    color: #4ade80;
}

/* ── BARRA INFERIOR / PORTAL CLIENTES ── */
.gateway-bottom-bar {
    background: rgba(10, 36, 25, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1.5px solid rgba(207, 169, 92, 0.38);
    padding: 2.2rem 2.5rem;
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(226, 194, 123, 0.22);
    position: relative;
    overflow: hidden;
}
.gbb-text {
    position: relative;
    max-width: 600px;
}
.gbb-text h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}
.gbb-text p {
    font-size: 0.94rem;
    color: #c1d5cb;
    line-height: 1.5;
}

.gbb-buttons {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    position: relative;
}
.btn-portal-link, .btn-catalog-link {
    padding: 0.9rem 1.6rem;
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    transition: transform 0.25s, filter 0.25s;
}
.btn-portal-link {
    background: linear-gradient(135deg, #f2d793 0%, #cfa95c 50%, #99732f 100%);
    color: #051a10;
    box-shadow: 0 8px 24px rgba(207, 169, 92, 0.35);
}
.btn-portal-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.btn-catalog-link {
    background: rgba(3, 20, 13, 0.8);
    color: #ffffff;
    border: 1.5px solid rgba(207, 169, 92, 0.45);
}
.btn-catalog-link:hover {
    background: rgba(226, 194, 123, 0.15);
    border-color: #e2c27b;
    color: #e2c27b;
    transform: translateY(-2px);
}

@media (max-width: 1080px) {
    .sedes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .gateway-header { padding: calc(75px + 1.75rem + env(safe-area-inset-top)) 1.15rem 2.25rem; }
    .header-title { font-size: 2.1rem; }
    .hero-pill-badge { font-size: 0.68rem; padding: 6px 12px; }
    .header-subtitle { font-size: 0.95rem; }
    .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .trust-pill { justify-content: center; font-size: 0.74rem; padding: 0.55rem 0.6rem; }
    .gateway-main { padding: 1.5rem 1rem 3rem; }
    .sedes-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .sede-img-link { height: 200px; }
    .gateway-bottom-bar { padding: 1.6rem 1.35rem; text-align: center; justify-content: center; }
    .gbb-buttons { width: 100%; flex-direction: column; align-items: stretch; }
}

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