/* ============================
   VARIABLES & RESET
   ============================ */
:root {
    --bg-color: #050505;
    --surface-color: #0f0f13;
    --surface-soft: #16161c;
    --accent-color: #FF3B30; /* Rojo vibrante */
    --accent-glow: rgba(255, 59, 48, 0.35);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* ============================
   ANIMACIONES
   ============================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; /* Inicia invisible */
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================
   LAYOUT GENERAL
   ============================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header-group {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 700;
    display: inline-block;
    background: rgba(255, 59, 48, 0.08);
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255, 59, 48, 0.15);
}

.section-title {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #fff;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* ============================
   NAVBAR + MENÚ HAMBURGUESA
   ============================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

/* Links desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}

.nav-links-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a:not(.nav-cta) {
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-color);
    transition: width 0.2s ease;
}

.nav-links a:not(.nav-cta):hover {
    color: #fff;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--text-primary);
    color: #000;
    padding: 8px 20px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.nav-cta:hover {
    transform: scale(1.05) translateY(-1px);
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transform-origin: center;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================
   HERO
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.25) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.8;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 0 30px rgba(255, 59, 48, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(255, 59, 48, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 15px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Barra de Estadísticas */
.hero-stats-bar {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
}

.stat-item {
    text-align: center;
    padding: 0 10px;
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* ============================
   SOBRE / ABOUT
   ============================ */
.about-text-wrapper {
    max-width: 720px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.about-text-wrapper p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.highlight-card {
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.h-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 59, 48, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.h-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.h-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Primera clase */
.first-class-box {
    background: linear-gradient(145deg, #1a1b22, #111216);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.first-class-box h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 18px;
}

.steps-list {
    display: grid;
    gap: 16px;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.step-dot {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.step-info {
    font-size: 14px;
    color: #ccc;
}

/* ============================
   SPLIT LAYOUT (QUIÉNES / UBICACIÓN)
   ============================ */
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.split-layout-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.split-image img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    object-fit: cover;
}

.split-content {
    font-size: 15px;
    color: var(--text-secondary);
}

.split-content p {
    margin-bottom: 14px;
}

.split-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

/* Ubicación */
.location-text {
    margin-bottom: 14px;
}

.location-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.location-btn {
    border-radius: 14px;
    padding-inline: 20px;
}

/* ============================
   GRID SYSTEM (PROGRAMAS / PLANES)
   ============================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Program Cards */
.card-program {
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-program:hover {
    border-color: var(--accent-color);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.card-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.card-body {
    font-size: 14px;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

.tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    border: 1px solid var(--border-subtle);
    padding: 4px 8px;
    border-radius: 6px;
    color: #888;
}

/* Planes */
.plan-card {
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.plan-card.featured {
    background: linear-gradient(180deg, rgba(255, 59, 48, 0.12), var(--surface-soft));
    border-color: rgba(255, 59, 48, 0.4);
    box-shadow: 0 0 30px rgba(255, 59, 48, 0.25);
    transform: scale(1.03);
}

.plan-name {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.plan-price {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 20px;
}

.plan-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.plan-features {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #ccc;
}

.plan-features li svg {
    width: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
    display: block;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.btn-outline {
    border: 1px solid var(--border-subtle);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

.btn-solid-sm {
    background: #fff;
    color: #000;
}

.btn-solid-sm:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ============================
   RESEÑAS / TESTIMONIOS
   ============================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--surface-soft);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    padding: 24px;
}

.review-stars {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 10px;
}

.review-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.review-author {
    font-size: 13px;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.review-tag {
    font-size: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

/* ============================
   FAQ
   ============================ */
.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

details {
    background: var(--surface-soft);
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: 0.3s;
}

details:hover {
    border-color: var(--border-subtle);
}

details[open] {
    border-color: var(--accent-color);
}

summary {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    font-size: 20px;
    font-weight: 300;
}

details[open] summary::after {
    content: "−";
    color: var(--accent-color);
}

.faq-body {
    padding: 0 24px 24px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================
   FOOTER
   ============================ */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    color: #444;
    font-size: 12px;
    border-top: 1px solid #111;
    padding-top: 30px;
}

/* ============================
   BOTÓN FLOTANTE WHATSAPP
   ============================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ============================
   RESPONSIVE (MÓVIL)
   ============================ */
@media (max-width: 800px) {
    .nav-inner {
        padding-inline: 20px;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #050505;
        border-top: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 16px 24px 12px;
        gap: 16px;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transform: translateY(-4px);
        transition:
            max-height 0.25s ease,
            opacity 0.25s ease,
            transform 0.25s ease;
    }

    .nav-links.is-open {
        max-height: 260px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-cta {
        align-self: stretch;
        text-align: center;
        margin-top: 4px;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-stats-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px 0;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .split-layout,
    .split-layout-reverse {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: scale(1);
        border-width: 2px;
    }

    .location-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
    }
}
