/* Configuraciones generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fcfcfc;
    color: #333;


}

.contenedor {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cabecera Minimalista (Fija) */
.cabecera-minimalista {
    background-color: transparent;
    backdrop-filter: blur(8px); /* Efecto cristal para que se lea siempre */
    padding: 10px 5%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#logo-principal {
    height: 50px;
    width: auto;
}

/* --- SLIDER Y ANIMACIONES --- */
.contenedor-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: auto;
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.fade {
    animation: fadeAnim 1s ease-in-out;
}

@keyframes fadeAnim {
    from { opacity: 0.6; } 
    to { opacity: 1; }
}

/* Texto Legal sobre el Slider */
.texto-legal {
    position: absolute;
    bottom: 25px;
    left: 5%;
    font-size: 11px;
    color: #333;
    z-index: 10;
}

/* --- CONTROLES CIRCULARES ANIMADOS --- */
.slider-controles {
    position: absolute;
    bottom: 20px;
    right: 5%;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.control-btn {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.control-btn span {
    position: absolute;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.control-btn svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.control-btn circle {
    fill: none;
    stroke-width: 1.5;
}

.control-btn .bg {
    stroke: #888;
}

.control-btn .progreso {
    stroke: #000;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.control-btn.activo .progreso {
    animation: llenarBorde 3s linear forwards;
}

@keyframes llenarBorde {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

/* Títulos de las Secciones */
.seccion-productos {
    padding: 60px 0;
}

.bg-gris-claro {
    background-color: #f8f9fa;
}

.titulo-centrado {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitulo-centrado {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
    font-size: 15px;
}

/* Cuadrícula de productos */
.grid-5-columnas {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tarjeta-producto {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: center;
    padding-bottom: 15px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tarjeta-producto img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 15px;
}

.tarjeta-producto h3 {
    font-size: 14px;
    color: #333;
    margin: 0 10px 8px 10px;
    font-weight: 700;
    line-height: 1.3;
    flex-grow: 1;
}

.tarjeta-producto .precio {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    margin-bottom: 10px;
}

/* --- ESTILOS DEL CARRITO Y BOTONES --- */
.icono-carrito {
    font-size: 28px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.icono-carrito:hover {
    transform: scale(1.1);
}

#contador-carrito {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Panel Lateral del Carrito */
#panel-carrito {
    position: fixed;
    top: 0;
    right: -350px; 
    width: 320px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

#panel-carrito.activo {
    right: 0; 
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.btn-cerrar {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#lista-carrito {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.carrito-vacio {
    text-align: center;
    color: #888;
    margin-top: 20px;
}

.item-en-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.item-info h4 {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

.item-info p {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.btn-eliminar {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

.carrito-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.total-pedido {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-whatsapp-pedido {
    width: 100%;
    background-color: #25d366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-whatsapp-pedido:hover {
    background-color: #1ebe57;
}

.btn-agregar {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    width: 90%;
    margin: auto auto 0 auto;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-agregar:hover {
    background-color: #555;
}
.btn-agregar:active {
    transform: scale(0.95);
}

/* --- TOAST NOTIFICATION --- */
#toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 4000;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#toast.mostrar {
    bottom: 40px;
}

/* --- SECCIÓN DE CONFIANZA --- */
.seccion-confianza {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 50px 0;
    flex-wrap: wrap;
    gap: 30px;
    border-top: 1px solid #eaeaea;
}

.item-confianza {
    text-align: center;
    max-width: 250px;
}

.item-confianza .icono {
    font-size: 45px;
    display: block;
    margin-bottom: 15px;
}

.item-confianza h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #222;
}

.item-confianza p {
    font-size: 14px;
    color: #666;
}

/* --- FOOTER --- */
.pie-pagina {
    background-color: #222;
    color: #ddd;
    padding: 50px 0 20px 0;
}

.footer-contenido {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h3, .footer-redes h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-redes a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-redes a:hover {
    color: white;
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 13px;
    color: #888;
}

/* Botón WhatsApp Flotante */
.btn-whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.1);
}

.btn-whatsapp-flotante img {
    width: 35px;
    height: 35px;
}

/* Adaptación a móviles */
@media (max-width: 1024px) { .grid-5-columnas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { 
    .grid-5-columnas { grid-template-columns: repeat(2, 1fr); } 
    .footer-contenido { justify-content: flex-start; padding: 0 20px; }
}
@media (max-width: 480px) { 
    .grid-5-columnas { grid-template-columns: 1fr; } 
    .slider-controles { justify-content: center; width: 100%; left: 0; right: 0; } 
    .texto-legal { display: none; } 
    .seccion-confianza { flex-direction: column; align-items: center; }  
}

/* --- DATOS DEL CLIENTE EN EL CARRITO --- */
.datos-cliente {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.datos-cliente input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.datos-cliente input:focus {
    border-color: #333;
}

