/* --- Variables y Estilos Globales --- */
:root {
    --bg-color: #ffffff;
    --text-dark: #111111;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --accent-color: #8A2BE2; /* Un morado azulado (BlueViolet) */
    --accent-gradient: linear-gradient(90deg, #8A2BE2, #4F46E5);
    --font-primary: 'Inter', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background-color: var(--bg-color); color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-title { text-align: center; font-size: 3rem; font-weight: 900; margin-bottom: 50px; }

/* --- Header y Navegación --- */
.header { width: 100%; position: fixed; top: 0; z-index: 100; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); transition: background-color 0.3s, border-color 0.3s; }
.nav { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { font-size: 28px; font-weight: 900; text-decoration: none; color: var(--text-dark); }
.nav-menu-desktop { list-style: none; display: flex; gap: 40px; }
.nav-menu-desktop a { color: var(--text-dark); text-decoration: none; font-weight: 500; font-size: 1rem; position: relative; padding-bottom: 5px; }
.nav-menu-desktop a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease-out; }
.nav-menu-desktop a:hover::after { width: 100%; }
.hamburger { display: none; }

/* --- CORRECCIÓN DEFINITIVA Z-INDEX --- */
.header.menu-active {
    z-index: 1600; /* Se pone sobre el overlay (1500) */
    background-color: transparent;
    border-color: transparent;
}

/* --- Sección Hero --- */
.hero { padding-top: 150px; padding-bottom: 100px; display: flex; align-items: center; min-height: 90vh; background-color: #f9fafb; }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 60px; width: 100%; }
.hero-text-container { flex-basis: 55%; text-align: left; }
.hero-logo { flex-basis: 45%; max-width: 600px; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 20px 25px rgba(0,0,0,0.1)); }
.hero-text-container h1 { font-size: 4.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero-text-container p { font-size: 1.25rem; color: var(--text-light); max-width: 600px; }

/* --- Carrusel Infinito --- */
.carousel-section { padding: 100px 0; overflow: hidden; background-color: #f9fafb;}
.scrolling-wrapper { white-space: nowrap; }
.scrolling-wrapper:hover .scrolling-track { animation-play-state: paused; }
.scrolling-track { display: inline-block; animation: 50s scroll infinite linear; }
.slide { display: inline-block; margin: 0 15px; width: 350px; aspect-ratio: 1 / 1; border-radius: 15px; overflow: hidden; cursor: pointer; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.slide:hover { transform: translateY(-10px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Vitrina de Productos --- */
.store-section { padding: 100px 0; }
.filter-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 60px; }
.filter-btn { padding: 12px 28px; border: 1px solid var(--border-color); border-radius: 50px; background-color: transparent; color: var(--text-dark); font-weight: 500; font-size: 1rem; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover { background-color: #f3f4f6; border-color: #d1d5db; }
.filter-btn.active { background: var(--text-dark); color: white; border-color: var(--text-dark); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card, .special-card { border-radius: 15px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.06); display: flex; flex-direction: column; border: 2px solid transparent; }
.product-card { cursor: pointer; }
.product-card:hover, .special-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.product-card.highlight { border-color: var(--accent-color); box-shadow: 0 10px 25px rgba(138, 43, 226, 0.2); }
.highlight-card { border-color: var(--accent-color); box-shadow: 0 15px 30px rgba(138, 43, 226, 0.25); order: -1; }
.highlight-card .product-info h3 { color: var(--accent-color); }
.product-image { width: 100%; aspect-ratio: 1 / 1; background-color: #f9fafb; }
.product-card img, .special-card img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; text-align: center; margin-top: auto; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.product-info .price { font-size: 1.25rem; font-weight: 500; color: var(--accent-color); }
.shopify-button-placeholder { min-height: 45px; margin-top: 15px; }
.special-card .description { font-size: 0.9rem; color: var(--text-light); flex-grow: 1; margin-bottom: 15px; }
.btn-cotizar { display: inline-block; background: var(--accent-gradient); color: white; text-decoration: none; padding: 12px 20px; border-radius: 50px; font-weight: 500; margin-top: auto; transition: transform 0.3s, box-shadow 0.3s; }
.btn-cotizar:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- Sección Cotizador --- */
.cotizador-section { padding: 100px 0; }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: -30px auto 50px auto; text-align: center; }
.cotizador-form { max-width: 900px; margin: 0 auto; border: 1px solid var(--border-color); border-radius: 20px; padding: 40px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.form-step { margin-bottom: 40px; }
.form-step:last-child { margin-bottom: 0; }
.form-step h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; text-align: center; }
.dimensiones-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.input-group { display: flex; flex-direction: column; }
.input-group label { margin-bottom: 8px; font-weight: 500; color: var(--text-dark); }
.input-group input { padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: var(--font-primary); transition: border-color 0.3s, box-shadow 0.3s; }
.input-group input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1); }
.complejidad-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.radio-card { border: 2px solid var(--border-color); border-radius: 10px; padding: 20px; cursor: pointer; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; position: relative; }
.radio-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card:hover { transform: translateY(-5px); border-color: #d1d5db; }
.radio-card input[type="radio"]:checked ~ .card-content { border-color: var(--accent-color); box-shadow: 0 5px 15px rgba(138, 43, 226, 0.15); }
.card-content { text-align: center; }
.card-content i { color: var(--accent-color); width: 32px; height: 32px; margin-bottom: 10px; }
.card-content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.card-content p { font-size: 0.9rem; color: var(--text-light); }
.btn-calcular { display: block; width: 100%; padding: 18px 30px; font-size: 1.1rem; font-weight: 700; color: white; background: var(--accent-gradient); border: none; border-radius: 10px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.btn-calcular:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.resultado-cotizacion { margin-top: 30px; padding: 20px; border-radius: 10px; background-color: #f9fafb; text-align: center; font-size: 1.2rem; font-weight: 500; display: none; }
.resultado-cotizacion.visible { display: block; }
.resultado-cotizacion strong { font-size: 1.8rem; font-weight: 900; color: var(--accent-color); }
.resultado-cotizacion .disclaimer { margin-top: 10px; font-size: 0.8rem; color: var(--text-light); }

/* --- Sección CTA WhatsApp --- */
.cta-section { padding: 80px 0; background-color: #f9fafb; text-align: center; }
.cta-section .section-title { margin-bottom: 20px; }
.cta-section p { font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin: 0 auto 40px auto; line-height: 1.7; }
.btn-whatsapp-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--accent-gradient); color: white; text-decoration: none; padding: 18px 35px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; transition: transform 0.3s, box-shadow 0.3s; }
.btn-whatsapp-cta:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.btn-whatsapp-cta i { width: 24px; height: 24px; }

/* --- Footer --- */
.footer { background-color: #f9fafb; padding-top: 80px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; text-align: center; }
.footer-column i { width: 48px; height: 48px; stroke-width: 1.5; color: var(--accent-color); margin-bottom: 15px; }
.footer-column h3 { font-size: 1.2rem; margin-bottom: 10px; }
.footer-column p { color: var(--text-light); }
.footer-bottom { text-align: center; padding: 40px 0; margin-top: 60px; border-top: 1px solid var(--border-color); color: var(--text-light); }

/* --- Responsive General --- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-menu-desktop { display: none; }
    .hamburger { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 2000; position: relative; }
    .hero { padding-top: 120px; padding-bottom: 60px; min-height: auto; } .hero-content { flex-direction: column-reverse; text-align: center; } .hero-text-container { text-align: center; } .hero-text-container h1 { font-size: 2.8rem; } .hero-logo { max-width: 350px; margin-top: 30px; } .section-title { font-size: 2.2rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-info h3 { font-size: 1rem; } .product-info .price { font-size: 1.1rem; }
    .special-card { grid-column: 1 / -1; }
}

/* --- ESTILOS DEL MENÚ HAMBURGUESA Y OVERLAY --- */
.hamburger .bar { display: block; width: 100%; height: 3px; background-color: var(--text-dark); border-radius: 3px; transition: all 0.3s ease-in-out; }
.hamburger.active .bar { background-color: white; }
.hamburger.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(17, 17, 17, 0.98); backdrop-filter: blur(5px); z-index: 1500; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.nav-overlay.active { opacity: 1; pointer-events: auto; }
.nav-menu-mobile { list-style: none; padding: 0; text-align: center; }
.nav-menu-mobile li { margin: 30px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease; }
.nav-overlay.active .nav-menu-mobile li { opacity: 1; transform: translateY(0); }
.nav-overlay.active .nav-menu-mobile li:nth-child(1) { transition-delay: 0.2s; }
.nav-overlay.active .nav-menu-mobile li:nth-child(2) { transition-delay: 0.3s; }
.nav-overlay.active .nav-menu-mobile li:nth-child(3) { transition-delay: 0.4s; }
.nav-overlay.active .nav-menu-mobile li:nth-child(4) { transition-delay: 0.5s; }
.nav-link-mobile { font-size: 2.5rem; font-weight: 700; color: white; text-decoration: none; transition: color 0.3s; }
.nav-link-mobile:hover { color: var(--accent-color); }
body.no-scroll { overflow: hidden; }

/* --- ESTILOS DEL MODAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background-color: white; padding: 40px; border-radius: 20px; max-width: 1000px; width: 90%; max-height: 90vh; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2.5rem; color: var(--text-light); cursor: pointer; line-height: 1; }
.modal-gallery { display: flex; flex-direction: column; }
.main-image-container { width: 100%; aspect-ratio: 1 / 1; border-radius: 15px; overflow: hidden; margin-bottom: 15px; }
#modal-main-image { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.thumbnail-image { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid var(--border-color); transition: border-color 0.3s; }
.thumbnail-image:hover, .thumbnail-image.active { border-color: var(--accent-color); }
.modal-info h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.modal-info .modal-price { font-size: 1.8rem; color: var(--accent-color); font-weight: 500; margin-bottom: 25px; }
.modal-info .description { color: var(--text-light); line-height: 1.7; margin-bottom: 30px; }
.modal-cta-container { min-height: 50px; }
@media (max-width: 850px) {
    .modal-content { grid-template-columns: 1fr; padding: 30px; overflow-y: auto; }
    .modal-info h2 { font-size: 2rem; }
}