/* Reseteo y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #186521; /* Color verde de la captura - como referencia */
    --accent-color: #FF9E44; /* Naranja claro */
    --beige-color: #F5E8C7; /* Beige */
    --dark-color: #333333; /* Negro / oscuro */
    --gray-color: #666;
    --light-color: #f4f4f4;
    --white-color: #fff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #333;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Esto evitará el scroll horizontal en toda la página */
    max-width: 100vw; /* Limite crítico para evitar desbordamiento */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    scroll-behavior: smooth;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    overflow-x: hidden; /* Prevenir scroll horizontal */
    box-sizing: border-box; /* Asegurarse de que padding no sume al ancho */
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 158, 68, 0.4);
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.btn:hover::after {
    animation: ripple 1s ease-out;
}
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn:hover {
    background: #e68c30; /* Naranja más oscuro al hover */
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn.outline:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

.btn.black-btn {
    background: var(--dark-color);
    color: var(--white-color);
}

.btn.black-btn:hover {
    background: #222;
}

/* Animaciones para cambio de idioma */
[data-i18n] {
    transition: opacity 0.3s ease;
}

.transitioning [data-i18n] {
    opacity: 0;
}

/* Language Selector */
.lang-dropdown {
    position: relative;
    margin-left: 20px;
    margin-right: 0; /* Modificado para evitar desplazamiento */
    z-index: 1001; /* Asegurar que esté por encima */
}

.selected-lang {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.selected-lang img {
    width: 32px;
    height: auto;
    border-radius: 4px;
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 48px;
}

.lang-options img {
    width: 32px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px;
}

.lang-options img:hover {
    transform: scale(1.1);
}

.lang-dropdown:hover .lang-options {
    display: flex;
}

/* Ocultar selector de idiomas en móvil */
.desktop-only {
    display: block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0; /* Asegurar que está alineado a la izquierda */
    width: 100%;
    background-color: transparent;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: none; 
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9); /* Un poco más opaco */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header.scrolled .nav ul li a {
    color: var(--dark-color); /* Texto oscuro al hacer scroll */
}
.header.scrolled .logo h1 {
    color: var(--dark-color); /* Texto oscuro al hacer scroll */
}
.header.scrolled .mobile-menu-toggle {
    color: var(--dark-color); /* Color oscuro al hacer scroll */
}
.header.scrolled .lang-options {
    background: rgba(255, 255, 255, 0.8); /* Fondo claro semi-transparente al hacer scroll */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0; 
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: -35px; /* Aumentado para mover más a la izquierda */
}

.logo-img {
    height: 80px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .logo-img {
        height: 35px;
    }
    .logo {
        margin-left: 0; /* Eliminar margen negativo en móvil */
    }
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--white-color);
}

.highlight-it {
    color: var(--accent-color);
}
.it-highlight {
    color: var(--primary-color); /* Color verde */
    font-weight: 800; /* Más negrita */
}
.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav ul li a {
    color: var(--white-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}
.nav ul li a:hover, 
.nav ul li a.active {
    color: var(--white-color);
    transform: scale(1.2);
    background-color: transparent;
}
.header.scrolled .nav ul li a {
    color: var(--dark-color); /* Siempre mantener blanco */
}
.header.scrolled .nav ul li a:hover, 
.header.scrolled .nav ul li a.active {
    color: var(--dark-color);
    transform: scale(1.2);
    background-color: transparent;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 0; /* Modificado para evitar desbordamiento */
    margin-left: auto; /* Empuja los elementos a la derecha */
    z-index: 1000; /* Asegurar que está por encima de otros elementos */
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white-color);
    z-index: 1002; /* Asegurar que está encima de todo */
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Permite scroll si el contenido es largo */
    max-width: 80vw; /* No más ancho que el 80% de la ventana */
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-color);
}

.mobile-menu-header .logo {
    margin-left: 0; /* Eliminar cualquier margen negativo */
}

.mobile-menu-header .logo-img {
    height: 50px; /* Tamaño fijo para evitar problemas */
    max-width: 70%; /* Limitar para que no se salga */
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    z-index: 1003; /* Asegurar que está encima de todo */
}

.mobile-menu-content {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    padding: 1rem;
    display: block;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background-color: var(--light-color);
}

.mobile-menu-footer {
    padding: 1rem;
    border-top: 1px solid var(--light-color);
}

.mobile-lang-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-lang-options {
    display: flex;
    gap: 0.5rem;
}

.mobile-lang-options img {
    width: 30px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Hero Section - Estilo similar a la imagen de referencia */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    pointer-events: none;
}
/* Solución para ocultar controles de video en móvil */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Evitar interacción con el video */
.video-container {
    pointer-events: none;
}

#background-video {
    pointer-events: none;
}

/* Ajustes adicionales para dispositivos móviles */

@media (max-width: 768px) {
    .hero-overlay {
        background: rgba(20, 20, 40, 0.6); /* Un poco más oscuro en móvil */
    }
    
    .hero-content {
        padding-top: 80px;
        width: 90%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    #background-video {
        width: 100%;
        height: 100%;
        object-position: center center;
        transform: none;
        top: 0;
        left: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20 , 20, 40, 0.4); /* Overlay oscurecido para mejor legibilidad */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white-color);
    text-align: center;
    padding-top: 120px; /* Separar más del header */
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white-color); /* Cambiado a blanco puro para mejor legibilidad */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white-color);
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.text-content {
    margin-bottom: 0; /* Quitado el margen inferior */
    padding: 20px;
    border-radius: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Aumentada la sombra del texto */
}

.europe-text {
    margin-top: 25px; /* Espacio añadido después del texto principal */
    margin-bottom: 25px; /* Espacio añadido antes del botón */
}

.btn-container {
    text-align: center;
    margin-top: 30px; /* Aumentado el espacio antes del botón */
}

.contact-btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--white-color);
    background: transparent;
    font-size: 1rem;
    letter-spacing: 2px;
    display: inline-block;
    font-weight: 700;
    color: var(--white-color); /* Asegurar que el texto del botón es blanco */
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-color); /* Mantener el color blanco al hacer hover */
}

/* Services Section */
.services-new {
    position: relative;
    padding: 5rem 0;
    background-color: var(--white-color);
    text-align: center;
    overflow: hidden; /* Prevenir desbordamiento */
    background-image: url('https://www.transparenttextures.com/patterns/paper.png');
    /* Esta textura es extremadamente sutil y apenas perceptible */
}

.services-new .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
.services-new .card {
    position: relative;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 350px;
    height: 380px;
}
.services-new .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.6s ease;
}
.services-new .card:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}
.services-new .card h3, 
.services-new .card p {
    padding: 0 25px;
    transition: all 0.5s ease;
}
.services-new .card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0 15px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 12px;
}
.services-new .card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.services-new .card:hover h3::after {
    width: 80px;
}
.services-new .card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-color);
}
/* Eliminar el overlay con colores verde y naranja */
.services-new .card::after {
    content: none;
}
.services-new .card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
/* Agregar efecto de sombra mejorada en la base */
.services-new .card::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 5%;
    width: 90%;
    height: 15px;
    background: rgba(8, 59, 4, 0.1);
    filter: blur(10px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.services-new .card:hover::before {
    opacity: 1;
}
/* Agregar línea decorativa sutil en el borde superior */
.services-new .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #f8f8f8, #e8e8e8, #f8f8f8);
    z-index: 1;
    transition: all 0.3s ease;
}
.services-new .card:hover::after {
    background: linear-gradient(to right, #e0e0e0, #f0f0f0, #e0e0e0);
}
/* Remover estilos de overlay que no se usarán */
.services-new .card .overlay-content {
    display: none;
}



/* Título de sección moderno con subrayado */
.section-title {
    font-size: 2.5rem;
    color: var(--dark-color) !important; /* Asegurar que sea negro */
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

.services-new p {
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--gray-color);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    width: 320px;
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    margin: 20px 0 10px;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.card p {
    padding: 0 20px 20px;
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0; /* Eliminar margen para evitar desbordamiento */
}

/* Benefits Section con fondo de imagen */
.benefits-section {
    position: relative;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
    background-color: transparent;
}

.benefits-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Image/Imagenes/hojanaranjverd.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(2px); /* Difuminado para el fondo */
    z-index: -1;
}

/* Capa oscura para mejor legibilidad */
.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Fondo oscuro semi-transparente */
    z-index: -1;
}

/* Título principal en beige con subrayado */
.benefits-section .section-title {
    color: var(--beige-color) !important; /* Cambiado a color beige */
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.benefits-section .section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color); /* Color naranja del subrayado */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.benefits-section .section-title:hover::after {
    width: 100px;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-item {
    flex: 1 1 300px;
    background-color: rgba(255, 255, 255, 0.7); /* Tarjetas semi-transparentes */
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px); /* Efecto de desenfoque para las tarjetas */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.8); /* Más opaco al pasar el cursor */
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefit-item p {
    color: var(--dark-color);
    line-height: 1.6;
}

/* About Us Section - centrado y con texto a la izquierda, imagen a la derecha */
/* Mejoras para la sección About Us - Sin barra de scroll */
.about-us {
    position: relative;
    padding: 80px 0;
    background-color: #fff;
}
.about-us .container {
    overflow: visible;
}
.about-us-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}
.about-us .content {
    flex: 1;
    min-width: 300px;
}
.about-us .content p {
    font-size: 16px;
    line-height: 1.8;
    position: relative;
    padding-left: 15px;
}
/* Línea vertical junto al texto */
.about-us .content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}
.about-us .content strong {
    color: var(--primary-color);
    font-weight: 700;
}
/* Nuevo estilo para la imagen con efecto de sombra */
.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}
.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    opacity: 0.8;
}
.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.about-image:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
}
.about-image:hover img {
    transform: scale(1.05);
}
.about-us .section-title {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}
.about-us .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}
/* Estilos para móviles */
@media (max-width: 768px) {
    .about-us-content {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
}
/* Eliminar cualquier barra de scroll */
.about-us * {
    overflow: visible;
}

/* Contact Section */
.contact-section {
    position: relative;
    padding: 5rem 0;
    background: url('Image/Imagenes/Fondo-ordena.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white-color);
    text-align: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section .section-title {
    color: var(--white-color) !important;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.contact-section .section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.contact-section .section-title:hover::after {
    width: 100px;
}

.contact-section p {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reducido el tamaño mínimo */
    grid-gap: 20px; /* Menos espacio entre tarjetas */
    margin-bottom: 3rem;
    overflow: visible;
  height: auto;
}
.contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px; /* Reducido el padding */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.contact-icon {
    background-color: var(--accent-color);
    width: 40px; /* Más pequeño */
    height: 40px; /* Más pequeño */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px; /* Menos margen */
}
.contact-icon i {
    color: var(--white-color);
    font-size: 1rem; /* Fuente más pequeña */
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.contact-details {
    text-align: left;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-btn-container {
    margin-top: 2rem;
}
/* Footer */
.footer {
    background-color: var(--white-color);
    color: var(--dark-color);
    padding: 1.2rem 0 0.8rem; /* Padding más pequeño */
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem; /* Reducido más el espacio */
    margin-bottom: 0.8rem; /* Margen inferior más pequeño */
}

.footer-logo {
    margin-bottom: 0.3rem; /* Margen más pequeño */
}

.footer-logo-img {
    height: 45px; /* Imagen más pequeña */
    width: auto;
}

.social-icons {
    display: flex;
    gap: 0.8rem; /* Espaciado reducido */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Iconos más pequeños */
    height: 30px; /* Iconos más pequeños */
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px); /* Movimiento más sutil */
}

.social-icons i {
    font-size: 0.8rem; /* Tamaño más pequeño */
    color: var(--dark-color);
}

.footer-bottom {
    padding-top: 0.6rem; /* Padding reducido */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom p {
    font-size: 0.7rem; /* Texto más pequeño */
    color: var(--gray-color);
    margin-bottom: 0; /* Eliminar margen inferior */
}

/* Agregar media query para móviles */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0 0.6rem;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .social-icons a {
        width: 28px;
        height: 28px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .benefit-item {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .nav {
        display: none !important; /* Ocultar completamente el menú horizontal en móviles */
    }
    .desktop-only {
        display: none; /* Ocultar selector de idioma en móvil */
    }
    .mobile-menu-toggle {
        display: block; /* Asegurar que el botón de menú hamburguesa se muestre */
    }
    .benefit-item {
        flex: 1 1 100%;
    }
    .about-us-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        justify-content: center;
    }
    .contact-card {
        flex: 1 1 100%;
    }
    
    /* Separar el header-right y reubicar el toggle */
    .header-right {
        justify-content: flex-end; /* Alinear elementos a la derecha */
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .card {
        width: 100%;
    }
    
    .mobile-menu {
        width: 250px;
    }
}
/* 🔧 Corrección completa para tarjetas flip */
.card {
    perspective: 1000px;
    width: 320px;
    min-height: 450px; /* Altura mínima flexible */
    display: flex;
    flex-direction: column;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    position: relative;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-front {
    background: var(--white-color);
    z-index: 2;
    overflow: hidden;
}

.card-front img {
    height: 140px; /* 🔽 Menos altura visual */
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px; /* 🔽 menos espacio debajo */
    overflow: hidden;
}

.card-front h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px; /* 🔽 menos separación */
    color: var(--dark-color);
}

.card-front p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--gray-color);
}

.card-back {
    background: var(--light-color);
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
}



/* Este CSS elimina específicamente los indicadores de scroll down */

/* Eliminar flechas de scroll down */
#services::after,
#contact::after,
.services-new::after,
.contact-section::after,
[class*="scroll-indicator"],
[class*="scroll-down"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Asegurarse de que no haya pseudo-elementos con flechas */
#services::before,
#contact::before,
.services-section::before,
.contact-section::before {
    display: none !important;
}

/* Quitar animaciones de bounce que puedan estar añadidas */
.bounce {
    animation: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Mejorar el comportamiento de las animaciones AOS */
[data-aos-delay="100"] {
    transition-delay: 100ms !important;
}

[data-aos-delay="200"] {
    transition-delay: 200ms !important;
}

[data-aos-delay="300"] {
    transition-delay: 300ms !important;
}

/* Solución para eliminar barras de desplazamiento no deseadas */
/* 1. Ocultar todas las barras de desplazamiento en secciones específicas */
.services-section, 
.contact-section,
.portfolio-section,
.benefits-section,
.about-us,
.cards,
.contact-cards,
.benefits-grid,
.portfolio-grid,
[data-aos] {
    overflow: hidden !important;
}
/* 2. Eliminar los scroll indicators que podrían estar causando el problema */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
/* 3. Forzar que el contenido permanezca dentro de sus contenedores */
* {
    max-width: 100%;
}
/* 4. Asegurar que AOS no cause desbordamientos */
[data-aos] {
    overflow: visible !important;
}