/* Variables CSS para la paleta de colores y tipografía */
:root {
    --color-primary: #194639; /* Verde oscuro (del logo) */
    --color-secondary: #ffc107; /* Amarillo/naranja (del logo) */
    --color-accent: #007bff; /* Azul vibrante para acentos y botones */
    --color-text: #333; /* Texto principal */
    --color-text-light: #666; /* Texto secundario */
    --color-bg-light: #f4f4f4; /* Fondo para secciones */
    --color-bg-white: #ffffff; /* Fondo blanco */

    --font-heading: 'Montserrat', 'Arial', 'Helvetica Neue', sans-serif;
    --font-body: 'Roboto', 'Arial', 'Helvetica Neue', sans-serif;
}

/* Base y tipografía */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

.section {
    padding: 80px 5%;
}

/* Botón flotante de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: var(--color-bg-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Header y Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    z-index: 999;
    min-height: 7rem;
}

.logo-container {
    height: 8rem;
    display: flex;
    align-items: center;
}

.logo {
    height: 6rem;
    max-height: 6rem;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    height: 100%;
}

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

.nav-links li a {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.language-selector {
    display: flex;
    align-items: center;
    height: 100%;
}

#language-select {
    border: 2px solid var(--color-primary);
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    height: auto;
    vertical-align: middle;
}

#language-select:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#language-select:focus {
    box-shadow: 0 0 0 3px rgba(25, 70, 57, 0.2);
}

#language-select option {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    font-weight: 700;
    padding: 8px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
}

.hamburger:hover {
    background-color: rgba(25, 70, 57, 0.1);
}

.hamburger.active:hover::before {
    color: #d32f2f;
    transform: scale(1.1);
}

/* Ícono de close cuando está activo */
.hamburger.active::before {
    content: "\f00d"; /* Font Awesome times icon */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif;
    font-weight: 900;
    position: absolute;
    font-size: 18px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: all 0.2s ease;
}

/* Fallback si Font Awesome no carga */
@supports not (font-family: "Font Awesome 6 Free") {
    .hamburger.active::before {
        content: "×";
        font-family: Arial, sans-serif;
        font-size: 24px;
        font-weight: normal;
    }
}

/* Ocultar líneas cuando está activo */
.hamburger.active .line {
    opacity: 0;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Slider (Hero) */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 66px; /* Ajuste para el header fijo */
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-item-1 {
    background-image: linear-gradient(rgba(25, 70, 57, 0.4), rgba(0, 0, 0, 0.6)), url('../img/slide_1.png');
}

.slider-item-2 {
    background-image: linear-gradient(rgba(0, 123, 255, 0.3), rgba(0, 0, 0, 0.5)), url('../img/slide_2.png');
}

.slider-content {
    text-align: center;
    color: var(--color-bg-white);
    padding: 20px;
    max-width: 800px;
}

.slider-content h2 {
    color: var(--color-bg-white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    margin: 0 0 1rem 0;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
    padding: 0 1rem;
    /* Asegurar que el texto sea completamente visible */
    white-space: normal;
    overflow: visible;
}

.slider-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 1rem;
    max-width: 100%;
    animation: slideInFade 1.4s ease-out 0.2s both;
}

.cta-button {
    margin-top: 1rem;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideInFade 1.6s ease-out 0.4s both;
    text-decoration: none;
    display: inline-block;
    color: var(--color-bg-white);
    background-color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: var(--color-bg-white);
    text-decoration: none;
}

/* Slider clickeable */
.hero-slider {
    cursor: pointer;
    user-select: none;
}

.hero-slider:active {
    transform: scale(0.995);
    transition: transform 0.1s ease;
}

/* Sección Nosotros */
.nosotros-section {
    background-color: var(--color-bg-light);

    h1 {
        text-align: center;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.mision-vision-card {
    background-color: var(--color-bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mision-vision-card:hover {
    transform: translateY(-10px);
}

.mision-vision-card h3 {
    text-align: center;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 10px;
    margin-top: 0;
}

/* Sección Servicios */
.servicios-section {
    background-color: var(--color-bg-white);
}

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

.service-card {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

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

/* Sección Proyectos */
.proyectos-section {
    background-color: var(--color-bg-light);
}

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

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(var(--color-primary-rgb), 0.85); /* Asumimos un color en RGB */
    background: linear-gradient(transparent, var(--color-primary));
    color: var(--color-bg-white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin-top: 0;
    color: var(--color-bg-white);
    font-size: 1.4rem;
}

/* Sección Vacantes */
.vacantes-section {
    background-color: var(--color-bg-white);
}

.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.vacancy-card {
    background-color: var(--color-bg-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.vacancy-card h4 {
    margin: 0;
    color: var(--color-primary);
}

.vacancy-card p {
    margin: 0;
    color: var(--color-text-light);
}

.no-vacancies-msg {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 2rem;
}

/* Botones genéricos */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text);
    border: none;
}

.btn-secondary:hover {
    background-color: #fdd835;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Sección Contacto */
.contacto-section {
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.contact-info p strong {
    color: var(--color-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Efecto de resaltado para el formulario de contacto */
.contact-form-container.highlight-form {
    animation: pulseHighlight 2s ease-in-out;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    border-radius: 10px;
}

@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 0 rgba(255, 193, 7, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 193, 7, 0.4);
        transform: scale(1);
    }
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: scale(1.2);
}

.map-container {
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    width: 100%;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.powered-by-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

.powered-by-link:hover {
    color: var(--color-secondary) !important;
    transform: translateY(-1px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.aviso-privacidad {
    cursor: pointer;
}

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

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

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

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

/* Clases de animación */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.project-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Eliminamos la animación typewriter para evitar texto cortado */
.slider-content h2 {
    /* Removemos overflow hidden y white-space nowrap que cortaban el texto */
    overflow: visible;
    white-space: normal;
    /* Mantenemos una animación sutil de aparición */
    animation: slideInFade 1.2s ease-out;
}

/* Nueva animación suave para el título */
@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover effects mejorados - sin sombreado amarillo */
.nav-links li a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* ========================================
   PWA COMPONENTS STYLES
======================================== */

/* Botón de instalación PWA en footer */
.pwa-install-button {
    background: linear-gradient(135deg, var(--color-secondary), #ffcc02);
    color: var(--color-text);
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 5px 0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.pwa-install-button.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.pwa-install-button.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.pwa-install-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, #ffcc02, var(--color-secondary));
}

.pwa-install-button i {
    font-size: 1rem;
}

/* Banner de actualización */
.update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-secondary), #ffcc02);
    color: var(--color-text);
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.update-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    gap: 15px;
}

.update-btn {
    background: var(--color-primary);
    color: var(--color-bg-white);
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-btn:hover {
    background: #0f3529;
    transform: translateY(-1px);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Toast de estado de red */
.network-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-primary);
    color: var(--color-bg-white);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.network-toast.show {
    transform: translateX(-50%) translateY(0);
}

.network-toast.success {
    background: #28a745;
}

.network-toast.warning {
    background: #ffc107;
    color: var(--color-text);
}

.network-toast.info {
    background: #17a2b8;
}

/* Animaciones PWA */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

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

/* Indicador de instalación PWA */
.pwa-installed-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-primary);
    color: var(--color-bg-white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    animation: pulse 0.6s ease-in-out;
}

/* Splash screen personalizado */
.pwa-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.pwa-splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.pwa-splash .logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.pwa-splash .loading-text {
    color: var(--color-bg-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.pwa-splash .loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.pwa-splash .loading-progress {
    height: 100%;
    background: var(--color-secondary);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Responsive PWA components */
@media (max-width: 768px) {
    .update-content {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .network-toast {
        left: 20px;
        right: 20px;
        transform: translateY(100px);
        text-align: center;
    }
    
    .network-toast.show {
        transform: translateY(0);
    }
}

/* Responsive design mejorado */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsividad */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .navbar {
        padding: 1rem 5%;
        position: relative;
        min-height: auto;
        height: auto;
    }
    .logo-container {
        height: 6rem;
        display: flex;
        align-items: center;
    }
    .logo {
        height: 5rem;
        max-height: 5rem;
        width: auto;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #ddd;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
        height: auto;
        align-items: stretch;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0;
        display: block;
        height: auto;
        align-items: stretch;
    }
    .nav-links li a {
        font-size: 1.1rem;
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        height: auto;
        align-items: center;
        justify-content: center;
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .language-selector {
        padding: 10px 20px;
        justify-content: center;
        height: auto;
        display: flex;
        align-items: center;
    }
    #language-select {
        font-size: 1rem;
        padding: 10px 15px;
        min-width: 120px;
        display: inline-block;
        height: auto;
        vertical-align: middle;
    }
    .hamburger {
        display: flex;
        z-index: 1000;
        position: relative;
    }
    
    .hamburger .line {
        margin: 2px 0;
    }
    /* Las líneas se ocultan con opacity: 0 cuando está activo */
    .hamburger.active .line {
        opacity: 0;
        transform: scale(0.8);
    }
    .section {
        padding: 60px 5%;
    }
    /* Optimizar slider en mobile */
    .slider-content h2 {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
        padding: 0 0.5rem !important;
        text-align: center !important;
        /* Asegurar que no se corte el texto */
        white-space: normal !important;
        overflow: visible !important;
        animation: slideInFade 1s ease-out !important;
        margin-bottom: 1rem !important;
    }
    .slider-content {
        padding: 15px !important;
    }
    .hero-slider {
        margin-top: 78px; /* Ajuste para navbar mobile */
    }
}