:root {
    --bg-base: #0d0d10;
    --bg-surface: #121216;
    --bg-card: #16161c;
    --bg-card-alt: #1a1a22;
    --text-primary: #f0ede8;
    --text-secondary: #9a9399;
    --text-muted: #5a5560;
    --accent: #c8a96e; /* dorado cálido — marca fantasía */
    --accent-dim: #8a7048;
    --accent-glow: rgba(200, 169, 110, 0.18);
    --accent2: #7c5cbf; /* violeta oscuro — complementario */
    --accent2-glow: rgba(124, 92, 191, 0.15);
    --border-subtle: rgba(200, 169, 110, 0.12);
    --border-glow: rgba(200, 169, 110, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: "DM Sans", sans-serif;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 64px; /* compensa el header fixed */
}

/* ── TIPOGRAFÍA ── */
.font-display {
    font-family: "Cinzel", serif;
}

/* ── GLOW LINES (Flowind AI style) ── */
.glow-border-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease;
}
.glow-border-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(200, 169, 110, 0) 0%,
        rgba(200, 169, 110, 0.35) 50%,
        rgba(124, 92, 191, 0.25) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}
.glow-border-card:hover {
    border-color: rgba(200, 169, 110, 0.3);
    box-shadow:
        0 0 28px rgba(200, 169, 110, 0.08),
        0 0 1px rgba(200, 169, 110, 0.2);
}
.glow-border-card:hover::before {
    opacity: 1;
}

/* ── BOTONES ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--accent);
    color: #0d0d10;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition:
        background 200ms,
        box-shadow 200ms,
        transform 150ms;
    text-decoration: none;
}
.btn-primary:hover {
    background: #d4b87a;
    box-shadow: 0 0 24px rgba(200, 169, 110, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-primary);
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(240, 237, 232, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition:
        border-color 200ms,
        color 200ms,
        transform 150ms;
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: rgba(240, 237, 232, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* ── HEADER ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    background: rgba(13, 13, 16, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.logo-text {
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}
.logo-text span {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
nav a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 180ms;
    position: relative;
}
nav a:hover {
    color: var(--text-primary);
}
nav a.active {
    color: var(--text-primary);
}
nav a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
}
nav a.nav-cta {
    color: var(--accent);
    font-weight: 500;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

/* Flowind-style grid lines in hero */
.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(200, 169, 110, 0.2) 40%,
        rgba(200, 169, 110, 0.2) 60%,
        transparent 100%
    );
}
.hero-grid::after {
    content: "";
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(124, 92, 191, 0.25) 30%,
        rgba(200, 169, 110, 0.3) 50%,
        rgba(124, 92, 191, 0.25) 70%,
        transparent 100%
    );
}

/* Ambient glow blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.glow-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(200, 169, 110, 0.08) 0%,
        transparent 70%
    );
    top: 10%;
    left: -100px;
}
.glow-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(124, 92, 191, 0.1) 0%,
        transparent 70%
    );
    top: 20%;
    right: -50px;
}

.hero-inner {
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: "";
    display: block;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-family: "Cinzel", serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── SECTION BASE ── */
section {
    padding: 50px 40px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-label::before {
    content: "";
    display: block;
    width: 14px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: "Cinzel", serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
    /*margin-bottom: 56px;*/
}

/* ── PROPS SECTION ── */
.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.prop-card {
    padding: 36px 32px;
}

.prop-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--accent);
}

.prop-title {
    font-family: "Cinzel", serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.prop-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── MASTERS SECTION ── */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.master-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.master-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card-alt), var(--accent-dim));
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.master-name {
    font-family: "Cinzel", serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.master-alias {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.master-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 24px;
}

.master-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.tag {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid rgba(90, 85, 96, 0.4);
    border-radius: 4px;
    padding: 3px 10px;
    transition:
        border-color 180ms,
        color 180ms;
}
.master-card:hover .tag {
    border-color: var(--border-glow);
    color: var(--accent);
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid rgba(90, 85, 96, 0.4);
    border-radius: 5px;
    text-decoration: none;
    transition: all 200ms;
    width: fit-content;
}
.btn-outline-sm:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition:
        color 180ms,
        gap 180ms;
    margin-top: 8px;
}
.explore-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ── HOW IT WORKS ── */
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid rgba(200, 169, 110, 0.25);
    border-radius: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    max-width: 1100px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.step-item {
    background: var(--bg-card);
    padding: 40px 32px;
    position: relative;
    transition: background 220ms;
}
.step-item:hover {
    background: var(--bg-card-alt);
}

.step-number {
    font-family: "Cinzel", serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(200, 169, 110, 0.12);
    line-height: 1;
    margin-bottom: 20px;
    transition: color 220ms;
}
.step-item:hover .step-number {
    color: rgba(200, 169, 110, 0.25);
}

.step-title {
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── CTA FINAL ── */
.cta-section {
    text-align: center;
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(
        ellipse,
        rgba(200, 169, 110, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Flowind-style cross lines on CTA */
.cta-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(200, 169, 110, 0.15) 30%,
        rgba(200, 169, 110, 0.15) 70%,
        transparent
    );
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: "Cinzel", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}
.cta-title em {
    font-style: normal;
    color: var(--accent);
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 48px 40px 32px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 180ms;
}
.footer-nav a:hover {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(90, 85, 96, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 200ms;
}
.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── DIVIDER ── */
.section-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--border-subtle),
        transparent
    );
    max-width: 1100px;
    margin: 0 auto;
}

/* ── HEADER SOCIAL ICONS ── */
.header-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-social-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition:
        color 180ms,
        background 180ms;
}
.header-social-link:hover {
    color: var(--accent);
    background: rgba(200, 169, 110, 0.08);
}

/* ── STATS SECTION ── */
.stats-section {
    padding: 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat-item {
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: background 220ms;
}
.stat-item:hover {
    background: var(--bg-card);
}
.stat-item + .stat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border-subtle);
}
.stat-number {
    font-family: "Cinzel", serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-socials {
        display: none;
    }
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title {
    animation: fadeUp 0.6s ease 0.25s both;
}
.hero-sub {
    animation: fadeUp 0.6s ease 0.4s both;
}
.hero-actions {
    animation: fadeUp 0.6s ease 0.55s both;
}

/* ── HAMBURGUESA ── */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 180ms, border-color 180ms;
    flex-shrink: 0;
}
.nav-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
}
.nav-toggle .line-top,
.nav-toggle .line-bot {
    transition: transform 250ms ease, opacity 250ms ease;
    transform-origin: center;
}
.nav-toggle .line-mid {
    transition: opacity 200ms ease;
}
.nav-toggle.open .line-top {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .line-mid {
    opacity: 0;
}
.nav-toggle.open .line-bot {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── MENÚ MÓVIL ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(13, 13, 16, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px 40px;
    gap: 4px;
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
}
.mobile-menu.open {
    display: flex;
}
.mobile-nav-link {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color 180ms;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text-primary);
}
.mobile-nav-link.active {
    color: var(--accent);
}
.mobile-menu-cta {
    margin-top: 32px;
}
body.menu-open {
    overflow: hidden;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }
    nav.nav-items {
        display: none;
    }
    .header-right {
        display: none !important;
    }
    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }
    section {
        padding: 36px 20px;
    }
    .cta-section {
        padding: 80px 20px;
    }
    footer {
        padding: 40px 20px 24px;
    }

    /* Blog detalle: colapsar grid a columna única, ocultar sidebar */
    .detalle-layout {
        grid-template-columns: 1fr !important;
    }
    .detalle-layout > aside {
        display: none;
    }

    /* Reducir padding de cards en móvil */
    .article-body {
        padding: 1.25rem !important;
    }
    .form-card {
        padding: 1.25rem !important;
    }
}

/* ── GRID 3 COLUMNAS (Masters) ── */
@media (max-width: 900px) {
    .masters-grid-3col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 560px) {
    .masters-grid-3col {
        grid-template-columns: 1fr !important;
    }
}

/* ── UTILITY ── */
.max-w-site {
    max-width: 1100px;
    margin: 0 auto;
}
.text-accent {
    color: var(--accent);
}

/* ── FONDOS DE SECCIÓN ── */
/* bg-surface: .props-section, .how-section, .stats-section, footer */
.bg-surface {
    background: var(--bg-surface);
}

/* bg-base: .masters-section · .cta-section */
.bg-base {
    background: var(--bg-base);
}

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px 12px 14px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: transform 180ms ease, box-shadow 180ms ease;
    white-space: nowrap;
}
.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    color: #fff;
}
.whatsapp-float svg {
    flex-shrink: 0;
}
