/* ══════════════════════════════════════════
   BASE
   ══════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
main {
    flex: 1;
}

/* ══════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-top);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-top);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 24px;
}
.topbar-brand {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    text-decoration: none;
}
.topbar-brand:hover {
    color: var(--accent);
}
.topbar-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}
.topbar-theme {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition:
        border-color 0.1s,
        color 0.1s;
}
.topbar-theme:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ══════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════ */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.12s,
        color 0.12s,
        border-color 0.12s;
}
.btn-outline-sm {
    border: 1px solid var(--border-hi);
    background: var(--surface);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
.btn-outline-sm:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-primary {
    font-size: 15px;
    font-weight: 500;
    padding: 12px 28px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    transition: opacity 0.12s;
}
.btn-primary:hover {
    opacity: 0.88;
}
.btn-outline {
    font-size: 15px;
    font-weight: 500;
    padding: 12px 28px;
    background: var(--surface);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.12s,
        color 0.12s;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-pricing {
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    padding: 11px;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition:
        opacity 0.12s,
        border-color 0.12s,
        color 0.12s;
}
.btn-pricing-primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-pricing-primary:hover {
    opacity: 0.88;
}
.btn-pricing-outline {
    background: var(--surface);
    border: 1px solid var(--border-hi);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
.btn-pricing-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-cta {
    font-size: 16px;
    font-weight: 500;
    padding: 14px 40px;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.12s;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-cta:hover {
    opacity: 0.88;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 96px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 70% 60% at 50% 40%,
        var(--accent-soft),
        transparent 70%
    );
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-ring);
    background: var(--accent-soft);
    padding: 5px 16px;
    border-radius: 99px;
    margin-bottom: 22px;
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero-title em {
    font-style: italic;
    color: var(--accent);
}
.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.hero-stat-num {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   SECCIONES
   ══════════════════════════════════════════ */
.section {
    padding: 72px 24px;
}
.section-inner {
    max-width: 1060px;
    margin: 0 auto;
}
.section-alt {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.02em;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    font-style: italic;
    margin-top: 8px;
    font-family: var(--font-head);
}

/* Divisor ornamental */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 auto 40px;
    max-width: 440px;
}
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border-hi),
        transparent
    );
}
.divider-icon {
    font-size: 9px;
    color: var(--accent);
    letter-spacing: 0.1em;
    opacity: 0.7;
    font-weight: 700;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Feature cards (con imagen) */
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow 0.2s,
        border-color 0.2s,
        transform 0.2s;
}
.feature-card:hover {
    border-color: var(--accent-ring);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.card-img-wrap {
    position: relative;
    overflow: hidden;
}
.card-img-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
    filter: brightness(0.95) saturate(0.85);
}
.feature-card:hover .card-img-wrap img {
    transform: scale(1.04);
}
.card-img-wide img {
    height: 220px !important;
}
.card-body {
    padding: 18px 20px 20px;
}
.card-body h3 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.card-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tag cards (horizontal) */
.tag-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow 0.2s,
        border-color 0.2s,
        transform 0.2s;
}
.tag-card:hover {
    border-color: var(--border-hi);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.tag-card img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(0.95) saturate(0.85);
}
.tag-card-body {
    padding: 16px 20px;
}
.tag-card-body h3 {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}
.tag-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}
.tag-card.highlight {
    border-left: 3px solid var(--accent);
}
.tag-card.highlight .tag-card-body h3 {
    color: var(--accent);
}

/* ══════════════════════════════════════════
   STEPS
   ══════════════════════════════════════════ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 44px;
}
.step-card {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.step-num {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--border-hi);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
}
.step-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}
.step-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    font-style: italic;
}

/* ══════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 44px;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.pricing-card.featured {
    border-color: var(--accent);
    border-width: 2px;
    box-shadow:
        var(--shadow-md),
        0 0 0 4px var(--accent-soft);
}
.pricing-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--accent);
    padding: 3px 12px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 16px;
    align-self: flex-start;
}
.pricing-name {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.pricing-price {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-price sup {
    font-size: 1.1rem;
    vertical-align: super;
}
.pricing-price sub {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dim);
}
.pricing-desc {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}
.pricing-features li {
    font-size: 13px;
    color: var(--text);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-features li::before {
    content: "◆";
    font-size: 7px;
    color: var(--accent);
    flex-shrink: 0;
}
.pricing-features li.muted {
    color: var(--text-dim);
}
.pricing-features li.muted::before {
    opacity: 0.3;
}

/* ══════════════════════════════════════════
   TESTIMONIOS
   ══════════════════════════════════════════ */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 44px;
}
.testimonio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.testimonio-text {
    font-family: var(--font-head);
    font-style: italic;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
}
.testimonio-text::before {
    content: "\201C";
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: var(--border-hi);
    position: absolute;
    top: -14px;
    left: -6px;
    line-height: 1;
}
.testimonio-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonio-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--border-hi);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}
.testimonio-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.testimonio-role {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* ══════════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════════ */
.cta-section {
    text-align: center;
    padding: 88px 24px;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 50% at 50% 50%,
        var(--accent-soft),
        transparent 70%
    );
    pointer-events: none;
}
.cta-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
}
.cta-title em {
    font-style: italic;
    color: var(--accent);
}
.cta-sub {
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    position: relative;
}
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
