@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Montserrat:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    background-image: 
        radial-gradient(circle at center, rgba(30, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.95) 100%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 25px 25px, 25px 25px;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Scrollbar personalizada con tono de sangre */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #3d0505;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff1a1a;
    box-shadow: 0 0 10px #ff1a1a;
}

/* Hero Section con Neón Sangriento */
.hero {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #3d0505;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.4));
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 25px rgba(255, 0, 0, 0.4), 0 0 40px rgba(255, 0, 0, 0.2);
    animation: neonPulse 3s infinite alternate;
}

@keyframes neonPulse {
    0% { text-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.3); }
    100% { text-shadow: 0 0 15px rgba(255, 0, 0, 1), 0 0 30px rgba(255, 26, 26, 0.6), 0 0 50px rgba(255, 0, 0, 0.4); }
}

.tagline {
    font-size: 0.95rem;
    color: #b0b0b0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Catálogo y Encabezados */
#catalogo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 30px 0;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

/* Iconos temáticos SVG blindados (Evita que descuadren la página) */
.thematic-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.7));
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 30px 0;
    flex-wrap: nowrap; /* Evita que los elementos se rompan feo en pantallas chicas */
}

/* Filtros de Categoría */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.category-filters button {
    background: #0a0a0a;
    border: 1px solid #2d0a0a;
    color: #a0a0a0;
    padding: 9px 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.category-filters button:hover,
.category-filters button.active {
    background: #1a0505;
    color: #fff;
    border-color: #ff1a1a;
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.5);
}

/* Cuadrícula de Productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    align-items: stretch; /* Fuerza a que todas las filas tengan la misma altura */
}

.product-card {
    background: #080808;
    border: 1px solid #210808;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el botón de WhatsApp siempre al fondo */
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    border-color: #ff1a1a;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
    transform: translateY(-3px);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    background: #000;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llena el marco sin dejar espacios vacíos */
    transition: transform 0.4s ease;
}


.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 12px 0 6px 0;
    color: #e0e0e0;
    min-height: 40px; /* Altura fija para compensar títulos largos o cortos */
    display: flex;
    align-items: center;
}

.price {
    font-size: 1rem;
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 12px;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
}

.product-image-container.sold-out img {
    filter: brightness(0.25) grayscale(1);
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(150, 0, 0, 0.9);
    color: #fff;
    padding: 5px 14px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border: 1px solid #ff4d4d;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.product-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 12px 0 6px 0;
    color: #e0e0e0;
    min-height: 35px;
    display: flex;
    align-items: center;
}

.price {
    font-size: 1rem;
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 12px;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
}

.whatsapp-btn {
    display: block;
    text-align: center;
    background: #08160a;
    border: 1px solid #143319;
    color: #25d366;
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #25d366;
    color: #000;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn.disabled {
    background: #0d0d0d;
    border-color: #1a1a1a;
    color: #444;
    pointer-events: none;
}

/* Sección Quiénes Somos y Ubicación */
.about-location-section {
    max-width: 1000px;
    margin: 60px auto 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card {
    background: rgba(8, 8, 8, 0.85);
    border: 1px solid #240808;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.info-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

.info-card p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
}

.map-container {
    width: 100%;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid #331111;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(120%); /* Filtro gótico oscuro para el mapa */
}

/* Footer */
.site-footer {
    border-top: 1px solid #210808;
    padding: 30px 20px;
    text-align: center;
    background: #030303;
    margin-top: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-links a {
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ff1a1a;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 26, 26, 0.8));
}

.footer-copy {
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 1px;
}



/* ==========================================================
   AISLAMIENTO TOTAL DEL BOTÓN DE WHATSAPP (ANTI-DEFORMACIÓN)
   ========================================================== */
a.whatsapp-float {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    background: #081a0c !important;
    border: 2px solid #25d366 !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

a.whatsapp-float svg {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    display: block !important;
    margin: auto !important;
    flex-shrink: 0 !important;
}

a.whatsapp-float:hover {
    transform: scale(1.1) !important;
    background: #25d366 !important;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.9) !important;
}

a.whatsapp-float:hover svg path {
    fill: #000 !important;
}


/* ==========================================================
   2. MARCOS Y CUADRÍCULA DE PRODUCTOS (ALINEACIÓN ESTRICTA)
   ========================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.product-card {
    background: #080808;
    border: 1px solid #210808;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    border-color: #ff1a1a;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
    transform: translateY(-3px);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    background: #000;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 10px 0 6px 0;
    color: #e0e0e0;
    height: 38px; 
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
}

.whatsapp-btn {
    display: block;
    text-align: center;
    background: #08160a;
    border: 1px solid #143319;
    color: #25d366;
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #25d366;
    color: #000;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn.disabled {
    background: #0d0d0d;
    border-color: #1a1a1a;
    color: #444;
    pointer-events: none;
}

/* Ajuste móvil para que en pantallas chicas se vea ordenado de 2 columnas */
@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card h3 {
        font-size: 0.72rem;
        height: 34px;
    }
}

    .price {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .whatsapp-btn {
        padding: 6px;
        font-size: 0.7rem;
    }

    .about-location-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .info-card {
        padding: 18px;
    }
    
/* ==========================================================
   BOTÓN DE WHATSAPP DEFINITIVO CON PNG (CERO DEFORMACIONES)
   ========================================================== */
a.whatsapp-float {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    background-color: #081a0c !important;
    border: 2px solid #25d366 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

a.whatsapp-float img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    display: block !important;
}

a.whatsapp-float:hover {
    transform: scale(1.1) !important;
    background-color: #25d366 !important;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.9) !important;
}