/* ============================
   PALETA SCFITNESS NUTRITION
   ============================ */
: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-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);
}

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

/* ============================
   SERVICIOS
   ============================ */
.servicio {
    background: #111;
    border-top: 1px solid #222;
}

.servicio.alt {
    background: #181818;
}

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

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

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

.precio {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.precio span {
    color: var(--rojo);
}

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

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

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

/* ============================
   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) {
    .servicio-layout,
    .contacto-layout {
        grid-template-columns: 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;
    }
}
.modal {
    display: none; /* OCULTO POR DEFECTO */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #0d0d0d;
    padding: 2rem;
    border-radius: 14px;
    width: 90%;
    max-width: 450px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 25px rgba(255,0,0,0.6);
}

.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; }
}
/* ===== FORMULARIO PREMIUM SCFITNESS (2 COLUMNAS) ===== */

.modal-content form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.2rem; /* filas / columnas */
    margin-top: 1rem;
}

/* Cada grupo ocupa su celda */
.form-group {
    display: flex;
    flex-direction: column;
}

/* Servicio elegido ocupa toda la fila */
.form-group.full {
    grid-column: span 2;
}

/* Comentario también ocupa toda la fila */
.form-group.textarea {
    grid-column: span 2;
}

/* Etiquetas */
.modal-content label {
    font-size: 0.85rem;
    color: #ff4d4d;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

/* Inputs */
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: #111;
    border: 1px solid #ff1a1a;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s ease;
}

/* Focus */
.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #ff3b3b;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* Botón ocupa toda la fila */
.modal-content .btn-primary {
    grid-column: span 2;
    margin-top: 0.5rem;
    padding: 0.9rem;
    font-size: 1rem;
    border-radius: 10px;
    background: #ff1a1a;
    transition: 0.3s ease;
}

.modal-content .btn-primary:hover {
    background: #ff3b3b;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Animación suave */
.modal-content {
    animation: modalFade 0.35s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE: en móvil vuelve a 1 columna */
@media (max-width: 480px) {
    .modal-content form {
        grid-template-columns: 1fr;
    }
}
.selector-servicios {
    text-align: center;
    margin: 3rem 0;
}

.selector-servicios h2 {
    color: #ff1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}

.selector-card {
    background: #0d0d0d;
    border: 2px solid #ff1a1a;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
}

.selector-card .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.selector-card p {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.selector-card:hover {
    background: rgba(255, 0, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: scale(1.05);
}

.selector-card.active {
    background: rgba(255, 0, 0, 0.25);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    border-color: #ff3b3b;
}
/* TOOLTIP PREMIUM */
.selector-card {
    position: relative;
}

.selector-card .tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #0d0d0d;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 2px solid #ff1a1a;
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
    font-size: 0.85rem;
    width: 180px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 10;
}

/* Flecha del tooltip */
.selector-card .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #ff1a1a transparent transparent transparent;
}

/* Mostrar tooltip */
.selector-card:hover .tooltip {
    opacity: 1;
    bottom: 120%;
}
.video-nutricion-mini {
    width: 100%;
    max-width: 220px; /* MUY PEQUEÑO */
    height: 300px; /* ALTURA REDUCIDA */
    margin: 1.5rem auto 2rem auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(255,0,0,0.35);
}

.video-nutricion-mini video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* mantiene calidad en tamaño pequeño */
    display: block;
}
