/* ==========================================================================
    1. CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================================================== */
:root { 
    --coral-red: #b82121; 
    --coral-dark: #222222;
    --blue-link: #2c5282; 
    --blue-hover: #1a365d;
    --bg-light: #fcfcfc;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --nav-height: 85px; 

    /* Escala Tipográfica */
    --fs-h1: 1.7rem;       
    --fs-h2: 1.3rem;     
    --fs-h3: 0.95rem;
    --fs-body: 14px;
    --fw-titulos: 700;
}

* { box-sizing: border-box; }

body {
    padding-top: var(--nav-height); 
    font-family: 'Future', 'Futura', Helvetica, Arial, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    background-color: var(--bg-light);
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
    2. TIPOGRAFÍA (Global y Cards)
   ========================================================================== */
h1, h2, h3, .card-title {
    font-weight: var(--fw-titulos);
    text-align: center;
}

h1 {
    font-size: var(--fs-h1);
    color: var(--coral-dark);
    margin: 3rem 0 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h2 { 
    font-size: var(--fs-h2); 
    color: #666; 
    margin-bottom: 1.5rem; 
}

h3, .card-title { 
    font-size: var(--fs-h3); 
    margin-bottom: 0.5rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
    3. NAVEGACIÓN Y COMPONENTES
   ========================================================================== */
.navbar {
    min-height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand .fs-5, .navbar-brand small {
    color: var(--coral-red) !important;
    font-weight: 700 !important;
    display: block;
}

.navbar-brand .fs-5 { font-size: 1.25rem !important; }

.navbar-brand small {
    font-size: 0.7rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px !important; 
}

.custom-nav .nav-link { 
    font-size: 0.85rem; 
    font-weight: 700 !important; 
    text-transform: uppercase;
    color: #000 !important;
    transition: var(--transition);
}

.custom-nav .nav-link:hover { color: var(--coral-red) !important; }

.social-icons { 
    display: flex;
    gap: 1.25rem; 
}

.social-icons a {
    color: var(--coral-red) !important;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.social-icons a:hover {
    color: var(--coral-dark) !important;
    transform: scale(1.15);
}

/* ==========================================================================
    4. CATÁLOGO (Imágenes Proporcionadas y Sin Marco)
   ========================================================================== */

.catalog-item { margin-bottom: 1.5rem; }

.card { 
    border: none; 
    background: transparent; 
    box-shadow: none;
}

.card-img-top { 
    width: 100%; 
    height: 250px;           /* Altura fija para mantener la rejilla alineada */
    object-fit: contain;      /* MUESTRA LA IMAGEN ENTERA SIN RECORTES */
    object-position: center; 
    padding: 0;              
    border-radius: 8px;      
    background-color: #f0f0f0; /* Fondo gris suave para resaltar productos si no son blancos */
    transition: var(--transition); 
}

.card:hover .card-img-top {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(184, 33, 33, 0.15); 
}

.card-body {
    padding: 1rem 0;
    background: transparent;
}

.status-badge {
    background-color: #f8f9fa; 
    border: 1px solid var(--coral-red); 
    color: var(--coral-dark); 
    letter-spacing: 0.5px;
    border-radius: 4px;
    display: block;
    font-size: 0.8rem;
    padding: 8px 0; 
    text-align: center;
    line-height: 1.2;
}

.status-badge small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ==========================================================================
    5. PIE DE PÁGINA Y RESPONSIVE
   ========================================================================== */
footer { 
    border-top: 1px solid #eee; 
    margin-top: 40px; 
    padding: 40px 0;
}

footer a { 
    color: var(--blue-link); 
    transition: var(--transition); 
    text-decoration: none; 
}

footer a:hover { 
    color: var(--coral-red); 
    text-decoration: underline; 
}

@media (max-width: 768px) {
    :root { 
        --fs-h1: 1.5rem; 
        --fs-h2: 1.1rem;
    }
    .card-img-top { height: 200px; }
    .catalog-item { margin-bottom: 1rem; }
    h1 { margin-top: 2rem; }
}