/* =============================================================
   MÓDULO: AQUAFORE (100% INDEPENDIENTE)
   ============================================================= */

/* --- RESET Y VARIABLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Lato', sans-serif;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0c4a6e; 
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cinzel', serif; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- NAVBAR (Efecto Cristal de Hielo) --- */
.navbar { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(186, 230, 253, 0.5); 
    backdrop-filter: blur(10px); 
}
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; display: flex; align-items: center; gap: 12px; color: #0c4a6e; }
.logo img { height: 45px; width: auto; object-fit: contain; }
.logo span { color: #0284c7; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { color: #0c4a6e; font-size: 0.9rem; letter-spacing: 1px; font-weight: bold; }
.nav-links a:hover { color: #0ea5e9; }
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 2px; background: #0284c7; margin: 5px; transition: all 0.3s ease; }
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* --- HEADER: EFECTO SUMERGIDO --- */
.brand-intro {
    background: radial-gradient(circle at center, #0284c7 0%, #0c4a6e 100%);
    padding: 5rem 2rem; text-align: center; color: white;
    position: relative; overflow: hidden;
}
.texto-agua {
    background: linear-gradient(to right, #fff, #7dd3fc, #ffffff, #38b2ac, #fff);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: flujo-agua 6s linear infinite; font-weight: 700;
}
@keyframes flujo-agua { to { background-position: 200% center; } }

/* --- CONTROLES Y CATÁLOGO --- */
.section-padding { padding: 4rem 5%; max-width: 1400px; margin: 0 auto; }
.catalog-controls { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.catalog-controls input, .catalog-controls select {
    background: rgba(255, 255, 255, 0.8); border: 1px solid #bae6fd; color: #0284c7;
    border-radius: 50px; padding: 12px 25px; font-family: 'Lato', sans-serif;
    backdrop-filter: blur(5px); transition: 0.3s; outline: none;
}
.catalog-controls input:focus, .catalog-controls select:focus { border-color: #0ea5e9; box-shadow: 0 0 15px rgba(14, 165, 233, 0.3); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.5rem; }

/* Tarjetas Aquafore */
@keyframes borde-agua { 0% { background-position: 0 0, 0% 50%; } 100% { background-position: 0 0, 100% 50%; } }
.product-card {
    position: relative; padding: 1.5rem; border-radius: 16px; transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent; text-align: center; cursor: pointer;
    background-image: linear-gradient(white, white), linear-gradient(45deg, #0ea5e9, #22d3ee, #ffffff, #0284c7, #0ea5e9);
    background-origin: padding-box, border-box; background-clip: padding-box, border-box; background-size: 100% 100%, 400% 400%;
    box-shadow: 0 10px 30px rgba(186, 230, 253, 0.4);
}
.product-card:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(2, 132, 199, 0.2); animation: borde-agua 3s linear infinite; }
.product-card img { width: 100%; height: 250px; object-fit: contain; margin-bottom: 1rem; }
.product-card h4 { color: #0c4a6e; font-weight: 700; margin-bottom: 0.5rem; }
.product-card .price { color: #0284c7; font-size: 1.4rem; font-weight: bold; }
.category-tag { color: #94a3b8; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- MODAL (Adaptado a Aquafore) --- */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(12, 74, 110, 0.9); align-items: flex-start; justify-content: center; overflow-y: auto; padding: 0; }
.modal-content { background-color: #ffffff; color: #333; padding: 3rem 1.5rem 2rem 1.5rem; text-align: center; width: 90%; max-width: 500px; margin: 10vh auto; position: relative; border: 2px solid #38b2ac; border-radius: 16px; box-shadow: 0 0 40px rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 2.5rem; color: #0c4a6e; cursor: pointer; line-height: 1; z-index: 20; }
.galeria-container { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; width: 100%; }
.modal-content img { width: 100%; height: auto; max-height: 350px; object-fit: contain; }
.nav-btn { background: rgba(2, 132, 199, 0.1); color: #0284c7; border: none; padding: 15px; font-size: 1.2rem; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; border-radius: 50%; }
.nav-btn:hover { background: #0284c7; color: white; }
.prev { left: 0; } .next { right: 0; }
.privacy-wrapper { margin: 15px 0 10px 0; color: #333 !important; font-size: 0.9rem; text-align: left; }
.privacy-wrapper a { color: #0284c7 !important; text-decoration: underline; font-weight: bold; }
.btn-llamada-doble { background: linear-gradient(45deg, #0284c7, #38b2ac); color: white; padding: 15px; width: 100%; border-radius: 8px; margin-top: 15px; display: block; transition: 0.3s; }
.btn-llamada-doble:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(2, 132, 199, 0.4); }

/* --- FOOTER & COOKIES (Estilo Aquafore Azul Noche) --- */
footer { background: #0f172a; color: #94a3b8; padding: 4rem 5% 1rem; }
.footer-content { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; margin-bottom: 3rem; }
.contact-details { flex: 1; min-width: 280px; }
.legal-links { margin-top: 1rem; font-size: 0.8rem; display: flex; justify-content: center; gap: 1.5rem; }
.legal-links a { color: #94a3b8; } .legal-links a:hover { color: white; }

#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: #0f172a; color: #f0f9ff; padding: 25px 20px; z-index: 999999; border-top: 1px solid #0284c7; box-shadow: 0 -5px 25px rgba(0,0,0,0.5); }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.cookie-text { flex: 1; min-width: 300px; font-size: 0.95rem; }
.cookie-text a { color: #38b2ac; text-decoration: underline; font-weight: bold; }
.cookie-buttons { display: flex; gap: 15px; min-width: 300px; }
.btn-cookie { flex: 1; padding: 12px 20px; border: 1px solid #bae6fd; background: transparent; color: #bae6fd; font-weight: bold; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.btn-cookie:hover { background: #bae6fd; color: #0f172a; }

/* --- MÓVIL --- */
@media (max-width: 768px) {
    .nav-links { position: absolute; right: 0; top: 70px; height: 90vh; background: rgba(240, 249, 255, 0.98); flex-direction: column; width: 80%; transform: translateX(100%); transition: 0.5s ease; justify-content: center; border-left: 1px solid #bae6fd; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .nav-links a { color: #0c4a6e; }
    .nav-active { transform: translateX(0%); }
    .burger { display: block; }
    .brand-intro h1 { font-size: 2.2rem !important; }
}