﻿

/* Boton de Reserva */
.btn-reserva {
    background-color: #0066cc; /* Color vibrante (naranja) */
    color: white;
    font-size: 1.2rem;
    padding: 14px 14px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

    .btn-reserva:hover {
        background-color: #e64a19;
        transform: scale(1.05);
    }

/* Secciones */
.container-about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Sobre Nosotros */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
    text-align: center;
}

.about-fondo img {
    background-image: url('/imagenes/sobrenosotros1.webp');
    width: 50%;
    height: 50%;
}

.about-text p {
    color: #666;
    line-height: 1.6;
    font-size: 1.5rem;
}

.about-image img {
    width: 40%;
    max-width: 400px; /* Limita tamaño máximo en pantallas grandes */
    border-radius: 15px;
    /*border: 5px solid #2c3e50;*/
    display: block;
    margin: 0 auto; /* Centra la imagen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Cursor de clickeable */
    cursor: pointer;
}
    .about-image img:hover {
        transform: scale(1.05); /* Zoom ligero */
        box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Sombra suave */
    }
/* === Ajustes para pantallas móviles === */
@media (max-width: 768px) {
    .about-text {
        padding: 0 10px;
    }

    .about-image img {
        width: 80%; /* Más grande para móviles */
        max-width: none; /* Quita límite de ancho */
        border-radius: 50px; /* Opcional: menos radio para que no se vea exagerado */
    }

    .about-text p {
        font-size: 1.2rem; /* Ajusta texto para móvil */
    }

    .about-content {
        flex-direction: column; /* Apila texto e imagen verticalmente */
        gap: 20px; /* Espacio entre elementos */
    }
}

/* Efecto de zoom al pasar el mouse */
/*.img-superpuesta:hover {
    transform: scale(1.1);
}*/

/* Clases ------------------------------------------------------------------------- */
.negrita {
    color: #333;
}

.price {
    font-weight: bold;
    font-size: 1.2rem;
    color: #0066cc;
    margin: 15px 0;
}

.btn-Clases {
    background-color: #ff5722;
    color: white;
    font-size: 15px;
    margin-left: 23%;
    margin-bottom: 10px;
    margin-top: 20px;
    padding: 14px 14px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.Clasestituloh2 {
    text-align: center;
    font-size: 2.0rem;
    margin-bottom: 4rem;
    color: #2c3e50;
    position: relative;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1.5px;
    /*text-transform: uppercase;*/
}

    .Clasestituloh2::after {
        content: "";
        display: block;
        width: 30%;
        height: 5px;
        background: #3498db;
        margin: 25px auto;
        border-radius: 3px;
    }

/* ************************************************************************************/

.class-card-interactive {
    position: relative;
    width: 100%;
    height: 400px; /* ajusta la altura según necesites */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
}

    .class-card-interactive .class-overlay {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: white; /* verde con opacidad */
        color: black;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
        overflow-y: auto;
    }

    .class-card-interactive:hover .class-overlay {
        opacity: 1;
    }

.class-overlay h3 {
    margin-top: 0;
}

.class-overlay h2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.class-overlay ul {
    padding-left: 20px;
}

.class-overlay a.btn-Clases {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff5722;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.class-overlay p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.class-overlay li {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-content li {
    color: #666;
    /*line-height: 1.6;*/
    font-size: 1rem;
}

.modal-content ul {
    padding-left: 20px;
}
/* ************************************************************************************/
/* Instructores -----------------------------------------------------------------------------*/
.instructors-grid {
    display: flex;
    flex-wrap: wrap; /* Permite varias columnas */
    justify-content: center; /* Centra las columnas */
    gap: 30px; /* Espacio entre tarjetas */
    max-width: 900px; /* Opcional: ancho máximo del grid */
    margin: 0 auto; /* Centra el grid */
}

.instru {
    background-color: #e6f2ff;
}

    .instru h2 {
        max-width: 1200px;
        margin: 0 auto;
        padding: 50px 20px;
    }

.instructor {
    text-align: center;
    width: 250px;
    padding: 0;
    margin: 0;
    min-height: 480px; /* Ajusta según tu diseño */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra la imagen y el texto */
    justify-content: flex-start;
}

    .instructor p {
        color: #666;
        margin: 0;
        padding: 0 0 0 0;
        /*line-height: 1.1;*/
        font-size: 1.5rem;
        min-height: 60px; /* Ajusta según necesidad */
    }

    .instructor h3 {
        margin: 0; /* Elimina márgenes predeterminados */
        padding: 0 0 10px 0; /* Añade solo padding inferior si es necesario */
    }

    .instructor h3,
    .instructor p,
    .social-icons {
        text-align: center; /* Centra todo el texto y los íconos */
        width: 100%;
    }

.instructortitulo {
    text-align: center;
    font-size: 2.1rem;
    /*margin-bottom: 4rem;*/
    color: #2c3e50;
    position: relative;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1.5px;
  /*  text-transform: uppercase;*/
}

.Clasestituloh2::after {
    content: "";
    display: block;
    width: 30%;
    height: 5px;
    background: #3498db;
    margin: 25px auto;
    border-radius: 3px;
}

.instructor img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    /*border: 5px solid #2c3e50;*/
    margin-bottom: 15px;
    display: block;
    margin: 0 auto 15px auto; /* Imagen centrada con espacio inferior */
    /* Transición para animación suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Cursor de clickeable */
    cursor: pointer;
}
    .instructor img:hover {
        transform: scale(1.05); /* Zoom ligero */
        box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Sombra suave */
    }
/* Estilos para los iconos de redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px; /* Mismo margen superior para ambos */
    margin-bottom: 20px; /* Espacio inferior opcional */
    /*transform: none !important;*/
}

    .social-icons a {
        color: deeppink;
        background-color: #f0f8ff;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .social-icons a:hover {
            background-color: #0066cc;
            color: white;
            transform: translateY(-3px);
        }

/* Contacto */
.contact {
}
    .contact h2 {
        max-width: 1200px;
        margin: 0 auto;
        padding: 50px 20px;
    }

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

    .contact-info h3 {
        margin-bottom: 20px;
        color: #0066cc;
    }

    .contact-info p {
        margin-bottom: 15px;
    }

.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 1rem;
    }

    .form-group textarea {
        height: 150px;
    }


/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }


    .menu-toggle {
        display: block;
        font-size: 1.5rem;
    }

    .about-content, .contact-container {
        flex-direction: column;
    }

    .language-selector {
        margin-left: 0;
        margin-top: 20px;
    }
}


.container h2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.tituloh2 {
    color: black;
    font-family: 'Times New Roman';
    text-align: center;
}

/*Servicios ------------------------------------------------------------------------------------- */
/* Grid de servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Tarjetas de servicio */
.servicio-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .servicio-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.servicio-icono img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.servicio-contenido h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.servicio-contenido p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.servicios-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.servicio-card {
    width: calc(50% - 60px);
    margin-bottom: 40px;
}

/* Imagen central */
.servicios-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 533px;
    /* background: url('https://coloticosurfboards.com/wp-content/uploads/2024/11/ColoTico-Board3.png') center/contain no-repeat;*/
    z-index: -1;
}

/*Servicios*/
.servicios-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.servicios-columna {
    flex: 1;
    max-width: 300px;
}

.servicio-item {
    margin-bottom: 40px;
    text-align: center;
}

.servicio-icono img {
    margin-bottom: 20px;
}

.servicio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.servicio-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1.5rem
}

.servicios-imagen {
    align-self: center;
    margin: 0 20px;
}

@media (max-width: 768px) {
    .servicios-container {
        flex-direction: column;
        align-items: center;
    }

    .servicios-columna {
        max-width: 100%;
    }

    .servicios-imagen {
        order: -1;
        margin-bottom: 30px;
    }
}

/*Boton flotante*/
.floating-contact-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.contact-toggle {
    display: none;
}

.contact-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.contact-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-toggle:checked ~ .contact-options {
    opacity: 1;
    visibility: visible;
    bottom: 80px;
}

.contact-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .contact-option:hover {
        transform: scale(1.1);
    }

.email {
    background: #EA4335;
}

.whatsapp {
    background: #25D366;
}

.phone {
    background: #4285F4;
}

.floating-contact-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
}

/* === FIX GLOBO FLOTANTE EN MÓVILES === */
@media (max-width: 768px) {

    /* Asegurar que nada genere overflow */
    html, body {
        overflow-x: hidden;
    }

    .floating-contact-container {
        position: fixed !important;
        bottom: 15px !important;
        right: 15px !important;
        left: auto !important;
        z-index: 1000;
        max-width: 100vw;
    }

    .contact-options {
        position: fixed; /* FIX: no depende del contenedor */
        bottom: 70px; /* Separación desde el globo */
        right: 15px; /* Ajusta según el globo */
        display: flex;
        flex-direction: column;
        gap: 10px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9999;
    }

    .contact-toggle:checked ~ .contact-options {
        opacity: 1;
        visibility: visible;
    }

    .contact-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .contact-option {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
/*fin boton flotante*/

/*Galeria Fotos*/
.galeria {
    padding: 40px 20px;
   /* background-color: #f8f9fa;*/
    text-align: center;
}

    .galeria h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: #333;
    }

/* Masonry layout */
.galeria-grid {
    column-count: 4; /* número de columnas */
    column-gap: 20px; /* espacio entre columnas */
    max-width: 1200px;
    margin: 0 auto;
}

    .galeria-grid img {
        width: 100%;
        display: block;
        margin-bottom: 20px;
        border-radius: 10px;
        object-fit: cover;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        /* Cursor de clickeable */
        cursor: pointer;
    }

        .galeria-grid img:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        }

        /* Alturas variables para simular Pinterest */
        .galeria-grid img:nth-child(1) {
            height: 300px;
        }

        .galeria-grid img:nth-child(2) {
            height: 220px;
        }

        .galeria-grid img:nth-child(3) {
            height: 350px;
        }

        .galeria-grid img:nth-child(4) {
            height: 280px;
        }

        .galeria-grid img:nth-child(5) {
            height: 320px;
        }

        .galeria-grid img:nth-child(6) {
            height: 250px;
        }

        .galeria-grid img:nth-child(7) {
            height: 360px;
        }

        .galeria-grid img:nth-child(8) {
            height: 230px;
        }

        .galeria-grid img:nth-child(9) {
            height: 310px;
        }

        .galeria-grid img:nth-child(10) {
            height: 270px;
        }

        .galeria-grid img:nth-child(11) {
            height: 340px;
        }

        .galeria-grid img:nth-child(12) {
            height: 260px;
        }

        .galeria-grid img:nth-child(13) {
            height: 300px;
        }

        .galeria-grid img:nth-child(14) {
            height: 220px;
        }

        .galeria-grid img:nth-child(15) {
            height: 330px;
        }

/* Responsive */
@media (max-width: 1200px) {
    .galeria-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .galeria-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .galeria-grid {
        column-count: 1;
    }
}


/*Ubicacion*/
.mapa {
    padding: 40px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

    .mapa h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: #333;
    }

.map {
    width: 100%;
    height: 100%;
}


.mapa-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;

}

.mapa-col {
    flex: 1 1 500px;
    min-width: 300px;
    max-width: 600px;
   /* box-shadow: 0 4px 10px rgba(0,0,0,0.1);*/
    border-radius: 10px;
    overflow: hidden;
}

    .mapa-col img {
        width: 100%; /* se adaptan al ancho del contenedor */
        max-width: 600px; /* opcional, límite de tamaño */
        height: 250px; /* alto fijo */
        object-fit: cover; /* mantiene proporción sin deformar */
        display: block;
        margin: 10px auto; /* espacio entre ellas y centrado */
        /* border: 5px solid #2c3e50;*/
        border-radius: 2%;
        /* Cursor de clickeable */
        cursor: pointer;
        /*Transición para animación suave */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

.mapa-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Estilos mejorados para la sección "Maestro Artesanos" */
.about-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

/* Cada columna ocupa igual espacio en PC */
.col {
    flex: 1;
    min-width: 350px;
    position: relative;
    text-align: center;
}
.colvideo {
    flex: 3;
    width: 450px;
    position: relative;
    text-align: center;
}
    /* Texto dentro de la segunda columna */
    .col p {
        line-height: 1.8;
        margin-bottom: 2rem;
        padding: 0 1rem;
        text-align: justify;
    }

    /* Imágenes adaptables */
.col img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    /*border: 5px solid #2c3e50;*/
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* Cursor de clickeable */
    cursor: pointer;
}

        .col img:hover {
            transform: scale(1.05);
            box-shadow: 0 25px 50px rgba(0,0,0,0.3);
        }

/* Video adaptativo */
.video-section {
    margin-top: 2rem;
    width: 100%;
}

.video-contenedor {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    background: #000;
    max-width: 800px;
    margin: 0 auto;
}

    .video-contenedor iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .row {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .col img {
        max-width: 350px;
    }

    .video-contenedor {
        max-width: 100%;
        padding-bottom: 60%;
    }
}

@media (max-width: 576px) {
    .tituloh2 {
        font-size: 2rem;
    }

    .col img {
        max-width: 90%;
    }

    .video-contenedor {
        padding-bottom: 65%;
    }
}

/* Icono nav */
/* Efecto de crecimiento al pasar el mouse */
.hover-grow:hover {
    transform: scale(1.05);
}

/* Opcional: Borde circular con color de tema */
.rounded-circle {
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 2px;
}

/* Footer general */
/* Estilos para redes sociales */
.social-footer a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

    .social-footer a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

/* Estilos para desarrolladores */
.developer-credits {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .developer-credits a {
        display: inline-flex;
        width: 28px;
        height: 28px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

        .developer-credits a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

/* Ajustes responsive */
@media (max-width: 768px) {
    .social-footer {
        margin-top: 15px;
    }

    .developer-credits {
        margin-top: 20px;
    }
}


/* Ajustes footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #f0f0f0; /* o cualquier color */
    color: #333;
    font-size: 14px;
    border-top: 1px solid #ccc;
}

.footer-col {
    flex: 1;
    margin-left: 5%;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
}

    .footer-col.center {
        text-align: center;
    }

    .footer-col.right {
        text-align: right;
        margin-right: 7%;
    }


/* Contenedor de los iconos */
.social-icons-footer-yt {
    display: flex;
    flex-direction: column; /* Apilado vertical */
    gap: 10px;
    margin-top: 10px;
}

.social-link-yt {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}
    .social-link-yt span {
        color: white; /* Cambia solo el texto dentro del span */
    }
    .social-link-yt i {
        font-size: 1.5rem;
        color: deeppink;
        transition: all 0.3s ease;
    }

    .social-link-yt:hover i,
    .social-link-yt:hover span {
        color: white;
    }

    .social-link-yt:hover {
        background-color: #0066cc;
        padding: 5px 10px;
        border-radius: 5px;
    }




/* Contenedor de iconos (reutilizable) */
.social-link-linkedin {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #0A66C2; /* Color original de LinkedIn */
    font-weight: 500;
    transition: all 0.3s ease;
}

    .social-link-linkedin span {
        color: white; /* Cambia solo el texto dentro del span */
    }

    .social-link-linkedin i {
        font-size: 1.5rem;
        color: #0A66C2; /* Color original de LinkedIn */
        transition: all 0.3s ease;
    }

    .social-link-linkedin:hover i,
    .social-link-linkedin:hover span {
        color: white; /* Al hacer hover, cambia a blanco */
    }

    .social-link-linkedin:hover {
        background-color: #0066cc; /* Fondo azul al pasar el mouse */
        padding: 3px 8px;
        border-radius: 5px;
    }



/*Tienda*/

/* Contenedor principal */
.tienda-container {
    padding-top: 80px;
    padding-bottom: 40px;
}

/* Título */
.tienda-titulo {
    font-size: 1.8rem;
}

/* Grid de productos */
.tienda-productos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    /* Tarjetas */
    .tienda-productos-grid .card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .tienda-productos-grid .card-body {
        display: flex;
        flex-direction: column;
    }

        .tienda-productos-grid .card-body .mt-auto {
            margin-top: auto;
        }

/* Imagen del producto */
.tienda-card-img {
    width: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

/* Categorías: alineadas arriba */
.tienda-categorias {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ------------------------ */
/* DESKTOP: Categorías izquierda, 3 columnas productos */
/* ------------------------ */
@media (min-width: 992px) {
    .tienda-productos-grid > div {
        flex: 0 0 32%;
        max-width: 32%;
    }

    .tienda-card-img {
        height: 300px;
    }
}

/* ------------------------ */
/* TABLET: 2 columnas productos, categorías arriba */
/* ------------------------ */
@media (min-width: 768px) and (max-width: 991px) {
    .tienda-productos-grid > div {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .tienda-card-img {
        height: auto;
    }

    .tienda-categorias,
    .tienda-productos {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* ------------------------ */
/* MÓVIL: 1 columna productos y categorías arriba */
/* ------------------------ */
@media (max-width: 767px) {
    .tienda-productos-grid > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tienda-card-img {
        height: auto;
    }

    .tienda-categorias,
    .tienda-productos {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .tienda-container {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 60px;
    }
}

/* ---------------------- */
/* MODAL DE TIENDA (para productos) */
/* ---------------------- */
.tienda-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    inset: 0;
    background-color: rgba(0,0,0,0.8);
    /* Igual que el modal general */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tienda-modal-contenido {
    margin: 0;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tienda-modal-cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}




/* Estilos para el modal de términos */
#terminosModal .modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#terminosModal .modal-header {
    border-bottom: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px 10px 0 0 !important;
}

#terminosModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#terminosModal section {
    border-left: 3px solid #0d6efd;
    padding-left: 15px;
    margin-bottom: 20px;
}

#terminosModal h5 {
    color: #0d6efd;
    margin-bottom: 10px;
}

#terminosModal ul {
    padding-left: 20px;
}

#terminosModal li {
    margin-bottom: 5px;
}

/* Efecto vidrio para el modal */
.glass-effect {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
}

/* Mejor legibilidad para el contenido */
.modal-body {
    color: #333;
    line-height: 1.7;
}

    /* Ajustes para títulos */
    .modal-body h5 {
        color: #0d6efd;
        border-bottom: 1px dashed #ddd;
        padding-bottom: 8px;
        margin-top: 20px;
    }

    /* Mejor contraste para listas */
    .modal-body ul {
        color: #444;
    }

/* Transparencia del fondo del modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Efecto hover para botones */
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.WidgetTitle__Header-sc-c581efe-2.dNtlyB {
    display: none !important;
}

/* Imagen de Certificado */
.miniatura {
    width: 100px; /* tamaño pequeño */
    height: auto;
    cursor: pointer; /* manito al pasar */
    border-radius: 6px;
    transition: transform 0.2s;
}

    .miniatura:hover {
        transform: scale(1.05);
    }

/* ---------------------- */
/* MODAL GENERAL (para certificados, imágenes, etc.) */
/* ---------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0; /* Ocupa toda la pantalla */
    background-color: rgba(0,0,0,0.8);
    /* Flexbox puro para centrado automático */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Evita que el contenido se vaya arriba */
    overflow: hidden;
}

/* Imagen dentro del modal general */
.modal-contenido {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    display: block;
    margin: 0 auto;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Botón cerrar modal general */
.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1001;
}
/* ---------------------- */
/* 📱 Ajustes responsivos para móviles */
/* ---------------------- */
@media (max-width: 768px) {
    /* Modal general */
    .modal-contenido {
        max-width: 95%;
        max-height: 85%;
    }

    .cerrar {
        top: 15px;
        right: 15px;
        font-size: 32px;
    }

    /* Modal tienda */
    .tienda-modal-contenido {
        max-width: 95%;
        max-height: 85%;
    }

    .tienda-modal-cerrar {
        top: 15px;
        right: 15px;
        font-size: 32px;
    }
}


/* ---------------- Carrusel comentarios (REEMPLAZAR) ---------------- */
.carrusel-comentarios {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    overflow: visible; /* botones se muestran fuera si hace falta */
}

/* inner: permite swipe, pero oculta scrollbar visualmente */
.carrusel-comentarios-contenedor {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* firefox */
}

    .carrusel-comentarios-contenedor::-webkit-scrollbar {
        display: none;
    }
/* chrome/safari */

/* Tarjetas */
.comentario {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    box-sizing: border-box;
    scroll-snap-align: start;
    /* Desktop: 4 visibles (calc resta el gap) */
    flex: 0 0 calc(25% - 15px);
    min-width: 220px; /* evita desaparecer en pantallas medianas */
    max-width: 320px;
}

    /* Tipografía interna (sin cambios funcionales) */
    .comentario h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        color: #333;
    }

    .comentario .fecha {
        font-size: 0.8rem;
        color: #777;
        margin-bottom: 10px;
    }

    .comentario .estrellas {
        color: #fbbc04;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .comentario .texto {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.4;
    }

/* Botones (siempre visibles y encima) */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.98);
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    font-size: 20px;
    color: #222;
    z-index: 9999; /* muy alto para que no queden detrás */
    transition: transform .18s ease, background .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .carrusel-btn:hover {
        transform: translateY(-50%) scale(1.08);
        background: #fbbc04;
        color: #fff;
    }

    /* siempre dentro del contenedor (evita quedar fuera y cortados) */
    .carrusel-btn.prev {
        left: 8px;
    }

    .carrusel-btn.next {
        right: 8px;
    }

/* ---------------- Responsive ---------------- */

/* Laptops grandes -> 3 visibles */
@media (max-width: 1200px) {
    .comentario {
        flex: 0 0 calc(33.333% - 15px);
        min-width: 260px;
    }
}

/* Tablets -> 2 visibles */
@media (max-width: 992px) {
    .comentario {
        flex: 0 0 calc(50% - 15px);
        min-width: unset;
    }

    .carrusel-btn {
        padding: 10px;
        font-size: 18px;
    }
}

/* Móviles -> 1 visible */
@media (max-width: 768px) {
    .comentario {
        flex: 0 0 90%;
    }

    .carrusel-btn {
        padding: 10px;
        font-size: 18px;
        top: 45%;
    }

        .carrusel-btn.prev {
            left: 6px;
        }

        .carrusel-btn.next {
            right: 6px;
        }
}

@media (max-width: 480px) {
    .comentario {
        flex: 0 0 95%;
        padding: 14px;
    }

    .carrusel-btn {
        padding: 8px;
        font-size: 16px;
    }

        .carrusel-btn.prev {
            left: 6px;
        }

        .carrusel-btn.next {
            right: 6px;
        }
}
