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

/* ============================
   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-img {
    height: 35px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 4px rgba(212,0,0,0.45));
}
.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; }
}

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);
}

/* ============================
   HERO
   ============================ */
.hero {
    min-height: 55vh;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.6)
    ),
    url('../img/reto-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;
}

/* ============================
   INTRO
   ============================ */
.intro {
    background: #111;
}

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

.intro-text ul {
    list-style: none;
}

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

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

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

.intro-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;
}

/* ============================
   CONTENIDO DEL RETO
   ============================ */
.contenido {
    background: #181818;
}

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

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

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

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

/* ============================
   TESTIMONIOS
   ============================ */
.testimonios {
    background: #111;
}

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

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

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

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

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

.contacto-layout {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 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);
}

/* ============================
   ANIMACIONES
   ============================ */
.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);
    border-bottom: 1px solid var(--rojo);
}

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

#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;
}

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

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

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

@media (max-width: 640px) {
    nav ul {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .contenido-grid,
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
}
