*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    --primary-color: #8541BC;
    --secondary-color: #E70783;
    --tertiary-color: #02A7DF;
}

html {
    scroll-behavior: smooth;
}
#menu {
    width: 100%;
    height: auto;
}

/* header */
.header-container {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: #00000040 0px 4px 6px -1px, #0000001a 0px 2px 4px -1px;
}

body {
    margin-top: 63px; /* Ajusta este valor según la altura de tu header */
}
/* menú principal */
.main-nav {
    display: flex;
    flex-direction: row;
    
}

/* Botón hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    margin-right: 10px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Responsive HEADER */
@media (max-width: 540px) {
    .header-container {
        flex-direction: row;
        padding: 10px;
        justify-content: space-between;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color:#6d359b;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        flex-direction: column !important;
        z-index: 1000;
    }

    .main-nav.active {
        max-height: 500px;
    }

    #menu .menu-navbar {
        flex-direction: column !important;
        align-items: center;
        padding: 10px 0;
    }

    .menu-navbar li {
        width: 100%;
        text-align: center;
    }

    .menu-navbar li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .main-content {
        padding: 10px;
    }

    .main-content section {
        padding: 10px;
    }

    .main-content h1 {
        font-size: 1.5em;
    }

    .main-content h2 {
        font-size: 1.2em;
    }
}
@media (max-width: 540px) {
    .hamburger {
        display: flex;
    }
}

    /* logo */
    .header-logo{
            display: flex;
            align-items: center;
            justify-content: center;
            height: 40%;
    }
        .logo-header {
        max-width: 100px;
        max-height: 50px;
        margin-left: 10px;
        }

/* menú principal */
#menu .menu-navbar {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  justify-content: center;
  width: auto;
}   

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

#menu ul li a {
  display: inline-block;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  transition: background .15s ease;
}
    .li-inicio {
        border-radius: 8px 0px 0px 8px;
    }
    .li-nosotros {
        border-radius: 0px 0px 0px 0px;
    }
    .li-servicios {
        border-radius: 0px 0px 0px 0px;
    }
    .li-horarios {
        border-radius: 0px 0px 0px 0px;
    }
    .li-contactanos {
        border-radius: 0px 8px 8px 0px;
    }
#menu ul li a:hover {
  background: var(--secondary-color);
  color: #ffffff;
}

/* item activo */
#menu ul li a.active {
  background: var(--secondary-color);
  color: #ffffff;
}
/* Contenido principal */
.main-content {
  padding: 0px;

  background-color: #f9f9f9;
}

/* Secciones */
.main-content section {
  max-width: 100vw;
  margin: 0 auto;
  background: white;
  padding: 0px;
  border-radius: 0px;
}

.main-content h1 {
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 2em;
}


.main-content h2 {
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.main-content p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.main-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.main-content li {
  margin-bottom: 8px;
  color: #555;
}

/*INICIO*/
/* CARRUSEL*/
.swiper {
  margin-top: 0;
    width: 100%;
    height: 70vh; /* Altura base responsiva */
    position: relative; /* Necesario para los controles */
    background-image: url('../images/Fondo-carrusel.png');
}

/* Video de fondo del swiper */
.swiper-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
}

/* Asegurar que el contenido esté sobre el video */
.swiper-wrapper,
.swiper-pagination,
.swiper-button-next,
.swiper-button-prev {
    position: relative;
    z-index: 2;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 3;
}

.image-container img {
    width: 50%;
    height: 90%;
    max-height: 60vh;
    object-fit: cover;
    object-position: center;
}

/* Controles de Swiper */
.swiper-pagination {
    bottom: 10px !important; /* Ajustar posición */
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: var(--secondary-color) !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    margin-top: -20px !important; /* Centrar verticalmente */
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px !important;
}

.btn-swiper{
    position: absolute;
    bottom: 100px;
    left: 75%;
    transform: translateX(-20%);
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.5em;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    z-index: 4;
    transition: background 0.3s ease;
}
.btn-swiper:hover {
    background-color: var(--tertiary-color);
}

/* Responsive para carrusel */


@media (max-width: 820px) {
    .swiper {
        height: 60vh;
    }
    
    .image-container {
        flex-direction: column;
    }
    
    .image-container img {
        width: auto;
        height: 50%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px !important;
    }

    .btn-swiper{
    bottom: 46px;
    left: 48%;
    padding: 10px 10px;
    }
}

@media (max-width: 480px) {
    .swiper {
        height: 60vh;
    }

    .btn-swiper{
    bottom: 46px;
    left: 46%;
    padding: 5px 10px;
    }
}

.container-inicio{
    display: flex;
    margin-top: 0px;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(133, 65, 188, 0.9), rgba(231, 7, 131, 0.9));
}

.container-inicio h1 {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

/* Video de fondo */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

/* Contenido sobre el video */
.container-inicio h1,
.container-inicio-content {
    position: relative;
    z-index: 2;
    color: white;
}

.container-inicio-content{
    display: flex;
    flex-flow: row nowrap;
    align-items:center;
    justify-content: space-around;
    width: 85%;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    background-image: url('../images/Fondo-blanco.webp');
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 0 auto;
    margin-bottom: 50px;
}

.info-inicio{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    margin-bottom: 20px;
    
}
    .text-inicio{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        line-height: 1.6;
        padding: 10%;
        text-align: justify;
    }
    .text-inicio-image img{
        display: flex;
        max-width: 400px;
        max-height: 400px;
        justify-content: center;
        align-items: center;
        margin: 10px 10px 10px 0px;
        border-radius: 15px;
        
    }
.social-media-container{
    display: flex;
    align-items: start;
    justify-content: center;
    width: 30%;
    min-height: 400px;
    max-width: 400px;
    margin-top: 0;
    padding: 10px;
}
.facebook-container {
    display: flex;
    justify-content:center;
    align-items:center;
    padding: 5px;
    border-radius: 8px;
    width: 90%;
    min-height: 300px; /* Altura mínima para evitar colapso */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    position: relative; /* Para posicionar elementos hijos */
    transition: all 0.3s ease;

}

/* Placeholder mientras carga Facebook */
.facebook-container::before {
    content: "Cargando Facebook...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
    z-index: 1;
}

/* Ocultar placeholder cuando Facebook carga */
.facebook-container.fb-loaded::before {
    display: none;
}

/* Estilos para el plugin de Facebook */
.fb-page {
    display: block;
    margin: 0 auto;
    width: 100% !important;
    max-width: 400px !important; /* Máximo ancho en desktop */
    height: auto !important;
    min-height: 400px !important;
    transition: all 0.3s ease;
}

.fb-page iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 400px !important;
    border: none !important;
    border-radius: 8px !important;
    transition: all 0.6s ease;
}

/* Responsive para móviles */
@media (max-width: 1220px) {
    .container-inicio {
        min-height: 60vh;
        margin-top: 0px;
    }
    
    .container-inicio h1 {
        font-size: 1.5em;
        margin-bottom: 30px;
        margin-top: 30px;
        padding: 10px;
    }
    
    .container-inicio-content{
        display: flex;
        flex-flow: row wrap;
        padding: 20px;
        width: 70%;
        margin-bottom: 30px;
    }
    .info-inicio{
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 0px;
    }
    .text-inicio-image img{
        margin-left: 0;
        margin-top: 20px;
        max-width: 400px;
        max-height: 400px;
    }

    .social-media-container{
        width: auto;
        min-width: auto;
        min-height: auto;
        max-width: 400px;
        margin-top: 0px;
    }
    .facebook-container {
        padding: 15px;
        margin: 0 0 20px 0;
        min-height: 400px;
        max-height: fit-content;

    }
    
    .fb-page {
        max-width: 100% !important;
        min-height: 400px !important;
    }
    
    .fb-page iframe {
        min-height: 400px !important;
    }
}

@media (max-width: 820px) {
    .container-inicio {
        min-height: 60vh;
        margin-top: 0px;
    }
    
    .container-inicio h1 {
        font-size: 1.5em;
        margin-bottom: 30px;
        margin-top: 30px;
        padding: 10px;
    }
    
    .container-inicio-content{
        display: flex;
        flex-flow: row wrap;
        padding: 20px;
        width: 80%;
        margin-bottom: 30px;
    }
    .info-inicio{
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 0px;
    }
            .text-inicio{
                font-size: 16px;
                margin-bottom: 0px;
            }
    .text-inicio-image img{
        margin-left: 20px;
        margin-top: 20px;
        max-width: 400px;
        max-height: 400px;
    }

    .social-media-container{
        width: auto;
        min-width: auto;
        min-height: auto;
        max-width: 400px;
        margin-top: 0px;
    }
    .facebook-container {
        padding: 0px;
        margin: 0 0 20px 0;
        min-height: 400px;
        max-height: fit-content;

    }
    
    .fb-page {
        max-width: 90% !important;
    }
    
    .fb-page iframe {
        min-height: 500px !important;
        width: 500px !important;
    }
}

@media (max-width: 540px) {
    .container-inicio {
        min-height: 50vh;
        margin-top: 0px;
    }
    
    .container-inicio h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .container-inicio-content {
        padding: 15px;
        width: 85%;
        margin-bottom: 50px;
    }

   .container-inicio-content{
        display: flex;
        flex-flow: column nowrap;
    }

    .info-inicio{
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 0px;
    }
            .text-inicio{
                font-size: 14px;
                padding-bottom: 0px;
            }
    .text-inicio-image img{
        margin-left: 0;
        margin-top: 20px;
        max-width: 400px;
        max-height: 400px;
    }
    .social-media-container{
        min-width: auto;
        min-height: auto;
        width: 90%;
        margin-top: 0px;
    }
    .facebook-container {
        padding: 6px;
        min-height: 300px;
        max-width: 100%;
    }
    
    .fb-page {
        min-height: 400px !important;
        min-width: 300px !important;
    }
    
    .fb-page iframe {
        min-height: 400px !important;
    }
}

/* NOSOTROS */
.container-nosotros-header{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 60vh;
    margin-bottom: 20px;
    background-color:var(--primary-color) ;
}
    .container-nosotros-header-imagen {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }
        .container-nosotros-header-imagen img {
            width: auto;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
.container-nosotros-content{
    display: flex;
    flex-flow: row nowrap;
    align-items:center;
    justify-content: space-around;
    width: 95%;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    background-image: url('../images/Fondo-blanco.webp');
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 100PX auto 100px auto;
}
        .container-nosotros-text{
            display: flex;
            width: 40%;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            line-height: 1.6;
            padding: 5%;
            text-align: justify;
        }

        .container-nosotros-card{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 50%;
        }
            /* Carrete en nosotros */
                .carrete-nosotros {
                    display: flex;
                    flex-direction: row wrap;
                    overflow-x: auto;
                    scroll-snap-type: x mandatory;
                    gap: 10px;
                    border-radius: 15px;
                    background-color: #8541BC;
                }

                .carrete-nosotros img {
                    flex-shrink: 0;
                    width: 250px;
                    height: auto;
                    gap: 15px;
                    padding: 10px 0px 10px 0px;
                    scroll-snap-align: start;
                    border-radius: 20px;
                    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
                }

                /* Ocultar scrollbar en webkit */
                .carrete-nosotros::-webkit-scrollbar {
                    display: none;
                }

                .container-nosotros-btn {
                    display: flex;
                    flex-flow: row wrap;
                    justify-content: center;
                    align-items: center;
                    margin-top: 10px;
                }

/* Botones del carrete */
.btn-anterior, .btn-siguiente {
    display: flex;
    flex-grow: 1;
    color: white;
    border: none;
    padding: 10px 5px 15px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px 10px;
}

.btn-anterior:hover, .btn-siguiente:hover {
    background-color: var(--secondary-color);
}

/* Responsive para sección Nosotros */
@media (max-width: 1280px) {
    .container-nosotros-header {
        min-height: auto;
        margin-bottom: 15px;
    }
        .container-nosotros-header-imagen {
            flex-grow: 1;
        height: 400px; /* Definimos una altura fija razonable para tablets */
        }
    
        .container-nosotros-header-imagen img {
            flex-grow: 1;
            width: auto;  /* Ahora priorizamos que llene el ancho */
            height: 400px; /* Mantenemos la altura fija */
            
        }
}
@media (max-width: 820px) {
    .container-nosotros-header {
        min-height: auto;
        margin-bottom: 15px;
    }
        .container-nosotros-header-imagen {
        height: 300px; /* Definimos una altura fija razonable para tablets */
        }
    
        .container-nosotros-header-imagen img {
            width: auto;  /* Ahora priorizamos que llene el ancho */
            height: 300px; /* Mantenemos la altura fija */
        }
    .container-nosotros-content {
        flex-direction: column;
        width: 75%;
        gap: 20px;
        padding: 15px;
    }

    .container-nosotros-text {
        width: 90%;
        font-size: 16px;
        padding: 10px;
    }

    .container-nosotros-card {
        width: 90%;
        flex-direction: column;
        gap: 10px;
    }

    .carrete-nosotros {
        flex-direction: row; /* Mantener horizontal, pero ajustar si es necesario */
        gap: 10px;
        width: 90%;
    }

    .carrete-nosotros img {
        width: auto;
        border-radius: 20px;
    }

    .container-nosotros-btn {
        flex-direction: row;
    }
    .btn-anterior, .btn-siguiente {
        padding: 8px 12px;
        font-size: 14px;
        margin: 5px;
    }
}

@media (max-width: 540px) {
    .container-nosotros-header {
        margin-top: 0px;
        min-height:auto;
    }
        .container-nosotros-header-imagen {
        height: 90%; /* Reducimos la altura para que no ocupe toda la pantalla del celular */
        }

        .container-nosotros-header-imagen img {
            width: 100%;
            height:auto;
            /* Mantenemos object-fit: cover para que la foto no se estire feo */
        }

    .container-nosotros-content {
        width: 90%;
        padding: 10px;
        margin: 50px auto 50px auto;
    }

    .container-nosotros-text {
        font-size: 14px;
        line-height: 1.5;
        padding: 15px;
    }

    .container-nosotros-card {
        width: 300px;
        height: auto;
        gap: 1px;
    }

    .carrete-nosotros img {
        width: 90%;
    }

    .btn-anterior, .btn-siguiente {
        padding: 6px 10px;
        font-size: 12px;
        margin: 0 5px;
    }
}

/* SERVICIOS */
.container-servicios-header{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 60vh;
    margin-bottom: 20px;
    background-color: var(--primary-color)  ;
}
    .container-servicios-header-imagen {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }
        .container-servicios-header-imagen img {
            width: auto;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }


.servicios-section {
    padding: 40px 20px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto 50px auto;
}

.service-card {
    background: #fff;
    background-image: url('../images/Fondo-blanco.webp');
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
    .servicios-img{
        width: 80%;
        height: auto;
        object-fit: cover;
        border-radius: 10px 10px 10px 10px;
        margin: 0 auto 15px;
    }
    .servicios-img:hover{
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
        .servicios-img img{
            width: 100%;
            height: 100%;
            border-radius: 10px 10px 0px 0px;
        }   
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.service-card p {
    margin-bottom: 15px;
    color: #666;
}

.btn-details {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-details:hover {
    background: var(--secondary-color);
}

.service-video-container video {
    width: 80%;
    height: auto;
    border-radius: 10px;
     margin: 0 auto 15px;
}
 


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

#modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

#modal-body p {
    margin-bottom: 10px;
}

.container-servicios-catalogo {
    margin: 20px auto 50px auto;
    text-align: center;
}
    .btn-catalogo {
        background-color: var(--secondary-color);
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-size: 1em;
        transition: background 0.3s ease;
    }
    .btn-catalogo:hover {
        background-color: var(--primary-color);
    }

@media (max-width: 1280px) {
    .container-servicios-header {
        min-height: auto;
        margin-bottom: 15px;
    }
        .container-servicios-header-imagen {
            flex-grow: 1;
            height: 400px; /* Definimos una altura fija razonable para tablets */
        }

        .container-servicios-header-imagen img {
            flex-grow: 1;
            width: auto;  /* Ahora priorizamos que llene el ancho */
            height: 400px; /* Mantenemos la altura fija */
            
        }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        max-width: 80%;
        margin: 40px auto;
    }

    .service-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 20px;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
        cursor: pointer;
    }
        .servicios-img{
            width: 80%;
            height: auto;
            object-fit: cover;
            border-radius: 10px 10px 10px 10px;
            margin: 0 auto 15px;
        }
        .servicios-img:hover{
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }
            .servicios-img img{
                width: 100%;
                height: 100%;
                border-radius: 10px 10px 0px 0px;
            }   
    }
@media (max-width: 820px) {
    .container-servicios-header {
        min-height: auto;
        margin-bottom: 15px;
    }
        .container-servicios-header-imagen {
        height: 300px; /* Definimos una altura fija razonable para tablets */
        }

        .container-servicios-header-imagen img {
            width: auto;  /* Ahora priorizamos que llene el ancho */
            height: 300px; /* Mantenemos la altura fija */
        }
    .container-servicios-text{
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 540px) {
    .container-servicios-header {
        min-height:auto;
    }
        .container-servicios-header-imagen {
        height: 90%; /* Reducimos la altura para que no ocupe toda la pantalla del celular */
        }

        .container-servicios-header-imagen img {
            width: 100%;
            height:auto;
            /* Mantenemos object-fit: cover para que la foto no se estire feo */
        }

    .container-servicios-text{
        width: 80%;
        margin: 0 auto;
    }
    }


/* HORARIO */

.container-horario-header{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 60vh;
    margin-bottom: 20px;
    background-color: var(--primary-color);
}
    .container-horario-header-imagen {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }
        .container-horario-header-imagen img {
            width: auto;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

.container-horario-content{
    display: flex;
    flex-flow: column nowrap;
    align-items:center;
    justify-content: center;
    width: 60%;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    background-image: url("../images/Fondo-blanco.webp");
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 100px auto 50px auto;
}
 .container-horario-nota{
    font-size: 1em;
    color: #555;
    margin-bottom: 50px;
    text-align: center;
 }
    .container-horario-nota a {
        text-decoration:none;
        font-weight: 600;
        color: var(--primary-color);

    }
    .container-horario-nota a:hover {
        color: var(--tertiary-color);
    }

/* Tabla para horario */
.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.main-content th,
.main-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.main-content th {
  background-color: var(--tertiary-color);
  color: white;
}

.main-content tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Formulario de contacto */
.main-content form {
  margin-top: 20px;
}

.main-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--primary-color);
}

.main-content input,
.main-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  font-size: 1em;
}

.main-content button {
  background-color: var(--secondary-color);
  color: white;
  padding: 5px 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
}

.main-content button:hover {
  background-color: var(--primary-color);
}

/* Responsive para sección Horario */
@media (max-width: 1280px) {
    .container-horario-header {
        min-height: auto;
        margin-bottom: 15px;
    }
        .container-horario-header-imagen {
            flex-grow: 1;
        height: 400px; /* Definimos una altura fija razonable para tablets */
        }

        .container-horario-header-imagen img {
            flex-grow: 1;
            width: auto;  /* Ahora priorizamos que llene el ancho */
            height: 400px; /* Mantenemos la altura fija */
            
        }
}
@media (max-width: 820px) {
    .container-horario-header {
        min-height: auto;
    }
        .container-horario-header-imagen {
        height: 300px; /* Definimos una altura fija razonable para tablets */
        }

        .container-horario-header-imagen img {
            width: auto;  /* Ahora priorizamos que llene el ancho */
            height: 300px; /* Mantenemos la altura fija */
        }

        .container-horario-content{
            width: 80%;
            margin: 50px auto 50px auto;
        }
    }

@media (max-width: 540px) {
    .container-horario-header {
        min-height:auto;
        margin-top: 0px;
    }
        .container-horario-header-imagen {
        height: 90%; /* Reducimos la altura para que no ocupe toda la pantalla del celular */
        margin-top: 0px;
        }

        .container-horario-header-imagen img {
            width: 100%;
            height:auto;
            /* Mantenemos object-fit: cover para que la foto no se estire feo */
        }
    .container-horario-content{
        margin: 50px auto 50px auto;
    }
    .container-horario-nota{
        margin: 0 auto 50px auto;
        width: 90%;
    }
}
/* CONTACTANOS */
.container-contactanos-header{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 60vh;
    margin-bottom: 20px;
    background-color: var(--primary-color);
}
    .container-contactanos-header-imagen {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }
        .container-contactanos-header-imagen img {
            width: auto;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
.container-contactanos-content{
    display: flex;
    flex-flow: row nowrap;
    align-items:center;
    justify-content: center;
    width: 80%;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    background-image: url("../images/Fondo-blanco.webp");
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 100px auto 100px auto;
}   
    .container-contactanos-content a {
        text-decoration:none;
        font-weight: 600;
        color: var(--primary-color);

    }
    .container-contactanos-content a:hover {
        text-decoration: underline;
        color: var(--tertiary-color);
    }

    .container-contactanos-content-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        line-height: 1.6;
        padding: 5%;
        text-align: justify;
    }

    .map-container {
        padding: 20px;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .map-container h3 {
        color: #e91e63; /* El rosa vibrante de tu logo */
        font-family: 'Arial', sans-serif;
        margin-bottom: 10px;
    }

    .map-container iframe {
        margin-top: 20px;
        transition: all 0.5s ease;
        min-width: 60%;
        min-height: 350px;
        /* Ajuste responsivo para móviles */
    }

    /* Responsive para sección Contactanos */
@media (max-width: 1280px) {
    .container-contactanos-header {
        min-height: auto;
        margin: 0 auto 15px 0;

    }
        .container-contactanos-header-imagen {
        flex-grow: 1;
        height: 400px; /* Definimos una altura fija razonable para tablets */
        }

        .container-contactanos-header-imagen img {
            flex-grow: 1;
            width: auto;  /* Ahora priorizamos que llene el ancho */
            height: 400px; /* Mantenemos la altura fija */
            
        }
}
@media (max-width: 820px) {
    .container-contactanos-header {
        min-height: auto;
        gap: 0px;

    }
        .container-contactanos-header-imagen {
        height: 300px; /* Definimos una altura fija razonable para tablets */
        }

        .container-contactanos-header-imagen img {
            width: auto;  /* Ahora priorizamos que llene el ancho */
            height: 300px; /* Mantenemos la altura fija */
        }
        .container-contactanos-content{
            flex-flow: column nowrap;
            margin: 60px auto 60px auto;

        }
         .container-contactanos-content{
            display: flex;
            flex-flow: column nowrap;
            align-items:center;
            justify-content: center;
            width: 80%;
            gap: 10px;
            padding: 10px;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            margin: 50px auto 50px auto;
        }   
        .container-contactanos-content ul li a {
            text-decoration:none;
            font-weight: 600;
            color: var(--primary-color);
        }


        .container-contactanos-content-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            line-height: 1.6;
            padding: 0%;
            text-align: justify;
            width: 90%;
        }

        .map-container {
            width: 100%;
            height: auto;
            margin: 0 auto;
            text-align: center;
        }


        .map-container iframe {
            margin-top: 5px;
            width: 400px;
            height: 300px;
            transition: all 0.5s ease;
            /* Ajuste responsivo para móviles */
        }
    }

@media (max-width: 540px) {
    .container-contactanos-header {
        min-height:auto;
    }
        .container-contactanos-header-imagen {
        height: 90%; /* Reducimos la altura para que no ocupe toda la pantalla del celular */
        }

        .container-contactanos-header-imagen img {
            width: 100%;
            height:auto;
            /* Mantenemos object-fit: cover para que la foto no se estire feo */
        }

        .container-contactanos-content{
            display: flex;
            flex-flow: column nowrap;
            align-items:center;
            justify-content: center;
            width: 80%;
            gap: 10px;
            padding: 10px;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            margin: 0 auto;
            margin-bottom: 50px;
        }   
        .container-contactanos-content a {
            text-decoration:none;
            font-weight: 600;
            color: var(--primary-color);

        }

        .container-contactanos-content-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            line-height: 1.6;
            padding: 5%;
            text-align: justify;
            width: 90%;
        }

        .map-container {
            width: 100%;
            height: auto;
            margin: 0 auto;
            text-align: center;
        }


        .map-container iframe {
            margin-top: 5px;
            width: 250px;
            height: 300px;
            transition: all 0.5s ease;
            /* Ajuste responsivo para móviles */
        }
    }
        

/* FOOTER */
.footer {
    background-color: var(--primary-color);
    color: white;
    margin-top: auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 20px auto 60px;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #f0f0f0;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: white;
    font-size: 16px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #f0f0f0;
    font-size: 0.95em;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: color 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--tertiary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: #e0e0e0;
    font-size: 0.9em;
}

/* Responsive Footer */
@media (max-width: 820px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .footer-section {
        min-width: auto;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .footer {
        display: block;
        padding: 30px 15px 15px;
        align-items: center ;
        justify-content: center;
    }
    

    .footer-content {
        gap: 20px;
        justify-content: center;
        align-items: center;
    }

    .contact-item {
        flex-direction: row;
        gap: 5px;
    }
    .social-links {
        flex-direction: row;
        gap: 10px;        
        justify-content: center;
    }
}

