/* Reset básico */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Ajusta este valor según la altura de tu header */
}

body, h1, h2, h3, p, ul, li, img, a, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

body > section:first-of-type {
    margin-top: 60px; /* Ajusta este valor según la altura de tu header */
}

/* Header y Navegación */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Estilos para el menú */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
    display: inline-block;
    margin: 0 1rem;
}

nav ul li a,
nav ul li .dropbtn {
    background-color: transparent;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

nav ul li a:hover,
nav ul li .dropbtn:hover,
nav ul li a.active {
    background-color: #575757;
    border-radius: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-selector button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.arrow-down {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.language-selector.active .arrow-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 5px;
    min-width: 120px;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-dropdown li {
    padding: 8px 15px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
}

.language-dropdown li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Estilos para el menú en pantallas pequeñas */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}
/* Hero Section */
.flyer {
    background: url('image/flyer.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[data-src].loaded {
    opacity: 1;
}

/* Secciones Generales */
section {
    padding: 2rem;
    margin-top: 60px; /* Ajuste para el header fijo */
    text-align: center;
}

/* Carrusel General */
.location-carousel, .carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-images {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-item {
    position: relative;
    flex: 0 0 100%;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-item img.loading {
    opacity: 0.5;
}

.carousel-item img.loaded {
    opacity: 1;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
}

.carousel-images::-webkit-scrollbar {
    display: none;
}

.carousel-images img {
    flex: 0 0 100%;
    width: 100%;
    height: 400px;
    object-fit: cover;
    scroll-snap-align: start;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Controles del Carrusel */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Sección de Servicios */
.services-section {
    background: #f0f0f0;
}

.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.service {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

/* Sección de Lugar y Contacto */
.lugcont-section {
    background: #f9f9f9;
}

.lugcont-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.lugcont {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 45%;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 20px;
    text-align: center;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

#modalLugar .modal-content {
    padding-bottom: 30px; 
}

#modalLugar .map {
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#modalLugar p {
    margin: 15px 0;
    font-size: 1.1em;
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Botones CTA */
.cta-button {
    background: #ff4081;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: #e91e63;
}

/* Estilos para imágenes en los modales */
.modal .carousel-images {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.modal .carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene la proporción sin recortar */
    max-height: 80vh; /* Altura máxima del 80% de la ventana */
}

/* Ajuste responsive para modales */
@media (max-width: 768px) {
    .modal .carousel-images {
        height: 400px;
    }
    
    .modal .carousel-item img {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .modal .carousel-images {
        height: 300px;
    }
    
    .modal .carousel-item img {
        max-height: 60vh;
    }
}

/* Mapas */
.map {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    .carousel-images img,
    .location-carousel .carousel-images img {
        height: 300px;
    }

    .services-container,
    .lugcont-container {
        flex-direction: column;
        align-items: center;
    }

    .lugcont {
        max-width: 100%;
    }

    .carousel-item img {
        height: 300px;
    }
    
    .image-overlay {
        font-size: 1em;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .flyer {
        height: auto;
        padding: 1rem;
    }

    .overlay {
        padding: 1rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
    }
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos para el flyer y secciones */
.flyer {
    height: 100vh; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('image/flyer.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

/* Aplicar las mismas dimensiones a todas las secciones */
section {
    min-height: 100vh; /* Altura mínima igual a la ventana */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
}

/* Ajustes específicos para secciones con carrusel */
.locat {
    background-color: #f5f5f5;
}

.services-section {
    background-color: #ffffff;
}

.lugcont-section {
    background-color: #f0f0f0;
}

/* Contenedor para mantener el contenido centrado */
.location-carousel,
.services-container,
.lugcont-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Ajustes para el header fijo */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
}

/* Ajuste para el primer section después del header */
section:first-of-type {
    margin-top: 60px; /* Altura del header */
}

/* Títulos de sección */
section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

/* Ajustes específicos para los carruseles de locat y locat1 */
.locat .carousel-images {
    height: 600px; /* Altura aumentada */
}

.locat .carousel-item {
    height: 600px; /* Altura aumentada */
}

.locat .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
}

/* Ajuste responsive para mantener proporción */
@media (max-width: 768px) {
    .locat .carousel-images,
    .locat .carousel-item {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .locat .carousel-images,
    .locat .carousel-item {
        height: 300px;
    }
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2rem 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}

/* Estilos para la animación de celebración 2 */
.celebration-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    perspective: 1000px;
}

.celebration {
    width: 100%;
    height: 100%;
}

.confetti-group {
    transform-origin: center;
    animation: floatGroup 2s linear infinite; /* Reducido a 2 segundos */
}

.confetti {
    transform-origin: center;
    animation: confettiFall 2s ease-in infinite; /* Cambiado a infinite y 2 segundos */
}

/* Animaciones diferentes para cada elemento */
.confetti:nth-child(3n) {
    animation: confettiFall 2s ease-in infinite;
}

.confetti:nth-child(3n+1) {
    animation: confettiFall 2s ease-in infinite;
}

.confetti:nth-child(3n+2) {
    animation: confettiFall 2s ease-in infinite;
}

/* Retrasos diferentes para cada elemento */
.confetti:nth-child(2) { animation-delay: 0.1s; }
.confetti:nth-child(3) { animation-delay: 0.2s; }
.confetti:nth-child(4) { animation-delay: 0.3s; }
.confetti:nth-child(5) { animation-delay: 0.4s; }
.confetti:nth-child(6) { animation-delay: 0.5s; }
.confetti:nth-child(7) { animation-delay: 0.6s; }
.confetti:nth-child(8) { animation-delay: 0.7s; }
.confetti:nth-child(9) { animation-delay: 0.8s; }
.confetti:nth-child(10) { animation-delay: 0.9s; }
.confetti:nth-child(11) { animation-delay: 1.0s; }
.confetti:nth-child(12) { animation-delay: 1.1s; }
.confetti:nth-child(13) { animation-delay: 1.2s; }
.confetti:nth-child(14) { animation-delay: 1.3s; }
.confetti:nth-child(15) { animation-delay: 1.4s; }
.confetti:nth-child(16) { animation-delay: 1.5s; }
.confetti:nth-child(17) { animation-delay: 1.6s; }
.confetti:nth-child(18) { animation-delay: 1.7s; }
.confetti:nth-child(19) { animation-delay: 1.8s; }
.confetti:nth-child(20) { animation-delay: 1.9s; }
.confetti:nth-child(21) { animation-delay: 2.0s; }
.confetti:nth-child(22) { animation-delay: 2.1s; }
.confetti:nth-child(23) { animation-delay: 2.2s; }
.confetti:nth-child(24) { animation-delay: 2.3s; }
.confetti:nth-child(25) { animation-delay: 2.4s; }
.confetti:nth-child(26) { animation-delay: 2.5s; }
.confetti:nth-child(27) { animation-delay: 2.6s; }
.confetti:nth-child(28) { animation-delay: 2.7s; }
.confetti:nth-child(29) { animation-delay: 2.8s; }
.confetti:nth-child(30) { animation-delay: 2.9s; }
.confetti:nth-child(31) { animation-delay: 3.0s; }
.confetti:nth-child(32) { animation-delay: 3.1s; }
.confetti:nth-child(33) { animation-delay: 3.2s; }
.confetti:nth-child(34) { animation-delay: 3.3s; }
.confetti:nth-child(35) { animation-delay: 3.4s; }
.confetti:nth-child(36) { animation-delay: 3.5s; }
.confetti:nth-child(37) { animation-delay: 3.6s; }
.confetti:nth-child(38) { animation-delay: 3.7s; }
.confetti:nth-child(39) { animation-delay: 3.8s; }
.confetti:nth-child(38) { animation-delay: 3.9s; }
.confetti:nth-child(39) { animation-delay: 4.0s; }

@keyframes confettiFall {
    0% {
        transform: translateY(-200px) translateZ(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-180px) translateZ(100px) rotate(45deg);
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(70vh) translateZ(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatGroup {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10px, 0);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Añadir un "piso" virtual */
.celebration-animation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%);
    animation: floorGlow 2s ease-in-out infinite;
}

@keyframes floorGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Optimización para dispositivos móviles */
@media (max-width: 768px) {
    .celebration-animation {
        opacity: 0.6;
    }
    
    .confetti {
        transform: scale(0.7);
    }
    
    .celebration-animation::after {
        height: 1px;
    }
}

/* Estilos para el selector de idioma */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-selector button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.arrow-down {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.language-selector.active .arrow-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 5px;
    min-width: 120px;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-dropdown li {
    padding: 8px 15px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
}

.language-dropdown li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Estilos para la cuadrícula de imágenes en los modales */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas por defecto */
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Mantiene la relación de aspecto cuadrada */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Media queries para diferentes tamaños de pantalla */
@media screen and (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 15px;
        padding: 15px;
    }
}

@media screen and (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 10px;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr; /* 1 columna */
        gap: 10px;
        padding: 10px;
    }
    
    .grid-item {
        padding-bottom: 75%; /* Relación de aspecto más baja para móviles */
    }
}

/* Estilos para el modal que contiene la cuadrícula */
.modal-content {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mejoras para la interactividad */
.grid-item:focus-within {
    outline: 3px solid #4CAF50;
}

.grid-item img:hover {
    transform: scale(1.1);
}

/* Animación de carga */
.grid-item.loading {
    background: #f0f0f0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Estilos para la imagen ampliada */
.modal .expanded-img {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.modal .expanded-img img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.modal .expanded-img .close-expanded {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Estilos para el menú desplegable */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #575757;
}

/* Estilos para la sección de "Quienes Somos" */
.quiso-section {
    background: #f9f9f9;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiso-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.quiso {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 600px;
}

/* Estilos para el mensaje animado */
.message-container {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.message-svg {
    width: 100%;
    max-width: 500px;
    height: 100px;
    margin: 0 auto;
}

.message-text {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    fill: #ff4081;
    animation: textAnimation 3s ease-in-out infinite;
}

@keyframes textAnimation {
    0%, 100% {
        fill-opacity: 0;
    }
    50% {
        fill-opacity: 1;
    }
}

/* Estilos para la sección de "Quienes Somos" */
.quiso-section {
    background: #f9f9f9;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiso-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.quiso {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 600px;
}

/* Estilos para el mensaje animado */
.message-container {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.message-svg {
    width: 100%;
    max-width: 500px;
    height: 100px;
    margin: 0 auto;
}

.message-text {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    fill: #ff4081;
    animation: textAnimation 3s ease-in-out infinite;
}

@keyframes textAnimation {
    0%, 100% {
        fill-opacity: 0;
    }
    50% {
        fill-opacity: 1;
    }
}

/* Estilos para la sección de "Quienes Somos" */
.quiso-section {
    background: #f9f9f9;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiso-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.quiso {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 600px;
}

/* Estilos para el mensaje animado */
.message-container {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.message-svg {
    width: 100%;
    max-width: 500px;
    height: 100px;
    margin: 0 auto;
}

.message-text {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    fill: #ff4081;
    animation: textAnimation 3s ease-in-out infinite;
}

@keyframes textAnimation {
    0%, 100% {
        fill-opacity: 0;
    }
    50% {
        fill-opacity: 1;
    }
}

/* Estilos para la animación de globos */
.balloon-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.balloon {
    width: 100%;
    height: 100%;
}

.balloon-group {
    transform-origin: center;
    animation: floatBalloon 5s linear infinite;
}

.balloon {
    transform-origin: center;
    animation: balloonRise 5s ease-in infinite;
}

/* Animaciones diferentes para cada globo */
.balloon:nth-child(3n) {
    animation: balloonRise 5s ease-in infinite;
}

.balloon:nth-child(3n+1) {
    animation: balloonRise 5s ease-in infinite;
}

.balloon:nth-child(3n+2) {
    animation: balloonRise 5s ease-in infinite;
}

/* Retrasos diferentes para cada globo */
.balloon:nth-child(2) { animation-delay: 0.1s; }
.balloon:nth-child(3) { animation-delay: 0.2s; }
.balloon:nth-child(4) { animation-delay: 0.3s; }
.balloon:nth-child(5) { animation-delay: 0.4s; }
.balloon:nth-child(6) { animation-delay: 0.5s; }
.balloon:nth-child(7) { animation-delay: 0.6s; }
.balloon:nth-child(8) { animation-delay: 0.7s; }
.balloon:nth-child(9) { animation-delay: 0.8s; }
.balloon:nth-child(10) { animation-delay: 0.9s; }
.balloon:nth-child(11) { animation-delay: 1.0s; }
.balloon:nth-child(12) { animation-delay: 1.1s; }
.balloon:nth-child(13) { animation-delay: 1.2s; }
.balloon:nth-child(14) { animation-delay: 1.3s; }
.balloon:nth-child(15) { animation-delay: 1.4s; }
.balloon:nth-child(16) { animation-delay: 1.5s; }
.balloon:nth-child(17) { animation-delay: 1.6s; }
.balloon:nth-child(18) { animation-delay: 1.7s; }
.balloon:nth-child(19) { animation-delay: 1.8s; }
.balloon:nth-child(20) { animation-delay: 1.9s; }

@keyframes balloonRise {
    0% {
        transform: translateY(200px) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(180px) translateX(-10px) scale(1.1);
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-70vh) translateX(-20px) scale(1.2);
        opacity: 0;
    }
}

@keyframes floatBalloon {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10px, 0);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Estilos para la sección de "Servicios" */
.servicios1-section {
    background: #ffffff;
    padding: 3rem 2rem;
    min-height: 100vh;
}

.servicios1-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
}

.services-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Estilos para el contenedor de nodos */
.timeline-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.timeline-node {
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    cursor: pointer;
}

.timeline-node:hover,
.timeline-node.active {
    transform: scale(1.1);
    opacity: 1;
}

.timeline-node p {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* Estilos para el contenedor del mensaje */
.message-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.message-popup {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
}

.message-popup h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

/* Estilos para la tabla de información */
.info-container {
    flex: 1;
    padding: 1rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.info-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.info-table td {
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-layout {
        flex-direction: column;
        align-items: center;
    }

    .timeline-container,
    .message-container,
    .info-container {
        width: 100%;
        max-width: 600px;
    }
}

/* Estilos para la sección de comofun */
.comofun-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.comofun-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.comofun-section h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #4CAF50;
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #4CAF50;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    left: 50%;
}

.timeline-icon {
    position: absolute;
    left: -24px;
    top: 0;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -24px;
    left: auto;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 500px;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
}

.contact-btn.phone {
    background: #4CAF50;
}

.contact-btn.whatsapp {
    background: #25D366;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.features-list li {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-animation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.success-animation span {
    font-size: 2rem;
    animation: bounce 1s infinite;
}

.success-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.success-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline:before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        padding-left: 80px;
    }

    .timeline-icon {
        left: 6px;
    }

    .timeline-item:nth-child(odd) .timeline-icon {
        left: 6px;
        right: auto;
    }
}

/* Estilos para el menú móvil */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 15px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-menu {
    display: none;
    background-color: #fff;
    padding: 20px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin: 15px 0;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    transition: 0.3s;
}

.mobile-menu a:hover {
    background-color: #f5f5f5;
}

.language-selector-mobile {
    padding: 10px;
}

.language-btn {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
}

.language-options {
    display: none;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.language-options div {
    padding: 10px;
    cursor: pointer;
}

.language-options div:hover {
    background-color: #f5f5f5;
}

/* Animaciones para el menú hamburguesa */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Media queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }
}

.cta-button-home {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #FF4081, #E91E63);
    border: none;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button-home:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.cta-button-home:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsiveness */
@media (max-width: 768px) {
    .cta-button-home {
        font-size: 16px;
        padding: 12px 25px;
    }
}

.extra-message {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #FF4081;
    text-align: center;
    background: linear-gradient(45deg, #FFEB3B, #FFC107);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.extra-message1 {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(45deg, #FF4081, #E91E63);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extra-message1 a {
    color: #FFD700; /* Color dorado para el número */
    text-decoration: none;
    font-weight: bold;
}

.extra-message1 a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    background: linear-gradient(45deg, #00BFFF, #1E90FF); /* Fondo celeste */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-links p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9);
}

.social-icons a img:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Estilos para los modales de servicios1-section */
.modal-servicios1 {
    display: none; /* Ocultar los modales por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    display: flex; /* Usar flexbox para centrar */
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
}

.modal-servicios1-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%; /* Ajustar el ancho del modal */
    max-width: 500px; /* Ancho máximo */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close-servicios1 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-servicios1:hover,
.close-servicios1:focus {
    color: #000;
    text-decoration: none;
}

#home {
    background-image: url('image/logo.jpeg');
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat;
    position: relative; 
    z-index: 0; 
}

.custom-timeline-node {
    text-align: center;
    background-color: transparent; /* Fondo transparente */
    border: none; /* Elimina los bordes */
    padding: 15px;
    box-shadow: none; /* Elimina cualquier sombra */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.custom-timeline-node:hover {
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
}

.custom-timeline-node svg {
    margin-bottom: 10px;
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.custom-timeline-node:hover svg {
    transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
}

.custom-timeline-node p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* Responsividad */
@media (max-width: 768px) {
    .custom-timeline-node svg {
        width: 60px;
        height: 60px;
    }

    .custom-timeline-node p {
        font-size: 12px;
    }
}

.static-map {
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin: 20px 0;
}

#map-locat {
    min-height: 400px;
}

/* Estilos para el selector de idiomas móvil */
.language-selector-mobile {
    position: relative;
    padding: 15px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector-mobile .language-btn {
    width: 100%;
    padding: 12px 20px;
    background: #E91E63; /* Color principal del menú */
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.language-selector-mobile .language-btn:hover {
    background: #D81B60; /* Versión más oscura del color principal */
}

.language-selector-mobile .arrow-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-selector-mobile .language-options {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: #E91E63;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.language-selector-mobile .language-options.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.language-selector-mobile .language-options div {
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.language-selector-mobile .language-options div:hover {
    background: #D81B60;
}

/* Animación para el menú desplegable */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* Ajuste específico para el menú móvil */
.mobile-menu {
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Estilo activo para el botón de idioma */
.language-selector-mobile.active .arrow-down {
    transform: rotate(180deg);
}

/* Ajuste para dispositivos muy pequeños */
@media (max-width: 320px) {
    .language-selector-mobile .language-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}