/* ============================
   PALETA SCFITNESS
   ============================ */
:root {
    --rojo: #d40000;
    --negro: #000000;
    --blanco: #ffffff;
    --gris-oscuro: #2e2e2e;
    --gris-claro: #bfbfbf;
}

/* ============================
   RESET
   ============================ */
* {
    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);
}

/* ============================
   HEADER
   ============================ */
header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--gris-oscuro);
    position: fixed;
    width: 100%;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--rojo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    border-bottom-color: var(--rojo);
}

.nav-buttons a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid var(--rojo);
    text-decoration: none;
}

.btn-nav-primary {
    background: var(--rojo);
    color: var(--blanco);
}

.btn-nav {
    color: var(--blanco);
}

/* ============================
   HERO
   ============================ */
.hero {
    min-height: 60vh;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.6)
    ),
    url('../img/gym-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-inner {
    max-width: 1200px;
    margin: auto;
    padding: 3rem 1.5rem;
}

.hero-inner h1 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-inner h1 span {
    color: var(--rojo);
}

.hero-inner p {
    margin-top: 1rem;
    color: var(--gris-claro);
    max-width: 480px;
}

/* ============================
   SECCIONES GENERALES
   ============================ */
section {
    padding: 3rem 1.5rem;
}

.section-inner {
    max-width: 1200px;
    margin: auto;
}

.section-header h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
}

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

.section-header p {
    color: var(--gris-claro);
    margin-top: 0.5rem;
}

/* ============================
   INSTALACIONES
   ============================ */
.instalaciones {
    background: #111;
}

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

.inst-card {
    background: #1a1a1a;
    border: 1px solid var(--gris-oscuro);
    padding: 1.25rem;
    border-radius: 14px;
}

.inst-card h3 {
    text-transform: uppercase;
}

.inst-card p {
    margin-top: 0.5rem;
    color: var(--gris-claro);
}
.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.precio-card {
    background: #1a1a1a;
    border: 2px solid #333;
    padding: 2rem;
    border-radius: 12px;
    color: #fff;
    transition: transform .2s ease, border-color .2s ease;
}

.precio-card:hover {
    transform: translateY(-5px);
    border-color: #e60023;
}

.precio-card h3 {
    font-size: 1.6rem;
    margin-bottom: .5rem;
    color: #e60023;
}

.precio-card.premium {
    border-color: #e60023;
    background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
    box-shadow: 0 0 15px rgba(230,0,35,0.4);
}

.precio {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.precio small {
    font-size: .8rem;
    opacity: .7;
}

.precio-card ul {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.btn-primary {
    background: #e60023;
    color: #fff;
    padding: .8rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    text-align: center;
    transition: background .2s ease;
}

.btn-primary:hover {
    background: #b8001c;
}

/* ============================
   SUPERVISIÓN
   ============================ */
.supervision {
    background: #050505;
}

.supervision-layout {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

.supervision-text p {
    color: var(--gris-claro);
}

.supervision-text ul {
    margin-top: 1rem;
    list-style: none;
}

.supervision-text ul li {
    margin-bottom: 0.4rem;
    color: var(--gris-claro);
}

.supervision-card {
    background: #101010;
    border: 1px solid var(--gris-oscuro);
    padding: 1.25rem;
    border-radius: 14px;
}

.supervision-card h3 {
    text-transform: uppercase;
}

.supervision-card p {
    margin-top: 0.5rem;
    color: var(--gris-claro);
}

.btn-primary {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--rojo);
    color: var(--blanco);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ============================
   CLASES
   ============================ */
.clases {
    background: #181818;
}

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

.clase-card {
    background: #101010;
    border: 1px solid var(--gris-oscuro);
    padding: 1.25rem;
    border-radius: 14px;
}

.clase-card h3 {
    text-transform: uppercase;
}

.clase-card p {
    margin-top: 0.5rem;
    color: var(--gris-claro);
}

/* ============================
   PLANES RELACIONADOS
   ============================ */
.planes-rel {
    background: #111;
}

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

.plan-card {
    background: #1a1a1a;
    border: 1px solid var(--gris-oscuro);
    padding: 1.25rem;
    border-radius: 14px;
}

.plan-card h3 {
    text-transform: uppercase;
}

.plan-card p {
    margin-top: 0.5rem;
    color: var(--gris-claro);
}

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

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

/* ============================
   CONTACTO
   ============================ */
.contacto {
    background: #000;
}

.contacto-layout {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.info-block h3 {
    text-transform: uppercase;
}

.info-block p {
    margin-top: 0.5rem;
    color: var(--gris-claro);
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: #000;
    border-top: 1px solid #111;
    padding: 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--gris-claro);
}

.footer-links a {
    margin-left: 1rem;
    color: var(--gris-claro);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--rojo);
}

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

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

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

    .supervision-layout,
    .contacto-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .instalaciones-grid,
    .clases-grid,
    .planes-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
/* Animación de aparición */
.hidden-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* Header animado */
.header-scroll {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--rojo);
}

/* Botón presionado */
.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: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    z-index: 999;
}
/* UBICACIÓN / MAPA */
.ubicacion {
    background: #000;
    padding: 3rem 1.5rem;
}

.ubicacion-direccion {
    margin-top: 0.5rem;
    color: var(--gris-claro);
    font-weight: 400;
}

.map-wrapper {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 320px;
}
/* ============================
   MODAL SCFITNESS
   ============================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #111;
    border: 2px solid var(--rojo);
    padding: 2rem;
    border-radius: 14px;
    width: 95%;
    max-width: 420px;
    box-shadow: 0 0 25px rgba(212,0,0,0.4);
    animation: modalIn .35s ease;
}

@keyframes modalIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--rojo);
    font-weight: 800;
}

.modal-content label {
    display: block;
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--gris-claro);
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    margin-top: .4rem;
    padding: .7rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: var(--blanco);
}

.modal-content button {
    margin-top: 1.5rem;
    width: 100%;
    background: var(--rojo);
    border: none;
    padding: .9rem;
    border-radius: 10px;
    color: var(--blanco);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease;
}

.modal-content button:hover {
    background: #b30000;
}

.close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gris-claro);
}

.close:hover {
    color: var(--rojo);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-img {
    height: 35px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 4px rgba(212,0,0,0.45));
}
/* ============================
   LATIDO DEL LOGO
   ============================ */
.heartbeat {
    position: relative;
    display: inline-block;
}

.heartbeat::after {
    content: "";
    position: absolute;
    top: 35%;
    left: 68%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--rojo);
    opacity: 0.8;
    animation: heartPulse 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(212,0,0,0.6));
}

@keyframes heartPulse {
    0%   { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
    25%  { transform: translateX(-50%) scaleX(1.3); opacity: 1; }
    50%  { transform: translateX(-50%) scaleX(0.9); opacity: 0.7; }
    75%  { transform: translateX(-50%) scaleX(1.25); opacity: 1; }
    100% { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
}
/* ALERTA PREMIUM */
.alert-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

.alert-premium.active {
    opacity: 1;
    pointer-events: all;
}

.alert-content {
    background: #0d0d0d;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    border-radius: 14px;
    text-align: center;
    border: 3px solid #ff0000;
    box-shadow: 0 0 25px rgba(255,0,0,0.6);
    animation: fadeUp 0.5s ease;
}

.alert-content h3 {
    color: #ff1a1a;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.alert-content p {
    color: #e6e6e6;
    font-size: 0.95rem;
    line-height: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-alert {
    background: #ff1a1a;
    color: #fff;
    padding: 0.8rem 1.4rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s ease;
}

.btn-alert:hover {
    background: #ff3b3b;
}

/* ANIMACIÓN SUAVE */
@keyframes fadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
