:root {
    --primary-color: #00A9C8;
    --primary-dark: #0090AB;
    --secondary-color: #797979;
    --accent-color: #464646;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #F5F5F5;
    --background-white: #FFFFFF;
    --white: #ffffff;
    --success: #4CAF50;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 80px; /* Espacio para el header fijo */
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background-color: var(--background-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 85px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.logo-img {
    height: 45px;
    width: auto;
    padding: 0;
    transition: transform 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Hamburger menu - oculto por defecto */
.hamburger {
    display: none;
}

.phone-number {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.phone-number:hover {
    color: var(--primary-dark);
    background-color: rgba(0, 169, 200, 0.1);
    transform: translateY(-1px);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 169, 200, 0.2);
    animation: pulse 2s infinite ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.btn-nav:hover::before {
    left: 100%;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 200, 0.4);
    text-decoration: none;
}

/* Asegurar que el botón no tenga línea abajo */
.btn-nav::after {
    display: none !important;
}

.btn-nav:hover::after {
    display: none !important;
}

/* Si el botón está dentro de un enlace, no mostrar línea */
a .btn-nav::after,
a .btn-nav:hover::after {
    display: none !important;
}

a .btn-nav,
a:hover .btn-nav {
    text-decoration: none !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 169, 200, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(0, 169, 200, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 169, 200, 0.2);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh + 85px);
    min-height: 720px;
    margin-top: -85px;
    overflow: hidden;
    width: 100%;
    padding: 0;
}

/* Responsive hero adjustments */
@media (max-width: 768px) {
    .hero {
        height: 100vh !important;
        min-height: 500px !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh !important;
        min-height: 450px !important;
        margin-top: 0 !important;
    }
}

.slider {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Asegurar que todos los slides estén ocultos por defecto */
.slide:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 1 !important;
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Primer slide: texto a la izquierda y animación desde la izquierda */
.slide:nth-child(1) {
    justify-content: flex-start;
    background-size: 105%;
    animation: bgZoom1 25s ease-in-out infinite alternate;
}
.slide:nth-child(1) .slide-content {
    align-items: flex-start;
    text-align: left;
    padding-left: 8%;
}

/* Logo móvil para sliders 1 y 3 - Solo visible en móvil */
.slide-mobile-logo {
    display: block !important;
    width: 400px !important;
    height: auto !important;
    margin: 0 auto 1.5rem auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)) !important;
}

/* Ocultar logos móviles en desktop */
@media (min-width: 769px) {
    .slide-mobile-logo {
        display: none !important;
    }

    .slide-logo {
        display: block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto 2rem auto !important;
        filter: none !important;
    }
}

/* Hacer logo más grande en móviles grandes */
@media (max-width: 768px) and (min-width: 481px) {
    .slide-mobile-logo {
        width: 360px !important;
    }
}

/* Hacer logo más pequeño en móviles pequeños */
@media (max-width: 480px) {
    .slide-mobile-logo {
        width: 300px !important;
    }
}

/* Hacer el logo del slider 2 x2 más grande */
.slide-logo {
    width: 900px !important;
    height: auto !important;
    margin: 0 auto 1.5rem auto !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)) !important;
}

@media (max-width: 768px) and (min-width: 481px) {
    .slide-logo {
        width: 800px !important;
    }
}

@media (max-width: 480px) {
    .slide-logo {
        width: 700px !important;
    }
}

/* Tamaños de texto uniformes para todos los sliders en responsive */
@media (max-width: 768px) {
    /* Slider 1 y 3: Aumentar tamaño de texto */
    .slide:nth-child(1) h1,
    .slide:nth-child(3) h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .slide:nth-child(1) .subtitle,
    .slide:nth-child(3) .subtitle {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }

        /* Slider 2: Disminuir tamaño de texto más pequeño */
    .slide:nth-child(2) h1 {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
    }

    .slide:nth-child(2) .subtitle {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 480px) {
    /* Sliders 1 y 3 en móviles pequeños */
    .slide:nth-child(1) h1,
    .slide:nth-child(3) h1 {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
    }

    .slide:nth-child(1) .subtitle,
    .slide:nth-child(3) .subtitle {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    /* Slider 2 más pequeño en móviles pequeños */
    .slide:nth-child(2) h1 {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
    }

    .slide:nth-child(2) .subtitle {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
}

/* Solo en desktop: posicionar texto como en la primera imagen */
@media (min-width: 769px) {
    .slide:nth-child(1) .slide-content {
        align-items: flex-start !important;
        text-align: left !important;
        max-width: 50% !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        height: auto !important;
        position: absolute !important;
        top: 25% !important;
        left: 10% !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(8px) !important;
        border-radius: 12px !important;
        padding: 2.5rem 3rem 2.5rem 4rem !important;
    }

    .slide:nth-child(1) h1 {
        text-align: left !important;
        margin: 0 0 1rem 0 !important;
        font-size: 2.8rem !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
    }

    .slide:nth-child(1) .subtitle {
        text-align: left !important;
        margin: 0 0 1.5rem 0 !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        color: #ffffff !important;
        opacity: 0.9 !important;
    }

    .slide:nth-child(1) .hero-buttons {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        flex-direction: row !important;
        gap: 1rem !important;
        margin-top: 0 !important;
    }
}
.slide:nth-child(1).active .slide-content {
    animation: fadeInLeft 1s ease forwards;
}

/* Animación rápida para el título "Recupera tu movilidad…" */
.slide:nth-child(1).active h1 {
    animation: fastSlide 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
    position: relative;
    overflow: hidden;
}

/* Shine al pasar el mouse sobre el título del primer slider */
.slide:nth-child(1) h1::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    animation: shineLoop 3.5s infinite linear;
}

@keyframes shineLoop {
    0% { left: -120%; }
    50% { left: 120%; }
    100% { left: -120%; }
}

.slide:nth-child(1) h1:hover::after {
    left: 120%;
}

@keyframes fastSlide {
    0% {
        opacity: 0;
        transform: translateX(-220px) skewX(10deg);
    }
    60% {
        opacity: 1;
        transform: translateX(20px) skewX(-5deg);
    }
    80% {
        transform: translateX(-5px) skewX(2deg);
    }
    100% {
        transform: translateX(0) skewX(0deg);
    }
}

/* Segundo slide: centrado */
.slide:nth-child(2) {
    justify-content: center;
    background-position: center 80%;
    background-size: 110%;
    animation: bgPan2 18s ease-in-out infinite alternate;
}
.slide:nth-child(2)::before {
    background: none !important;
}
.slide:nth-child(2) .slide-content {
    align-items: center;
    text-align: center;
    height: auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 2rem 3rem;
    border-radius: 10px;
    max-width: 900px;
    width: auto;
    display: inline-block;
}
.slide:nth-child(2).active .slide-content {
    animation: fadeInUp 1s ease forwards;
}

/* Animación zoom al título del segundo slide */
.slide:nth-child(2).active h1 {
    animation: zoomIn 0.9s ease-out forwards;
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.8) translateY(30px); }
    60% { opacity: 1; transform: scale(1.05) translateY(-10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Colores de texto para slide 2 */
.slide:nth-child(2) h1,
.slide:nth-child(2) .subtitle {
    color: #000000 !important;
}

.slide:nth-child(2) .btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}
.slide:nth-child(2) .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.slide:nth-child(2) .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.slide:nth-child(2) .btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Logo del segundo slide */
.slide:nth-child(2) .slide-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Tercer slide: texto a la derecha */
.slide:nth-child(3) {
    justify-content: flex-end;
}

/* Desktop: posicionar texto a la derecha con espacio */
@media (min-width: 769px) {
    .slide:nth-child(3) .slide-content {
        align-items: flex-end !important;
        text-align: right !important;
        max-width: 50% !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        height: auto !important;
        position: absolute !important;
        top: 35% !important;
        right: 8% !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(8px) !important;
        border-radius: 12px !important;
        padding: 2.5rem 4rem 2.5rem 3rem !important;
    }
}

/* Móvil: mantener el comportamiento original */
@media (max-width: 768px) {
    .slide:nth-child(3) .slide-content {
        align-items: flex-end;
        text-align: right;
        padding-right: 8%;
        margin-top: 40vh;
    }
}
.slide:nth-child(3).active .slide-content {
    animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInLeft {
    0% {opacity:0; transform: translateX(-50px);} 100% {opacity:1; transform: translateX(0);} }
@keyframes fadeInRight {
    0% {opacity:0; transform: translateX(50px);} 100% {opacity:1; transform: translateX(0);} }
@keyframes fadeInUp {
    0% {opacity:0; transform: translateY(50px);} 100% {opacity:1; transform: translateY(0);} }

/* Animaciones background para mejor performance */
@keyframes bgZoom1 {
    0% { background-size: 105%; }
    100% { background-size: 110%; }
}

@keyframes bgPan2 {
    0% { background-position: center 80%; }
    100% { background-position: center 70%; }
}

/* Optimizaciones para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .slider-arrow:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .slide:nth-child(1) h1::after {
        animation: none;
    }

    .slide:nth-child(1) h1:hover::after {
        left: -120%;
    }
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.slider-arrow {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 24px;
}

.slider-arrow:hover {
    background-color: var(--primary-color);
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero .subtitle {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 169, 200, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    /* Ajustes para slides específicos en tablet */
    .slide:nth-child(1) .slide-content {
        padding-left: 5%;
    }

    .slide:nth-child(2) .slide-content {
        padding: 1.5rem 2rem;
        max-width: 80%;
    }

    .slide:nth-child(3) .slide-content {
        padding-right: 5%;
    }

    .slider-arrows {
        padding: 0 20px;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    /* Ajustes del header en tablet */
    .nav-contact {
        gap: 1.5rem;
    }

    .btn-nav {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .phone-number {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .nav-contact {
        gap: 1rem;
    }

    .phone-number {
        display: none;
    }

    .btn-nav {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 8px;
        letter-spacing: 0.2px;
        box-shadow: 0 3px 12px rgba(0, 169, 200, 0.25);
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        border: none;
        font-weight: 600;
        text-transform: none;
        white-space: nowrap;
        text-decoration: none;
        display: inline-block;
    }

    .btn-nav::after,
    .btn-nav:hover::after {
        display: none !important;
    }

    .btn-nav:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 169, 200, 0.4);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: var(--background-white);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        height: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        height: auto;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        background: rgba(0, 169, 200, 0.1);
        border-radius: 8px;
        border: 2px solid var(--primary-color);
        transition: all 0.3s ease;
        position: relative;
    }

    .hamburger:hover {
        background: var(--primary-color);
        transform: scale(1.05);
    }

    .hamburger span {
        display: block;
        width: 22px;
        height: 2.5px;
        background-color: var(--primary-color);
        margin: 2.5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
        position: relative;
    }

    .hamburger:hover span {
        background-color: white;
    }

    /* Animación del menú hamburguesa */
    .hamburger.active {
        background: var(--primary-color);
        border-color: var(--primary-dark);
        box-shadow: 0 4px 15px rgba(0, 169, 200, 0.3);
    }

    .hamburger.active span {
        background-color: white;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Efecto de pulso suave para indicar interactividad */
    .hamburger::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 10px;
        background: linear-gradient(45deg, transparent, rgba(0, 169, 200, 0.1), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .hamburger:hover::before {
        opacity: 1;
        animation: rotate-border 2s linear infinite;
    }

    @keyframes rotate-border {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Ajustes generales del hero en móvil */
    .hero {
        min-height: 500px;
        height: 100vh;
    }

    /* Ocultar completamente el tercer slide en responsive */
    .slide:nth-child(3) {
        display: none !important;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Ajustes específicos para cada slide en móvil */
    .slide-content {
        padding: 0 3% !important;
    }

    .slide:nth-child(1) .slide-content {
        padding-left: 4% !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .slide:nth-child(2) .slide-content {
        padding: 1.2rem 1.5rem !important;
        max-width: 95% !important;
        margin: 0 auto !important;
    }

    .slide:nth-child(3) {
        display: none !important;
    }

    /* Ajustar puntos de navegación para solo 2 slides */
    .slider-nav .slider-dot:nth-child(3) {
        display: none !important;
    }

    /* Navegación del slider en móvil */
    .slider-arrows {
        padding: 0 15px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
        background-color: rgba(255, 255, 255, 0.8);
        color: var(--primary-color);
    }

    .slider-arrow:hover {
        background-color: var(--primary-color);
        color: white;
    }

    .slider-nav {
        bottom: 20px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* Logo en slider 2 - ajuste móvil */
    .slide:nth-child(2) .slide-logo {

        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    /* Ajustes para móviles muy pequeños */
    .hero {
        min-height: 450px;
    }

    /* Ocultar tercer slide en móviles pequeños */
    .slide:nth-child(3) {
        display: none !important;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .slide-content {
        padding: 0 2% !important;
    }

    .slide:nth-child(1) .slide-content {
        padding-left: 3% !important;
    }

    .slide:nth-child(2) .slide-content {
        padding: 1rem 1rem !important;
        max-width: 98% !important;
    }

    .slide:nth-child(3) {
        display: none !important;
    }

    /* Ajustar puntos de navegación para solo 2 slides */
    .slider-nav .slider-dot:nth-child(3) {
        display: none !important;
    }

    .slider-arrows {
        padding: 0 10px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero-buttons {
        gap: 0.6rem;
    }

    /* Header ajustes para móviles pequeños */
    .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        text-decoration: none;
        display: inline-block;
    }

    .btn-nav::after,
    .btn-nav:hover::after {
        display: none !important;
    }

    .hamburger {
        width: 35px;
        height: 35px;
    }

    .hamburger span {
        width: 18px;
        height: 2px;
        margin: 2px 0;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.loading-container {
    text-align: center;
}

.loading-logo {
    width: 375px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Secciones generales */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Quiénes Somos */
.about {
    background: white;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1; /* cubre partículas */
}

.about h2 {
    margin-bottom: 0.5rem;
}

.about .section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 3rem;
    margin-top: 0.5rem;
}

.about-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 2.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Thin colored accent bar */
.about-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(var(--primary-color), var(--primary-dark));
}

/* Heading tweaks */
.about-text h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

/* Paragraph readability */
.about-text p {
    text-align: justify;
    line-height: 1.8;
    margin: 0;
}

/* Drop-cap effect */
.about-text p::first-letter {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    float: none;
    padding-right: 0;
}

@media (max-width: 768px) {
    .about-text {
        padding: 1.5rem 1.6rem;
    }
    .about-text p::first-letter {
        font-size: inherit;
    }
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    position: relative;
    overflow: hidden;
    border: 2px dashed transparent;
    padding: 2.5rem 2rem;
}

.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -110%;
    width: 120%;
    height: 100%;
    background: rgba(0, 169, 200, 0.12);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.value-card:hover::before {
    left: 110%;
}

.value-card:hover {
    border-color: var(--primary-color);
    border-style: dashed;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* Servicios */
.services {
    background: linear-gradient(135deg, #636363 0%, #4c4c4c 40%, #3a3a3a 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle dotted pattern overlay */
.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0,169,200,0.10) 1px, transparent 1px);
    background-size: 8px 8px;
    pointer-events: none;
    z-index: 0;
}

.services h2, .services .section-subtitle, .service-card { position: relative; z-index: 1; }

.services h2,
.services .section-subtitle {
    color: var(--text-light);
    text-align: center;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    padding: 0;
    min-height: 340px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    text-align: left;
    animation: none;
    cursor: pointer;
}

.service-card h3 {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    padding: 0.6rem 1.4rem 0.3rem;
    font-size: 1.4rem;
    text-align: center;
    margin: 0;
}

.service-card h3 + p {
    margin-top: 0;
}

.service-card p {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    padding: 0.3rem 1rem 0.6rem;
    font-size: 0.95rem;
    margin: 0;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.65);
    z-index: -1;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scale(1.05);
}

.service-card:nth-child(1)::before {background-image: url('../img/services/1.jpg');}
.service-card:nth-child(2)::before {background-image: url('../img/services/2.jpg');}
.service-card:nth-child(3)::before {background-image: url('../img/services/3.jpg');}
.service-card:nth-child(4)::before {background-image: url('../img/services/4.jpg');}
.service-card:nth-child(5)::before {background-image: url('../img/services/5.jpg');}
.service-card:nth-child(6)::before {background-image: url('../img/services/6.jpg');}

.service-card h3, .service-card p {
    background: transparent;
    padding: 0;
}

.service-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.service-card p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.service-icon {display:none;}

/* Instalaciones y Tecnología */
.facilities {
    background: white;
}

.tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.tech-content {
    padding: 2rem;
}

.tech-features {
    list-style: none;
    margin-top: 2rem;
}

.tech-features li {
    padding: 1rem 0 1rem 3rem;
    position: relative;
}

.tech-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 1.5rem;
    font-weight: bold;
}

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

.gallery-item {
    background-size: cover;
    background-position: center;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, filter 0.4s ease;
    animation: galleryZoom 18s ease-in-out infinite alternate;
    opacity:0;
    transform: scale(0.95) translateY(20px);
}

.gallery-item.show{opacity:1;transform:scale(1) translateY(0);}

@keyframes galleryZoom{
  0%{background-size:100%;}
  100%{background-size:110%;}
}

.gallery-item:hover{
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.05);
}

.gallery-item::before{
    content:"";
    position:absolute;inset:0;
    background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,0.45) 100%);
    opacity:0;
    transition:opacity 0.4s;
}

.gallery-item:hover::before{opacity:0.4;}

/* Only 4 images required */
.gallery-item:nth-child(1){background-image:url('../img/place/1.jpg');}
.gallery-item:nth-child(2){background-image:url('../img/place/2.jpg');}
.gallery-item:nth-child(3){background-image:url('../img/place/3.jpg');}
.gallery-item:nth-child(4){background-image:url('../img/place/4.jpg');}

/* Equipo */
.team {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* dotted overlay for team */
.team::before{
    content:"";
    position:absolute;inset:0;
    background-image:radial-gradient(rgba(121,121,121,0.15) 1px, transparent 1px);
    background-size:8px 8px;
    pointer-events:none;
    z-index:0;
}

/* elevate content */
.team *{position:relative;z-index:1;}

.team h2,.team .section-subtitle{color:#fff;}

.team-grid {
    display: none;
}

.team-carousel{display:block;overflow:hidden;position:relative;}
.team-track{gap:1.5rem;display:flex;transition:transform 0.6s ease;}
.team-card{flex:0 0 calc((100% - 3rem)/3);min-height:160px;padding:1.2rem;}
.team-card:last-child{margin-right:0;}
.team-card img{width:100%;height:250px;object-fit:cover;border-radius:10px;}
.team-caption{background:none;color:var(--primary-color);padding:0;transform:none;}
.team-caption h3{margin:0 0 0.4rem;font-size:0.9rem;color:var(--primary-dark);position:relative;padding-bottom:0.4rem;}
.team-caption h3::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:0;width:90%;}
.team-caption p{font-size:0.75rem;line-height:1.3;}
.team-card{perspective:1000px;}
.team-card img{transition:transform 0.6s ease;}
.team-card:hover img{transform:rotateY(8deg) scale(1.05);}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Testimonios */
.testimonials {
    background: white;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0; /* aún más compacto */
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
    max-width: 460px; /* ancho fijo para una tarjeta */
    margin: 0 auto; /* centrado */
}

.testimonial-card {
    flex: 0 0 100%; /* ocupa todo el slider */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-content {
    max-width: 700px;
    margin: 0.2rem auto 0.1rem; /* compact vertical space */
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-light);
    position: relative;
    padding: 0.4rem 1rem 0rem; /* casi sin espacio debajo */
    margin-bottom: 0rem;
}

.testimonial-content:before {
    content: """;
    font-size: 4rem;
    color: #ddd;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-author {
    margin-top: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.slider-controls {
    position:relative;
    gap:0.3rem;
    margin-top:0.2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-color);
}

/* Facebook testimonial images */
.testimonial-img {
    width: 420px;
    max-width: 100%;
    margin: 0 auto 0.1rem; /* pegado */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Meta de red social */
.testimonial-meta{
    position:absolute;
    right:8px;
    top:8px;
    display:inline-flex;
    align-items:center;
    gap:0.35rem;
    font-weight:600;
    color:#fff;
    font-size:1.05rem;
    background:#E1306C;
    padding:0.3rem 0.8rem;
    border-radius:9999px;
    text-decoration:none;
    transition:background 0.25s ease, transform 0.25s ease, color 0.25s ease;
    animation: sway 2.8s ease-in-out infinite;
}

@keyframes sway{
    0%{transform:translateY(0);}
    50%{transform:translateY(-4px);}
    100%{transform:translateY(0);} }

.testimonial-meta i{
    margin-right:0.35rem;
    color:inherit;
}

.testimonial-meta:hover{
    background:#c41f59;
    color:#fff;
    transform:translateY(-2px);
}

.testimonial-meta:hover i{color:#fff;}

/* Animación suave de aparición */
@keyframes testimonialFade{
    from{opacity:0; transform:translateY(40px);}
    to{opacity:1; transform:translateY(0);}
}

.testimonial-card{animation:testimonialFade 0.8s ease both;}

/* Blog */
.blog {
    background:#f5f5f5; /* sólido gris pálido */
    position:relative;
    z-index:1; /* sobre las partículas */
}

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

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
}

/* FAQ */
.faq {
    background: transparent;
    position: relative;
    padding: 4rem 1rem;
    overflow: hidden;
}

/* Decorative background shapes */
.faq::before,
.faq::after {
    content: none !important; /* eliminates the blue blobs */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* keep content above decorative shapes */
    background: var(--white);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.faq-item {
    background: var(--white);
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.faq-question {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 1.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.faq-arrow {
    font-size: 1.3rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    background: var(--white);
    color: var(--secondary-color);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 1.2rem 1.5rem 1.75rem;
    max-height: 400px;
}

/* Contacto */
.contact {
    background: var(--background-light);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.contact-info {
    background: #ffffff; /* blanco totalmente opaco */
    padding: 2rem 2rem 5rem; /* más espacio inferior */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    margin-bottom: 3rem; /* espacio externo mayor */
}

/* Estilo de cada fila de información de contacto */
.contact-item {
    display: block; /* layout vertical */
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item h4 {
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
}

/* Ocultar iconos (ya no se usan) */
.contact-icon { display: none; }

.contact-form {
    background: #ffffff; /* blanco totalmente opaco */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2; /* asegurar que quede por encima de elementos de fondo */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* CTA Section renovada con colores primarios */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.cta-section p {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Botón destacado dentro de CTA */
.cta-section .btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* Modal de Login */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Página de Agendar Citas */
.appointment-page {
    display: none;
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    background: var(--background-light);
}

.appointment-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin: 2rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #eee;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.calendar-day:hover:not(.occupied) {
    background: #f0f4ff;
    border-color: var(--accent-color);
}

.calendar-day.occupied {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.time-slot {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover:not(.occupied) {
    border-color: var(--accent-color);
    background: #f0f4ff;
}

.time-slot.occupied {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
}

.time-slot.selected {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem 2rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.hashtags {
    margin-top: 1rem;
    color: #666;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    .about-content,
    .tech-showcase,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* Hamburger Animation */
.hamburger span {
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Degradado inferior para que no se vea la cuadrícula/partículas una vez termina el slider */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--background-white) 100%);
    z-index: 2;
}

/* Ajuste de tamaño y margen para el h1 en slides 1 y 3 */
.slide:nth-child(1) h1,
.slide:nth-child(3) h1 {
    font-size: 2.8rem; /* antes 3.5 */
    max-width: 600px;
}


/* Ajustes visuales slide 2 */
.slide:nth-child(2) h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.slide:nth-child(2) .subtitle {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    max-width: 750px;
}
.slide:nth-child(2) .slide-logo {
    width: 575px;
    margin-bottom: 1.25rem;
}

/* Centrar y ampliar botones */
.slide:nth-child(2) .hero-buttons {
    justify-content: center;
    gap: 1.5rem;
}
.slide:nth-child(2) .hero-buttons .btn-primary,
.slide:nth-child(2) .hero-buttons .btn-secondary {
    padding: 1rem 2.75rem;
}

/* Animaciones para el tercer slider */
.slide:nth-child(3) {
    background-size: 105%;
    background-position: center center;
    animation: bgZoom3 15s ease-in-out infinite alternate;
    overflow: hidden;
}

.slide:nth-child(3)::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transform: skewX(-15deg);
    animation: sweepFade 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bgZoom3 {
    0% { background-size: 105%; }
    100% { background-size: 120%; }
}

@keyframes sweepFade {
    0%   { transform: translateX(-100%) skewX(-15deg); opacity: 0.6; }
    50%  { transform: translateX(0) skewX(-15deg);   opacity: 0.3; }
    100% { transform: translateX(100%) skewX(-15deg); opacity: 0; }
}

/* Paneo lateral del fondo para el segundo slider */
@keyframes bgPan2 {
    0% { background-position: 0% 35%; }
    100% { background-position: 100% 35%; }
}

/* Zoom sutil para el primer slider (Ken Burns) */
.slide:nth-child(1) {
    background-size: 105%;
    animation: bgZoom1 25s ease-in-out infinite alternate;
}

@keyframes bgZoom1 {
    0% { background-size: 105%; background-position: center center; }
    100% { background-size: 115%; background-position: center 40%; }
}

/* Nuestra misión gallery */
.mission-gallery {
    position: relative;
    width: 90%;
    max-width: 700px;
    height: 0;
    padding-top: 68%; /* 16:9 approx */
    margin: 0 0 1rem 6rem; /* increased left gap */
    border-radius: 10px;
    overflow: hidden;
}
.mission-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: galleryFade 10s ease-in-out infinite;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.mission-gallery img:nth-child(1){animation-delay:0s;}
.mission-gallery img:nth-child(2){animation-delay:5s;}

@keyframes galleryFade{
  0%   {opacity:0; transform:scale(1.05);}
  10%  {opacity:1; transform:scale(1);}
  40%  {opacity:1; transform:scale(1);}
  50%  {opacity:0; transform:scale(0.95);}
  100% {opacity:0; transform:scale(0.95);}
}

/* Value images */
.value-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.value-card .value-icon {
    display:none;
}

/* Typewriter effect improved */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    display: inline-block;
    animation: typingText 6s steps(120, end) 1 normal both, blinkCaret 0.75s step-end infinite 6s;
}

@keyframes typingText {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

@keyframes pulseText {
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-4px);}
}

@keyframes cardFloat {
  0%,100%{transform: translateY(0);}
  25%{transform: translateY(-4px);}
  50%{transform: translateY(-8px);}
  75%{transform: translateY(-4px);}
}

.text-content {
    background: rgba(255,255,255,0.9);
    padding: 0.6rem 1rem 0.8rem;
    animation: textFloat 4s ease-in-out infinite alternate;
}

.text-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
    text-align: center;
}
.text-content p { color: var(--primary-color); margin:0; font-size:0.95rem; }

@keyframes textFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* Remove individual backgrounds */
.service-card h3, .service-card p {
    background: transparent;
    padding: 0;
}

.services h2 {
    text-align: center;
    color: var(--text-light);
    animation: serviceTitlePulse 5s ease-in-out infinite;
}

@keyframes serviceTitlePulse {
  0%,100% { transform: translateY(0); text-shadow: 0 0 0 var(--primary-color); }
  50% { transform: translateY(-6px); text-shadow: 0 4px 12px rgba(0,169,200,0.7); }
}

/* Service Modal */
.service-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:2000}
.service-modal-inner{background:#fff;border-radius:8px;max-width:500px;width:90%;padding:2rem;position:relative;animation:modalShow .4s ease both}
.service-close{position:absolute;top:10px;right:15px;font-size:2rem;cursor:pointer;color:#666}
.service-modal-inner img{width:100%;border-radius:6px;margin-bottom:1rem}
.service-actions{display:flex;gap:.5rem;margin-top:1.2rem;flex-wrap:wrap;justify-content:center;}
.btn-action{flex:1 1 130px;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:0.55rem 1rem;border:2px solid var(--primary-color);border-radius:6px;background:transparent;color:var(--primary-color);font-weight:600;transition:background .25s,color .25s;text-decoration:none;}
.btn-action .icon-part{border-right:none;padding:0;min-width:unset;display:flex;align-items:center;}
.btn-action .icon-part i{font-size:1.1rem;color:inherit;}
.btn-action .btn-label{padding:0;white-space:nowrap;font-size:0.9rem;}
.btn-action:hover{background:var(--primary-color);color:#fff;box-shadow:0 0 0 2px rgba(0,0,0,0.05) inset;}
.btn-action:hover .icon-part i{color:#fff;}

/* Tech video */
.tech-video video{
    width:100%;
    border-radius:10px;
    box-shadow:0 4px 20px rgba(0,0,0,0.15);
}

/* Sequential check animation */
.tech-features li{opacity:0;animation:none;transition:opacity 0.6s ease;}
.tech-features li.visible{opacity:1;}

.gallery-item::after{
  content:"Click para ampliar";
  position:absolute;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.65);
  color:#fff;
  padding:0.5rem;
  text-align:center;
  transform:translateY(100%);
  transition:transform 0.35s ease;
}

.gallery-item:hover::after{transform:translateY(0);}

/* Gallery modal */
.gallery-modal{position:fixed;top:0;left:0;width:100%;height:100%;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.85);z-index:2100;}
.gallery-modal img{max-width:90%;max-height:90%;border-radius:10px;box-shadow:0 8px 25px rgba(0,0,0,0.6);}
.gallery-close{position:absolute;top:20px;right:30px;font-size:3rem;color:#fff;cursor:pointer;}

/* layout */
.team-layout{display:flex;flex-wrap:wrap;gap:2rem;align-items:center;}
.team-video{flex:0 0 380px;width:380px;height:640px;border-radius:18px;box-shadow:0 8px 24px rgba(0,0,0,0.25);object-fit:cover;}
.team-carousel{flex:1 1 0;}

.team-card img{display:none;}
.team-card{background:#fff;border-radius:12px;box-shadow:0 4px 15px rgba(0,0,0,0.12);padding:1.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:0.4rem;min-height:220px;}
.team-caption{background:none;color:var(--primary-color);padding:0;transform:none;}
.team-caption h3{margin:0 0 0.4rem;font-size:0.9rem;color:var(--primary-dark);position:relative;padding-bottom:0.4rem;}
.team-caption h3::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:0;width:90%;}
.team-caption p{font-size:0.75rem;line-height:1.3;}

/* -------------------------- */
/* Animación de hover tarjetas equipo */
.team-card {
    position: relative; /* para pseudo-elementos */
    overflow: hidden;   /* asegura que los brillos no se desborden */
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

/* Sutil brillo radial */
.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 169, 200, 0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.team-card:hover::before {
    opacity: 1;
}

/* Línea de acento inferior */
.team-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    pointer-events: none;
}

.team-card:hover::after {
    transform: scaleX(1);
}

.testimonials h2{
    margin-bottom: 0.3rem;
}

.testimonials .section-subtitle{
    margin-bottom: 0.8rem;
}

.blog-image-thumb{width:100%;height:340px;object-fit:cover;border-radius:12px;}

.blog-video-modal{position:fixed;top:0;left:0;width:100%;height:100%;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.85);z-index:2200;}
.blog-video-modal video{max-width:90%;max-height:90%;border-radius:10px;box-shadow:0 8px 25px rgba(0,0,0,.6);}
.blog-close{position:absolute;top:20px;right:30px;font-size:3rem;color:#fff;cursor:pointer;}

.blog .section-subtitle{
    color:var(--primary-color);
}

.contact .section-subtitle{
    color:var(--primary-color);
}

/* FAQ title animation */
#faq h2 {
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(-25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#faq h2.animate {
    opacity: 1;
    transform: translateY(0);
    animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Panel de video en la sección de contacto */
.contact-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-video {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* -------- Scrollbar global con estilo corporativo -------- */
html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) #eaf6f8;
}

body::-webkit-scrollbar {
    width: 20px; /* aún más ancho */
}

body::-webkit-scrollbar-track {
    background: rgba(234, 246, 248, 0.6); /* pista clara semitransparente */
    border-radius: 12px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.07);
}

body::-webkit-scrollbar-thumb {
    border-radius: 12px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: 4px solid rgba(234, 246, 248, 0.8); /* efecto padding cristal */
    box-shadow: inset 0 0 4px rgba(255,255,255,0.5), 0 0 6px rgba(0,169,200,0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: inset 0 0 4px rgba(255,255,255,0.6), 0 0 10px rgba(0,169,200,0.45);
}

/* =================================================================
   SLIDER FIXES - Asegurar que solo se muestre un slide a la vez
   ================================================================= */

/* Forzar posicionamiento correcto de slides */
.hero .slider {
    position: relative !important;
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
    min-height: 600px !important;
}

.hero .slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(0) !important;
    transition: opacity 0.5s ease-in-out !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero .slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

/* Mejorar visualización en móviles */
@media (max-width: 768px) {
    .hero .slider {
        height: 100vh !important;
        min-height: 500px !important;
    }

    .hero .slide {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 500px !important;
    }

    .hero .slide-content {
        padding: 2rem 1rem !important;
        width: 100% !important;
        max-width: 90% !important;
        text-align: center !important;
        z-index: 10 !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100% !important;
    }

    .hero .slide .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 2rem auto 0 !important;
    }

    .hero .slide .btn-primary,
    .hero .slide .btn-secondary {
        width: 100% !important;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        text-align: center !important;
    }
}

/* Texto más pequeño para slides 1 y 3 en responsive */
@media (max-width: 768px) {
    .hero .slide:nth-child(1) h1,
    .hero .slide:nth-child(3) h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.8rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }

    .hero .slide:nth-child(1) .subtitle,
    .hero .slide:nth-child(3) .subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.2rem !important;
        opacity: 0.95 !important;
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    }

    .hero .slide:nth-child(1) .hero-buttons,
    .hero .slide:nth-child(3) .hero-buttons {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 1rem !important;
        gap: 0.8rem !important;
    }

    .hero .slide:nth-child(1) .slide-content,
    .hero .slide:nth-child(3) .slide-content {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1.5rem 1rem !important;
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(2px) !important;
        border-radius: 12px !important;
        max-width: 85% !important;
        margin: 0 auto !important;
    }

    .hero .slide:nth-child(1) .btn-primary,
    .hero .slide:nth-child(1) .btn-secondary,
    .hero .slide:nth-child(3) .btn-primary,
    .hero .slide:nth-child(3) .btn-secondary {
        font-size: 0.85rem !important;
        padding: 0.8rem 1.5rem !important;
    }
}



@media (max-width: 480px) {
    .hero .slide:nth-child(1) h1,
    .hero .slide:nth-child(3) h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.6rem !important;
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }

    .hero .slide:nth-child(1) .subtitle,
    .hero .slide:nth-child(3) .subtitle {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    }

    .hero .slide:nth-child(1) .btn-primary,
    .hero .slide:nth-child(1) .btn-secondary,
    .hero .slide:nth-child(3) .btn-primary,
    .hero .slide:nth-child(3) .btn-secondary {
        font-size: 0.8rem !important;
        padding: 0.7rem 1.2rem !important;
    }

    .hero .slide:nth-child(1) .slide-content,
    .hero .slide:nth-child(3) .slide-content {
        background: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: blur(2px) !important;
        border-radius: 10px !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        padding: 1.2rem 0.8rem !important;
    }
}

/* =================================================================
   FIN SLIDER FIXES
   ================================================================= */

/* =================================================================
   TEAM CARDS RESPONSIVE - Hacer tarjetas más anchas en móvil
   ================================================================= */

/* Tablet y móvil grande */
@media (max-width: 1024px) {
    .team-card {
        flex: 0 0 calc((100% - 2rem)/2) !important;
        min-height: 240px !important;
        padding: 1.5rem !important;
    }

    .team-caption h3 {
        font-size: 1rem !important;
    }

    .team-caption p {
        font-size: 0.8rem !important;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .team-track {
        gap: 1.5rem !important;
    }

    .team-card {
        flex: 0 0 calc((100% - 1.5rem)/2) !important;
        min-height: 260px !important;
        padding: 1.8rem 1.5rem !important;
    }

    .team-caption h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }

    .team-caption p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .team-card {
        flex: 0 0 100% !important;
        min-height: 200px !important;
        padding: 2rem 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .team-caption h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }

    .team-caption p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .team-track {
        gap: 1rem !important;
    }
}

/* =================================================================
   FIN TEAM CARDS RESPONSIVE
   ================================================================= */

/* =================================================================
   SLIDER BACKGROUND ANIMATIONS - Solo Desktop (no responsive)
   ================================================================= */

/* Animaciones de fondo para sliders - Solo desktop */
@media (min-width: 769px) {
    /* Primer slider: Movimiento arriba-abajo + zoom */
    .hero .slide:nth-child(1).active {
        animation: slideUpDown 20s ease-in-out infinite !important;
        transform-origin: center center !important;
    }

    /* Segundo slider: Movimiento izquierda-derecha */
    .hero .slide:nth-child(2).active {
        animation: slideLeftRight 25s ease-in-out infinite !important;
        transform-origin: center center !important;
    }

    /* Tercer slider: Zoom leve */
    .hero .slide:nth-child(3).active {
        animation: slideZoom 18s ease-in-out infinite !important;
        transform-origin: center center !important;
    }
}

/* Keyframes para movimiento arriba-abajo con zoom */
@keyframes slideUpDown {
    0% {
        background-position: center top !important;
        transform: translateX(0) scale(1) !important;
    }
    25% {
        background-position: center 20% !important;
        transform: translateX(0) scale(1.02) !important;
    }
    50% {
        background-position: center bottom !important;
        transform: translateX(0) scale(1.05) !important;
    }
    75% {
        background-position: center 80% !important;
        transform: translateX(0) scale(1.02) !important;
    }
    100% {
        background-position: center top !important;
        transform: translateX(0) scale(1) !important;
    }
}

/* Keyframes para movimiento izquierda-derecha */
@keyframes slideLeftRight {
    0% {
        background-position: left center !important;
        transform: translateX(0) scale(1.02) !important;
    }
    25% {
        background-position: 30% center !important;
        transform: translateX(0) scale(1.04) !important;
    }
    50% {
        background-position: right center !important;
        transform: translateX(0) scale(1.06) !important;
    }
    75% {
        background-position: 70% center !important;
        transform: translateX(0) scale(1.04) !important;
    }
    100% {
        background-position: left center !important;
        transform: translateX(0) scale(1.02) !important;
    }
}

/* Keyframes para zoom leve */
@keyframes slideZoom {
    0% {
        transform: translateX(0) scale(1) !important;
        background-position: center center !important;
    }
    50% {
        transform: translateX(0) scale(1.08) !important;
        background-position: center center !important;
    }
    100% {
        transform: translateX(0) scale(1) !important;
        background-position: center center !important;
    }
}

/* =================================================================
   FIN SLIDER BACKGROUND ANIMATIONS
   ================================================================= */
