/* --- Variables de Color y Fuentes --- */
:root {
    --primary-color: #2563eb;
    /* Azul profesional (blue-600) */
    --primary-hover-color: #1d4ed8;
    /* Azul intenso al hover (blue-700) */
    --secondary-color: #0c1024;
    /* Azul muy oscuro para acentos */
    --dark-bg: #060912;
    /* Fondo principal casi negro con tono azul frío */
    --dark-bg-secondary: #0b101e;
    /* Un poco más claro */
    --card-bg: #131a2c;
    /* Para tarjetas y secciones internas */
    --text-color: #E5E7EB;
    /* Texto principal claro */
    --text-secondary-color: #94A3B8;
    /* Texto secundario, gris azulado */
    --highlight-text-color: var(--primary-color);
    --border-color: #1e293b;

    --font-primary: 'Fraunces', 'EB Garamond', Georgia, 'Times New Roman', serif;
    /* Serif editorial — para titulares, citas, números prominentes */
    --font-secondary: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
    /* Sans editorial — cuerpo y UI */
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    /* Mono — eyebrows, labels, metadatos */

    --container-width: 1140px;
    --header-height: 70px;

    /* Tracking */
    --tracking-tight: -0.022em;
    --tracking-normal: 0;
    --tracking-wide: 0.04em;
    --tracking-eyebrow: 0.22em;
    --tracking-cta: 0.16em;
}

/* --- Reseteo Básico y Globales --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Inter Tight stylistic sets — glyph alternates más editoriales */
    font-feature-settings: "ss01" on, "ss03" on, "cv11" on;
    font-variant-numeric: lining-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--text-color);
    margin-bottom: 0.6em;
    line-height: 1.08;
    letter-spacing: var(--tracking-tight);
    /* Fraunces axes: opsz auto, soft 60 (sutilmente humanizado, no completamente geométrico) */
    font-variation-settings: "opsz" 144, "SOFT" 60;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.4rem, 4vw + 1rem, 4.5rem);
    line-height: 1.02;
    font-weight: 400;
}

h2 {
    font-size: clamp(1.875rem, 2.5vw + 1rem, 3rem);
    line-height: 1.08;
    text-align: center;
    margin-bottom: 1.4em;
    letter-spacing: -0.018em;
}

h3 {
    font-size: clamp(1.375rem, 0.6vw + 1.125rem, 1.625rem);
    line-height: 1.18;
    letter-spacing: -0.012em;
    font-weight: 500;
}

h4 {
    font-size: 1.125rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
    text-decoration: underline;
}

p {
    margin-bottom: 1em;
    color: var(--text-secondary-color);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 0.8em 1.8em;
    border-radius: 50px;
    /* Píldora */
    font-family: var(--font-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1em 2.5em;
    font-size: 1.1rem;
}

.btn i {
    margin-left: 0.5em;
}

.highlight-text {
    color: var(--highlight-text-color);
}

.flirtify-brand {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Header y Navegación --- */
.site-header {
    background-color: rgba(5, 1, 1, 0.90);
    /* Fondo oscuro vino tinto semi-transparente */
    backdrop-filter: blur(12px);
    padding: 0.5em 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.navbar-brand:hover {
    text-decoration: none;
}

.logo-img {
    height: 40px;
    /* Ajusta según tu logo */
    margin-right: 10px;
    filter: drop-shadow(0 0 5px var(--primary-color));
    /* Efecto neón sutil */
}

.alpha-tag {
    font-size: 0.7em;
    color: var(--primary-color);
    margin-left: 5px;
    vertical-align: super;
    font-weight: normal;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-secondary-color);
    font-weight: 500;
    padding: 0.5em 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links a::before {
    /* Subrayado animado */
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.btn-cta-nav {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.6em 1.2em !important;
    border-radius: 20px;
}

.btn-cta-nav:hover {
    background-color: var(--primary-hover-color);
    color: var(--dark-bg);
}

.btn-cta-nav::before {
    display: none !important;
}

/* Sin subrayado para botón */


.menu-toggle {
    display: none;
    /* Oculto en desktop */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    /* Altura completa de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
    /* Espacio para el header fijo */
    overflow: hidden;
    /* Para el overlay de color y video/imagen */
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Detrás del overlay de color y contenido */
}

#heroVideo,
.hero-static-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cubre todo el espacio sin deformar */
}

.hero-overlay-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.7), rgba(26, 26, 46, 0.85));
    /* Oscurece y da tono */
    z-index: -1;
    /* Detrás del contenido, encima del video/imagen */
}

.hero-content {
    position: relative;
    /* Para estar sobre los overlays */
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    /* Ajusta según tu fuente Orbitron */
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
    /* Efecto neón al título */
    margin-bottom: 0.5em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary-color);
    margin-bottom: 1.5em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    margin: 0.5em;
}

/* --- Secciones Genéricas --- */
.section-dark {
    background-color: var(--dark-bg-secondary);
    padding: 80px 0;
}

.section-light {
    background-color: var(--dark-bg);
    /* O un gris muy oscuro si quieres contraste */
    padding: 80px 0;
}

.section-title {
    margin-bottom: 1em;
    position: relative;
    padding-bottom: 0.5em;
}

.section-title::after {
    /* Línea decorativa bajo el título */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    max-width: 700px;
    margin: 0 auto 3em auto;
    text-align: center;
}

/* --- Sección "Qué es Flirtify" --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3em;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.1);
}

.feature-icon {
    margin-bottom: 1.5em;
}

.feature-icon img {
    height: 60px;
    /* Ajusta según tus SVGs */
    width: auto;
    /* Para SVGs que quieras colorear con CSS: */
    /* filter: invert(70%) sepia(88%) saturate(5757%) hue-rotate(170deg) brightness(102%) contrast(102%); */
    /* Este filtro convierte a un tono azulado similar al primary-color. Ajusta o quita si tus SVGs ya tienen color. */
}

.feature-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5em;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

/* --- Sección "Experiencias" (Testimonios) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1em;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

/* --- Modes Grid (Landing page) --- */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3em;
}

.mode-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.1);
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 1em;
}

.mode-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5em;
}

.mode-features {
    list-style: none;
    padding: 0;
    margin-top: 1em;
}

.mode-features li {
    padding: 5px 0;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

.mode-features li i {
    color: #2ecc71;
    margin-right: 8px;
}

/* --- Exercise categories preview (Landing) --- */
.exercise-categories-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 2em;
}

.exercise-cat-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 25px;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.exercise-cat-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.exercise-cat-item i {
    margin-right: 6px;
}

/* --- Sección CTA Pagos --- */
.section-pricing-cta {
    text-align: center;
}

/* --- Footer --- */
.site-footer-main {
    background-color: #0A0A0A;
    /* Un negro aún más profundo */
    color: var(--text-secondary-color);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1em;
}

.social-links a {
    color: var(--text-secondary-color);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Mensajes Flash --- */
.flash-messages {
    margin-top: calc(var(--header-height) + 20px);
}

/* Evitar que quede bajo el header */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    position: relative;
}

.alert-success {
    background-color: #28a745;
    border-color: #1e7e34;
}

.alert-danger {
    background-color: #dc3545;
    border-color: #bd2130;
}

.alert-warning {
    background-color: #ffc107;
    color: #333;
    border-color: #d39e00;
}

.alert-info {
    background-color: #17a2b8;
    border-color: #117a8b;
}


/* --- Animaciones de Scroll (opcional, con JS) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.4s;
}


/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(6, 9, 18, 0.98);
        position: absolute;
        top: var(--header-height);
        left: 0;
        padding: 1.2em 1em;
        gap: 6px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(96, 165, 250, 0.18);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 6px 0;
        text-align: center;
        list-style: none;
    }

    /* Lang switcher inside collapsed menu — give it room */
    .nav-links .lang-switch {
        margin: 12px auto 4px;
        justify-content: center;
    }
    #lang-select {
        font-size: 0.85rem;
        padding: 8px 32px 8px 14px;
    }

    .menu-toggle {
        display: block;
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.85rem; }

    /* Inputs at >=16px to prevent iOS Safari zoom on focus */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select { font-size: 16px; }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* iOS notch / safe areas */
@supports (padding: max(0px)) {
    .site-header { padding-left: max(15px, env(safe-area-inset-left)); padding-right: max(15px, env(safe-area-inset-right)); }
    .site-footer-main { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* ============================================================
   Editorial typography utilities
   Voz visual: autoridad sobria, masculinidad madura, calma.
   Inspiración: Mr Porter, The Atlantic, Mark Manson, Hodinkee.
   ============================================================ */

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow);
    font-weight: 500;
    color: var(--text-secondary-color);
    display: inline-block;
}

.eyebrow--accent {
    color: #93c5fd; /* blue-300 */
}

.eyebrow::before {
    content: "—";
    margin-right: 0.6em;
    opacity: 0.55;
}

.lead {
    font-family: var(--font-secondary);
    font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem);
    line-height: 1.55;
    font-weight: 400;
    color: rgba(229, 231, 235, 0.86);
    letter-spacing: -0.005em;
    max-width: 62ch;
}

.kicker {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 400;
    color: #93c5fd;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

.dropcap::first-letter {
    font-family: var(--font-primary);
    font-size: 4.4em;
    line-height: 0.82;
    float: left;
    margin: 0.05em 0.1em -0.05em -0.04em;
    color: #93c5fd;
    font-style: italic;
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

.pullquote {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: clamp(1.5rem, 1.5vw + 1rem, 2.125rem);
    line-height: 1.22;
    letter-spacing: -0.018em;
    color: rgba(241, 245, 249, 0.94);
    border-left: 2px solid var(--primary-color);
    padding: 0.4rem 0 0.4rem 1.5rem;
    margin: 2rem 0;
    font-variation-settings: "opsz" 144, "SOFT" 80;
}

.pullquote-author {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow);
    color: var(--text-secondary-color);
}

.hairline {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
    height: 1px;
}

.hairline--accent {
    border-top: 1px solid rgba(96, 165, 250, 0.4);
    position: relative;
}

.hairline--accent::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--primary-color);
}

.cta-mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: var(--tracking-cta);
    font-weight: 500;
    font-size: 0.72rem;
}

.signature {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-secondary-color);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Fraunces refinements when applied via Tailwind utility classes */
.font-garamond,
.font-display {
    font-variation-settings: "opsz" 144, "SOFT" 60;
}

.font-garamond.italic,
.font-display.italic {
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Numerals — when showing prices, stats, dates use lining + tabular */
.numeric {
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum", "tnum";
}