/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Franklin+Gothic+Medium&display=swap');

/* Font-face para Franklin Gothic Demi (asegúrate de tener el archivo en la carpeta fonts) */
@font-face {
    font-family: 'Franklin Gothic Demi';
    src: url('../fonts/FranklinGothicDemi.woff2') format('woff2'),
         url('../fonts/FranklinGothicDemi.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables globales - Nueva paleta de colores */
:root {
    /* Colores principales */
    --color-primary: #164193;      /* Azul oscuro */
    --color-secondary: #2A96D3;    /* Azul claro/medio */
    --color-light-bg: #D9D9D9;     /* Gris claro */
    
    /* Colores complementarios */
    --color-dark-gray: #3F3F3F;    /* Gris oscuro */
    --color-medium-blue: #5093CF;  /* Azul medio */
    --color-accent: #F0BA19;       /* Amarillo/Dorado */
    
    /* Variables aplicadas */
    --text-color: var(--color-dark-gray);
    --heading-color: var(--color-primary);
    --link-color: var(--color-secondary);
    --link-hover: var(--color-accent);
    --button-primary: var(--color-accent);
    --button-secondary: var(--color-primary);
    --background-light: #FFFFFF;
    --background-medium: var(--color-light-bg);
    --background-dark: var(--color-primary);
    
    /* Fuentes */
    --font-primary: 'Source Sans 3', sans-serif;
    --font-heading: 'Franklin Gothic Demi', sans-serif;
    
    /* Tamaños */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Efectos */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Contenedor */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.light {
    color: var(--color-light);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--button-primary);
    color: var(--color-dark-gray);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #e0ad10;
}

.btn-secondary {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}



.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Ajuste del tamaño del logo en el navbar */
.logo-img {
    height: 180px !important; /* Aumentado de 140px para mayor visibilidad */
    width: auto !important;
    display: block;
    transition: transform 0.3s ease;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.highlight {
    color: var(--color-accent);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px; /* Área de pulsación más grande */
    z-index: 1010; /* Mayor que el z-index del menú para estar siempre visible */
    position: relative;
    width: 45px; /* Ancho fijo para el botón */
    height: 45px; /* Alto fijo para el botón */
    border-radius: 50%; /* Forma circular */
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Efecto hover */
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto; /* Auto para centrar horizontalmente */
    transition: all 0.3s ease;
    border-radius: 3px; /* Bordes redondeados en las barras */
}

.menu-toggle.active {
    background-color: rgba(255, 255, 255, 0.2); /* Fondo al estar activo */
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-15px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('asistente_veterinario.jpg'); /* Cambia 'tu-imagen.jpg' por el nombre correcto */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}



/* Ajuste para corregir el problema de superposición y bajar el contenido */
.hero-container {
    width: 100%;
    padding-top: 130px; /* Ajustado para compensar la nueva posición del navbar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

/* Ajustes para bajar el contenido del héroe */
.hero-content {
    flex: 1;
    max-width: 600px;
    margin-top: 50px; /* Añadido margen superior para bajar el contenido */
}

.hero-image {
    flex: 1;
    max-width: 450px;
    text-align: center;
    margin-top: 50px; /* Mantiene el margen superior */
    border: 5px solid #FFFFFF; /* Borde blanco */
    border-radius: 20px; /* Bordes redondeados */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Sombra para resaltar */
}

.floating-container {
    display: inline-block;
    border: 5px solid #FFFFFF; /* Borde blanco */
    border-radius: 20px; /* Bordes redondeados */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Sombra */
    animation: float 6s ease-in-out infinite; /* Efecto floating */
}

.floating-container img {
    display: block;
    border-radius: 20px; /* Asegura que la imagen respete los bordes redondeados */
    max-width: 100%;
    height: auto;
}

.hero h1 {
    font-size: 10px; /* Aumentado a 5rem para mayor tamaño */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase; /* Añadido para convertir a mayúsculas */
    letter-spacing: 2px; /* Mejor espaciado entre letras para mayúsculas */
}

.hero .subtitle {
    font-size: 2.2rem; /* Aumentado de 1.8rem para mayor tamaño */
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 500; /* Un poco más de peso */
}

.hero-cta {
    display: flex;
    gap: 15px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--heading-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Espaciado uniforme entre tarjetas */
}

/* Tarjetas con efecto flip */
.feature-card {
    perspective: 1000px; /* Crear perspectiva 3D */
    background-color: transparent; /* Fondo transparente */
    height: 350px; /* Altura fija para todas las tarjetas */
    width: 100%;
    padding: 0; /* Quitamos el padding para que lo tengan los lados */
    box-shadow: none; /* Quitamos la sombra de la tarjeta principal */
    margin: 0 auto; /* Centrar las tarjetas */
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.feature-card:hover .feature-card-inner {
    transform: rotateY(180deg);
}

/* Ajustar posición vertical del contenido en las tarjetas flip - Más arriba */
.feature-card-front, .feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    padding: 20px; /* Uniforme para todas las tarjetas */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Mantener alineación al inicio */
    align-items: center;
    text-align: center;
}

.feature-card-front {
    background-color: var(--background-medium);
}

.feature-card-back {
    background-color: var(--color-primary);
    color: white;
    transform: rotateY(180deg);
}

.feature-card-back h3 {
    color: white;
    margin-bottom: 5px; /* Reducido para acercar el texto al título */
}

.feature-card-back p {
    color: white;
    opacity: 0.9;
}

/* Ajustes para dispositivos táctiles */
@media (hover: none) {
    .feature-card.touch .feature-card-inner {
        transform: rotateY(180deg);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.feature-icon {
    font-size: 2.5rem; /* Tamaño uniforme para los íconos */
    color: var(--color-accent);
    margin-bottom: 10px; /* Espaciado uniforme */
}

.feature-card h3 {
    font-size: 1.6rem; /* Tamaño uniforme para los títulos */
    margin-bottom: 10px; /* Espaciado uniforme */
    color: var(--color-primary);
}

.feature-card p {
    font-size: 1rem; /* Tamaño uniforme para los párrafos */
    color: var(--color-gray);
    margin: 0;
    margin-top: 10px; /* Espaciado uniforme */
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .feature-card-front, .feature-card-back {
        padding: 15px; /* Reducir padding en móviles */
    }
}

/* Ajustar posición de la tarjeta "Alta Empleabilidad" */
.feature-card:nth-child(3) {
    margin-top: 0; /* Eliminado el margen superior para alinearla con las demás tarjetas */
}

/* Program Section */
.program-section {
    padding: 100px 0;
    background-color: var(--background-dark);
    color: white;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.ultimo-curso {
    grid-column: 1 / -1; /* Hace que el último curso ocupe todo el ancho disponible */
    max-width: 280px; /* Mantiene el mismo ancho que los demás cursos */
    margin: 0 auto; /* Centra el elemento */
}

.program-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-medium);
    /* Ajustes para tamaño uniforme */
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
}

/* Ajuste para las imágenes de las tarjetas de cursos */
.program-card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px; /* Añadido margen inferior para alejar la imagen del contenido */
}

.program-card h3 {
    padding: 20px;
    padding-top: 10px; /* Reducido el padding superior para compensar el margin de la imagen */
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.program-card p {
    padding: 20px;
    margin: 0;
    /* Asegurar altura uniforme en párrafos */
    flex: 1;
}

.program-content {
    padding: 20px;
}

.program-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.program-content ul li {
    margin-bottom: 5px;
}

.program-section .btn {
    margin-top: 20px;
}

/* Program Cards with Images */
.program-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.program-card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.1);
}

.program-card h3 {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.program-card p {
    padding: 20px;
    margin: 0;
    flex: 1;
}

.program-card-details {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.program-card-details i {
    margin-right: 5px;
    color: var(--color-accent);
}

/* Hide/Show courses functionality */
.course-hidden {
    display: none;
}

.course-visible {
    display: flex;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-outline.light {
    border-color: white;
    color: white;
}

.btn-outline.light:hover {
    background-color: white;
    color: var(--color-primary);
}

/* Journey Section */
.journey-section {
    padding: 100px 0;
    background-color: var(--background-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--color-secondary);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 70px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    top: 0;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--color-primary);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -20px;
}

.timeline-content {
    background-color: var(--background-medium);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--color-dark-gray);
    color: white;
}

.testimonials-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.testimonials-slider:active {
    cursor: grabbing;
}

/* Botones de navegación - Solo visibles en PC */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    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;
    font-size: 1.2rem;
}

.testimonial-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-arrow-left {
    left: -60px;
}

.testimonial-arrow-right {
    right: -60px;
}

/* Ocultar botones en tablets y móviles */
@media (max-width: 1024px) {
    .testimonial-arrow {
        display: none;
    }
    
    .testimonials-container {
        max-width: 800px;
    }
}

/* Ocultar indicadores de swipe en PC */
@media (min-width: 769px) {
    .swipe-indicator {
        display: none;
    }
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease-in-out;
}

/* Animaciones para transiciones en móvil */
.testimonial-card.slide-out-left {
    opacity: 0;
    transform: translateX(-100%);
}

.testimonial-card.slide-out-right {
    opacity: 0;
    transform: translateX(100%);
}

.testimonial-card.slide-in-left {
    opacity: 0;
    transform: translateX(-100%);
    animation: slideInLeft 0.4s ease-in-out forwards;
}

.testimonial-card.slide-in-right {
    opacity: 0;
    transform: translateX(100%);
    animation: slideInRight 0.4s ease-in-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Indicador visual de swipe para móvil */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    z-index: 5;
}

.swipe-indicator.left {
    left: 20px;
}

.swipe-indicator.right {
    right: 20px;
}

.swipe-indicator.show {
    opacity: 1;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--color-accent);
}

.testimonial-author p {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-indicators span {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonial-indicators span.active {
    background-color: var(--color-secondary);
    transform: scale(1.3);
}

/* Mejoras para dispositivos táctiles */
@media (max-width: 768px) {
    .testimonials-slider {
        touch-action: pan-y; /* Permite scroll vertical pero controla el horizontal */
        cursor: default;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-indicators {
        margin-top: 25px;
    }
    
    .testimonial-indicators span {
        width: 12px;
        height: 12px;
        margin: 0 8px;
    }
    
    /* Hacer los indicadores de swipe más visibles en móvil */
    .swipe-indicator {
        font-size: 1.5rem;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .swipe-indicator.left {
        left: 10px;
    }
    
    .swipe-indicator.right {
        right: 10px;
    }
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background-color: var(--background-light);
}

.cta-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--color-gray);
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

.cta-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
}

.shadow-img {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

/* Footer */
.site-footer {
    padding: 80px 0 20px;
    background-color: var(--color-primary);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-logo {
    width: 170px;
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.7;
    margin-bottom: 0;
}

.footer-links h3,
.footer-contact h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    margin-bottom: 15px;
    opacity: 0.7;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    width: 100%; /* Asegurar que ocupe todo el ancho disponible */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

/* Estilo específico para el botón de Facebook */
.facebook-link {
    background-color: #1877F2; /* Color oficial de Facebook */
    color: white;
}

.facebook-link:hover {
    background-color: #1877F2; /* Mantener el color al hacer hover */
    transform: translateY(-5px) scale(1.1); /* Efecto al pasar el cursor */
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4); /* Sombra con el color de Facebook */
}

/* Botón Facebook Flotante/Movible */
.facebook-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #1877F2; /* Color oficial de Facebook */
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative; /* Permite posicionamiento relativo al contenedor */
    z-index: 10; /* Asegura que esté por encima de otros elementos */
}

.facebook-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.4);
}

.facebook-button i {
    font-size: 24px;
}

/* Clases de posicionamiento que puedes añadir junto con .facebook-button */
.fb-top-right {
    position: fixed;
    top: 20px;
    right: 20px;
}

.fb-top-left {
    position: fixed;
    top: 20px;
    left: 20px;
}

.fb-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.fb-bottom-left {
    position: fixed;
    bottom: 20px;
    left: 20px;
}

/* También puedes posicionarlo junto al WhatsApp si prefieres */
.fb-beside-wsp {
    position: fixed;
    bottom: 90px; /* Justo encima del botón de WhatsApp */
    right: 20px;
}

/* Botón Facebook como imagen de fondo */
.fb-background {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #1877F2;
    background-image: url('../img/facebook-icon.png'); /* Asegúrate de tener esta imagen */
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

.fb-background:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.4);
}

.social-links {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    gap: 15px;
    margin-top: 20px;
    width: 100%; /* Asegurar que ocupe todo el ancho disponible */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
}

/* Botón de redes sociales en el footer */
.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #1877F2; /* Color oficial de Facebook */
    color: white;
    border-radius: 50%;
    font-size: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.footer-social-links a.instagram {
    background-color: #E4405F; /* Color oficial de Instagram */
}

.footer-social-links a.tiktok {
    background-color: #000000; /* Color oficial de TikTok */
}

.footer-social-links a.instagram:hover {
    box-shadow: 0 5px 15px rgba(228, 64, 95, 0.4);
}

.footer-social-links a.tiktok:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 0;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .hero-content, .hero-image {
        text-align: center;
        max-width: 100%;
    }
    
    .cta-section .container {
        grid-template-columns: 1fr;
    }
    
    .cta-image {
        order: -1;
        text-align: center;
    }
    
    .cta-image img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        box-shadow: var(--box-shadow);
        transition: left var(--transition-medium);
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 30px 0;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: flex; /* Cambiado a flex para centrar mejor los elementos */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 3.5rem; /* Reducimos para pantallas medianas pero sigue siendo grande */
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }
    
    .timeline-item .timeline-dot {
        left: 0 !important;
    }
    
    .hero-container {
        padding-top: 120px; /* Un poco menos de padding en móviles */
    }
    
    .hero h1,
    .hero-section.with-nav h1 {
        font-size: 3rem; /* Reducimos un poco en pantallas pequeñas */
    }
    
    .hero .subtitle,
    .hero-section.with-nav .subtitle {
        font-size: 1.8rem;
    }
    
    /* Ajustes para el menú móvil mejorado */
    /* Botón de menú */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 6px 0;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Navegación principal */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Comienza fuera de la pantalla */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(22, 65, 147, 0.95);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 70px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav li {
        margin: 15px 0;
        text-align: left;
    }
    
    .main-nav li a {
        color: white;
    }
}

/* Ajustes mejorados para el menú móvil */
@media (max-width: 768px) {
    /* Botón hamburguesa */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    /* Efecto de animación para el botón hamburguesa */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Navegación principal en móviles */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Comienza fuera de la pantalla */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-primary);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    /* Importante: clase que controla la visibilidad del menú */
    .main-nav.open {
        right: 0; /* Muestra el menú */
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    .main-nav li {
        margin: 0;
        width: 100%;
    }
    
    .main-nav li a {
        display: block;
        padding: 15px 20px;
        color: white;
        text-align: left;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:hover::after {
        width: 0; /* Elimina el subrayado en móviles */
    }
    
    .nav-link.highlight {
        background-color: var(--color-accent);
    }
}

/* Ajuste adicional para dispositivos muy pequeños */
@media (max-width: 350px) {
    .main-nav {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem; /* Más pequeño en móviles pero aún visible */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .program-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1,
    .hero-section.with-nav h1 {
        font-size: 2.5rem; /* Más pequeño en pantallas muy pequeñas */
    }
    
    .hero .subtitle,
    .hero-section.with-nav .subtitle {
        font-size: 1.5rem;
    }
}

/* Estilos para la navegación integrada en el héroe - CORREGIDO */
.hero-section.with-nav {
    height: 100vh;
    min-height: 600px;
    background-image: url('asistente_veterinario.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.navbar-container {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 5px 0; /* Reducido para mejor alineación con el logo grande */
    background-color: transparent;
    transition: all 0.3s ease;
}


.navbar-container .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 150px; /* Asegura espacio vertical suficiente para el logo */
}

/* Aseguramos que el logo esté correctamente centrado verticalmente */
.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
    margin-left: -31px; /* Ajuste fijo para alinear con el texto */
}

@media (max-width: 768px) {
    .logo {
        margin-left: -10px; /* Ajuste menor para pantallas más pequeñas */
    }
}

@media (max-width: 480px) {
    .logo {
        margin-left: -5px; /* Ajuste adicional para pantallas muy pequeñas */
    }
}

/* Ajustes para la navegación y sus elementos */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 25px;
}

/* Ajustes de media queries para responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 6px 0;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(22, 65, 147, 0.95); /* Fondo semitransparente para el menú móvil */
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 70px;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .hero-container {
        padding-top: 110px;
    }
    
    .hero h1,
    .hero-section.with-nav h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle,
    .hero-section.with-nav .subtitle {
        font-size: 1.5rem;
    }
    
    /* Ajustes para tarjetas de cursos */
    .program-card-image {
        height: 150px; /* Reducido para móviles */
    }
    
    /* Ajustar logo en móvil */
    .logo-img {
        height: 120px !important; /* Aumentado de 100px para mejor visibilidad */
    }
    
    .navbar-container .container {
        min-height: 110px;
    }
    
    /* Ajustes para el footer en móvil */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Móviles (menos de 576px) */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .program-cards {
        grid-template-columns: 1fr;
    }
    
    .hero h1,
    .hero-section.with-nav h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle,
    .hero-section.with-nav .subtitle {
        font-size: 1.3rem;
    }
}

/* Móviles pequeños (menos de 400px) */
@media (max-width: 400px) {
    .hero h1,
    .hero-section.with-nav h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle,
    .hero-section.with-nav .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        margin-top: 30px;
    }
    
    .hero-image, .floating-container {
        max-width: 280px;
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Ajustar padding vertical en secciones */
    .features-section,
    .program-section,
    .journey-section,
    .testimonials-section,
    .cta-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    /* Ajustar logo en móviles muy pequeños */
    .logo-img {
        height: 100px !important; /* Aumentado de 80px para mantener visibilidad incluso en pantallas muy pequeñas */
    }
    
    .navbar-container .container {
        min-height: 90px;
    }
}

/* Dispositivos con pantalla ancha */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.4rem;
    }
}

/* Orientación en modo paisaje para dispositivos móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 450px;
        padding: 100px 0;
    }
    
    .hero-container {
        flex-direction: row;
        padding-top: 90px;
    }
    
    .hero-image, .floating-container {
        max-width: 200px;
        margin-top: 0;
    }
    
    .hero-content {
        margin-top: 0;
    }
    
    .navbar-container .container {
        min-height: auto;
        padding: 10px 0;
    }
    
    .logo-img {
        height: 90px !important; /* Aumentado de 70px para mejor visibilidad en dispositivos extra pequeños */
    }
}

/* Centrar contenido para dispositivos móviles */
@media (max-width: 768px) {
    body {
        text-align: center; /* Centrar todo el texto */
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Una columna para centrar las tarjetas */
    }

    .program-cards {
        justify-content: center; /* Centrar las tarjetas de programas */
    }

    .timeline {
        text-align: center; /* Centrar el texto de la línea de tiempo */
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 20px; /* Ajustar padding para centrado */
    }

    .timeline-dot {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .cta-section .container {
        text-align: center;
        grid-template-columns: 1fr; /* Una columna para centrar contenido */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Una columna para centrar el footer */
        text-align: center;
    }

    .footer-links ul {
        padding: 0;
        text-align: center;
    }

    .footer-contact address {
        text-align: center;
    }

    .social-links {
        justify-content: center; /* Centrar los íconos sociales */
    }
}

/* Side Menu - Actualizado */
.side-menu {
    position: fixed;
    top: 0;
    right: -280px; /* Cambiado de left a right para que aparezca desde la derecha */
    width: 280px;
    height: 100%;
    background-color: var(--color-primary);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 80px 0 30px; /* Aumentado el padding superior para evitar que se oculte bajo el navbar */
}

.side-menu.open {
    right: 0; /* Cambiado de left a right */
}

.side-menu-list {
    list-style: none;
    padding: 0;
}

.side-menu-list li {
    margin-bottom: 10px;
}

.side-menu-list li a {
    color: white; /* Cambiado a blanco para mejor contraste sobre fondo azul */
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.side-menu-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

.side-menu-list li a i {
    margin-right: 10px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--color-primary);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
}

.mobile-nav-toggle.open {
    background: var(--color-accent);
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
}

/* Ajustes para el hero background en lugar de imagen como elemento */
.hero-background {
    flex: 1;
    max-width: 450px;
    height: 450px;
    margin-top: 50px;
    background-image: url('asistente_veterinario.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 5px solid #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

/* Agregamos una animación float si no existe */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Botón de cierre del side menú */
.side-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-text);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.side-menu-close:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-50px);
    transition: all 0.3s ease;
    text-align: center;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.modal-body {
    padding: 2rem;
    color: var(--text-color);
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

.contact-info {
    background: var(--background-medium);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.contact-info p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--color-primary);
}

.modal-footer {
    padding: 1.5rem 2rem 2rem;
}

/* Animación de entrada del modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive para el modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA IPHONE ===== */

/* iPhone SE y dispositivos pequeños (375px y menos) */
@media screen and (max-width: 375px) and (-webkit-min-device-pixel-ratio: 2) {
    /* Hero Section - Ajustar imagen de fondo */
    .hero-background {
        background-size: cover !important;
        background-position: center center !important;
        transform: none !important;
        min-height: 300px;
    }
    
    .hero-section {
        min-height: 100vh;
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
    
    /* Program cards - Ajustar imágenes */
    .program-card-image {
        height: 180px !important;
        overflow: hidden;
    }
    
    .program-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        transform: none !important;
    }
    
    /* Feature cards - Ajustar iconos y contenido */
    .feature-icon {
        font-size: 2.5rem !important;
    }
    
    .feature-card h3 {
        font-size: 1.1rem !important;
    }
    
    /* CTA Section imagen */
    .cta-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        max-height: 300px !important;
    }
    
    /* Testimonial images */
    .testimonial-img {
        width: 50px !important;
        height: 50px !important;
        object-fit: cover !important;
    }
}

/* iPhone 12, 13, 14 y dispositivos similares (390px - 428px) */
@media screen and (min-width: 376px) and (max-width: 428px) and (-webkit-min-device-pixel-ratio: 2) {
    /* Hero Section */
    .hero-background {
        background-size: cover !important;
        background-position: center 30% !important;
        min-height: 350px;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    /* Program cards */
    .program-card-image {
        height: 200px !important;
    }
    
    .program-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* CTA Section */
    .cta-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        max-height: 350px !important;
    }
}

/* iPhone Pro Max y dispositivos grandes (429px y más) */
@media screen and (min-width: 429px) and (max-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    /* Hero Section */
    .hero-background {
        background-size: cover !important;
        background-position: center 25% !important;
        min-height: 400px;
    }
    
    /* Program cards */
    .program-card-image {
        height: 220px !important;
    }
    
    .program-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Orientación landscape para iPhone */
@media screen and (max-height: 480px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-background {
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-content .subtitle {
        font-size: 1rem !important;
    }
}

/* Estilos generales para todos los iPhone */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    /* Optimizar todas las imágenes */
    img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    /* Mejorar el rendimiento del scroll */
    .hero-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Footer logo */
    .footer-logo {
        max-width: 120px !important;
        height: auto !important;
    }
    
    /* Logo principal */
    .logo-img {
        max-height: 60px !important; /* Aumentado de 40px para mejor visibilidad en móviles */
        width: auto !important;
    }
    
    /* Ajustar modal para iPhone */
    .modal-content {
        width: 95% !important;
        margin: 1rem !important;
    }
    
    .success-icon {
        font-size: 3rem !important;
    }
}

/* Fix para el zoom automático en inputs en iPhone */
@media screen and (max-width: 480px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px !important; /* Previene el zoom automático */
    }
}

/* Mejoras específicas para Safari en iPhone */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll !important;
    }
    
    .program-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Fix para el padding safe area en iPhone con notch */
    .navbar-container {
        padding-top: env(safe-area-inset-top);
    }
    
    .site-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}
