/* --- RESET Y BASE --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body { overflow-x: hidden; background-color: #122338; color: white; scroll-behavior: smooth; }

/* --- ESTILO DE BOTONES FLOTANTES --- */
.social-sidebar {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
}

.social-btn {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.social-btn.wa:hover { background: #25D366; border-color: #25D366; }
.social-btn.fb:hover { background: #1877F2; border-color: #1877F2; }
.social-btn.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; }
.social-btn.tk:hover { background: #000000; border-color: #fe2c55; }

/* --- NAVEGACIÓN --- */
/* Alinea el logo y el texto horizontalmente */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre la imagen y el texto */
}

/* Controla el tamaño de tu logo */
.logo-img {
    height: 45px; /* Ajusta según el alto de tu navbar (que es 70px) */
    width: auto;
    object-fit: contain;
}

/* Tu .navbar actual está perfecto, no le cambies nada */
.navbar {
    background-color: #1a304a; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    padding: 0 5%; 
    height: 70px; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}
/*****************************************************************************************************************/
.logo { color: white; text-decoration: none; font-size: 1.5rem; font-weight: 800; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: #f39c12; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: white; }

.menu-check, .hamburger { display: none; }

/* --- HERO SLIDER --- */
.hero { position: relative; height: 65vh; width: 100%; overflow: hidden; }
.slider-track { display: flex; width: 400%; height: 100%; animation: slideRotation 20s infinite ease-in-out; }
.slider-track img { width: 100%; height: 100%; object-fit: cover; }

@keyframes slideRotation {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

/* --- CATÁLOGO GRID --- */
.catalog { 
    padding: 50px 3%; 
    max-width: 1300px; 
    margin: 0 auto; 
}

.product-grid { 
    display: grid; 
    /* Default: 4 columns for large screens */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

.product-card { 
    background-color: #1a304a; 
    border-radius: 12px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: 0.3s; 
}

.product-image { 
    position: relative; 
    width: 100%;
    /* Forces 1:1 Aspect Ratio (Square like 1080x1080) */
    aspect-ratio: 1 / 1; 
}

.product-slideshow { 
    width: 100%; 
    height: 100%; 
    overflow: hidden;
}

.slideshow-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slideshow-track img {
    width: 100%;
    height: auto; /* Permite que la altura sea proporcional al ancho */
    display: block;
    object-fit: contain; /* Mantiene la imagen íntegra */
}

/*************************************************************************************************OTRA SECCION*/
.nav-prev, .nav-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; border: none; padding: 8px;
    border-radius: 50%; cursor: pointer; opacity: 0; transition: 0.3s;
}
.product-card:hover .nav-prev, .product-card:hover .nav-next { opacity: 1; }
.nav-prev { left: 8px; } .nav-next { right: 8px; }

.dots-container { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.dot { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; }
.dot.active { background: #f39c12; }

.badge { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 15px; font-size: 0.65rem; font-weight: bold; z-index: 10; }
.stock { background: #27ae60; } .warning { background: #e67e22; } .danger { background: #e74c3c; }

.product-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 0.95rem; margin-bottom: 5px; }
.price { color: #f39c12; font-size: 1.1rem; font-weight: bold; margin-bottom: 12px; }

.btn-whatsapp { background: #2ecc71; color: white; text-align: center; padding: 10px; text-decoration: none; border-radius: 6px; font-weight: bold; margin-top: auto; transition: 0.3s; }
.btn-whatsapp:hover { background: #27ae60; }
.btn-disabled { background: #444; color: #888; padding: 10px; border: none; border-radius: 6px; margin-top: auto; }

/* --- RANGO DE ENTREGAS --- */
.delivery-range { background-color: #122338; padding: 80px 6%; color: white; }
.range-container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: #fff; }
.range-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.info-header i { color: #f39c12; font-size: 2rem; }
.info-header h3 { font-size: 1.8rem; margin: 0; }
.info-description { color: #ccc; margin-bottom: 30px; line-height: 1.6; }

.zones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.zone-card { background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 12px; border-left: 4px solid #f39c12; }
.zone-card h4 { color: #f39c12; margin-bottom: 5px; font-size: 1rem; }
.zone-card p { font-size: 0.85rem; color: #eee; margin: 0; }
.delivery-time { background: rgba(243, 156, 18, 0.15); padding: 15px 20px; border-radius: 10px; display: flex; align-items: center; gap: 10px; color: #f39c12; }

.map-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255, 255, 255, 0.1); height: 480px; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }


/* --- NUESTROS SERVICIOS (MODIFICADO) --- */
.services-section {
    background-color: #1a324d; 
    padding: 80px 6%;
    text-align: center;
    overflow: visible; /* Permite que el hover no se corte */
}

.services-main-title { font-size: 2.5rem; margin-bottom: 50px; color: #fff; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #122338; 
    padding: 45px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: #162a44;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card i {
    color: #ff9f43;
    font-size: 3.5rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 159, 67, 0.2));
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #a0aec0;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- ACERCA DE NOSOTROS --- */
.about-section { background-color: #122338; padding: 80px 6%; text-align: center; color: white; }
.about-container { max-width: 1000px; margin: 0 auto; }
.about-main-title { font-size: 2.5rem; margin-bottom: 40px; font-weight: 600; }
.about-intro { margin-bottom: 60px; line-height: 1.8; }
.about-intro p { font-size: 1.1rem; color: #cbd5e0; margin-bottom: 20px; }
.about-intro strong { color: #f39c12; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.about-item { display: flex; flex-direction: column; align-items: center; }
.about-item i { color: #f39c12; font-size: 2.5rem; margin-bottom: 20px; }
.about-item h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 700; }
.about-item p { font-size: 0.95rem; color: #a0aec0; line-height: 1.6; }

/* --- FOOTER --- */
.main-footer { background-color: #1a324d; color: white; padding: 60px 6% 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand { color: #f39c12; font-size: 1.5rem; margin-bottom: 15px; font-weight: 700; }
.footer-column h4 { color: #f39c12; margin-bottom: 25px; font-size: 1.2rem; }
.footer-column p, .contact-list li, .schedule-list li { color: #cbd5e0; font-size: 0.95rem; margin-bottom: 12px; list-style: none; }
.contact-list li i { color: #f39c12; margin-right: 10px; width: 20px; }
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; text-decoration: none; transition: 0.3s; font-size: 1.2rem; }
.whatsapp { background-color: #25d366; } .facebook { background-color: #1877f2; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.tiktok { background-color: #000000; border: 1px solid rgba(255,255,255,0.2); }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: #718096; }

/* --- MEDIA QUERIES (RESPONSIVE) --- */

/* Pantallas Medianas (Laptops/Tablets Grandes): 3 COLUMNAS */
@media (max-width: 1100px) {
    .product-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 15px;
    }
}

/* Pantallas de Tablet: 2 COLUMNAS y Ajustes Generales */
@media (max-width: 992px) {
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .range-content { grid-template-columns: 1fr; }
    .map-wrapper { height: 400px; }
}

@media (max-width: 850px) {
    /* Menú Hamburguesa */
    .hamburger { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
    .hamburger span { background: #f39c12; height: 3px; width: 25px; transition: 0.3s; }
    .nav-container { position: absolute; top: 70px; left: 0; width: 100%; background: #1a304a; max-height: 0; overflow: hidden; transition: 0.4s; }
    .menu-check:checked ~ .nav-container { max-height: 400px; }
    .nav-links { flex-direction: column; padding: 15px 0; }
    .nav-links a { display: block; padding: 15px; text-align: center; }

    /* Catálogo: Ajuste de imagen para mantener escala 1:1 */
.product-image { 
        height: auto; /* Quitamos los 150px fijos */
        aspect-ratio: 1 / 1; 
    }
    /* Servicios */
    .services-grid { 
        grid-template-columns: 1fr; 
        padding: 0 10px;
    }
    .service-card { padding: 35px 20px; }

    /* Acerca de Nosotros y Footer */
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }
    .contact-list li i { display: block; margin-bottom: 5px; margin-right: 0; }
}

/* Pantallas Pequeñas (Móviles) */
@media (max-width: 600px) {
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); /* Se mantiene en 2 columnas */
        gap: 10px;
    }
    .social-btn { width: 55px; height: 55px; font-size: 24px; }
    .social-sidebar { right: 10px; gap: 10px; }
    .zones-grid { grid-template-columns: 1fr; }
    .section-title, .services-main-title { font-size: 2rem; }
}

/* Desactivar saltos de hover en pantallas táctiles */
@media (hover: none) {
    .service-card:hover, .product-card:hover {
        transform: none;
    }
}