/* ============================================
   MultiservIA.cl — Premium Local Trust Design System
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Paleta neuromarketing: Teal (confianza) + Cyan neón (tecnología) + Coral (acción) */
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #f0fdf9;
  --primary-glow: rgba(13,148,136,0.12);
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #fff7ed;
  --accent-glow: rgba(249,115,22,0.15);
  --neutral-50: oklch(98.5% 0.004 260);
  --neutral-100: oklch(96% 0.005 260);
  --neutral-200: oklch(91% 0.008 260);
  --neutral-300: oklch(84% 0.01 260);
  --neutral-400: oklch(68% 0.02 260);
  --neutral-500: oklch(52% 0.02 260);
  --neutral-600: oklch(40% 0.02 260);
  --neutral-700: oklch(30% 0.02 260);
  --neutral-800: oklch(22% 0.02 260);
  --neutral-900: oklch(15% 0.02 260);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --white: oklch(100% 0 0);
  --bg: var(--neutral-50);
  --surface: var(--white);
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --text-xs: clamp(0.69rem, 0.67rem + 0.1vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.94rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.06rem, 1rem + 0.3vw, 1.125rem);
  --text-xl: clamp(1.13rem, 1.05rem + 0.4vw, 1.25rem);
  --text-2xl: clamp(1.35rem, 1.2rem + 0.6vw, 1.5rem);
  --text-3xl: clamp(1.6rem, 1.4rem + 0.8vw, 1.875rem);
  --text-4xl: clamp(1.8rem, 1.5rem + 1.2vw, 2.25rem);
  --text-5xl: clamp(2.2rem, 1.8rem + 1.8vw, 3rem);
  --text-6xl: clamp(2.6rem, 2rem + 2.5vw, 3.75rem);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem;
  --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px oklch(0% 0 0 / 0.04);
  --shadow-sm: 0 1px 3px oklch(0% 0 0 / 0.06), 0 1px 2px oklch(0% 0 0 / 0.04);
  --shadow-md: 0 4px 6px oklch(0% 0 0 / 0.06), 0 2px 4px oklch(0% 0 0 / 0.04);
  --shadow-lg: 0 10px 15px oklch(0% 0 0 / 0.08), 0 4px 6px oklch(0% 0 0 / 0.04);
  --shadow-xl: 0 20px 25px oklch(0% 0 0 / 0.1), 0 10px 10px oklch(0% 0 0 / 0.04);
  --max-width: 1280px;
  --nav-height: 72px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  /* --- Neon token único (tecnología/moderno) --- */
  --neon-cyan: #00e5ff;
  --neon-cyan-glow: rgba(0,229,255,0.25);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
}

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; color: var(--neutral-800); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input,select,textarea { font-family: var(--font-body); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button:focus-visible { outline-offset: 3px; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--neutral-900); }
h1 { font-size: var(--text-5xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 4px 14px; border-radius: var(--radius-full); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }

/* --- Container --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Skip Link --- */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--primary); color: var(--white); padding: 8px 16px; border-radius: var(--radius-sm); z-index: 9999; font-weight: 600; font-size: var(--text-sm); }
.skip-link:focus { top: 16px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: var(--text-base); padding: 12px 28px; border-radius: var(--radius-md); border: 2px solid transparent; transition: all var(--transition); white-space: nowrap; line-height: 1; }
.btn--accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); box-shadow: 0 4px 20px var(--accent-glow); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 6px 30px var(--accent-glow); transform: translateY(-2px); color: var(--white); }
.btn--ghost:hover { border-color: var(--neon-cyan); box-shadow: 0 0 30px var(--neon-cyan-glow), 0 0 60px rgba(0,229,255,0.15); color: var(--neon-cyan); text-shadow: 0 0 12px var(--neon-cyan-glow); }
.btn--ghost { background: var(--white); color: var(--neutral-700); border-color: var(--neutral-200); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
.btn--sm { padding: 8px 18px; font-size: var(--text-sm); }
.btn--xl { padding: 16px 36px; font-size: var(--text-lg); }
.btn--block, .btn--full { width: 100%; }



/* --- Header / Nav --- */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: var(--white); border-bottom: 1px solid var(--neutral-200); z-index: 1000; display: flex; align-items: center; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: var(--text-xl); color: var(--primary); text-decoration: none; }
.logo svg { flex: 0 0 40px; width: 40px; height: 40px; }
.logo__dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: var(--text-sm); font-weight: 600; color: var(--neutral-600); transition: color var(--transition); position: relative; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 1px; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--neutral-700); border-radius: 2px; transition: all var(--transition); }
.nav.is-open { display: flex; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--white); padding: 16px 24px; box-shadow: var(--shadow-lg); gap: 16px; }
.nav.is-open a { font-size: var(--text-base); }

/* --- Hero --- */
.hero { padding: 140px 0 80px; background: linear-gradient(135deg, #0f766e 0%, #0d9488 25%, #14b8a6 50%, #0d9488 75%, #0f766e 100%); background-size: 300% 300%; animation: heroAmbient 20s ease infinite; color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(0,229,255,0.18) 0%, rgba(0,229,255,0.06) 35%, transparent 65%); pointer-events: none; animation: driftOrb 14s ease-in-out infinite; z-index: 0; }
.hero::after { content: ''; position: absolute; bottom: -40%; left: -15%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(13,148,136,0.35) 0%, rgba(20,184,166,0.12) 40%, transparent 65%); pointer-events: none; animation: driftOrb 18s ease-in-out infinite reverse; z-index: 0; }
.hero__scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,229,255,0.04) 2px, transparent 3px); pointer-events: none; animation: scanMove 5s linear infinite; z-index: 0; }
@keyframes heroAmbient { 0%{background-position:0% 50%} 25%{background-position:100% 0%} 50%{background-position:100% 100%} 75%{background-position:0% 100%} 100%{background-position:0% 50%} }
@keyframes driftOrb { 0%{transform:translate(0,0) scale(1)} 33%{transform:translate(40px,-30px) scale(1.1)} 66%{transform:translate(-20px,40px) scale(0.9)} 100%{transform:translate(0,0) scale(1)} }
@keyframes scanMove { 0%{background-position:0 0} 100%{background-position:0 100px} }
.hero .container { position: relative; z-index: 1; }
.hero__title { color: var(--white); margin-bottom: 20px; max-width: 680px; }
.hero__title span { color: var(--neon-cyan); }
.hero__lead { font-size: var(--text-lg); color: rgba(255,255,255,0.85); max-width: 540px; margin-bottom: 32px; line-height: 1.7; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
/* --- Stats Bar --- */
.stats { background: var(--white); padding: 32px 0; border-bottom: 1px solid var(--neutral-200); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats__item { text-align: center; }
.stats__num { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 800; color: var(--primary); display: block; line-height: 1.2; text-shadow: 0 0 30px var(--neon-cyan-glow); }
.stats__label { font-size: var(--text-sm); color: var(--neutral-500); margin-top: 4px; display: block; }

/* --- Hero Visual --- */
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
/* hero__card classes are below in the Components section */

/* --- Search --- */
.search-bar { display: flex; gap: 0; max-width: 560px; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.search-bar__icon { display: flex; align-items: center; padding-left: 16px; }
.search-bar input { flex: 1; border: none; padding: 16px 12px; font-size: var(--text-base); outline: none; font-family: var(--font-body); }
.search-bar input::placeholder { color: var(--neutral-400); }
.search-bar button { background: var(--accent); color: var(--white); border: none; padding: 16px 28px; font-weight: 600; font-size: var(--text-sm); cursor: pointer; transition: background var(--transition); display: flex; align-items: center; gap: 8px; }
.search-bar button:hover { background: var(--accent-dark); }

/* --- Sections --- */
.section { padding: 80px 0; }
.section--alt { background: var(--neutral-100); }
.section--brand { background: var(--neutral-900); color: var(--white); }
.section--brand h2 { color: var(--white); }
.section__title--light { color: var(--white); }
.section--cta { background: var(--accent-light); text-align: center; }
.section--cta h2 { margin-bottom: 12px; }
.section--cta p { color: var(--neutral-600); max-width: 560px; margin: 0 auto 28px; font-size: var(--text-lg); }
.section__title { text-align: center; max-width: 640px; margin: 0 auto 12px; }
.section__title span { display: inline-block; position: relative; }
.section__title span::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--neon-cyan), var(--primary), var(--neon-cyan)); box-shadow: 0 0 18px var(--neon-cyan-glow), 0 0 40px rgba(0,229,255,0.12); animation: glowPulse 3s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 18px var(--neon-cyan-glow), 0 0 40px rgba(0,229,255,0.12); } 50% { box-shadow: 0 0 28px var(--neon-cyan-glow), 0 0 60px rgba(0,229,255,0.2); } }
.section__sub { color: var(--neutral-500); font-size: var(--text-lg); text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__cta { text-align: center; margin-top: 32px; }

/* --- Particle Canvas (3D point cloud) --- */
#particle-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 800px; pointer-events: none; z-index: 0; }
#particle-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

/* --- Steps / How It Works --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 56px; left: calc(12.5% + 28px); right: calc(12.5% + 28px); height: 2px; background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light)); z-index: 0; }
.step { text-align: center; padding: 28px 16px 20px; position: relative; z-index: 1; }
.step__num { width: 68px; height: 68px; margin: 0 auto 18px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(26,107,90,0.25); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.step:hover .step__num { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26,107,90,0.35); }
.step h3 { margin-bottom: 6px; font-size: var(--text-lg); }
.step p { color: var(--neutral-500); font-size: var(--text-sm); line-height: 1.5; }

.como-hero { text-align: center; margin-bottom: 32px; }
.como-hero h2 { font-size: var(--text-3xl); margin-bottom: 4px; }
.como-sub { color: var(--neutral-400); font-size: var(--text-base); }
.como-cta { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--neutral-100); }

.modal--wide { max-width: 760px; }
.modal--wide .steps { margin: 0 -8px; }

/* --- Services Grid (images + glassmorphism) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { position: relative; min-height: 240px; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 24px; text-decoration: none; cursor: pointer; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); background-size: cover; background-position: center; background-color: var(--neutral-800); isolation: isolate; }
.service-card[style*="--img"] { background-image: var(--img); }
.service-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.85) 100%); z-index: 1; pointer-events: none; }
.service-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--neon-cyan), transparent 30%, var(--primary), transparent 70%, var(--neon-cyan)); -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 0.4s, box-shadow 0.4s; z-index: 3; pointer-events: none; }
.service-card:hover::before { opacity: 1; box-shadow: 0 0 30px var(--neon-cyan-glow), 0 0 60px rgba(0,229,255,0.15); }
.service-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 40px var(--neon-cyan-glow); }
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-card__bg-hint { opacity: 0; }
.service-card__name { position: relative; z-index: 2; color: #fff; font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,0.4); margin-bottom: 4px; }
.service-card__count { position: relative; z-index: 2; color: rgba(255,255,255,0.7); font-size: var(--text-sm); font-weight: 500; }
.service-card__bg-hint { position: absolute; inset: 0; background: linear-gradient(135deg, var(--neon-cyan-glow), transparent); opacity: 0; transition: opacity 0.4s; z-index: 0; pointer-events: none; }

/* --- Pros / Professionals Grid --- */
.pros { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pro-card { background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); padding: 24px; transition: all var(--transition); position: relative; }
.pro-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.pro-card__badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); }
.pro-card__header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pro-card__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: var(--text-lg); flex-shrink: 0; }
.pro-card__name { font-size: var(--text-base); font-weight: 700; }
.pro-card__title { font-size: var(--text-sm); color: var(--neutral-500); }
.pro-card__stars { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.pro-card__stars svg { width: 14px; height: 14px; fill: #f59e0b; }
.pro-card__rating { font-size: var(--text-sm); font-weight: 600; color: var(--neutral-700); margin-left: 4px; }
.pro-card__reviews { font-size: var(--text-xs); color: var(--neutral-400); }
.pro-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pro-card__tag { font-size: 12px; background: var(--neutral-100); color: var(--neutral-600); padding: 3px 10px; border-radius: var(--radius-full); }
.pro-card__price { font-size: var(--text-lg); font-weight: 700; color: var(--primary); }
.pro-card__price span { font-size: var(--text-sm); font-weight: 400; color: var(--neutral-400); }
.pro-card .btn { margin-top: 14px; width: 100%; }

/* --- Testimonials --- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial__stars { display: flex; gap: 2px; margin-bottom: 12px; font-size: 18px; color: #f59e0b; letter-spacing: 2px; }
.testimonial blockquote { font-size: var(--text-sm); color: var(--neutral-600); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 10px; }
.testimonial__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.testimonial__author strong { font-size: var(--text-sm); font-weight: 600; }
.testimonial__author span { font-size: var(--text-xs); color: var(--neutral-400); }

/* --- Trust Grid --- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.trust-item { text-align: center; padding: 32px 20px; background: rgba(255,255,255,0.06); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(4px); }
.trust-item__icon { width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.trust-item__icon svg { width: 28px; height: 28px; stroke: var(--white); }
.trust-item h3 { font-size: var(--text-lg); margin-bottom: 8px; color: var(--white); }
.trust-item p { font-size: var(--text-sm); color: rgba(255,255,255,0.7); line-height: 1.6; }

/* --- CTA --- (legacy, kept for media queries) */

/* --- Footer --- */
.footer { background: var(--neutral-900); color: var(--neutral-400); padding: 60px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand { margin-bottom: 24px; }
.footer__brand .logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; color: var(--white); font-size: var(--text-lg); }
.footer__brand .logo svg { flex-shrink: 0; }
.footer .logo { font-size: var(--text-lg); }
.footer .logo svg { width: 28px; height: 28px; }
.footer__desc { font-size: var(--text-sm); line-height: 1.7; max-width: 300px; margin-top: 12px; }
.footer h4 { color: var(--white); font-size: var(--text-sm); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: var(--text-sm); color: var(--neutral-400); transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--neutral-700); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.footer__social a:hover { border-color: var(--primary); background: var(--primary); }
.footer__social a svg { width: 16px; height: 16px; }
.footer__bottom { border-top: 1px solid var(--neutral-800); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); }


/* ============================================
   SPA Views & Components
   ============================================ */

/* --- Modal System --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--white); border-radius: var(--radius-xl); padding: 32px; max-width: 520px; width: 90vw; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-xl); transform: scale(0.95) translateY(10px); transition: transform 0.3s ease; }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--neutral-100); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); }
.modal__close:hover { background: var(--neutral-200); }
.modal__close svg { width: 18px; height: 18px; stroke: var(--neutral-500); }
.modal__header { margin-bottom: 24px; }
.modal__header h2 { font-size: var(--text-2xl); }
.modal__header p { color: var(--neutral-500); font-size: var(--text-sm); margin-top: 4px; }
.modal__body { margin-bottom: 24px; }
.modal__footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--neutral-100); }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--neutral-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--neutral-200); border-radius: var(--radius-sm); font-size: var(--text-base); font-family: var(--font-body); transition: border-color var(--transition); background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .muted { margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__error { color: var(--danger); font-size: var(--text-xs); margin-top: 4px; display: none; }
.form-group.error input { border-color: var(--danger); }
.form-group.error .form__error { display: block; }

/* --- View Container (SPA) --- */
.view { display: none; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* --- Dashboard / Panel Layout --- */
.panel { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: calc(100vh - var(--nav-height)); padding-top: var(--nav-height); }
.panel__sidebar { background: var(--white); border-right: 1px solid var(--neutral-200); padding: 24px 0; }
.panel__sidebar-item { display: flex; align-items: center; gap: 12px; padding: 10px 24px; font-size: var(--text-sm); font-weight: 500; color: var(--neutral-600); cursor: pointer; transition: all var(--transition); border-left: 3px solid transparent; }
.panel__sidebar-item:hover { background: var(--neutral-50); color: var(--primary); }
.panel__sidebar-item.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.panel__sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.panel__content { padding: 32px; background: var(--neutral-50); }

/* --- Profile --- */
.profile-header { display: flex; align-items: center; gap: 24px; padding: 24px; background: var(--white); border-radius: var(--radius-lg); margin-bottom: 24px; }
.profile-header__avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 700; color: var(--primary); }
.profile-header__info h2 { margin-bottom: 4px; }
.profile-header__info p { font-size: var(--text-sm); color: var(--neutral-500); }
.profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-detail { padding: 16px; background: var(--white); border-radius: var(--radius-md); }
.profile-detail__label { font-size: var(--text-xs); color: var(--neutral-400); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.profile-detail__value { font-size: var(--text-base); font-weight: 600; }

/* --- Service Cards --- */
.service-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.service-card__title { font-weight: 700; font-size: var(--text-base); }
.service-card__price { font-weight: 700; color: var(--primary); }
.service-card__desc { font-size: var(--text-sm); color: var(--neutral-500); margin-bottom: 12px; }
.service-card__actions { display: flex; gap: 8px; }

/* --- Orders / Hire Requests --- */
.order-card { background: var(--white); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.order-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-card__service { font-weight: 700; }
.order-card__status { font-size: var(--text-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); }
.order-card__status--pending { background: #fef3c7; color: #92400e; }
.order-card__status--active { background: #dbeafe; color: #1e40af; }
.order-card__status--completed { background: #d1fae5; color: #065f46; }
.order-card__status--cancelled { background: #fee2e2; color: #991b1b; }
.order-card__pro,.order-card__date { font-size: var(--text-sm); color: var(--neutral-500); }
.order-card__actions { display: flex; gap: 8px; margin-top: 12px; }

/* --- Chat --- */
.chat { display: flex; flex-direction: column; height: 500px; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.chat__header { padding: 16px 20px; border-bottom: 1px solid var(--neutral-200); display: flex; align-items: center; gap: 12px; }
.chat__header-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: var(--text-sm); }
.chat__header-name { font-weight: 600; font-size: var(--text-sm); }
.chat__messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat__msg { max-width: 75%; padding: 10px 16px; border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.5; }
.chat__msg--received { background: var(--neutral-100); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat__msg--sent { background: var(--primary); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat__msg-time { font-size: 11px; color: var(--neutral-400); margin-top: 4px; }
.chat__msg--sent .chat__msg-time { color: rgba(255,255,255,0.6); }
.chat__input { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--neutral-200); }
.chat__input input { flex: 1; border: 1px solid var(--neutral-200); border-radius: var(--radius-full); padding: 10px 16px; font-size: var(--text-sm); outline: none; }
.chat__input input:focus { border-color: var(--primary); }
.chat__input button { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white); border: none; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.chat__input button:hover { background: var(--primary-dark); }
.chat__input button svg { width: 18px; height: 18px; }

/* --- Badges & Tags --- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.3px; }
.badge--verified { background: #d1fae5; color: #065f46; }
.badge--premium { background: #fef3c7; color: #92400e; }
.badge--top { background: #fce7f3; color: #9d174d; }
.badge--pro { background: var(--primary-light); color: var(--primary); }

/* --- Toast / Notification --- */
.toast { position: fixed; top: 80px; right: 24px; z-index: 3000; background: var(--white); border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary); min-width: 280px; max-width: 400px; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.toast.active { transform: translateX(0); }
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--warning); }
.toast__title { font-weight: 700; font-size: var(--text-sm); margin-bottom: 2px; }
.toast__msg { font-size: var(--text-xs); color: var(--neutral-500); }

/* --- Loading Spinner --- */
.spinner { width: 24px; height: 24px; border: 3px solid var(--neutral-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
.spinner--lg { width: 40px; height: 40px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Skeleton Loading --- */
.skeleton { background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--radius-sm); }
.skeleton--text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton--title { height: 20px; margin-bottom: 12px; width: 60%; }
.skeleton--avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton--card { height: 200px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state__icon { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--neutral-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.empty-state__icon svg { width: 36px; height: 36px; stroke: var(--neutral-400); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--neutral-500); margin-bottom: 20px; max-width: 360px; margin-left: auto; margin-right: auto; }

/* --- Filter Bar --- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; padding: 16px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--neutral-200); }
.filter-bar select, .filter-bar input { padding: 8px 12px; border: 1px solid var(--neutral-200); border-radius: var(--radius-sm); font-size: var(--text-sm); outline: none; background: var(--white); }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination button { width: 36px; height: 36px; border: 1px solid var(--neutral-200); border-radius: var(--radius-sm); background: var(--white); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: all var(--transition); }
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: default; }

/* --- Rating Display --- */
.rating { display: inline-flex; align-items: center; gap: 2px; }
.rating svg { width: 16px; height: 16px; fill: #f59e0b; }
.rating--sm svg { width: 12px; height: 12px; }
.rating--lg svg { width: 20px; height: 20px; }

/* --- SPA Views: active state --- */
.view.is-active { display: block; position: relative; }

/* --- Panel Tabs --- */
.panel-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--neutral-200); }
.panel-tab { padding: 10px 20px; font-size: var(--text-sm); font-weight: 600; color: var(--neutral-500); background: none; border: none; cursor: pointer; position: relative; transition: color var(--transition); }
.panel-tab:hover { color: var(--primary); }
.panel-tab.is-active { color: var(--primary); }
.panel-tab.is-active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 1px; }
.panel-section { display: none; }
.panel-section.is-active { display: block; }

/* --- General Tabs (dynamic) --- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { padding: 8px 20px; font-size: var(--text-sm); border-radius: 999px; border: 1px solid var(--neutral-200); background: var(--white); cursor: pointer; font-weight: 500; transition: all var(--transition); }
.tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* --- Wizard Steps --- */
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.wizard-step h3 { font-size: var(--text-xl); margin-bottom: 8px; }
.wizard-step p { color: var(--neutral-500); font-size: var(--text-sm); margin-bottom: 20px; }

/* --- Stepper --- */
.stepper { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.stepper__item { width: 32px; height: 32px; border-radius: 50%; background: var(--neutral-200); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 600; color: var(--neutral-500); transition: all var(--transition); }
.stepper__item.active { background: var(--primary); color: var(--white); }
.stepper__item.done { background: var(--success); color: var(--white); }

/* --- Form --- */
.form-section { margin-bottom: 24px; }
.form-section h4 { font-size: var(--text-lg); margin-bottom: 16px; }
.category-select { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
.category-option { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--neutral-200); border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-sm); transition: all var(--transition); }
.category-option:hover { border-color: var(--primary); }
.category-option.selected { border-color: var(--primary); background: var(--primary-light); }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); cursor: pointer; }
.form-progress { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 24px; }
.form-progress__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-300); transition: background var(--transition); }
.form-progress__dot.is-active { background: var(--primary); }
.modal__form { display: flex; flex-direction: column; gap: 12px; }
.modal__alt { text-align: center; font-size: var(--text-sm); color: var(--neutral-500); margin-top: 16px; }
.modal__alt a { color: var(--primary); font-weight: 600; }

/* --- Flip Card --- */
.flip { perspective: 800px; cursor: pointer; }
.flip__inner { position: relative; transition: transform 0.5s ease; transform-style: preserve-3d; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__front { }
.flip__back { position: absolute; inset: 0; transform: rotateY(180deg); }

/* --- Reveal on Scroll --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- Hero Card (glassmorphism) --- */
.hero__card { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: 0 8px 32px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 10px; min-width: 220px; transition: all 0.4s; position: relative; }
.hero__card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--neon-cyan), transparent 50%, var(--primary), transparent 80%, var(--neon-cyan)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; box-shadow: 0 0 24px var(--neon-cyan-glow); }
.hero__card:hover { box-shadow: 0 8px 40px var(--neon-cyan-glow); }
.hero__card-header { display: flex; align-items: center; gap: 10px; }
.hero__card-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--neon-cyan); }
.hero__card-meta { display: block; font-size: var(--text-xs); color: rgba(255,255,255,0.6); }
.hero__card-header strong { color: #fff; }
.hero__card-price { font-weight: 800; font-size: var(--text-lg); color: var(--neon-cyan); text-shadow: 0 0 16px var(--neon-cyan-glow); letter-spacing: 0.5px; }
.hero__card-label { font-size: var(--text-xs); color: rgba(255,255,255,0.5); }
.hero__badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.hero__badges span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.1); padding: 6px 14px; border-radius: var(--radius-full); }

/* --- Comparison Table --- */
.comparison-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.comparison-table th, .comparison-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--neutral-200); white-space: nowrap; }
.comparison-table th { font-weight: 700; color: var(--neutral-900); background: var(--neutral-50); }
.comparison-table th:first-child { width: 45%; }
.comparison-table td:first-child { text-align: left; font-weight: 500; white-space: normal; }
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--danger); }

/* --- Pro Benefits --- */
.pro-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pro-benefit { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--neutral-600); }
.pro-benefit .check { font-weight: 700; }

/* --- Text utilities --- */
.text-center { text-align: center; }
.muted { color: var(--neutral-500); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel__sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open { display: flex; }
  .nav__cta .btn span { display: none; }
  .hero { padding: 100px 0 60px; }
  .hero__title { font-size: var(--text-3xl); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { display: none; }
  .step { padding: 20px 16px; display: flex; align-items: flex-start; gap: 16px; text-align: left; }
  .step__num { width: 48px; height: 48px; min-width: 48px; margin: 0; font-size: var(--text-lg); }
  .step h3 { font-size: var(--text-base); }
  .modal--wide { max-width: 95vw; }
  .modal--wide .steps { margin: 0; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .pros { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .section--cta { margin: 0 16px; padding: 48px 24px; border-radius: var(--radius-lg); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-details { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; border-radius: var(--radius-md); }
  .search-bar input { width: 100%; }
  .section { padding: 48px 0; }
  .modal { padding: 24px; }
}
@media (max-width: 480px) {
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-2xl); }
  .container { padding: 0 16px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { text-align: center; }
  .plans-grid { grid-template-columns: 1fr; }
  .agenda__grid { gap: 2px; }
  .agenda__day { font-size: var(--text-xs); }
  .panel-tabs { overflow-x: auto; gap: 0; }
  .panel-tab { white-space: nowrap; font-size: var(--text-xs); padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --- Planes grid (pro panel) --- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 10px; }

/* --- Agenda / calendario --- */
.agenda__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.agenda__dow { text-align: center; font-weight: 700; font-size: var(--text-xs); color: var(--neutral-500); padding: 8px 0; }
.agenda__day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; font-size: var(--text-sm); font-weight: 600; color: var(--neutral-700); position: relative; cursor: default; }
.agenda__day--empty { visibility: hidden; }
.agenda__day--busy { background: color-mix(in srgb, var(--success) 15%, transparent); }
.agenda__day--pending { background: color-mix(in srgb, var(--warning) 15%, transparent); }
.agenda__dot { width: 6px; height: 6px; border-radius: 50%; position: absolute; bottom: 6px; }
.agenda__dot--green { background: var(--success); }
.agenda__dot--amber { background: var(--warning); display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: middle; }
.agenda__day .agenda__dot { position: static; margin-top: 2px; }

/* --- Reportes --- */
.reportes__bar { height: 8px; background: var(--neutral-200); border-radius: 8px; overflow: hidden; }
.reportes__fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 8px; }
.fee-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--neutral-100); font-size: var(--text-sm); }
.fee-line--total { border-bottom: none; font-weight: 700; font-size: var(--text-base); padding-top: 12px; border-top: 2px solid var(--neutral-200); }

/* --- Agente IA --- */
.ia-card { border: 1px solid var(--neutral-200); border-radius: 16px; overflow: hidden; }
.ia-card__header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--neutral-200); }
.ia-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.ia-chat { height: 240px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--neutral-50); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: var(--text-sm); line-height: 1.5; }
.msg--me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg--them { align-self: flex-start; background: var(--white); border: 1px solid var(--neutral-200); border-bottom-left-radius: 4px; }
.ia-actions { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--neutral-200); flex-wrap: wrap; }
.ia-input-row { display: flex; gap: 8px; padding: 12px 16px; }
.ia-input { flex: 1; padding: 10px 14px; border: 1px solid var(--neutral-200); border-radius: 12px; font-size: var(--text-sm); }

/* --- Badge variants --- */
.badge--pending { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.badge--insured { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2dc4a8;
    --primary-dark: #1a9b82;
    --primary-light: #0d2f28;
    --primary-glow: rgba(45,196,168,0.12);
    --accent: #f58a4a;
    --accent-dark: #e8753a;
    --accent-light: #2e1a0e;
    --accent-glow: rgba(245,138,74,0.15);
    --neutral-50: oklch(15% 0.02 260);
    --neutral-100: oklch(22% 0.02 260);
    --neutral-200: oklch(30% 0.02 260);
    --neutral-300: oklch(40% 0.02 260);
    --neutral-400: oklch(52% 0.02 260);
    --neutral-500: oklch(68% 0.01 260);
    --neutral-600: oklch(84% 0.008 260);
    --neutral-700: oklch(91% 0.005 260);
    --neutral-800: oklch(96% 0.004 260);
    --neutral-900: oklch(98.5% 0.004 260);
    --white: oklch(22% 0.02 260);
    --bg: oklch(12% 0.015 260);
    --surface: var(--white);
    --shadow-xs: 0 1px 2px oklch(0% 0 0 / 0.3);
    --shadow-sm: 0 1px 3px oklch(0% 0 0 / 0.4), 0 1px 2px oklch(0% 0 0 / 0.3);
    --shadow-md: 0 4px 6px oklch(0% 0 0 / 0.4), 0 2px 4px oklch(0% 0 0 / 0.3);
    --shadow-lg: 0 10px 15px oklch(0% 0 0 / 0.5), 0 4px 6px oklch(0% 0 0 / 0.3);
    --shadow-xl: 0 20px 25px oklch(0% 0 0 / 0.5), 0 10px 10px oklch(0% 0 0 / 0.3);
  }
  .nav { background: var(--surface); border-bottom-color: var(--neutral-200); }
  .footer { background: var(--neutral-900); }
  .modal { background: var(--surface); }
  .modal-overlay { background: rgba(0,0,0,0.7); }
  .stats__num { color: var(--primary); }
  .search-bar { background: var(--surface); }
  .search-bar input { color: var(--neutral-800); }
  .hero__card { background: rgba(30,30,40,0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .hero__card-price { color: var(--neon-cyan); text-shadow: 0 0 16px var(--neon-cyan-glow); }
  .ia-chat { background: var(--neutral-100); }
  .msg--them { background: var(--surface); }
  .reportes__bar { background: var(--neutral-300); }
  .agenda__day--busy { background: color-mix(in srgb, var(--success) 25%, transparent); }
  .agenda__day--pending { background: color-mix(in srgb, var(--warning) 25%, transparent); }
}

/* --- Onboarding de profesionales --- */
.pro-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.pro-benefit { display: block; min-width: 0; padding: 22px; color: var(--neutral-600); background: var(--surface); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.pro-benefit h3 { margin-bottom: 8px; font-size: var(--text-lg); }
.pro-benefit p { font-size: var(--text-sm); line-height: 1.55; }
.plans-grid .card { display: flex; min-width: 0; min-height: 100%; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.plans-grid .card h3 { margin-bottom: 10px; }
.plans-grid .card .stack { flex: 1; color: var(--neutral-600); }
.plans-grid .card .btn { margin-top: auto; }
.plans-grid .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* --- Avisos flotantes y tutorial guiado --- */
.social-proof-toast { position: fixed; left: 18px; bottom: 18px; z-index: 55; max-width: 290px; padding: 11px 14px; color: var(--neutral-900); background: var(--surface); border: 1px solid var(--neutral-200); border-left: 4px solid var(--success); border-radius: 12px; box-shadow: var(--shadow-lg); font-size: var(--text-sm); font-weight: 600; transform: translateY(160%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tour-chooser { position: fixed; inset: 0; z-index: 7000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 16, 15, .62); }
.tour-chooser.open { display: flex; }
.tour-chooser__card { width: min(100%, 600px); padding: 30px; color: var(--neutral-800); background: var(--surface); border: 1px solid var(--neutral-200); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.tour-chooser__card h3 { margin-bottom: 8px; }
.tour-chooser__card .muted { margin-bottom: 22px; }
.tour-chooser__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tour-choice, .tour-chooser__skip { width: 100%; padding: 15px 16px; font: inherit; font-weight: 700; text-align: left; color: var(--neutral-900); background: var(--bg); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.tour-choice:hover { color: var(--primary-dark); background: var(--primary-light); border-color: var(--primary); transform: translateY(-1px); }
.tour-choice span { display: block; margin-top: 4px; font-size: var(--text-sm); font-weight: 400; color: var(--neutral-600); }
.tour-chooser__skip { margin-top: 14px; text-align: center; color: var(--neutral-600); background: transparent; }
.tour-chooser__skip:hover { border-color: var(--neutral-400); }
#tour-block { position: fixed; inset: 0; z-index: 6998; background: rgba(4, 16, 15, .68); }
#tour-spot { position: fixed; z-index: 6999; border: 3px solid var(--primary); border-radius: var(--radius-md); box-shadow: 0 0 0 9999px rgba(4, 16, 15, .02); pointer-events: none; }
#tour-tip { position: fixed; z-index: 7001; width: min(360px, calc(100vw - 32px)); padding: 20px; color: var(--neutral-800); background: var(--surface); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
#tour-tip h3 { margin-bottom: 8px; font-size: var(--text-lg); }
#tour-tip p { margin-bottom: 16px; color: var(--neutral-600); }

/* --- Control de accesibilidad: queda siempre disponible y por sobre widgets --- */
#a11y-fab { position: fixed; right: 18px; bottom: 18px; z-index: 8000; width: 54px; height: 54px; display: grid; place-items: center; color: #062a25; background: #d0f5a3; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 8px 22px rgba(0,0,0,.28); font-size: 26px; line-height: 1; }
#a11y-fab:hover { transform: translateY(-2px); }
#a11y-panel { position: fixed; right: 18px; bottom: 84px; z-index: 8001; width: min(410px, calc(100vw - 32px)); max-height: min(78vh, 720px); overflow: auto; color: var(--neutral-800); background: var(--surface); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
#a11y-panel[hidden] { display: none; }

@media (max-width: 768px) {
  .pro-benefits, .tour-chooser__opts { grid-template-columns: 1fr; }
  .plans-grid .card { padding: 22px; }
  .social-proof-toast { right: 82px; max-width: calc(100vw - 100px); }
  .tour-chooser__card { padding: 24px; }
}

/* --- Páginas de servicios estáticas --- */
.blog-hero { padding-top: calc(var(--nav-height) + 32px); }
.blog-hero .crumbs { position: relative; z-index: 1; margin-bottom: 20px; }
.footer__cols { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)); gap: 32px; align-items: start; }
.footer__cols h4 { margin-bottom: 10px; color: inherit; font-size: var(--text-base); }
.footer__cols a { display: block; margin: 7px 0; color: inherit; opacity: .82; }
.footer__cols a:hover { opacity: 1; color: var(--primary); }
@media (max-width: 768px) {
  .blog-hero { padding-top: calc(var(--nav-height) + 24px); }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) { .footer__cols { grid-template-columns: 1fr; } }
