/* ============================================================
   global.css — Variables, reset y utilidades compartidas
   Incluir en TODOS los archivos del proyecto
   ============================================================ */

/* -- Variables de marca -- */
:root {
    --primary:        #bb4433;
    --primary-dark:   #781006;
    --brand:          #781006;
    --brand-light:    #9e2a1b;
    --accent:         #f5adab;
    --accent-dark:    #d4908e;
    --accent-alt:     #f5adab;
    --bg-light:       #fce2e4;
    --bg-page:        #fef5f5;
    --bg-form:        #fef5f5;
    --text-dark:      #1a1a1a;
    --text-muted:     #606060;
    --border:         #e2e8f0;
    --white:          #ffffff;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:      0 6px 24px rgba(0,0,0,0.10);
    --shadow-lg:      0 20px 60px rgba(0,0,0,0.18);
    --radius-sm:      0.5rem;
    --radius-md:      0.75rem;
    --radius-lg:      1.25rem;
    --radius-xl:      1.5rem;
}

/* -- Reset mínimo -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* -- Tipografía base -- */
body {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}
.font-display { font-family: 'Bebas Neue', cursive; }
.font-raleway { font-family: 'Raleway', sans-serif; }
.font-dm      { font-family: 'DM Sans', sans-serif; }
.font-syne    { font-family: 'Syne', sans-serif; }

/* -- Animaciones compartidas -- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes scanline {
    0%   { top: 10%; }
    50%  { top: 85%; }
    100% { top: 10%; }
}

.fade-up        { animation: fadeUp 0.4s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.3s ease-out; }

/* -- Botones -- */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-size: 0.95rem;
}
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.98); }

.btn-brand {
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.5rem;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}
.btn-brand:hover  { background: var(--brand-light); }
.btn-brand:active { transform: scale(0.98); }

.btn-secondary {
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* -- Inputs compartidos -- */
.input-field {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: #fff8f8;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(120,16,6,0.08);
    background: var(--white);
}

.label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

/* -- Cards -- */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 16px rgba(120,16,6,0.06);
}

/* -- Modal compartido -- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}

/* -- Badges -- */
.badge {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

/* -- Cards de categoría (hoteles, restaurantes, etc.) -- */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.foto-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s;
}
.foto-thumb:hover { opacity: 0.85; }

/* -- Focus ring accesibilidad -- */
.focus-ring:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* -- Section title -- */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--brand);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    margin-top: 1.5rem;
}

/* -- File zone upload -- */
.file-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    background: #fff8f8;
    transition: border-color 0.2s, background 0.2s;
}
.file-zone:hover { border-color: var(--brand); background: #fce2e4; }
