﻿@font-face {
    font-family: 'Social Gothic Bold';
    src: url('../fuentes/SocialGothic-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
:root {
    --verde-neon: #aacc11;
    --negro-grana: #1a1a1a;
    --gris-oscuro: #2b2b2b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial Narrow', Arial, sans-serif; }

html { background-color: #efefef !important; }
body { margin: 0 !important; padding: 0 !important; background-color: #efefef !important; display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Social Gothic Bold', sans-serif !important;
}

body { background-color: #efefef; display: flex; flex-direction: column; min-height: 100vh; }

/* --- SECCIÃ“N PRINCIPAL (HERO) --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../imagenes/fondo.png');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    height: 600px; display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; transition: background-image 1s ease-in-out; flex-grow: 1;
}
.hero h1 { color: #ffffff; font-size: 48px; text-transform: lowercase; letter-spacing: 2px; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.hero p  { color: #ffffff; font-size: 20px; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

/* --- CABECERA --- */
.main-header {
    background: linear-gradient(to bottom, #4a4a4a, #1a1a1a); display: flex;
    justify-content: space-between; align-items: center; padding: 10px 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); border-bottom: 4px solid var(--verde-neon);
    position: sticky; top: 0; z-index: 3500;
}
.logo-container { display: flex; align-items: center; }
.logo-container img { height: 80px; width: auto; }
.header-right { display: flex; align-items: center; gap: 40px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; align-items: center; }
.main-nav ul li { position: relative; }
.main-nav ul li a { color: #ffffff; text-decoration: none; font-size: 16px; transition: color 0.3s ease; display: flex; align-items: center; gap: 5px; padding: 10px 0; }
.main-nav ul li.dropdown:hover > a { color: var(--verde-neon) !important; }
.main-nav ul li:not(.dropdown) a:hover { color: var(--verde-neon); }

.dropdown-menu { display: block; opacity: 0; visibility: hidden; position: absolute; top: 100%; left: 0; background-color: #2b2b2b; min-width: 260px; box-shadow: 0 8px 16px rgba(0,0,0,0.5); z-index: 1000; border-top: 3px solid var(--verde-neon); flex-direction: column; gap: 0 !important; transform: translateY(-10px); transition: all 0.3s ease; }
.main-nav ul li.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; }
.dropdown-menu li a { padding: 12px 20px !important; font-size: 15px !important; border-bottom: 1px solid #444; color: #ffffff !important; transition: all 0.3s ease; }
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background-color: #383838 !important; color: var(--verde-neon) !important; padding-left: 28px !important; }

.header-actions { display: flex; gap: 15px; }
.header-actions button { position: relative; background: transparent; border: 1px solid var(--verde-neon); color: #ffffff; padding: 8px 16px; border-radius: 5px; font-size: 14px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; }
.header-actions button:hover { background-color: var(--verde-neon); color: #111111; }

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--verde-neon);
    color: #1a1a1a;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid #1a1a1a;
    display: none;
}

/* --- TIENDA DESPLEGABLE (SIDEBAR) --- */
.shop-tray { 
    position: fixed; top: 114px; right: 0; width: 320px; height: calc(100% - 114px); 
    background-color: #1a1a1a; z-index: 3000; transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    padding: 20px; box-shadow: -10px 0 30px rgba(0,0,0,0.5); 
    border-left: 3px solid var(--verde-neon); display: flex; flex-direction: column; 
    overflow-y: auto; /* Permite scroll si el contenido es largo */
}
.shop-tray.open { transform: translateX(0); }
.shop-tray.open .tray-content { opacity: 1; transition-delay: 0.3s; }
.shop-tray h2 { color: var(--verde-neon); font-family: 'Social Gothic Bold', sans-serif; text-transform: uppercase; margin-bottom: 20px; font-size: 24px; text-align: center; border-bottom: 1px solid #333; padding-bottom: 10px; }
.product-grid-mini { display: flex; flex-direction: column; gap: 12px; }
.prod-item { text-decoration: none; color: white; padding: 12px; background: #2b2b2b; border-radius: 6px; transition: 0.3s; border: 1px solid #444; display: flex; align-items: center; gap: 12px; }
.prod-item:hover { background: #333; border-color: var(--verde-neon); transform: translateX(5px); }
.prod-icon { font-size: 22px; color: var(--verde-neon); width: 35px; text-align: center; }
.prod-item span { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-footer { margin-top: auto; padding-top: 20px; }
.btn-ver-todo { width: 100%; padding: 14px; background: var(--verde-neon); color: #1a1a1a; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; font-family: 'Arial Narrow', Arial, sans-serif; transition: 0.3s; font-size: 15px; }
.btn-ver-todo:hover { background: white; }

/* --- OVERLAY DEL MENÃš --- */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 2500; display: none; backdrop-filter: blur(3px);
}

/* ============================================================
   BARRA DE SUBNAVEGACIÃ“N DE PRODUCTOS (product-subnav)
   ============================================================ */
.product-subnav {
    position: sticky;
    top: 114px;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 3px solid var(--verde-neon);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.product-subnav::-webkit-scrollbar { display: none; }

.product-subnav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: all 0.25s ease;
    font-family: 'Arial Narrow', Arial, sans-serif;
}

.product-subnav a i {
    font-size: 15px;
    color: var(--verde-neon);
    transition: transform 0.25s ease;
}

.product-subnav a:hover {
    color: var(--negro-grana);
    background: #f5f9e6;
    border-bottom-color: var(--verde-neon);
}

.product-subnav a:hover i {
    transform: scale(1.2);
}

.product-subnav a.active {
    color: var(--negro-grana);
    border-bottom-color: var(--verde-neon);
    background: #f5f9e6;
    font-weight: 700;
}

.product-subnav a.active i {
    color: var(--negro-grana);
}

/* Separador entre items */
.product-subnav a + a {
    border-left: 1px solid #e8e8e8;
}

/* --- FOOTER --- */
.footer-section { background-color: var(--gris-oscuro); color: #cccccc; padding: 60px 20px 20px; position: relative; margin-top: auto; }
.footer-section::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 14px; background: var(--verde-neon); box-shadow: 0 3px 5px rgba(0,0,0,0.5); }
.footer-content { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.footer-col h4 { color: #ffffff; font-size: 14px; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.footer-col p { font-size: 15px; line-height: 1.8; margin-bottom: 5px; }
.footer-col p a { color: #cccccc; text-decoration: none; transition: color 0.3s ease; }
.footer-col p a:hover { color: var(--verde-neon); }
.footer-social a { color: #cccccc; font-size: 20px; margin-right: 15px; text-decoration: none; transition: color 0.3s; }
.footer-social a:hover { color: var(--verde-neon); }
.footer-bottom { text-align: center; border-top: 1px solid var(--verde-neon); padding-top: 20px; font-size: 13px; }
.footer-bottom p { margin-bottom: 10px; }
.footer-bottom a { color: #cccccc; text-decoration: none; margin: 0 5px; }
.footer-bottom a:hover { color: var(--verde-neon); }

/* --- MODAL --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
.modal-content { background-color: #ffffff; padding: 40px; border-radius: 8px; text-align: center; position: relative; max-width: 400px; width: 90%; box-shadow: 0 10px 25px rgba(0,0,0,0.5); animation: modalFadeIn 0.3s ease; }
@keyframes modalFadeIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #666; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: #e74c3c; }
.modal-content i.icon-reloj { font-size: 50px; color: var(--verde-neon); margin-bottom: 20px; }
.modal-content h3 { color: #333; margin-bottom: 10px; font-size: 24px; text-transform: uppercase; letter-spacing: 1px; }
.modal-content p { color: #666; font-size: 15px; }

/* --- WHATSAPP --- */
.whatsapp-flotante { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10000; display: flex; justify-content: center; align-items: center; text-decoration: none; transition: all 0.3s ease; animation: latido-wa 2s infinite; }
.whatsapp-flotante:hover { background-color: #128c7e; color: #FFF; transform: scale(1.1); animation: none; }
@keyframes latido-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); transform: scale(1); } 50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); transform: scale(1.05); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .main-header { flex-direction: column; padding: 15px 10px; gap: 15px; position: relative; }
    .logo-container img { height: 55px; }
    .header-right { width: 100%; flex-direction: column; gap: 15px; }
    .main-nav ul { flex-direction: column; width: 100%; gap: 10px; }
    .main-nav ul li { width: 100%; text-align: center; }
    .main-nav ul li a { display: block; font-size: 16px; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 4px; justify-content: center; }
    .dropdown-menu { position: relative; width: 100%; display: none; box-shadow: none; border-top: none; background: transparent; padding-top: 10px; }
    .main-nav ul li.dropdown:hover .dropdown-menu,
    .main-nav ul li.dropdown:active .dropdown-menu { display: flex; flex-direction: column; gap: 5px !important; }
    .dropdown-menu li a { padding: 10px !important; font-size: 14px !important; border-bottom: 1px solid #444; background: rgba(0,0,0,0.2) !important; border-radius: 4px; }
    .dropdown-menu li a:hover { padding-left: 10px !important; }
    .header-actions { justify-content: center; gap: 8px; width: 100%; min-width: 0; }
    .header-actions button { min-width: 0; font-size: 13px; padding: 9px 8px; flex: 1 1 0; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .account-menu { min-width: 0; flex: 1 1 0; }
    .account-menu #btn-cuenta { width: 100%; min-width: 0; }
    .account-menu #btn-cuenta i { flex: 0 0 auto; }
    .account-menu-list { left: 50% !important; right: auto !important; min-width: 170px; transform: translate(-50%, -6px) !important; }
    .account-menu:hover .account-menu-list, .account-menu:focus-within .account-menu-list { transform: translate(-50%, 0) !important; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .footer-social { justify-content: center; display: flex; gap: 20px; margin-top: 5px; }

    /* Ajuste tienda mÃ³vil */
    .shop-tray { top: 0; height: 100%; width: 280px; padding-top: 60px; }
    .shop-tray.open { transform: translateX(0); }

    /* Subnav en mÃ³vil: scroll horizontal compacto */
    .product-subnav { top: 0; justify-content: flex-start; }
    .product-subnav a { padding: 12px 16px; font-size: 12px; }
    .product-subnav a span { display: none; } /* Ocultar texto, dejar solo icono en pantallas muy pequeÃ±as */
}

@media (max-width: 480px) {
    .header-actions { gap: 5px; }
    .header-actions button { font-size: 11px; padding: 8px 5px; }
    .product-subnav a { padding: 12px 14px; }
    .product-subnav a i { font-size: 18px; }
}
.file-upload-wrapper {
    margin-top: 10px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    background: #fafafa;
    transition: 0.3s;
}

.file-upload-wrapper:hover {
    border-color: #aacc11;
    background: #fff;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-wrapper label {
    cursor: pointer;
    color: #1a1a1a;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-upload-wrapper label i {
    color: #aacc11;
    font-size: 24px;
}

#nombre-archivo {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* --- IMÁGENES Y ZOOM --- */
.section-gallery img,
.about-gallery img,
.gallery-viewer img {
    object-fit: cover !important;
    background: #ffffff;
    cursor: zoom-in;
}

.product-visuals img,
.main-img-box img,
#main-product-image {
    object-fit: contain !important;
    background: #f4f4f4;
    cursor: zoom-in;
}

/* --- VINILOS: reducir un poco el tamaño visual en la página de producto --- */
/* (producto-vinilo.html usa #main-product-image; aplicamos aquí solo para evitar que se haga muy grande en esa página) */
.product-visuals#vinilos .main-img-box img,
.product-visuals#vinilos #main-product-image,
.product-page #main-product-image {
    max-height: min(360px, 30svh) !important;
}

/* --- STICKERS/PEGATINAS: tamaño y centrado uniforme --- */
.product-visuals img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
}

#main-product-image {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Vinilo transparente: centrar el texto/descripcion debajo del preview si aplica */
.product-visuals {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.section-gallery img,

.about-gallery img,
.gallery-viewer img {
    padding: 4px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,0.92);
    cursor: zoom-out;
}

.image-lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.image-lightbox button {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.no-scroll {
    overflow: hidden;
}
/* =========================================================
   MODAL COOKIES PREMIUM
========================================================= */

.cookies-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,0.75);

    backdrop-filter:blur(8px);

    z-index:999999;

    display:none;

    justify-content:center;

    align-items:center;

    padding:20px;
}

.cookies-modal{

    width:100%;
    max-width:520px;

    background:linear-gradient(
        145deg,
        #1f1f1f,
        #111
    );

    border:1px solid #333;

    border-top:4px solid #aacc11;

    border-radius:18px;

    padding:40px;

    box-shadow:
    0 20px 60px rgba(0,0,0,0.5);

    animation:cookiesShow 0.35s ease;
}

@keyframes cookiesShow{

    from{

        opacity:0;
        transform:translateY(30px) scale(.95);
    }

    to{

        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.cookies-top{

    text-align:center;
}

.cookie-icon{

    width:85px;
    height:85px;

    margin:auto;

    margin-bottom:20px;

    border-radius:50%;

    background:#aacc11;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#111;

    font-size:38px;

    box-shadow:
    0 10px 30px rgba(170,204,17,0.3);
}

.cookies-modal h2{

    color:white;

    margin-bottom:20px;

    font-size:30px;

    text-transform:uppercase;
}

.cookies-modal p{

    color:#ccc;

    line-height:1.8;

    font-size:15px;
}

.cookies-modal a{

    color:#aacc11;

    font-weight:bold;

    text-decoration:none;
}

.cookies-modal a:hover{

    text-decoration:underline;
}

.cookies-actions{

    display:flex;

    gap:15px;

    margin-top:35px;
}

.btn-cookie-aceptar,
.btn-cookie-rechazar{

    flex:1;

    border:none;

    padding:16px;

    border-radius:10px;

    cursor:pointer;

    font-size:15px;

    font-weight:bold;

    transition:.3s;
}

.btn-cookie-aceptar{

    background:#aacc11;

    color:#111;
}

.btn-cookie-aceptar:hover{

    background:white;

    transform:translateY(-2px);
}

.btn-cookie-rechazar{

    background:#2a2a2a;

    color:white;

    border:1px solid #444;
}

.btn-cookie-rechazar:hover{

    background:#444;
}

@media(max-width:600px){

    .cookies-modal{

        padding:30px 20px;
    }

    .cookies-actions{

        flex-direction:column;
    }

    .cookies-modal h2{

        font-size:24px;
    }
}

/* WHATSAPP FLOTANTE */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%; /* Asegura que sea un cÃ­rculo perfecto */
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: latido-wa 2s infinite;
}
.whatsapp-flotante.left {
    left: 30px;
    right: auto;
}
.whatsapp-flotante.right {
    right: 30px;
    left: auto;
}
@keyframes latido-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); transform: scale(1); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

/* Clase para evitar el scroll en el body cuando el modal estÃ¡ activo */
body.no-scroll {
    overflow: hidden;
}

/* --- VISTA PREVIA DE ARCHIVOS SUBIDOS --- */
.archivo-preview {
    margin-top: 14px;
    min-height: 130px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.archivo-preview img {
    display: none;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 6px;
    background: #f4f4f4;
}

.archivo-preview.active img {
    display: block;
}

.archivo-preview.is-file::before {
    content: "\f1c1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #aacc11;
    font-size: 34px;
}

.detail-upload .archivo-preview {
    margin-top: 16px;
}

/* === RESPONSIVE GLOBAL 2026-05 CODEX === */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
}

body {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

.hero {
    min-height: clamp(430px, calc(100svh - 120px), 620px) !important;
    height: auto !important;
    padding: clamp(76px, 13vh, 130px) 18px !important;
    background-position: center center !important;
}

.hero h1 {
    max-width: 920px;
    font-size: clamp(36px, 8vw, 58px) !important;
    line-height: 0.98 !important;
    letter-spacing: 0 !important;
    padding: 0 6px;
}

.hero p {
    max-width: 620px;
    font-size: clamp(18px, 4vw, 23px) !important;
    line-height: 1.35 !important;
    padding: 0 10px;
}

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    align-items: start;
}

.footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
}

@media (max-width: 1100px) {
    .main-header {
        padding-inline: 22px !important;
        gap: 18px !important;
    }

    .header-right {
        gap: 20px !important;
    }

    .main-nav ul {
        gap: 16px !important;
    }

    .header-actions {
        gap: 8px !important;
    }
}

@media (max-width: 960px) {
    .main-header {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 12px !important;
        gap: 8px 12px !important;
    }

    .logo-container img {
        height: 54px !important;
    }

    .header-right {
        display: flex !important;
        flex: 1 1 calc(100% - 76px) !important;
        width: auto !important;
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .header-actions {
        order: 1 !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        gap: 8px !important;
        justify-content: stretch !important;
        margin-bottom: 5px;
    }

    .header-actions button {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 46px !important;
        padding: 5px !important;
        justify-content: center !important;
        border-radius: 8px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        background: rgba(170, 204, 17, 0.05);
        border-width: 1.5px !important;
    }

    .main-nav {
        order: 2 !important;
        width: 100% !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 100% !important;
        gap: 10px !important;
        padding: 5px 15px 15px 5px !important;
    }

    .main-nav ul li {
        flex: 0 0 auto !important;
        width: auto !important;
        position: static !important; /* Permite que el dropdown sea relativo al header completo */
        text-align: center !important;
    }

    .main-nav ul li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 36px !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        background: #2b2b2b !important;
        border: 1px solid #444 !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
        background: #1a1a1a !important;
        border: 2px solid var(--verde-neon) !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.6) !important;
        padding: 12px !important;
        border-radius: 12px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        display: block !important;
        z-index: 5000 !important;
    }

    /* En móvil, deshabilitamos el comportamiento de hover/focus para el desplegable */
    .main-nav ul li.dropdown:hover .dropdown-menu,
    .main-nav ul li.dropdown:focus-within .dropdown-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
    }

    /* En móvil, el desplegable se activa con la clase 'active' mediante JS */
    .main-nav ul li.dropdown.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .dropdown-menu li {
        width: 100% !important;
    }

    .dropdown-menu li a {
        justify-content: flex-start !important;
        padding: 14px 15px !important;
        background: #252525 !important;
        border-radius: 8px !important;
        border: none !important;
        margin-bottom: 5px;
        text-align: left !important;
        font-size: 15px !important;
    }

    .hero {
        min-height: clamp(420px, calc(100svh - 116px), 560px) !important;
        padding: 74px 16px 88px !important;
    }

    .product-subnav {
        position: sticky !important;
        top: 0 !important;
        justify-content: flex-start !important;
    }

    .product-subnav a {
        padding: 12px 14px !important;
        font-size: 12px !important;
    }

    .product-subnav a span {
        display: inline !important;
    }

    .product-page,
    .contacto-wrapper,
    .checkout-layout,
    .account-layout,
    .cart-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 720px !important;
        margin: 20px auto !important;
        padding: 14px !important;
    }

    .product-visuals {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        padding: 14px !important;
    }

    .main-img-box {
        padding: 12px !important;
    }

    .main-img-box img,
    #main-product-image {
        max-height: 320px !important;
    }

    .product-info h1,
    .info-contacto h2,
    .about-container h2 {
        font-size: clamp(30px, 8vw, 42px) !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
    }

    .product-info h2,
    .about-container h3 {
        font-size: clamp(20px, 5vw, 26px) !important;
        line-height: 1.15 !important;
    }
    
    .step-title {
        margin-bottom: 20px !important; /* Increased for better separation */
    }

    .step-container,
    .formulario-contacto,
    .info-contacto,
    .feature-card,
    .highlight-box,
    .price-table,
    .material-description-box {
        padding: 18px !important;
    }

    .measure-wrapper,
    .quantity-template-row,
    .option-grid,
    .detail-actions,
    .cookies-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 10px !important;
    }

    .measure-input,
    .quantity-template-row .measure-input,
    .opt-btn,
    .btn-template-pdf,
    .btn-add-cart,
    .btn-secondary,
    .btn-enviar {
        width: 100% !important;
        min-width: 0 !important;
    }

    .shop-tray {
        top: 0 !important;
        right: 0 !important;
        width: min(360px, 92vw) !important;
        height: 100dvh !important;
        padding: 22px 16px !important;
    }

    .product-grid-mini {
        gap: 10px !important;
    }

    .prod-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    .footer-section {
        padding: 44px 16px 20px !important;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px 16px !important;
        text-align: center !important;
    }

    .footer-social {
        display: flex !important;
        justify-content: center !important;
        gap: 18px !important;
    }

    .about-section,
    .contacto-container,
    .section-content,
    .service-section {
        padding: 36px 16px !important;
    }

    .about-gallery,
    .section-gallery,
    .gallery-grid,
    .category-grid,
    .services-grid,
    .feature-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .about-gallery img,
    .section-gallery img,
    .gallery-grid img,
    .category-card img {
        height: auto !important;
        min-height: 0 !important;
        max-height: 340px !important;
        object-fit: contain !important;
    }

    .mapa-container {
        padding: 0 14px !important;
        margin: 18px auto 34px !important;
    }

    .mapa-container iframe {
        height: 260px !important;
    }
}

@media (max-width: 640px) {
    .main-header {
        align-items: flex-start !important;
    }

    .logo-container img {
        height: 48px !important;
    }

    .header-right {
        flex-basis: 100% !important;
    }

    .hero {
        min-height: 430px !important;
        padding: 72px 14px !important;
        background-position: center !important;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 46px) !important;
    }

    .hero p {
        font-size: 18px !important;
    }

    .main-nav ul li a {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .product-subnav a span {
        display: none !important;
    }

    .product-subnav a i {
        font-size: 18px !important;
    }

    .product-page,
    .contacto-wrapper,
    .checkout-layout,
    .account-layout,
    .cart-layout {
        margin: 12px auto !important;
        padding: 10px !important;
        gap: 18px !important;
    }

    .main-img-box img,
    #main-product-image {
        max-height: 260px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
    }

    .whatsapp-flotante {
        width: 52px !important;
        height: 52px !important;
        bottom: 18px !important;
        right: 18px !important;
        left: auto !important;
        font-size: 29px !important;
    }

    .whatsapp-flotante.left {
        left: 18px !important;
        right: auto !important;
    }
}

@media (max-width: 420px) {
    .header-actions button {
        font-size: 0 !important;
        padding-inline: 6px !important;
    }
}

/* =============================
   LETRAS CORPÓREAS: reglas
   para escalado a partir de 152
   ============================= */
/* Si existen sliders/inputs con estas clases, no rompemos nada: solo ajustamos el wrapper del texto/preview */
@media (min-width: 152px) {
  /* Esto aplica desde 152px en adelante */
  .letters-preview-wrapper,
  #preview-texto {
    /* ejemplo: deja salir el “texto” con más espacio a partir del umbral */
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Si el problema es el recorte dentro de un contenedor vertical/horizontal, forzamos overflow visible */
.vertical,
.horizontal,
.vertical-container,
.horizontal-container {
  overflow: visible !important;
}

/* En pantallas pequeñas mantenemos el comportamiento existente */
@media (max-width: 900px) {
  .vertical,
  .horizontal,
  .vertical-container,
  .horizontal-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 420px) {
    .header-actions button {
        font-size: 0 !important;
        padding-inline: 6px !important;
    }


    .header-actions button i,
    .header-actions button .badge-count {
        font-size: 16px !important;
    }

    .badge-count {
        top: -6px !important;
        right: -5px !important;
    }

    .hero {
        min-height: 400px !important;
    }

    .hero h1 {
        font-size: 34px !important;
    }

    .modal-content,
    .cookies-modal {
        padding: 24px 18px !important;
        width: min(94vw, 420px) !important;
    }
}

/* Home CTA responsive */
.hero h1 {
    text-transform: none !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding: 0 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn-primary {
    background: var(--verde-neon);
    color: #111;
    border: 2px solid var(--verde-neon);
}

.hero-btn-secondary {
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.24);
}

@media (max-width: 520px) {
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 320px);
        margin-top: 20px;
    }

    .hero-btn {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
    }
}

/* Sticky product image while scrolling */
@media (min-width: 961px) {
    .product-page {
        align-items: start !important;
    }

    .product-page > .product-visuals {
        position: sticky !important;
        top: 145px !important;
        align-self: start !important;
        height: fit-content !important;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: contain;
        z-index: 20;
        margin-left: -60px !important; /* Desplazamos la imagen más a la izquierda para dar aire al texto */
    }

    /* Estilos para los iconos dentro de los botones de selección de forma */
    .option-grid .opt-btn i {
        display: block;
        margin: 0 auto 10px auto;
        font-size: 24px;
        color: var(--verde-neon);
        transition: transform 0.3s ease;
    }
    
    /* Estilos específicos para los botones de forma en Pegatinas */
    #forma-opciones .opt-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 18px 10px; /* Más padding vertical */
        min-height: 90px; /* Altura consistente */
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    #forma-opciones .opt-btn i {
        font-size: 32px; /* Iconos más grandes */
        margin-bottom: 10px;
        color: #888; /* Color por defecto del icono */
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .option-grid .opt-btn:hover i,
    .option-grid .opt-btn.active i {
        transform: scale(1.15);
        color: #fff;
    }

    @media (max-width: 768px) {
        #forma-opciones .opt-btn {
            flex: 1 1 calc(50% - 10px); /* 2 columnas en pantallas medianas */
            min-height: 80px;
            padding: 15px 8px;
        }
        #forma-opciones .opt-btn i { font-size: 28px; margin-bottom: 8px; }
    }

    @media (max-width: 480px) {
        #forma-opciones .opt-btn {
            flex: 1 1 100%; /* 1 columna en pantallas muy pequeñas */
            min-height: 70px;
            padding: 12px 8px;
        }
        #forma-opciones .opt-btn i { font-size: 24px; margin-bottom: 6px; }
    }

    .product-page > .product-visuals img,
    .product-page > .product-visuals #main-product-image,
    .product-page > .product-visuals .main-img-box img {
        max-height: min(420px, calc(100vh - 245px)) !important;
        object-fit: contain !important;
    }
}

@media (max-width: 960px) {
    .product-page > .product-visuals {
        position: sticky !important;
        top: 52px !important;
        align-self: start !important;
        z-index: 850 !important;
        max-height: 48svh !important;
        overflow: hidden !important;
        box-shadow: 0 12px 28px rgba(0,0,0,0.08) !important;
    }

    .product-page > .product-visuals .main-img-box {
        padding: 10px !important;
    }

    .product-page > .product-visuals img,
    .product-page > .product-visuals #main-product-image,
    .product-page > .product-visuals .main-img-box img {
        max-height: min(30svh, 240px) !important;
        object-fit: contain !important;
    }
}

@media (max-width: 520px) {
    .product-page > .product-visuals {
        top: 48px !important;
        max-height: 40svh !important;
        padding: 10px !important;
        border-radius: 8px !important;
    }

    .product-page > .product-visuals img,
    .product-page > .product-visuals #main-product-image,
    .product-page > .product-visuals .main-img-box img {
        max-height: min(26svh, 190px) !important;
    }
}
