/* ==========================================================================
    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
   ========================================================================== */
h1, h2, h3, .card-title {
    font-weight: var(--fw-titulos);
    text-transform: uppercase;
}

h1 {
    font-size: var(--fs-h1);
    color: var(--coral-dark);
    margin: 3rem 0 2rem;
    text-align: center;
    letter-spacing: 1.5px;
}

h2 { 
    font-size: var(--fs-h2); 
    color: #666; 
    text-align: center;
    margin-bottom: 1.5rem; 
}

h3, .card-title { 
    font-size: var(--fs-h3); 
    margin-bottom: 0.5rem; 
    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;
    display: block;
}

.navbar-brand .fs-5 { font-size: 1.25rem; }
.navbar-brand small {
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-top: 5px; 
}

.custom-nav .nav-link { 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase;
    color: #000 !important;
    transition: var(--transition);
}

.custom-nav .nav-link:hover { color: var(--coral-red) !important; }

.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 Y CARDS
   ========================================================================== */
.catalog-item { margin-bottom: 1.5rem; }

.card { border: none; background: transparent; box-shadow: none; }

.card-img-top { 
    width: 100%; 
    height: 250px;            
    object-fit: cover;       
    border-radius: 8px;      
    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; }

.status-badge {
    background-color: #f8f9fa; 
    border: 1px solid var(--coral-red); 
    color: var(--coral-dark); 
    border-radius: 4px;
    font-size: 0.8rem;
    padding: 8px 0; 
    text-align: center;
}

/* ==========================================================================
    5. FORMULARIOS, BOTONES Y SEGURIDAD
   ========================================================================== */
.form-check-input {
    width: 1.4em;
    height: 1.4em;
    cursor: pointer;
    border: 2px solid #343a40 !important; 
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--blue-link) !important;
    border-color: var(--blue-link) !important;
}

.form-check-label { padding-left: 8px; padding-top: 2px; cursor: pointer; }

.btn-coral {
    background-color: var(--blue-link) !important;
    border-color: var(--blue-link) !important;
    color: var(--white) !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-coral:hover {
    background-color: var(--blue-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
}

/* Honeypot: Oculto para humanos, visible para bots */
.honeypot-container {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
    6. FOOTER Y RESPONSIVE (OPTIMIZADO PARA EL BOTÓN ARRIBA)
   ========================================================================== */
footer { 
    border-top: 1px solid #eee; 
    margin-top: 40px; 
    padding: 40px 0; 
}

/* Los enlaces normales y el nuevo botón "Arriba" comparten la misma base exacta de color y animación */
footer a,
footer nav button.custom-footer-link { 
    color: var(--blue-link); 
    transition: var(--transition); 
    text-decoration: none; 
}

/* Efecto hover unificado al pasar el cursor (Cambio al rojo coral de la marca) */
footer a:hover,
footer nav button.custom-footer-link:hover { 
    color: var(--coral-red); 
    text-decoration: underline; 
}

/* Campos de formulario de solo lectura */
input[readonly] {
    background-color: #e9ecef !important;
    cursor: not-allowed;
    border-color: #dee2e6;
}

/* Media Queries */
@media (max-width: 768px) {
    :root { 
        --fs-h1: 1.5rem; 
        --fs-h2: 1.1rem;
    }
    .card-img-top { height: 200px; }
    h1 { margin-top: 2rem; }
}

/* ==========================================================================
    7. CORRECCIÓN DE MENÚS DESPLEGABLES EN MÓVILES
   ========================================================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0;
    background-color: #f8f9fa !important;
    border: 0;
    box-shadow: none !important;
  }
}