:root {
    --bg-dark: #002244;
    --accent: #003366;
    --text-light: #ffffff;
    --transition-speed: 0.7s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 75px; /* Offset for fixed header */
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 40px;
    background-color: rgba(0, 34, 68, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    text-align: left;
}

.site-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.site-header h1 span {
    color: #4db8ff; /* Subtle blue for branding */
}

.site-header p {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.8;
    text-transform: lowercase;
    margin-top: -5px;
}

.header-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.7;
    letter-spacing: 1px;
}

.header-nav a:hover {
    opacity: 1;
    color: #4db8ff;
}

.whatsapp-btn {
    background: #00bb2d;
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    opacity: 1 !important;
    box-shadow: 0 4px 10px rgba(0,187,45,0.2);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,187,45,0.4);
}

.main-container {
    display: flex;
    width: 100vw;
    flex: 1;
}

.experience-card {
    height: 100%;
    flex: 1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: flex var(--transition-speed) cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Pseudo-elemento para el fondo con el fin de aplicar el filtro sin afectar el contenido */
.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
    z-index: 1;
    filter: brightness(0.6) grayscale(0.5);
}

/* Overlay sutil */
.experience-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,34,68,0.2), rgba(0,34,68,0.6));
    z-index: 2;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.experience-card.active {
    flex: 8;
    cursor: default;
}

.experience-card.active::before {
    filter: brightness(0.9) grayscale(0);
    transform: scale(1.05);
}

.experience-card.active::after {
    background: linear-gradient(to top, rgba(0,34,68,0.9), transparent, rgba(0,34,68,0.4));
    border-top: 10px solid var(--accent);
}

/* Dim other cards when one is active */
.main-container.has-active .experience-card:not(.active) {
    opacity: 0.4;
    filter: brightness(0.5) grayscale(0.8);
}

.card-content {
    position: relative;
    z-index: 10;
    color: var(--text-light);
    pointer-events: none;
    width: 100%;
    padding: 30px;
    transition: all 0.5s ease;
}

.label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.8;
    font-weight: 400;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    max-width: 90%;
    margin: 0 auto;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.experience-card:not(.active) h2 {
    font-size: 1.2rem;
    transform: rotate(-90deg);
    white-space: nowrap;
}

/* New details styling */
.details {
    margin-top: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
    height: 0;
    overflow: hidden;
}

.experience-card.active .details {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

.details p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.innovation {
    display: inline-block;
    background: var(--accent);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    pointer-events: auto; /* Essential for links */
    margin-top: 15px;
}

.innovation:hover {
    background: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .experience-card:not(.active) h2 {
        transform: none;
        white-space: normal;
        font-size: 0.9rem;
    }
    
    .experience-card {
        border-bottom: 2px solid rgba(255,255,255,0.05);
        border-left: none;
    }
}

@media (max-width: 768px) {
    body {
        height: auto;
        overflow-y: auto;
    }

    .site-header {
        position: fixed;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .header-brand {
        text-align: center;
    }

    .header-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    body {
        padding-top: 130px;
    }

    .site-header h1 {
        font-size: 1.4rem;
    }

    .site-header p {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .experience-card {
        width: 100%;
        min-height: 200px;
        flex: none;
        transition: min-height 0.5s ease;
    }

    .experience-card.active {
        flex: none;
        min-height: 500px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .details p {
        font-size: 1rem;
    }

    .innovation {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .experience-card:not(.active) h2 {
        transform: none;
        font-size: 1.1rem;
        text-align: center;
        opacity: 0.7;
    }

    .experience-card.active h2 {
        font-size: 1.8rem;
    }
}