/* ═══════════════════════════════════════════════════════
   KING LOGISTICS — PREMIUM STYLESHEET
   Corporate High-End | Navy + Gold
   ═══════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
    --navy: #0A192F;
    --navy-light: #112240;
    --navy-mid: #1d3461;
    --gold: #D4AF37;
    --gold-light: #e8c547;
    --white: #ffffff;
    --gray-100: #f0f2f5;
    --gray-200: #ccd6f6;
    --gray-400: #8892b0;
    --gray-600: #495670;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.25);
    --transition: all 0.35s cubic-bezier(.25, .8, .25, 1);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--gray-200);
    background: var(--navy);
    /* Ensure global dark background */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ... existing styles ... */

/* ═══════════════════════════════════════════════════════
   SCROLL-DRIVEN FRAME ANIMATION (PARALLAX WRAPPER)
   ═══════════════════════════════════════════════════════ */

.scroll-animation-wrapper {
    position: relative;
    /* Height controls the duration/speed of the animation relative to scroll */
    min-height: 300vh;
    background-color: #000;
}

.sticky-background,
.scroll-animation-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollCanvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover full screen */
    opacity: 0.6;
    /* Dim the animation slightly so text pops */
}

.scrolling-content {
    position: relative;
    z-index: 1;
    margin-top: -50vh;
    /* Pull content up to overlap with animation start/end */
    padding-bottom: 20vh;
    pointer-events: none;
    /* Let clicks pass through if needed, but text selection might need auto */
}

.scrolling-content>* {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.vm-spacer {
    height: 50vh;
    /* Empty space to let the logo animate alone first */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold {
    color: var(--gold);
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    background: rgba(10, 25, 47, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
    background: rgba(10, 25, 47, 0.55);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 6px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-200);
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-cotizar {
    background: var(--gold);
    color: var(--navy);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid var(--gold);
}

.btn-cotizar:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}


/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    background-color: transparent;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 25, 47, 0.85) 0%,
            rgba(10, 25, 47, 0.7) 50%,
            rgba(10, 25, 47, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 120px 24px 60px;
}

.hero-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 4px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }
}


/* ═══════════════════════════════════════
   SECTIONS (Shared)
   ═══════════════════════════════════════ */
.section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-tag.light {
    color: var(--gold);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title.light {
    color: var(--white);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 550px;
    margin-bottom: 48px;
}


/* ═══════════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════════ */
.servicios {
    background: var(--navy);
    position: relative;
    z-index: 10;
    margin-top: -30vh;
    /* Overlap the fading scroll animation */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    background: rgba(17, 34, 64, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 40px 28px 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-bg) center/cover no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -2;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.97));
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.9));
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-link:hover {
    letter-spacing: 1px;
}


/* ═══════════════════════════════════════
   SOCIO ESTRATÉGICO (Parallax + Glass)
   ═══════════════════════════════════════ */
.socio {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.socio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.92), rgba(10, 25, 47, 0.75));
    z-index: 1;
}

.socio-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: transparent;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    max-width: 1100px;
    /* Increased from 700px to fit cards */
    width: 100%;
    box-shadow: none;
}

.glass-desc {
    color: var(--gray-200);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefits-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefits-list strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.benefits-list p {
    color: var(--gray-400);
    border-radius: 50%;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.value-item h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.value-item p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════
   PROPUESTA DE VALOR PARALLAX
   ═══════════════════════════════════════════════════════ */
.value-prop {
    background: var(--navy);
    position: relative;
    padding-bottom: 120px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.value-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 25, 47, 0.95) 10%, rgba(10, 25, 47, 0.4) 100%);
    transition: background 0.5s ease;
}

.value-card:hover .card-overlay {
    background: linear-gradient(0deg, rgba(10, 25, 47, 0.98) 20%, rgba(212, 175, 55, 0.2) 100%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.value-card:hover .card-content {
    transform: translateY(0);
}

.value-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.value-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.value-card p {
    color: var(--gray-200);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}


/* ═══════════════════════════════════════
   CASOS DE ÉXITO
   ═══════════════════════════════════════ */
.casos {
    background: var(--navy-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.case-card {
    background: var(--navy);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

.case-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.case-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-body {
    padding: 28px;
}

.case-body h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.case-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    border-radius: var(--radius);
    border-left: 3px solid var(--gray-600);
}



.detail-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-400);
    display: block;
    margin-bottom: 6px;
}

.detail-label.solution {
    color: var(--gold);
}

.detail-item:has(.solution) {
    border-left-color: var(--gold);
}

.detail-item p {
    color: var(--gray-200);
    font-size: 0.88rem;
    line-height: 1.5;
}


/* ═══════════════════════════════════════
   COUNTERS / TRUST BADGES
   ═══════════════════════════════════════ */
.counters {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.counters-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.9);
    z-index: 1;
}

.counters-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.counter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.counter-number::before {
    content: '+';
}

.counter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


/* ═══════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════ */
.contacto {
    background: var(--navy);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card strong {
    color: var(--white);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.info-card p {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ─── Contact Form ─── */
.contact-form {
    background: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--navy-light);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    font-size: 1rem;
    position: relative;
    border: none;
}

.btn-submit .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(10, 25, 47, 0.3);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-submit.loading .btn-text {
    opacity: 0.5;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 16px;
}

/* ─── Success Toast ─── */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(.25, .8, .25, 1);
}

.toast.show {
    bottom: 40px;
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    background: #050d1a;
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a,
.footer-col li {
    color: var(--gray-600);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin: 0;
}

.footer-credit a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.footer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}


/* ═══════════════════════════════════════
   WHATSAPP FLOAT
   ═══════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: waPulse 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* ═══════════════════════════════════════
   ANIMATIONS (Reveal on Scroll)
   ═══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(.25, .8, .25, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-card {
        height: 320px;
    }
}

@media (max-width: 768px) {

    /* ─── Navbar Mobile ─── */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(17, 34, 64, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 40px;
        gap: 20px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .burger {
        display: flex;
    }

    .btn-cotizar {
        display: none;
    }

    .navbar {
        padding: 8px 0;
    }

    .logo img {
        height: 55px;
    }

    /* ─── Hero Mobile ─── */
    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 100px 20px 40px;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .hero-sub {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-tag {
        font-size: 0.7rem;
        padding: 6px 16px;
        letter-spacing: 1.5px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
    }

    .scroll-indicator {
        display: none;
    }

    /* ─── Hero Video: fixed → absolute on mobile (iOS fix) ─── */
    .hero-video {
        position: absolute;
    }

    /* ─── Scroll Animation ─── */
    .scroll-animation-wrapper {
        min-height: 200vh;
    }

    .vm-spacer {
        height: 30vh;
    }

    .scrolling-content {
        margin-top: -30vh;
        padding-bottom: 10vh;
    }

    /* ─── Sections ─── */
    .section {
        padding: 60px 0;
    }

    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 20px 24px;
    }

    /* ─── Value Cards (Socio) ─── */
    .value-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-card {
        height: 280px;
    }

    .card-content {
        padding: 20px;
    }

    .value-card h3 {
        font-size: 1.2rem;
    }

    .value-card p {
        font-size: 0.85rem;
    }

    /* ─── Socio Section ─── */
    .socio {
        background-attachment: scroll;
        min-height: auto;
        padding: 60px 0;
    }

    .glass-card {
        padding: 28px 20px;
    }

    .glass-desc {
        font-size: 0.95rem;
    }

    /* ─── Cases ─── */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-img {
        height: 180px;
    }

    .case-body {
        padding: 20px;
    }

    .case-body h3 {
        font-size: 1.05rem;
    }

    /* ─── Counters ─── */
    .counters {
        background-attachment: scroll;
        padding: 60px 0;
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .counter-number {
        font-size: 2.2rem;
    }

    .counter-label {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* ─── Contact ─── */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .info-card {
        padding: 16px;
    }

    /* ─── Footer ─── */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* ─── WhatsApp Float ─── */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 16px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* ─── Toast ─── */
    .toast {
        font-size: 0.85rem;
        padding: 12px 24px;
        max-width: 90vw;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-content {
        padding: 90px 16px 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-tag {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .counters-grid {
        grid-template-columns: 1fr 1fr;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .value-card {
        height: 240px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .glass-card {
        padding: 24px 16px;
    }

    .vm-card {
        padding: 24px 20px;
    }

    .vm-title {
        font-size: 1.4rem;
    }

    .vm-desc {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION PARALLAX & HERO PARALLAX
   ═══════════════════════════════════════════════════════ */
.contacto {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
}

@media (max-width: 768px) {
    .contacto {
        background-attachment: scroll;
    }
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    /* Dark Navy Overlay */
    z-index: 1;
}

.contacto .container {
    position: relative;
    z-index: 2;
}

.contacto .section-title,
.contacto .section-desc {
    color: var(--white);
    position: relative;
    z-index: 2;
}

/* Ensure sections have opaque background */
.section {
    background-color: var(--navy);
}

.section.light {
    background-color: var(--white);
}

/* ═══════════════════════════════════════════════════════
   SOBRE NOSOTROS PAGE
   ═══════════════════════════════════════════════════════ */

/* Page Hero Override */
.hero.page-hero {
    min-height: 60vh;
}

.hero-video-wrapper-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video.page-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Vision & Mission */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.vm-card {
    background: rgba(10, 25, 47, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

.vm-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vm-desc {
    color: var(--gray-400);
    line-height: 1.8;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }

    .vm-card {
        padding: 28px 20px;
    }

    .compromiso {
        background-attachment: scroll;
        padding: 80px 0;
    }

    .compromiso-desc {
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .value-item {
        padding: 24px 20px;
    }

    .hero.page-hero {
        min-height: 50vh;
    }
}

/* Commitment Section */
.compromiso {
    padding: 120px 0;
    background-image: url('../images/asesoria.jpg');
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.overlay-dark-navy {
    background: rgba(10, 25, 47, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.relative-z2 {
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.compromiso-desc {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.2rem;
    color: #e0e0e0;
}

.compromiso-footer {
    margin-top: 40px;
    font-size: 1.1rem;
    color: #ccc;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-item {
    text-align: center;
    padding: 30px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.value-icon-lg {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.value-name {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.value-desc {
    color: #aaa;
}


/* ═══════════════════════════════════════
   SEO CONTENT BLOCK
   ═══════════════════════════════════════ */
.seo-content {
    background: var(--navy-light);
    padding: 60px 0;
}

.seo-content .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.seo-content-text {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 900px;
}

.seo-content-text p {
    margin-bottom: 16px;
}

.seo-content-text p:last-child {
    margin-bottom: 0;
}

.seo-content-text a {
    color: var(--gold);
    font-weight: 600;
}