/* ============================================================================
   Dysart Team CMS — Sistema de diseño editorial oscuro (Obsidian + Paper + Slate Blue)
   Tipografía: Manrope + Roboto Slab
   ============================================================================ */

:root {
    --bg: #0e0f12;
    --bg-alt: #111214;
    --surface: #14161b;
    --surface-deep: #111318;
    --surface-featured: #16191f;
    --ink: #101113;
    --paper: #eeece7;
    --silver: #969ca6;
    --blue: #a2b2c6;
    --line: #2b2c30;
    --line-soft: #30343d;
    --line-featured: #2f3947;
    --dim: #a2a2a8;
    --copy: #b9bdc6;
    --muted-heading: #8d939e;
    --hero-accent: #aeb5bf;
    --star: #d8a44a;
    --fab-bg: #e4ebe8;
    --fab-fg: #123b31;
    --fab-border: #b4c9bf;
    --radius-sm: 3px;
    --radius-md: 5px;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Roboto Slab', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font-family: inherit;
}

/* ============================================================================
   HEADER
   ============================================================================ */
.site-header {
    height: 96px;
    margin: 0 5%;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 40;
    background: var(--bg);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    letter-spacing: -0.055em;
    line-height: 1;
    color: var(--paper);
    flex-shrink: 0;
}

.brand-logo-svg, .brand-logo-img {
    display: block;
    object-fit: contain;
}

.brand-wordmark strong {
    font-weight: 800;
    color: var(--paper);
}

.brand-wordmark span {
    font-weight: 400;
    color: #a9b7c6;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    font-size: 12px;
    font-weight: 500;
    color: #b6b7bc;
    transition: color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--paper);
}

.ai-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-block;
    flex-shrink: 0;
}

.nav-icon-link {
    color: #b6b7bc;
    display: inline-flex;
    align-items: center;
    transition: color 0.18s ease;
}

.nav-icon-link:hover {
    color: var(--paper);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 12px 20px;
    border: 1px solid #55565b;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--paper);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.header-cta:hover,
.header-cta.is-active {
    border-color: var(--paper);
    background: #23252b;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #55565b;
    border-radius: var(--radius-sm);
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--paper);
    display: block;
    transition: transform 0.2s ease;
}

/* ============================================================================
   FLASH ALERTS
   ============================================================================ */
.flash-wrap {
    margin: 18px 8.8% 0;
}

.flash {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.flash-success {
    border-color: #2f5e4c;
    background: #12231d;
    color: #cde8dc;
}

.flash-error {
    border-color: #6b3036;
    background: #241316;
    color: #f3c4c8;
}

/* ============================================================================
   BUTTONS & LINKS
   ============================================================================ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 49px;
    padding: 14px 21px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.button-light {
    background: var(--paper);
    color: var(--ink);
}

.button-light:hover {
    background: #c7d1df;
}

.button-outline {
    background: transparent;
    color: var(--paper);
    border-color: #55565b;
}

.button-outline:hover {
    border-color: var(--paper);
    background: #23252b;
}

.button-sm {
    min-height: 38px;
    padding: 8px 16px;
    gap: 12px;
}

.button-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--paper);
    transition: color 0.18s ease;
}

.text-link:hover {
    color: var(--blue);
}

.text-link-ai {
    color: #cfd4dc;
    font-weight: 500;
}

.text-link-ai svg:first-child {
    color: var(--blue);
}

.text-link-muted {
    background: none;
    border: 0;
    color: var(--dim);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.text-link-muted:hover {
    color: var(--paper);
}

/* ============================================================================
   TYPOGRAPHY & SECTION RAIL
   ============================================================================ */
.section-rail {
    padding: 86px 8.8%;
    position: relative;
}

.edge-label {
    position: absolute;
    left: 21px;
    top: 88px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #777a82;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    user-select: none;
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #a6a9b0;
}

.eyebrow-dot {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-block;
    flex-shrink: 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    column-gap: 10%;
    row-gap: 20px;
    align-items: end;
    margin-bottom: 52px;
}

.section-heading--single {
    grid-template-columns: 1fr;
    max-width: 780px;
}

.section-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(32px, 3.4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.048em;
    line-height: 1.16;
    color: var(--paper);
}

.section-title .heading-accent-line {
    display: block;
    color: var(--muted-heading);
}

.section-title .heading-accent-inline {
    color: var(--muted-heading);
}

.section-title-sm {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: var(--paper);
}

.section-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--dim);
}

/* ============================================================================
   PAGE HERO (HOME + INTERNAL)
   ============================================================================ */
.page-hero {
    position: relative;
    min-height: 390px;
    padding: 84px 8.8% 82px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero--home {
    min-height: 510px;
    padding: 88px 8.8% 92px;
}

.page-hero .edge-label {
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    animation: heroZoom 26s ease-in-out infinite alternate;
    opacity: 0.9;
}

@keyframes heroZoom {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.1); }
}

.page-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, #0e0f12 0%, rgba(14, 15, 18, 0.92) 26%, rgba(14, 15, 18, 0.56) 56%, rgba(14, 15, 18, 0.16) 100%),
        linear-gradient(180deg, rgba(14, 15, 18, 0) 60%, #0e0f12 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-title {
    margin: 0 0 22px;
    font-family: var(--font-sans);
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.08;
    color: var(--paper);
}

.hero-title .heading-accent-line {
    display: block;
    margin-top: 6px;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 0.9em;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--hero-accent);
}

.hero-title .heading-accent-inline {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 0.94em;
    letter-spacing: -0.025em;
    color: var(--hero-accent);
}

.hero-copy {
    margin: 0 0 34px;
    max-width: 540px;
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--copy);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.hero-price-inline {
    font-size: 13px;
    color: var(--dim);
}

.hero-price-inline strong {
    color: var(--paper);
    font-family: var(--font-serif);
    font-weight: 500;
}

.article-byline {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: var(--dim);
}

/* ============================================================================
   02 / SPECIALIZATION (ENFOQUE)
   ============================================================================ */
.spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--copy);
    transition: border-color 0.18s ease, color 0.18s ease;
}

a.spec-chip:hover,
a.spec-chip.is-active {
    border-color: var(--blue);
    color: var(--paper);
}

.spec-cta {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 46px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.spec-cta h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--paper);
}

.spec-cta p {
    margin: 0;
    max-width: 580px;
    font-size: 14px;
    color: var(--dim);
}

/* ============================================================================
   03 / SERVICES HAIRLINE 2-COL GRID
   ============================================================================ */
.service-rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.service-row {
    background: var(--bg);
    padding: 36px 38px 34px;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.service-row:hover {
    background: var(--surface);
    box-shadow: inset 3px 0 0 0 var(--blue);
}

.service-row-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.service-number {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 400;
    color: #787e89;
}

.service-cat {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8f95a0;
}

.service-price-pill {
    margin-left: auto;
    font-size: 11px;
    color: var(--blue);
    font-family: var(--font-serif);
}

.service-row h3,
.service-row h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--paper);
}

.service-row p {
    margin: 0 0 22px;
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--dim);
    flex: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    color: #7a808b;
}

.service-tags .slash {
    color: #3f434c;
}

/* ============================================================================
   LOCAL SEO 3-COL GRID
   ============================================================================ */
.local-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.local-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 34px 30px;
    display: block;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.local-card:hover {
    transform: translateY(-2px);
    border-color: var(--silver);
}

.local-card h3 {
    margin: 14px 0 12px;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--paper);
}

.local-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--dim);
}

/* ============================================================================
   METHOD 4-COL STEPS
   ============================================================================ */
.method-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.step-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 300;
    color: var(--blue);
    margin-bottom: 16px;
}

.step-line {
    height: 1px;
    background: var(--line);
    margin-bottom: 20px;
}

.method-step h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--paper);
}

.method-step p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--dim);
}

/* ============================================================================
   04 / PRICING 4-COL GRID
   ============================================================================ */
.pricing {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 32px 26px 28px;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    background: var(--surface-featured);
    border-color: var(--line-featured);
    box-shadow: 0 0 0 1px var(--line-featured);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 26px;
    background: var(--blue);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pricing-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--dim);
}

.pricing-card h3 {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--paper);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.pricing-amount {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--paper);
}

.pricing-period {
    font-size: 12px;
    color: var(--dim);
}

.pricing-desc {
    margin: 0 0 24px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
}

.pricing-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--copy);
}

.check-icon {
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-cta {
    width: 100%;
    margin-top: auto;
}

.pricing-footnote {
    margin: 28px 0 0;
    font-size: 12px;
    color: #777a82;
}

/* ============================================================================
   CASES STACK
   ============================================================================ */
.cases-stack {
    display: grid;
    gap: 24px;
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 42px 44px;
    transition: border-color 0.2s ease;
}

.case-card:hover {
    border-color: #444954;
}

.case-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.case-badge {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #353942;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--blue);
}

.case-client {
    font-family: var(--font-serif);
    font-size: 12px;
    color: #878c96;
}

.case-card h3,
.case-card h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.3vw, 30px);
    font-weight: 500;
    letter-spacing: -0.035em;
    color: var(--paper);
}

.case-card p {
    margin: 0 0 26px;
    max-width: 720px;
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--dim);
}

/* ============================================================================
   04 / REVIEWS
   ============================================================================ */
.reviews {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
}

.rating-summary {
    text-align: right;
}

.rating-score {
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 500;
    line-height: 1;
    color: var(--paper);
    margin-bottom: 8px;
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--star);
}

.rating-label {
    margin: 6px 0 0;
    font-size: 11px;
    color: #828791;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: var(--surface-deep);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.review-text {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--copy);
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #232730;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--paper);
}

.review-author span {
    display: block;
    font-size: 11px;
    color: #7c818b;
}

/* ============================================================================
   CERTIFICATIONS
   ============================================================================ */
.certs-home-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: start;
}

.cert-diploma-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cert-diploma-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    background: #1a1d24;
}

.cert-diploma-meta {
    padding: 22px 26px;
}

.cert-diploma-meta .eyebrow {
    margin-bottom: 6px;
}

.cert-diploma-meta h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--paper);
}

.cert-rows {
    border-top: 1px solid var(--line);
}

.cert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 6px;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.2s ease, padding-left 0.2s ease;
}

a.cert-row:hover {
    border-bottom-color: var(--blue);
    padding-left: 10px;
}

.cert-provider {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #828791;
    margin-bottom: 4px;
}

.cert-row h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--paper);
}

.cert-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cert-list-item {
    background: var(--bg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--copy);
    transition: background-color 0.2s ease, color 0.2s ease;
}

a.cert-list-item:hover {
    background: var(--surface);
    color: var(--paper);
}

.cert-list-arrow {
    margin-left: auto;
    color: var(--blue);
}

/* ============================================================================
   FAQ ACCORDION
   ============================================================================ */
.faq-list {
    max-width: 820px;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 16.5px;
    font-weight: 500;
    color: var(--paper);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-toggle {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--blue);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-toggle::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 1.5px;
}

.faq-toggle::after {
    top: 0;
    left: 6px;
    width: 1.5px;
    height: 14px;
}

.faq-item[open] .faq-toggle::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 0 24px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--dim);
}

.faq-answer p {
    margin: 0;
}

/* ============================================================================
   05 / AI SECTION
   ============================================================================ */
.ai-section {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
}

.ai-copy .section-lead {
    margin-top: 20px;
}

.ai-cta-block {
    margin-top: 30px;
}

.ai-note {
    margin: 12px 0 0;
    font-size: 11px;
    color: #777a82;
}

.ai-preview {
    background: var(--surface-deep);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 24px;
    display: grid;
    gap: 14px;
}

.ai-preview-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #8f96a2;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.ai-msg {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.65;
}

.ai-msg-user {
    background: #1b2029;
    border: 1px solid #2b3340;
    color: var(--paper);
    justify-self: end;
    max-width: 85%;
}

.ai-msg-bot {
    background: #15171d;
    border: 1px solid var(--line);
    color: var(--copy);
    max-width: 92%;
}

.preview-input {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #333842;
    border-radius: var(--radius-sm);
    color: #7c828d;
    font-size: 12.5px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.preview-input:hover {
    border-color: var(--blue);
    color: var(--paper);
}

.ai-preview-disclaimer {
    margin: 0;
    text-align: center;
    font-size: 10px;
    color: #656a74;
}

/* ============================================================================
   06 / FINAL CTA
   ============================================================================ */
.cta-final {
    padding: 106px 8.8%;
}

.cta-final-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    margin: 0 0 22px;
    font-size: clamp(34px, 4.3vw, 56px);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.12;
    color: var(--paper);
}

.cta-title .heading-accent-line,
.cta-title .heading-accent-inline {
    display: block;
    color: var(--muted-heading);
}

.cta-sub {
    margin: 0 auto 34px;
    max-width: 520px;
    font-size: 14.5px;
    color: var(--copy);
}

/* ============================================================================
   CASE STUDY / BLOG / SERVICE SINGLE (STICKY TOC LAYOUT)
   ============================================================================ */
.case-body-section {
    padding: 64px 8.8% 90px;
}

.case-layout {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 64px;
    align-items: start;
}

.toc-sidebar {
    position: sticky;
    top: 32px;
}

.toc-heading {
    margin: 0 0 16px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.17em;
    color: #878c96;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.toc-list li {
    border-bottom: 1px solid var(--line);
}

.toc-list a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--dim);
    transition: color 0.18s ease;
}

.toc-list a:hover,
.toc-list a.is-active {
    color: var(--paper);
}

.toc-num {
    font-family: var(--font-serif);
    font-size: 11px;
    color: var(--blue);
    flex-shrink: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--dim);
    transition: color 0.18s ease;
}

.back-link:hover {
    color: var(--paper);
}

.case-kicker-upper {
    margin: 0 0 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--blue);
}

.prose {
    font-size: 15px;
    line-height: 1.85;
    color: var(--copy);
}

.prose-wide {
    max-width: 820px;
}

.prose h2 {
    margin: 44px 0 16px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    letter-spacing: -0.035em;
    color: var(--paper);
}

.prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.prose h3 {
    margin: 28px 0 12px;
    font-size: 18px;
    font-weight: 500;
    color: var(--paper);
}

.prose p {
    margin: 0 0 18px;
}

.prose ul, .prose ol {
    margin: 0 0 22px;
    padding-left: 20px;
}

.prose li {
    margin-bottom: 8px;
}

.prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.prose blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    background: var(--surface);
    border-left: 2px solid var(--blue);
    color: var(--paper);
}

.prose code {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: var(--blue);
}

.case-more {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.case-more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.case-more-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    display: grid;
    gap: 12px;
    transition: border-color 0.2s ease;
}

.case-more-card:hover {
    border-color: var(--blue);
}

.case-more-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    color: var(--paper);
}

.deliverables-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
}

.deliverables-price {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--paper);
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.service-faqs {
    margin-top: 56px;
    padding-top: 42px;
    border-top: 1px solid var(--line);
}

.author-card {
    margin-top: 54px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.author-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 500;
}

.author-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--dim);
}

/* ============================================================================
   BLOG LISTING
   ============================================================================ */
.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 38px;
}

.blog-search {
    display: flex;
    gap: 10px;
}

.blog-search input {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    color: var(--paper);
    font-size: 13px;
    min-width: 220px;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--blue);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    border-color: var(--silver);
    transform: translateY(-2px);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #828791;
}

.blog-card h2,
.blog-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: var(--paper);
}

.blog-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--dim);
    flex: 1;
}

.search-note {
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--dim);
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 42px;
}

.pagination a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--dim);
}

.pagination a.is-active,
.pagination a:hover {
    border-color: var(--paper);
    color: var(--paper);
}

/* ============================================================================
   CONTACT & EDITORIAL UNDERLINE FORMS
   ============================================================================ */
.contact-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 10%;
    align-items: start;
}

.contact-prose {
    margin-top: 20px;
    color: var(--dim);
    font-size: 14px;
}

.editorial-form {
    display: grid;
    gap: 26px;
}

.field-line {
    display: grid;
    gap: 8px;
}

.field-line span {
    font-size: 11px;
    font-weight: 500;
    color: var(--copy);
}

.field-line input,
.field-line textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 0 12px;
    color: var(--paper);
    font-size: 14px;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.field-line input::placeholder,
.field-line textarea::placeholder {
    color: #5e636e;
}

.field-line input:focus,
.field-line textarea:focus {
    outline: none;
    border-bottom-color: var(--blue);
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--dim);
    cursor: pointer;
}

.privacy-check input {
    margin-top: 3px;
    accent-color: var(--blue);
}

.privacy-check a {
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* ============================================================================
   LEGAL PAGE (/privacidad)
   ============================================================================ */
.legal-page {
    max-width: 850px;
    margin: 0 auto;
    padding: 72px 5% 100px;
}

.legal-prose {
    margin-top: 40px;
}

/* ============================================================================
   ASESOR IA (/asesor-ia)
   ============================================================================ */
.advisor-page {
    padding: 60px 8.8% 100px;
}

.advisor-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 54px;
}

.advisor-title {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.08;
    color: var(--paper);
}

.advisor-title .heading-accent-inline {
    font-family: var(--font-serif);
    font-weight: 300;
    color: var(--hero-accent);
}

.advisor-tagline {
    margin: 0;
    text-align: right;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--dim);
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    align-items: start;
}

.auth-aside-title {
    margin: 0 0 18px;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.18;
    color: var(--paper);
}

.auth-aside-title .heading-accent-line {
    display: block;
    color: var(--muted-heading);
}

.auth-perks {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.auth-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--copy);
}

.auth-perks svg {
    color: var(--blue);
}

.auth-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.auth-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dim);
    cursor: pointer;
    margin-bottom: -1px;
}

.auth-tab.is-active {
    color: var(--paper);
    border-bottom-color: var(--paper);
}

.auth-form {
    display: none;
}

.auth-form.is-active {
    display: grid;
}

.auth-forgot {
    font-size: 12px;
    color: var(--dim);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.auth-forgot:hover {
    color: var(--paper);
}

.advisor-chat-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.advisor-chat-bar {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12.5px;
    color: var(--dim);
}

.advisor-user-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.advisor-bar-actions {
    display: flex;
    gap: 18px;
}

.advisor-messages {
    padding: 26px;
    min-height: 340px;
    max-height: 520px;
    overflow-y: auto;
    display: grid;
    gap: 14px;
    align-content: start;
}

.advisor-composer {
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface-deep);
    display: flex;
    gap: 14px;
}

.advisor-composer input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--paper);
    font-size: 13.5px;
}

.advisor-composer input:focus {
    outline: none;
    border-color: var(--blue);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
    margin: 0 5%;
    border-top: 1px solid var(--line);
    padding: 46px 0 38px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding-bottom: 34px;
}

.brand--footer {
    font-size: 21px;
}

.footer-center {
    margin: 0;
    font-size: 12px;
    color: #8b909a;
    text-align: center;
}

.footer-wa-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--paper);
    transition: color 0.18s ease;
}

.footer-wa-link:hover {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    font-size: 11px;
    color: #6d727c;
}

.footer-bottom p {
    margin: 0;
}

.footer-tagline {
    text-align: center;
}

.footer-legal {
    justify-self: end;
    display: flex;
    gap: 18px;
}

.footer-legal a:hover {
    color: var(--paper);
}

/* ============================================================================
   FLOATING CONTACT FAB + POPOVER
   ============================================================================ */
.contact-fab-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.whatsapp-float {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: var(--fab-bg);
    color: var(--fab-fg);
    border: 1px solid var(--fab-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.whatsapp-float:hover {
    background: #c9ded3;
    transform: translateY(-1px);
}

.contact-popover {
    width: 264px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    display: none;
}

.contact-popover.is-open {
    display: block;
}

.contact-popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--paper);
}

.popover-close {
    background: none;
    border: 0;
    color: var(--dim);
    cursor: pointer;
    padding: 2px;
}

.popover-close:hover {
    color: var(--paper);
}

.contact-popover-actions {
    display: grid;
    gap: 10px;
}

.popover-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.18s ease;
}

.popover-btn-light {
    background: var(--fab-bg);
    color: var(--fab-fg);
}

.popover-btn-light:hover {
    background: #c9ded3;
}

.popover-btn-dark {
    background: #1d222c;
    border: 1px solid #2f3644;
    color: var(--paper);
}

.popover-btn-dark:hover {
    background: #272e3b;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1120px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .method-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid,
    .local-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .toc-sidebar {
        position: static;
    }
}

@media (max-width: 960px) {
    .desktop-nav {
        position: fixed;
        top: 96px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 6%;
        gap: 22px;
        display: none;
        border-top: 1px solid var(--line);
        z-index: 50;
    }
    .desktop-nav.is-open {
        display: flex;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .section-heading,
    .ai-grid,
    .certs-home-grid,
    .contact-split,
    .auth-layout,
    .service-rows,
    .cert-list-grid,
    .case-more-grid {
        grid-template-columns: 1fr;
    }
    .spec-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 26px;
    }
    .reviews-header,
    .advisor-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .rating-summary,
    .advisor-tagline {
        text-align: left;
    }
    .footer-top,
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .footer-center,
    .footer-tagline {
        text-align: left;
    }
    .footer-wa-link,
    .footer-legal {
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .section-rail {
        padding: 64px 6%;
    }
    .page-hero,
    .page-hero--home {
        padding: 64px 6%;
        min-height: 400px;
    }
    .edge-label {
        display: none;
    }
    .pricing-grid,
    .method-steps,
    .reviews-grid,
    .local-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .case-card {
        padding: 28px 24px;
    }
    .author-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}
