/* ================= VARIABLES ================= */
:root {
    --bg-main: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #2b2d42;
    --text-muted: #6c757d;
    --accent-blue: #1e3a8a;
    --accent-hover: #172a6b;
    --border-light: #e9ecef;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.04);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; background-color: var(--bg-main); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* ================= LAZY LOAD ================= */
.lazy-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.lazy-section.visible { opacity: 1; transform: translateY(0); }

/* ================= NAVEGACIÓN ================= */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 8%; background-color: var(--bg-white); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 24px; font-weight: 700; letter-spacing: 2px; color: var(--accent-blue); }
.nav-links a { margin-left: 25px; font-weight: 500; font-size: 14px; color: var(--text-dark); transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-blue); }
.lang-selector { display: inline-block; margin-left: 30px; padding-left: 20px; border-left: 1px solid var(--border-light); }
.lang-selector a { margin-left: 5px; color: var(--text-muted); }
.lang-selector a.active-lang { color: var(--accent-blue); font-weight: bold; text-decoration: underline; }

/* ================= HERO SECTION ================= */
.hero { position: relative; height: 80vh; min-height: 600px; background-image: url('../fotos/encabezado.png'); background-size: cover; background-position: center bottom; display: flex; align-items: center; padding: 0 8%; }
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 550px; animation: fadeIn 1s ease-out forwards; }
.hero-content h1 { font-size: 4rem; font-weight: 300; color: var(--text-dark); line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.btn-hero { background-color: var(--accent-blue); color: var(--bg-white); padding: 16px 40px; border-radius: 50px; font-weight: 600; font-size: 1rem; letter-spacing: 1px; transition: all 0.3s ease; display: inline-block; }
.btn-hero:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3); }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* ================= PRODUCTOS ================= */
.productos-section { padding: 100px 8%; background-color: var(--bg-white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 400; color: var(--text-dark); margin-bottom: 10px; }
.section-header .subtitle { color: var(--text-muted); font-size: 1.1rem; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.producto-card { background-color: var(--bg-white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); transition: all 0.4s ease; display: flex; flex-direction: column; }
.producto-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.img-container { padding: 0; width: 100%; height: 320px; overflow: hidden; border-bottom: 1px solid var(--border-light); background-color: #fcfcfc; }
.img-container img { width: 100%; height: 100%; object-fit: cover; object-position: center; cursor: pointer; transition: transform 0.4s ease; }
.img-container img:hover { transform: scale(1.08); }
.card-body { padding: 30px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; color: var(--text-dark); }
.card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; }

/* ================= RESEÑAS ================= */
.resenas-section { padding: 100px 8%; background-color: var(--bg-main); text-align: center; }
.resenas-section h2 { font-size: 2.2rem; font-weight: 400; margin-bottom: 50px; color: var(--text-dark); }
.resenas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.resena-card { background: var(--bg-white); border-radius: 12px; overflow: hidden; text-align: left; box-shadow: var(--shadow-soft); transition: transform 0.4s ease; }
.resena-card:hover { transform: translateY(-8px); }
.resena-img-container { width: 100%; height: 220px; overflow: hidden; background-color: #eee; }
.resena-img-container img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform 0.4s ease; }
.resena-img-container img:hover { transform: scale(1.05); }
.resena-content { padding: 25px; }
.estrellas { color: #eab308; font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 2px; }
.resena-content p { font-size: 0.95rem; color: var(--text-muted); font-style: italic; margin-bottom: 20px; line-height: 1.6; }
.resena-content .autor { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }

/* ================= FOOTER PREMIUM ================= */
footer { background-color: var(--text-dark); color: var(--bg-white); padding: 70px 8% 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 25px; color: var(--bg-white); letter-spacing: 1px; }
.footer-col a { display: block; color: #a0aec0; margin-bottom: 12px; font-size: 0.95rem; transition: color 0.3s, transform 0.3s; }
.footer-col a:hover { color: var(--bg-white); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); flex-wrap: wrap; gap: 20px; }
.copyright { color: #718096; font-size: 0.85rem; }

/* ================= REDES SOCIALES (SVG) ================= */
.socials { display: flex; gap: 20px; align-items: center; }
.socials a { color: #a0aec0; font-size: 1.3rem; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.socials a:hover { color: var(--bg-white); transform: translateY(-3px); }

/* ================= ÍCONOS DE PAGO ================= */
.pagos { display: flex !important; align-items: center !important; gap: 15px !important; }
.pago-icono { height: 35px !important; width: auto !important; max-width: 80px !important; object-fit: contain !important; border-radius: 4px; opacity: 0.8; transition: opacity 0.3s, transform 0.3s; background: transparent; }
.pago-icono:hover { opacity: 1; transform: scale(1.05); }

/* ================= MODAL ================= */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(255,255,255,0.95); }
.modal-content { margin: auto; display: block; width: auto; max-width: 90%; max-height: 90vh; margin-top: 5vh; animation: zoom 0.3s; }
@keyframes zoom { from {transform:scale(0.95); opacity:0;} to {transform:scale(1); opacity:1;} }
.close { position: absolute; top: 30px; right: 40px; color: var(--text-dark); font-size: 40px; font-weight: 300; cursor: pointer; transition: color 0.3s; }
.close:hover { color: var(--accent-blue); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .resenas-grid { grid-template-columns: repeat(4, 280px); overflow-x: auto; padding-bottom: 15px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .resena-card { scroll-snap-align: start; }
}
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 15px; }
    .nav-links { margin-top: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .nav-links a { margin-left: 0; padding: 5px; }
    .hero { background-position: 70% center; }
    .hero::before { background: rgba(255, 255, 255, 0.85); }
    .hero-content h1 { font-size: 2.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .socials, .pagos { margin-bottom: 10px; }
}