/* ==========================================================================
    1. CONFIGURACIÓN GENERAL Y VARIABLES (Identidad Cerámicas Coral)
   ========================================================================== */
:root { 
    --coral-red: #b82121; 
    --coral-dark: #222222;
    --blue-link: #2c5282; 
    --blue-hover: #1a365d;
    --bg-light: #fcfcfc;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --nav-height: 110px; 

    /* Escala Tipográfica Optimizada */
    --fs-h1: 2rem;       /* Título principal con autoridad */
    --fs-h2: 1.3rem;     
    --fs-h3: 0.95rem;
    --fs-body: 14px;
    --fw-titulos: 700;
}

/* Reset y Base */
* { 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 Y JERARQUÍA
   ========================================================================== */
h1 {
    font-size: var(--fs-h1);
    color: var(--coral-dark);
    font-weight: var(--fw-titulos);
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px; /* Espaciado sutil para elegancia */
    line-height: 1.2;
}

/* Línea decorativa opcional debajo del H1 */
h1::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--coral-red);
    margin: 15px auto 0;
}

h2, h3, .card-title {
    font-weight: var(--fw-titulos);
    line-height: 1.3;
}

h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
h3, .card-title { font-size: var(--fs-h3); margin-bottom: 0.75rem; }

/* ==========================================================================
    3. NAVEGACIÓN (Bootstrap 5 Overrides)
   ========================================================================== */
.navbar {
    min-height: 80px;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.custom-nav .nav-link { 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase;
    color: var(--coral-dark) !important;
    transition: var(--transition);
}

.custom-nav .nav-link:hover { color: var(--coral-red) !important; }

@media (min-width: 992px) {
    .dropdown-menu { 
        margin-top: 0 !important; 
        border-top: 2px solid var(--coral-red) !important;
    }
}

/* ==========================================================================
    4. CATÁLOGO Y CARDS (Optimizado)
   ========================================================================== */
.card { 
    border: none; 
    background: transparent; 
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.card-img-top { 
    width: 100%; 
    aspect-ratio: 3 / 4; 
    object-fit: cover;   
    border-radius: 8px;      
    transition: var(--transition); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    background-color: #eee; 
}

.card:hover .card-img-top {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(184, 33, 33, 0.25); 
}

.card-body a.fw-bold {
    color: var(--coral-dark) !important;
    text-decoration: none;
    display: block;
    margin-top: 1rem;
    font-size: var(--fs-h3);
    transition: var(--transition);
}

.card-body a.fw-bold:hover {
    color: var(--coral-red) !important;
}

/* ==========================================================================
    5. PIE DE PÁGINA
   ========================================================================== */
footer { 
    border-top: 1px solid #eee; 
    margin-top: 60px; 
    padding: 40px 0;
    background-color: #fff;
    font-size: 0.8rem; 
    color: #666;
}

footer a { color: var(--blue-link); transition: var(--transition); text-decoration: none; }
footer a:hover { color: var(--blue-hover) !important; text-decoration: underline; }

/* ==========================================================================
    6. RESPONSIVE (Ajustes para móviles)
   ========================================================================== */
@media (max-width: 768px) {
    :root { 
        --nav-height: 80px; 
        --fs-h1: 1.6rem; /* Tamaño reducido para que no desborde en móvil */
        --fs-h2: 1.15rem;
    }
    
    body { font-size: 13px; }

    h1 { margin-bottom: 1.5rem; margin-top: 1.5rem; }
    
    .card-body { 
        text-align: center; 
        padding-bottom: 2rem;
    }

    footer address .d-flex {
        gap: 1.5rem !important;
        flex-direction: column; 
        align-items: center;
    }
}

/* ==========================================================================
    7. REDES SOCIALES
   ========================================================================== */
.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: var(--transition);
    filter: grayscale(10%);
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
    filter: grayscale(0%);
}