/* ==================================================
   RESET BÁSICO
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================================================
   VARIABLES
================================================== */

:root {
    --primary: #c8102e;
    --dark: #111;
    --text: #555;
    --light: #f5f5f5;
    --white: #ffffff;
}

/* ==================================================
   BODY
================================================== */

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ==================================================
   CONTENEDOR
================================================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==================================================
   TIPOGRAFÍA
================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 38px;
}

h3 {
    font-size: 24px;
}

p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 15px;
}

/* ==================================================
   LINKS
================================================== */

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* ==================================================
   IMÁGENES
================================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================================================
   BOTONES
================================================== */

.btn {
    display: inline-block;
    padding: 14px 26px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ==================================================
   SECCIONES
================================================== */

section {
    position: relative;
    width: 100%;
}

/* ==================================================
   OVERLAYS
================================================== */

.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ==================================================
   UTILIDADES
================================================== */

.text-center {
    text-align: center;
}

/* Línea decorativa */
.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 12px 0 24px;
}

/* ==================================================
   HERO BADGE
================================================== */

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ==================================================
   HERO TITLE LINE
================================================== */

.hero-line {
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 90%;
    background: var(--primary);
}

/* ==================================================
   ANIMACIONES SEGURAS
================================================== */

/* Visible por defecto */
.fade-up,
.fade-left,
.fade-right,
.fade-in {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: all 0.6s ease;
}

/* SOLO animar si JS agrega js-animate */
.fade-up {
    opacity: 1;
    transform: none;
}

.js-animate.fade-up {
    opacity: 0;
    transform: translateY(20px);
}

.js-animate.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.js-animate.fade-left {
    opacity: 0;
    transform: translateX(-20px);
}

.js-animate.fade-right {
    opacity: 0;
    transform: translateX(20px);
}

.js-animate.fade-in {
    opacity: 0;
}

/* Estado activo */
.js-animate.active {
    opacity: 1;
    transform: translate(0,0);
}

/* ==================================================
   GRID FIXES
================================================== */

.productos-grid,
.categorias-grid,
.producto-grid {
    position: relative;
    z-index: 2;
}

/* ==================================================
   WORDPRESS CONTENT FIX
================================================== */

.entry-content,
.producto-descripcion,
.categoria-productos,
.producto-detalle,
.home-section-head {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ==================================================
   CARDS BASE
================================================== */

.producto-card,
.categoria-card {
    position: relative;
    overflow: hidden;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 992px) {

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

}

@media (max-width: 768px) {

    .container {
        width: 92%;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
    }

}

@media (max-width: 480px) {

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

}