:root {
    /* Colors - Nueva paleta: Petrol & Aqua */
    --primary: #07606b;
    /* Primario - Azul petróleo */
    --primary-dark: #05454d;
    /* Oscuro - Versión más profunda del primario para hovers */
    --secondary: #77c0c0;
    /* Secundario - Aguamarina claro */
    --accent: #77c0c0;
    /* Acento - Usando el secundario para consistencia */
    
    --text-main: #000000;
    /* Texto principal - Negro */
    --text-light: #808080;
    /* Neutro - Gris para iconos y texto secundario */
    
    --white: #ffffff;
    --off-white: #f4f4f4;
    /* Un gris muy suave para fondos */
    --bg-light: #eef7f7;
    /* Fondo claro con tinte del primario */
    --bg-dark: #000000;
    /* Fondo negro */

    /* Spacing */
    --section-padding: 5rem 0;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* =========================
   Text color utilities
   ========================= */

.text-primary {
    color: var(--primary) !important;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-main {
    color: var(--text-main) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-off-white {
    color: var(--off-white) !important;
}

.text-dark {
    color: var(--bg-dark) !important;
}


/* =========================
   Background color utilities
   ========================= */

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-main {
    background-color: var(--text-main) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.bg-off-white {
    background-color: var(--off-white) !important;
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}


/* =========================
   Border color utilities
   ========================= */

.border-primary {
    border-color: var(--primary) !important;
}

.border-primary-dark {
    border-color: var(--primary-dark) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

.border-main {
    border-color: var(--text-main) !important;
}

.border-light {
    border-color: var(--text-light) !important;
}

.border-white {
    border-color: var(--white) !important;
}

.border-off-white {
    border-color: var(--off-white) !important;
}

.border-dark {
    border-color: var(--bg-dark) !important;
}


/* Base Styles */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1 {
    font-family: 'Montserrat';
    font-weight: 500;
    color: var(--primary);
}

h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Bootstrap Overrides & Custom Components */

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(45, 96, 89, 0.3);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
}

.btn-white {
    background-color: var(--white);
    color: var(--secondary);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-white:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

/* Sections */
.section {
    padding: var(--section-padding);
}

#packages {
    padding-top: 5rem;
    /* Reduced from default 5rem */
}

#technologies {
    background-color: #fdfdfd;
}

/* Standardized Typography */
.section-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    /* Or accent, based on preference */
    margin-bottom: 0.5rem;
    font-family: 'Open Sans', sans-serif;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    /* Standardized size */
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    /* Lead size roughly */
    color: #000000;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    /* Optional constraint for readability */
    margin-left: auto;
    margin-right: auto;
}

/* Navbar Customization - Capsule Style */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    width: 100%;
    max-width: 100vw;
}

/* The actual "capsule" container */
.navbar .container {
    background: rgba(163, 163, 163, 0.308);
    /* Darker transparent background */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.4rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.navbar-brand {
    /* Cambia Montserrat por una de las alternativas de abajo para mayor precisión */
    font-family: 'Montserrat', sans-serif; 
    font-weight: 500;
    font-size: 1.4rem;
    /* El interletreado negativo ayuda, pero -1px puede ser mucho. Prueba -0.02em */
    letter-spacing: -0.5px; 
    color: var(--white) !important;
    margin-right: 2rem;
    /* Suaviza el renderizado del texto */
    -webkit-font-smoothing: antialiased;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    margin: 0 0.8rem;
    padding: 0.5rem 0 !important;
    /* Reset bootstrap padding for hover effect */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.logo-img{
    height: 40px;
    width: auto;
}


body .navbar .btn-agency {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background-color: transparent !important;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    transition: var(--transition);
}

body .navbar .btn-agency i {
    color: #ffffff !important;
}

/* Ensure it stays white on scroll */
body .navbar.scrolled .btn-agency {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background-color: transparent !important;
}

body .navbar.scrolled .btn-agency:hover {
    border-color: #2E555E !important;
    color: #ffffff !important;
    background-color: #2E555E !important;
}

.navbar-toggler {
    border: none;
    color: var(--white);
    padding: 10px;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsividad de la barra de navegación */
@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 0;
        width: 100vw;
        left: 0;
        right: 0;
    }

    .navbar .container {
        width: 95% !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0.4rem 1.25rem;
        border-radius: 40px;
    }

    .navbar-brand {
        margin-right: 0 !important;
        font-size: 1.2rem;
    }

    .logo-img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0.5rem;
        width: 100vw;
    }

    .navbar .container {
        width: 90% !important;
        max-width: 90vw !important;
        padding: 0.3rem 0.6rem !important;
        margin: 0 auto !important;
        border-radius: 30px;
        box-sizing: border-box;
    }

    .navbar.scrolled .container {
        padding: 0.25rem 0.5rem !important;
    }

    .logo-img {
        height: 25px;
        max-width: 110px;
    }

    .navbar-toggler {
        padding: 2px 4px;
        margin-left: 0.2rem;
        border: none;
    }

    .navbar-toggler i {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 420px) {
    .navbar .container {
        width: 88% !important;
        max-width: 88vw !important;
        padding: 0.25rem 0.5rem !important;
    }

    .navbar.scrolled .container {
        padding: 0.2rem 0.4rem !important;
    }

    .logo-img {
        height: 23px;
        max-width: 105px;
    }

    .navbar-toggler {
        padding: 2px 3px;
    }

    .navbar-toggler i {
        font-size: 1.15rem !important;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    padding-top: 60px;
    /* Offset for fixed navbar */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    /* text-transform: lowercase; */
    letter-spacing: -2px;
}

.hero-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
    /* Pull closer to title */
}

.hero-content .eyebrow {
    display: none;
}

/* Scroll Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* About Section */
.image-wrapper {
    transition: var(--transition);
}

.custom-rounded-image {
    border-radius: 170px !important;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: 'Open Sans', sans-serif;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800 !important; /* Extra bold */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Adjust for headers that should be centered */
.text-center .section-description,
.section-header .section-description {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

/* About / Left aligned layouts override */
#about .section-description {
    margin-left: 0;
    margin-right: auto;
}

.image-wrapper:hover {
    transform: translateY(-5px);
}

/* Experience Slider Cards */
.slider-card {
    transition: var(--transition);
}

.slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.slider-card img {
    transition: transform 0.5s ease;
}

.slider-card:hover img {
    transform: scale(1.05);
}

/* Hide scrollbar for slider */
.right-slider::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

/* Packages Custom Pills */
.custom-pills .nav-link {
    color: var(--text-main) !important;
    background: var(--white);
    transition: var(--transition);
}

.custom-pills .nav-link:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.custom-pills .nav-link.active {
    background: var(--off-white) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.custom-pills .nav-link.active .icon-circle {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

.custom-pills .nav-link .icon-circle {
    transition: var(--transition);
}

.custom-pills .nav-link::after {
    display: none !important;
    /* Remove navbar underline style if inherited */
}

/* Service / Tech Cards */
.service-card {
    transition: var(--transition);
    border: 1px solid rgba(43, 95, 117, 0.15);
    background-color: var(--white) !important;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(43, 95, 117, 0.15);
}

.service-card h3 {
    color: var(--text-main);
}

.service-card p {
    color: var(--text-light);
}

.service-card .text-warning {
    color: var(--accent) !important;
}

/* Partners */
.partners-section {
    padding: 3rem 0;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.partners-logo {
    opacity: 0.7;
    transition: var(--transition);
    max-height: 120px; /* Aumentado de 40px */
    width: auto;
    filter: grayscale(100%);
    object-fit: contain;
}

/* Tablet y móvil - Logos en una línea */
@media (max-width: 991px) {
    .partners-logo {
        max-height: 45px; /* Reducido para que quepan 4 logos en una línea */
    }
}

.partners-logo:hover {
    opacity: 1;
    filter: grayscale(0%) !important;
}

/* Contact Form */
.form-control-lg {
    padding: 1rem 1.2rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--bg-light);
    box-shadow: 0 0 0 0.25rem rgba(120, 168, 194, 0.25);
}

/* Footer Helpers */
footer {
    background-color: #f8f9fa !important;
    /* Light neutral background */
}

footer .text-white-50 {
    color: var(--off-white) !important;
}

footer .text-white {
    color: var(--off-white) !important;
}


.hover-white:hover {
    color: var(--text-light) !important;
}

footer h5 {
    color: var(--text-light) !important;
}

footer i:hover {
    color: var(--text-light) !important;
}

/* Featured Card Section */
.featured-card-section {
    background-color: var(--off-white);
    padding: 4rem 0;
}

.featured-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-label-bottom {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.featured-card {
    border-radius: 80px 60px 200px 80px / 120px 60px 180px 120px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    height: 500px;
}

.featured-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-card-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: var(--white);
    max-width: 400px;
}

.featured-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-featured {
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    background: transparent;
    transition: var(--transition);
}

.btn-featured:hover {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

/* MICE Styles - Experiences Accordion */
.mice-section {
    background-color: #1a1a1a;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/perito.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out;
    color: white;
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.split-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Left Panel */
.left-panel {
    flex: 0 0 35%;
    position: relative;
    padding-left: 3rem;
    z-index: 2;
}

.indicator-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.step-indicator {
    position: absolute;
    left: -4px;
    top: 20%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.step-number {
    position: absolute;
    left: -12px;
    top: calc(20% - 30px);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    background: #1a1a1a;
    padding: 2px 5px;
    border-radius: 4px;
}

.subtitle {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.mice-title {
    font-family: 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1;
    color: white;
}

.mice-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.btn-mice {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-mice:hover {
    background: var(--secondary);
    transform: translateX(5px);
}

.card-icon-circle {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Image Accordion */
.image-accordion {
    display: flex;
    height: 500px;
    gap: 10px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.accordion-item {
    flex: 1;
    position: relative;
    overflow: hidden !important;
    cursor: pointer;
    border-radius: 20px !important;
    transition: flex 0.5s ease;
}

.accordion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.7);
    border-radius: 20px;
}

.accordion-item:hover,
.accordion-item.active {
    flex: 3;
}

.accordion-item:hover img,
.accordion-item.active img {
    transform: scale(1.1);
    filter: brightness(1);
}

.accordion-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    z-index: 2;
}

.accordion-item:hover .accordion-overlay,
.accordion-item.active .accordion-overlay {
    opacity: 1;
    transform: translateY(0);
}

.accordion-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Mobile */
@media (max-width: 900px) {
    .mice-section {
        padding: 4rem 0;
    }

    .split-container {
        flex-direction: column;
        gap: 3rem;
        padding: 0 20px;
    }

    .left-panel {
        padding-left: 2rem;
        flex: auto;
    }

    .mice-title {
        font-size: 3rem;
    }

    .image-accordion {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }

    .accordion-item {
        height: 200px;
        width: 100%;
    }

    .accordion-item:hover {
        flex: none;
        height: 250px;
    }
}

/* =========================
   Paquetes 3 - Floating Gallery Section
   ========================= */

/* Planning Steps Base Styles */
.planning-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    /* Estado inicial para animaci�n desde abajo */
    opacity: 0;
    transform: translateY(40px);
}

.step-card {
    flex: 1;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.step-card:nth-child(even) {
    margin-top: 4rem;
}

.step-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 128, 128, 0.1);
    border-color: rgba(0, 128, 128, 0.2);
}

.step-number-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 0;
    transition: all 0.4s ease;
}

.step-card:hover .step-number-bg {
    color: rgba(0, 128, 128, 0.08);
    transform: scale(1.1);
}

.step-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f0fdfa;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    position: relative;
    z-index: 1;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.destinations-section{
    background-color: #f4f4f4;
    padding: 5rem 0;
}

.floating-gallery-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background-color: #fdfdfd;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.floating-gallery-section .section-header {
    position: relative;
    z-index: 10;
    margin-bottom: 8rem;
}

.gallery-layout-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 3rem;
}

.floating-gallery-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 1s ease-out;
}

.float-card.reveal-visible {
    opacity: 1;
    transform: scale(1);
}

.float-card.img-1 {
    width: 500px;
    height: 350px;
    top: -50px;
    left: -100px;
    z-index: 1;
}

.float-card.img-2 {
    width: 300px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    z-index: 1;
}

.float-card.img-3 {
    width: 600px;
    height: 450px;
    top: -80px;
    right: -120px;
    z-index: 1;
}

.float-card.img-4 {
    width: 400px;
    height: 300px;
    bottom: -20px;
    right: -50px;
    z-index: 1;
}

.floating-gallery-section .planning-steps {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.floating-gallery-section .step-card {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
    flex: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1200px) {
    .float-card {
        opacity: 0.5;
    }

    .float-card.img-1 {
        width: 300px;
        height: 200px;
    }

    .float-card.img-3 {
        width: 400px;
        height: 300px;
    }
}

@media (max-width: 900px) {
    .planning-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-card:nth-child(even) {
        margin-top: 0;
    }

    .floating-gallery-section .planning-steps {
        flex-direction: column;
    }

    .floating-gallery-background {
        display: none;
    }
}

/* Scroll Reveal Animations */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.reveal-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-up.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger:nth-child(4) {
    transition-delay: 0.4s;
}

/* GSAP Scroll Animations - Initial States */
.step-card {
    /* Estado inicial para animaci�n GSAP */
    will-change: transform, opacity;
}

.float-card {
    /* Optimizaci�n para parallax */
    will-change: transform;
}


/* Planning Steps - Estado inicial para animaci�n */
.floating-gallery-section .planning-steps {
    opacity: 0;
    transform: translateY(40px);
}

/* =========================
   TESTIMONIALS SECTIONS - THREE VARIANTS
   ========================= */

/* Shared Testimonial Styles */
.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    margin-right: 2px;
}

/* ========================================
   VARIANT 1: CAROUSEL/SLIDER STYLE
   ======================================== */

.testimonials-carousel-section {
    padding: 6rem 0;
    background: #fff;
}

.testimonials-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-carousel-track {
    position: relative;
    overflow: hidden;
}

.testimonial-carousel-card {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 3rem 2rem;
}

.testimonial-carousel-card.active {
    display: block;
    opacity: 1;
}

.testimonial-quote-icon {
    font-size: 4rem;
    color: rgba(0, 128, 128, 0.1);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0fdfa;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.testimonial-company {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e5e7eb;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-nav i {
    font-size: 1.5rem;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* ========================================
   VARIANT 2: GRID/MASONRY STYLE
   ======================================== */

.testimonials-grid-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-grid-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 128, 128, 0.15);
}

.testimonial-grid-card .testimonial-text {
    font-size: 1rem;
    font-style: normal;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name-small {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.testimonial-company-small {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   VARIANT 3: FEATURED/HIGHLIGHT STYLE
   ======================================== */

.testimonials-featured-section {
    padding: 6rem 0;
    background: #fafafa;
}

.testimonial-featured-card {
    position: relative;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 500px;
}

.testimonial-featured-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.testimonial-featured-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-quote-large {
    font-size: 5rem;
    color: rgba(0, 128, 128, 0.15);
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-featured-text {
    font-size: 1.35rem;
    line-height: 1.8;
    color: #1a1a1a;
    font-style: italic;
    margin-bottom: 2.5rem;
}

.testimonial-featured-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-featured-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0fdfa;
}

.testimonial-featured-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.testimonial-featured-company {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.testimonial-rating-large {
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-rating-large i {
    margin-right: 3px;
}

/* Side Testimonials */
.testimonial-side-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-side-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 128, 128, 0.12);
}

.testimonial-side-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author-side {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-side img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-side h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.testimonial-author-side p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .testimonial-featured-card {
        min-height: 400px;
    }

    .testimonial-featured-text {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .testimonials-carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav i {
        font-size: 1.2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-featured-content {
        padding: 2rem;
    }

    .testimonial-featured-text {
        font-size: 1rem;
    }

    .testimonial-featured-author {
        flex-direction: column;
        text-align: center;
    }
}

/* PixelRoot Footer Branding */
.pixelroot-footer {
    background-color: #1a1a1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pixelroot-footer a {
    transition: opacity 0.3s ease;
}

.pixelroot-footer a:hover {
    opacity: 0.8;
}

/* =========================
   NOSOTROS PAGE STYLES
   ========================= */

/* Hero Section */
/* Hero Section */
.nosotros-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full monitor height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/nosotros/nosotros2encabezado.webp') center/cover no-repeat;
    background-color: #2c3e50;
    overflow: hidden;
    margin-top: 0;
    /* Remove margin to go behind navbar */
}

.nosotros-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay for contrast */
    z-index: 1;
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.nosotros-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nosotros-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
}


/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.mission-content,
.vision-content {
    opacity: 0;
}

.mission-image img,
.vision-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Vision Section */
.vision-section {
    padding: 6rem 0;
}

/* Values Section */
.values-section {
    padding: 6rem 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    opacity: 0;
    transform: translateY(40px);
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 128, 128, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    
    background: linear-gradient(135deg, var(--primary) 0%, #006666 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f7f5 100%);
    color: var(--primary);
    
    transform: scale(1.1);
}

.value-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.value-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Team Section */
.team-section {
    padding: 6rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
}

.team-member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0fdfa;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member:hover .team-member-image {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 128, 128, 0.2);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.team-member-role {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nosotros-hero-title {
        font-size: 3rem;
    }

    .nosotros-hero-subtitle {
        font-size: 1.2rem;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2.5rem;
    }

    .team-member-image {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .nosotros-hero {
        min-height: 60vh;
    }

    .nosotros-hero-title {
        font-size: 2.5rem;
    }

    .nosotros-hero-subtitle {
        font-size: 1.1rem;
    }

    .mission-section,
    .vision-section,
    .values-section,
    .team-section {
        padding: 4rem 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .team-member-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Remove overlay and scroll indicator styles */
.nosotros-hero-overlay {
    display: none;
}

.scroll-indicator {
    display: none;
}

/* Fix text visibility in Vision section */
.vision-section {
    background: #f8f9fa !important;
}


/* Fix Team section text visibility */
.team-section {
    background: white !important;
}

.team-member-name {
    color: #1a1a1a !important;
}

.team-member-role {
    color: #333 !important;
}


.team-section .text-secondary {
    color: #666 !important;
}

/* =========================
   TEAM NETWORK VISUALIZATION
   ========================= */

.team-network-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.team-network-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connection-line {
    stroke: #000000;
    stroke-width: 2;
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Team Nodes */
.team-node {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Node Sizes */
.team-node-large .team-node-image {
    width: 144px;
    height: 144px;
}

.team-node-medium .team-node-image {
    width: 108px;
    height: 108px;
}

/* Node Colors */
.team-node-primary .team-node-image {
    border-color: #00bcd4;
    box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.4);
}

.team-node-secondary .team-node-image {
    border-color: #607d8b;
    box-shadow: 0 0 0 0 rgba(96, 125, 139, 0.4);
}

.team-node-accent .team-node-image {
    border-color: #ff9800;
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
}

/* Node Image Container */
.team-node-image {
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.team-node-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Stagger animation delays for each node */
.team-node[data-index="0"] .team-node-image {
    animation-delay: 0s;
}

.team-node[data-index="1"] .team-node-image {
    animation-delay: 0.5s;
}

.team-node[data-index="2"] .team-node-image {
    animation-delay: 1s;
}

.team-node[data-index="3"] .team-node-image {
    animation-delay: 1.5s;
}

.team-node[data-index="4"] .team-node-image {
    animation-delay: 2s;
}

.team-node[data-index="5"] .team-node-image {
    animation-delay: 2.5s;
}

.team-node[data-index="6"] .team-node-image {
    animation-delay: 3s;
}

.team-node[data-index="7"] .team-node-image {
    animation-delay: 3.5s;
}

/* Node Info (hidden by default) */
.team-node-info {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
}

.team-node-info::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: white;
}

.team-node-info h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.team-node-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Hover Effects */
.team-node:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 100;
}

.team-node:hover .team-node-image {
    animation-play-state: paused;
}

.team-node-primary:hover .team-node-image {
    box-shadow: 0 0 0 15px rgba(0, 188, 212, 0.2);
}

.team-node-secondary:hover .team-node-image {
    box-shadow: 0 0 0 15px rgba(96, 125, 139, 0.2);
}

.team-node-accent:hover .team-node-image {
    box-shadow: 0 0 0 15px rgba(255, 152, 0, 0.2);
}

.team-node:hover .team-node-info {
    opacity: 1;
    visibility: visible;
    margin-top: 20px;
}

/* Specific Node Adjustments to prevent clipping at edges of the fixed-height container */
/* Edge nodes (horizontal) */
.team-node[data-index="3"] .team-node-info {
    transform: translateX(-90%);
}

.team-node[data-index="3"] .team-node-info::before {
    left: 90%;
}

.team-node[data-index="5"] .team-node-info {
    transform: translateX(-10%);
}

.team-node[data-index="5"] .team-node-info::before {
    left: 10%;
}

/* Bottom nodes (Fernanda and Pablo) - Show tooltips ABOVE the nodes */
.team-node[data-index="4"] .team-node-info,
.team-node[data-index="6"] .team-node-info {
    top: auto !important;
    bottom: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 15px;
}

.team-node[data-index="4"] .team-node-info::before,
.team-node[data-index="6"] .team-node-info::before {
    top: 100%;
    bottom: auto;
    border-bottom-color: transparent;
    border-top-color: white;
}

.team-node[data-index="4"]:hover .team-node-info,
.team-node[data-index="6"]:hover .team-node-info {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .team-network-container {
        height: 500px;
    }

    .team-node-large .team-node-image {
        width: 100px;
        height: 100px;
    }

    .team-node-medium .team-node-image {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 768px) {
    .team-network-container {
        height: 400px;
    }

    .team-node-large .team-node-image {
        width: 80px;
        height: 80px;
    }

    .team-node-medium .team-node-image {
        width: 60px;
        height: 60px;
    }

    .connection-line {
        stroke-width: 1.5;
    }

    .team-node-info {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .team-node-info h5 {
        font-size: 0.9rem;
    }

    .team-node-info p {
        font-size: 0.75rem;
    }
}

/* Fix hover flicker issue - remove transform on hover */
.team-node:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
    z-index: 100;
}

/* Ensure smooth transitions without flickering */
.team-node {
    will-change: transform;
}

.team-node-image {
    will-change: box-shadow;
}

/* Add more animation delays for new nodes */
.team-node[data-index='8'] .team-node-image {
    animation-delay: 4s;
}

.team-node[data-index='9'] .team-node-image {
    animation-delay: 4.5s;
}

.team-node[data-index='10'] .team-node-image {
    animation-delay: 5s;
}

/* Complete fix for hover flicker - override floating animation */
.team-node:hover .team-node-image {
    animation: none !important;
    transform: translateY(0) !important;
}

/* Smoother hover transition */
.team-node {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;
}

/* Remove the previous hover scale - keep it simple */
.team-node:hover {
    transform: translate(-50%, -50%) !important;
    z-index: 100;
}

/* Update Hero Section with background image */

/* Remove green overlay from hero - show image clearly */
.nosotros-hero {
    background: url('../img/nosotros/nosotros2encabezado.webp') center/cover no-repeat !important;
}

/* Add text shadow for better readability on image */
.nosotros-hero-title,
.nosotros-hero-subtitle {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Fix technology section text visibility */
/* #technologies h2, */
#technologies .lead,
#technologies .tech-card h5 {
    color: #1a1a1a !important;
}

#technologies .text-muted {
    color: #666 !important;
}

/* Fix technology cards text visibility */
/* #technologies .service-card h3 {
    color: #1a1a1a !important;
} */

/* #technologies .service-card p, */
#technologies .text-white-50 {
    color: #333 !important;
}

/* Fix navbar button visibility - make it visible on all backgrounds */
.navbar .btn-outline-light {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    font-weight: 600;
}

.navbar .btn-outline-light:hover {
    background-color: var(--accent) !important;
    color: var(--white) !important;
    border-color: var(--accent) !important;
}

/* When navbar is scrolled and over light sections */
.navbar.scrolled .btn-outline-light {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background-color: white !important;
}

/* =========================
   MICE DIAGONAL SECTION
   ========================= */

#mice-diagonal {
    /* Ensure content is readable */
    position: relative;
    /* overflow: hidden; handled by bootstrap classes but good to be safe */
}

/* Image Column & Diagonal Cut */
.mice-image-column {
    min-height: 500px;
}

.mice-diagonal-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* The Diagonal Cut: Starts 15% from left on top, goes to top-right, bottom-right, bottom-left */
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
    /* transition: clip-path 0.3s ease; optional */
}

.mice-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease-in-out;
}

/* Tab Navigation Styling */
.mice-tabs {
    display: flex;
    flex-wrap: nowrap;
    /* Force single row */
    gap: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    overflow-x: auto;
    /* Allow scroll on very small screens if needed */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar visually but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mice-tabs::-webkit-scrollbar {
    display: none;
}

.mice-tab-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mice-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1.1rem;
    /* Align with border-bottom of container */
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--accent);
    /* Or primary color */
    transition: width 0.3s ease;
}

.mice-tab-btn:hover {
    color: var(--primary);
}

.mice-tab-btn.active {
    color: var(--primary-dark);
}

.mice-tab-btn.active::after {
    width: 100%;
}

/* Text Content Animation */
.mice-text-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    #mice-diagonal .row {
        flex-direction: column-reverse;
        /* Image top or bottom? User said stack. Usually image top is nice, but let's see. */
    }

    .mice-image-column {
        height: 300px;
        min-height: 300px;
        position: relative;
        width: 100%;
    }

    .mice-diagonal-image-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        clip-path: none;
        /* Remove diagonal on mobile for full width image */
    }

    .mice-tabs {
        justify-content: center;
    }

    .mice-content-inner {
        text-align: center;
        padding-top: 2rem;
    }
}

/* Force horizontal behavior for all smaller screens (< 991px) */
@media (max-width: 991px) {
    .mice-tabs {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        overflow-x: visible !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .mice-tab-btn {
        flex: 0 1 auto;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .mice-tab-btn::after {
        bottom: -0.9rem;
    }

    .mice-content-inner {
        padding: 2rem 1.2rem;
    }

    .mice-image-column {
        height: 250px;
        min-height: 250px;
    }
}
/* Nuestros Destinos Section */
#destinos {
    background-color: #ffffff;
    padding-top: 100px;
}

.destino-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px; /* Adjust as needed */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.destino-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destino-card:hover img {
    transform: scale(1.1);
}

.destino-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.destino-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 50%; /* Smooth gradient up to middle */
}

.destino-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0.9;
    font-family: 'Open Sans', sans-serif;
}

.destino-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.destino-pill {
    background-color: #ffffff;
    color: #000000;
    padding: 8px 15px; /* Reducido para que quepa en 5 columnas */
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem; /* Reducido ligeramente */
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex: 1; /* Permite que crezca */
    text-align: center;
    margin-right: 10px;
}

.destino-check {
    background-color: #ffffff;
    color: var(--primary);
    width: 32px; /* Reducido un poco */
    height: 32px; /* Reducido un poco */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Reducido un poco */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .destino-card {
        height: 400px;
    }
}


/* CTA Section Final Banner */
.final-cta-section {
    padding-bottom: 5rem;
}

.final-cta-container {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    min-height: 550px; /* Aumentado de 450px */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px; /* Limitando el ancho */
    margin: 0 auto; /* Centrado */
}

.final-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/banner.webp');
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.final-cta-container:hover .final-cta-bg {
    transform: scale(1.05);
}

.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.final-cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 3rem;
    text-align: center;
}

.final-cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white !important;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.final-cta-text {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
}

.btn-cta-white {
    background-color: white;
    color: var(--primary) !important;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-white:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .final-cta-container {
        min-height: 400px;
        border-radius: 30px;
    }
    .final-cta-content {
        padding: 2rem;
    }
}

/* Custom Banner CTA nosotros.html */
.banner-cta {
    position: relative;
    width: 100%;

}

.banner-cta-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: white !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.btn-banner {
    background-color: var(--primary) !important;
    color: white !important;
    padding: 12px 35px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
}

.btn-banner:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
    .banner-cta-overlay .container {
        padding-right: 2rem !important;
    }
}

@media (max-width: 768px) {
    .banner-cta-overlay {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    .banner-cta-overlay .container {
        text-align: center !important;
        padding-right: 0 !important;
    }
}

/* html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.navbar {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

.navbar .container {
    width: auto !important;
    max-width: calc(100% - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .navbar .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
} */