/* ===========================
   Design Tokens / Base
   =========================== */

:root {
    --color-bg: #050505;
    --color-bg-alt: #0b0b0b;
    --color-card: #111111;
    --color-card-soft: #141414;
    --color-border: #262626;

    --color-text: #f5f5f5;
    --color-text-muted: #a3a3a3;

    --color-primary: #3b82f6;       /* blue accent, not neon */
    --color-primary-soft: rgba(59, 130, 246, 0.12);

    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.landing-body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111111 0, #050505 55%, #050505 100%);
    color: var(--color-text);
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

/* Prevent sticky header from covering the anchor target */
#inversion {
    scroll-margin-top: 90px;
}
/* ===========================
   Global Layout
   =========================== */

main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 1.25rem 3rem;
}

.section {
    max-width: 1120px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ===========================
   Header / Navbar
   =========================== */

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.80));
    border-bottom: 1px solid rgba(38, 38, 38, 0.9);
}

.landing-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.landing-logo img {
    display: block;
}

.logo-text {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.16s ease-out;
    white-space: nowrap;
}

/* Primary = only strong use of color */
.btn-primary {
    background: var(--color-primary);
    color: #0a0a0a;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.45);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
}

/* Outline = neutral gray */
.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: #3f3f46;
}

.btn-outline:hover {
    border-color: #52525b;
    background: #111111;
}

/* Ghost = secondary neutral */
.btn-ghost {
    background: #0b0b0b;
    color: var(--color-text-muted);
    border-color: #27272a;
}

.btn-ghost:hover {
    color: var(--color-text);
    border-color: #3f3f46;
}

.btn-block {
    width: 100%;
}

/* ===========================
   Hero with photo carousel
   =========================== */

.hero {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto 2.25rem;
    min-height: 120vh; /* taller so photos show more, esp. on desktop */
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
}

/* Full-bleed carousel (background) */
.hero-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Dark gradient layer over photos (a bit lighter than before) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.82));
}

/* Content wrapper */
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3.25rem 1.2rem 2.4rem; /* a bit less bottom padding so more photo */
}

/* Text card – SMALLER for mobile */
.hero-card {
    background: rgba(15, 15, 15, 0.92);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.1rem;
    max-width: 340px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    margin-bottom: 0.45rem;
}

.hero-title {
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.hero-subtitle {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    max-width: 22rem;
    margin: 0 0 1rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* ---------- Responsive tweaks ---------- */

@media (min-width: 640px) {
    .hero-inner {
        padding: 3.75rem 2rem 2.8rem;
    }

    .hero-card {
        max-width: 380px;
        padding: 1.4rem 1.3rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 120vh; /* more vertical space so tall photos look better */
    }

    .hero-inner {
        justify-content: center;
        padding: 4.5rem 2rem 4rem;
    }

    .hero-card {
        max-width: 420px;
        padding: 1.6rem 1.6rem;
        background: rgba(12, 12, 12, 0.9);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 26rem;
    }
}

/*   Cards / Beneficios */

.section-benefits {
    margin-top: 1.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.card h3 {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ===========================
   Testimonios
   =========================== */

.section-testimonials {
    margin-top: 1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.testimonial-card {
    background: var(--color-card-soft);
    border-radius: var(--radius-lg);
    padding: 1rem 1rem;
    border: 1px solid var(--color-border);
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.testimonial-avatar .avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111827;
    font-size: 1.05rem;
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-size: 0.9rem;
    margin: 0 0 0.45rem;
}

.testimonial-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonial-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.testimonial-card--placeholder {
    justify-content: center;
}

.testimonial-placeholder {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ===========================
   Pricing
   =========================== */

.section-pricing {
    margin-top: 1.5rem;
}

.pricing-card {
    background: var(--color-card-soft);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.25rem 1.6rem;
    border: 1px solid var(--color-border);
    max-width: 1120px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.pricing-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.pricing-price {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.pricing-price span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
}

.pricing-subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pricing-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    align-content: center;
}

.pricing-list li::before {
    content: "• ";
    color: #525252;
}

.pricing-cta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pricing-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ---------------------------
   Pricing (organized packages)
   --------------------------- */

.pricing-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.pricing-kicker {
    margin: 0.25rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.pricing-plan {
    background: #0f0f0f;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.1rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

.pricing-plan-head {
    text-align: center; /* client asked for centering -> do it where it matters */
    margin-bottom: 0.9rem;
}

.pricing-tag {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-options {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.pricing-options li {
    background: #0b0b0b;
    border: 1px solid #1f1f1f;
    border-radius: 14px;
    padding: 0.7rem 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
}

/* Price column */
.pricing-options li strong {
    min-width: 56px;                  /* keeps $180, $260 aligned */
    text-align: left;
    font-size: 1rem;
    color: var(--color-text);
}

/* Middle text (por X clases mensuales) */
.pricing-options li span:not(.opt-muted) {
    flex: 1;
    text-align: left;
    line-height: 1.2;
}

/* Right column: (en el box) / (fuera del box) */
.opt-muted {
    min-width: 92px;                  /* forces vertical alignment */
    text-align: right;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}


.pricing-options strong {
    color: var(--color-text);
}

.opt-muted {
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Center contents inside the first pricing card (programación) */
.pricing-plan .pricing-list {
    grid-template-columns: 1fr;   /* overrides the 2-column layout on desktop */
    justify-items: center;        /* centers each list item block */
    text-align: center;           /* centers the text */
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;             /* keeps it from becoming too wide */
}

/* Optional: center the bullet dot too */
.pricing-plan .pricing-list li::before {
    content: "• ";
    color: #525252;
}


@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .pricing-plan {
        padding: 1.4rem 1.25rem;
    }

    .pricing-options {
        grid-template-columns: 1fr;
    }
}


/* ===========================
   Footer
   =========================== */

.landing-footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.25rem 2rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ===========================
   Responsive
   =========================== */

@media (min-width: 640px) {
    .hero-content {
        padding: 2.2rem 2rem;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 768px) {
    main {
        padding: 0 1.5rem 3rem;
    }

    .hero {
        min-height: 400px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hero {
        margin-top: 2.25rem;
        min-height: 420px;
    }

    .hero-content {
        max-width: 560px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: 2fr 1.2fr;
    }

    .pricing-card {
        padding: 2rem 2rem 2.2rem;
    }
}
/* ---------------------------------------
   Landing header: prevent nav buttons stacking on small phones
   --------------------------------------- */
@media (max-width: 420px) {
    .landing-header-inner {
        padding: 0.6rem 0.85rem; /* slightly tighter */
        gap: 0.5rem;
    }

    .landing-logo img {
        height: 54px; /* shrink logo a bit */
        width: 54px;
    }

    .landing-nav {
        display: flex;
        gap: 0.45rem;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: nowrap; /* ✅ don't stack */
    }

    .landing-nav .btn {
        padding: 0.45rem 0.9rem; /* smaller pills */
        font-size: 0.82rem;
    }
}

