/* ============================================================
   SCFitness – GLOBAL.CSS
   Variables, reset, utilidades y clases globales
   ============================================================ */

/* ============================
   VARIABLES
   ============================ */
:root {
    --rojo: #d40000;
    --negro: #000000;
    --blanco: #ffffff;
    --gris-oscuro: #2e2e2e;
    --gris-claro: #bfbfbf;
    --gris-suave: #f5f5f5;

    --radius: 14px;
    --transition: 0.3s ease;
}

/* ============================
   RESET GLOBAL
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--negro);
    color: var(--blanco);
    overflow-x: hidden;
}

/* ============================
   TIPOGRAFÍA GLOBAL
   ============================ */
h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
}

p, li {
    font-weight: 300;
}

/* ============================
   LINKS
   ============================ */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================
   BOTONES
   ============================ */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--rojo);
    color: var(--blanco);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--gris-claro);
    color: var(--blanco);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--rojo);
    color: var(--rojo);
}

/* ============================
   CONTENEDORES
   ============================ */
.section-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 span {
    color: var(--rojo);
}

/* ============================
   UTILIDADES
   ============================ */

/* Flex */
.flex {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Spacing */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================
   ANIMACIONES GLOBALES
   ============================ */
.hidden-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show-section {
    opacity: 1;
    transform: translateY(0);
}

.header-scroll {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid var(--rojo) !important;
}

.btn-press {
    transform: scale(0.95);
}

/* ============================
   BOTÓN SCROLL TOP
   ============================ */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    background: var(--rojo);
    color: var(--blanco);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 999;
}

/* ============================
   RESPONSIVE GLOBAL
   ============================ */
@media (max-width: 960px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
