
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; background-color: #f4f4f4; color: #333; }
a { text-decoration: none; color: inherit; }
main { max-width: 1200px; margin: 20px auto; padding: 20px; }
.titulo-seccion { text-align: center; margin-bottom: 2rem; font-size: 2rem; }


header { 
    background-color: #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    padding: 0.75rem 1.5rem; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.header-contenido { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: #333; 
    flex-shrink: 0;
}
.logo img { height: 40px; width: auto; display: block; }
.logo span { white-space: nowrap; }
.navegacion { display: flex; gap: 1.5rem; }
.navegacion a { padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: border-color 0.3s; white-space: nowrap; }
.navegacion a:hover { border-color: #007bff; }
.busqueda-form { display: flex; flex-grow: 1; border: 1px solid #ddd; border-radius: 20px; overflow: hidden; }
.busqueda-form input { border: none; padding: 0.5rem 1rem; outline: none; width: 100%; }
.busqueda-form button { background: none; border: none; cursor: pointer; padding: 0 0.75rem; font-size: 1rem; }
.header-iconos-derecha { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.boton-carrito { background: none; border: none; cursor: pointer; font-size: 1.5rem; position: relative; }
.carrito-contador { position: absolute; top: -5px; right: -10px; background-color: #dc3545; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 0.75rem; display: flex; justify-content: center; align-items: center; }
.boton-menu-movil { display: none; }


footer { background-color: #333; color: white; margin-top: 40px; padding: 2rem; }
.footer-contenido { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-contenido h3 { margin-bottom: 1.5rem; }
.video-responsive { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; border-radius: 8px; }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.footer-videos-container { display: flex; justify-content: center; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 2rem; }
.video-item { flex: 1; min-width: 280px; max-width: 400px; }


.productos-contenedor { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tarjeta-producto { border: 1px solid #ddd; border-radius: 8px; background-color: white; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; }
.tarjeta-producto:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.tarjeta-producto img { max-width: 100%; height: 200px; object-fit: cover; }
.tarjeta-producto-info { padding: 15px; }
.tarjeta-producto-info h3 { font-size: 1.1rem; margin-bottom: 10px; }
.tarjeta-producto-info p { font-size: 1.2rem; font-weight: bold; color: #2c5e2e; margin-bottom: 15px; }
.boton-agregar { background-color: #28a745; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 1rem; transition: background-color 0.2s; }
.boton-agregar:hover { background-color: #218838; }
.tarjeta-producto-enlace-imagen { position: relative; display: block; }
.ver-mas-etiqueta { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); background-color: #007bff; color: white; padding: 2px 5px; border-radius: 5px; font-size: 0.7rem; font-weight: bold; z-index: 10; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }


.detalle-producto-contenedor {
    display: grid;
    grid-template-columns: 40% 1fr; 
    gap: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    align-items: start; 
}
.columna-izquierda-info {
    grid-column: 1;
}
.galeria-producto-grid {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-content: start;
}
.galeria-imagen-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.galeria-imagen-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  display: block;
}
.producto-info-principal h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.producto-info-principal .precio { font-size: 2rem; color: #2c5e2e; margin-bottom: 1.5rem; }
.producto-info-principal .boton-agregar { width: 100%; padding: 15px; font-size: 1.2rem; }
.producto-descripcion-corta { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.detalles-tecnicos-contenedor { margin-top: 1.5rem; }
.detalles-desplegables { margin-top: 20px; border: 1px solid #e0e0e0; border-radius: 8px; background-color: #e9f2e4; }
.detalles-desplegables summary { cursor: pointer; font-weight: bold; padding: 15px; outline: none; }
.detalles-desplegables p { padding: 0 15px 15px 15px; line-height: 1.7; border-top: 1px solid #e0e0e0; margin-top: 10px; }
.producto-descripcion-larga,
.contenedor-videos-producto {
    grid-column: 1 / -1; 
}
.producto-descripcion-larga { padding: 2rem 0; border-top: 1px solid #eee; }
.producto-descripcion-larga h3 { font-size: 1.8rem; margin-bottom: 1rem; text-align: center; }
.contenido-descripcion-larga { line-height: 1.7; font-size: 1.1rem; }
.contenedor-videos-producto { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.contenedor-videos-producto h3 { width: 100%; text-align: center; margin-bottom: 20px; font-size: 1.8rem; }


.sugerencias-contenedor { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #ddd; }
.sugerencias-contenedor h2 { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; }


.chatbot-flotante-enlace { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.2s; }
.chatbot-flotante-enlace:hover { transform: scale(1.1); }
.chatbot-icono-circulo { background-color: #008a4f; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); margin-bottom: 5px; }
.chatbot-icono-circulo svg { width: 30px; height: 30px; fill: white; }
.chatbot-texto { color: #333; font-weight: bold; font-size: 0.8rem; background-color: rgba(255, 255, 255, 0.8); padding: 2px 8px; border-radius: 10px; }
.chatbot-modal-container { position: fixed; bottom: 20px; right: 20px; width: 400px; height: 80%; max-height: 700px; background-color: rgb(53 27 208 / 0%); border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 1999; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease-in-out, opacity 0.3s; opacity: 0; transform: translateY(30px); pointer-events: none; }
.chatbot-modal-container.activo { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chatbot-header { position: relative; height: 0; }
.chatbot-cerrar { position: absolute; top: 10px; right: 10px; z-index: 2000; background-color: rgb(53 27 208 / 0%); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 20px; line-height: 30px; text-align: center; cursor: pointer; transition: background-color 0.2s; }
.chatbot-cerrar:hover { background-color: rgb(53 27 208 / 0%); }
.chatbot-modal-container iframe { flex-grow: 1; width: 100%; height: 100%; border: none; border-radius: 15px; }
.carrito-modal { position: fixed; top: 0; right: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.carrito-modal.activo { opacity: 1; visibility: visible; }
.carrito-modal-contenido { position: absolute; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100%; background-color: white; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: right 0.4s ease-in-out; padding: 1.5rem; display: flex; flex-direction: column; }
.carrito-modal.activo .carrito-modal-contenido { right: 0; }
.cerrar-modal { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; background: none; border: none; cursor: pointer; }
.carrito-modal h2 { margin-bottom: 1rem; }
.carrito-productos { flex-grow: 1; overflow-y: auto; }
.carrito-vacio { color: #777; text-align: center; margin-top: 2rem; }
.carrito-producto { display: flex; align-items: center; gap: 1rem; padding: 10px 0; border-bottom: 1px solid #eee; }
.carrito-producto img { width: 60px; height: 60px; border-radius: 5px; }
.carrito-producto-info { flex-grow: 1; }
.carrito-producto-titulo { font-weight: bold; }
.carrito-producto-precio { color: #555; }
.carrito-producto-eliminar { background-color: #dc3545; color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.carrito-acciones { border-top: 1px solid #ddd; padding-top: 1rem; }
.carrito-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 1rem; }
.boton-comprar, .boton-vaciar { border: none; padding: 1rem; border-radius: 5px; cursor: pointer; font-size: 1rem; font-weight: bold; width: 100%; margin-top: 0.5rem; }
.boton-comprar { background-color: #007bff; color: white; }
.boton-vaciar { background-color: #6c757d; color: white; }
.calificacion-contenedor { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 15px; cursor: pointer; }
.estrellas { color: #ffc107; font-size: 1.1rem; }
.reviews-count { color: #007bff; font-size: 0.9rem; font-weight: bold; }
.calificacion-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 3000; }
.calificacion-modal-contenido { background-color: white; padding: 2rem 3rem; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.calificacion-modal-contenido h3 { margin-bottom: 1.5rem; }
.calificacion-modal-estrellas span { font-size: 2.5rem; color: #ccc; cursor: pointer; transition: color 0.2s; }
.calificacion-modal-estrellas span:hover { color: #ffc107; }


@media (max-width: 992px) {
    .header-contenido { justify-content: space-between; }
    .navegacion, .logo span { display: none; }
    .navegacion { order: 3; width: 100%; flex-basis: 100%; position: absolute; top: 100%; left: 0; background-color: white; flex-direction: column; padding: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .navegacion.activo { display: flex; }
    .boton-menu-movil { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
    .boton-menu-movil span { width: 25px; height: 3px; background-color: #333; border-radius: 2px; }
}


@media (max-width: 768px) {
    .detalle-producto-contenedor {
        grid-template-columns: 1fr;
    }
    .columna-izquierda-info,
    .galeria-producto-grid {
        grid-column: 1;
        grid-row: auto;
    }

  
    .chatbot-modal-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    .chatbot-modal-container iframe {
        border-radius: 0;
    }
}





.descripcion-expandible {
    position: relative; 
}

.contenido-texto {
    overflow: hidden; 
    transition: max-height 0.5s ease-in-out; 
}

.descripcion-expandible[data-estado="colapsado"] .contenido-texto {
    max-height: 700px; 
}


.descripcion-expandible[data-estado="colapsado"]::after {
    content: '';
    position: absolute;
    bottom: 40px; 
    left: 0;
    right: 0;
    height: 200px; 
    background: linear-gradient(to bottom, transparent, #ffffff); 
    pointer-events: none; 
}

.descripcion-expandible[data-estado="expandido"] .contenido-texto {
    max-height: none; 
}


.boton-leer-mas {
    display: block;
    margin: 15px auto 0;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}
.boton-leer-mas:hover {
    background-color: #e0e0e0;
}




.footer-comentarios-seccion {
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid #555;
    text-align: left;
}

.footer-comentarios-seccion h4 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.comentario-item {
    background-color: #444;
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.comentario-item p {
    margin-bottom: 8px;
    color: #f0f0f0;
}

.comentario-autor {
    font-style: italic;
    color: #ccc;
    font-weight: bold;
}

.boton-ver-mas {
    display: block;
    margin: 10px auto 20px;
    background: none;
    border: none;
    color: #00aaff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 1rem;
}

.form-comentario-caja {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-comentario-caja textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #666;
    background-color: #555;
    color: #fff;
    resize: vertical;
}

.boton-enviar-comentario {
    align-self: flex-end; 
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.modal-comentarios-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-comentarios-overlay.activo {
    opacity: 1;
    visibility: visible;
}

.modal-comentarios-contenido {
    background: white;
    color: #333;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-comentarios-contenido p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.boton-cerrar-modal {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}




.seccion-direccion {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.seccion-direccion .titulo-seccion {
    font-weight: 300; 
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.direccion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center;
}

.direccion-texto h1 {
    font-size: 3.5rem;
    font-weight: 300; 
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #333;
}

.direccion-texto p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.direccion-imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.mapa-contenedor {
    margin-top: 3rem; 
}


@media (max-width: 768px) {
    .direccion-grid {
        grid-template-columns: 1fr; 
    }

    .direccion-texto {
        order: 2; 
        text-align: center; 
        margin-top: 2rem;
    }

    .direccion-imagen {
        order: 1; 
    }

    .seccion-direccion .titulo-seccion {
        font-size: 2rem;
    }

    .direccion-texto h1 {
        font-size: 2.5rem;
    }
}



.con-marca-agua {
    position: relative;
    display: block;
    overflow: hidden;
}

.con-marca-agua::after {
    content: 'KYNO';
    
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    
    font-size: clamp(8px, 1.5vw, 14px); 
    font-weight: bold;
    
    color: rgba(255, 255, 255, 0.2); 
    
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
    
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
}
