/* ==========================================================
   Castejon Services — hoja de estilos
   Paleta: azul marino, blanco y dorado
   ========================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy-950: #050F22;
  --navy-900: #0A2342;
  --navy-800: #102F57;
  --navy-700: #17406F;
  --blue-500: #2563C9;
  --blue-100: #E6EEFB;
  --gold-600: #A8801A;
  --gold-500: #C9A227;
  --gold-400: #DDBB4E;
  --gold-200: #F3E3AE;
  --gold-50:  #FBF6E6;
  --white: #FFFFFF;
  --soft: #F5F7FB;
  --line: #E3E8F0;
  --ink: #0E1A2E;
  --muted: #56657C;
  --ok: #157F55;
  --danger: #B42318;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 35, 66, .06), 0 2px 8px rgba(10, 35, 66, .05);
  --shadow: 0 10px 30px -12px rgba(10, 35, 66, .22);
  --shadow-lg: 0 30px 60px -20px rgba(5, 15, 34, .45);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold-500); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; border: 1.5px solid transparent; border-radius: 999px; padding: .78em 1.4em; font-weight: 600; font-size: .98rem; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: .95em 1.6em; font-size: 1rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600)); color: var(--navy-950); box-shadow: 0 8px 22px -10px rgba(201, 162, 39, .8); }
.btn-gold:hover { box-shadow: 0 12px 28px -10px rgba(201, 162, 39, .95); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-wa { background: #1FAF5A; color: #fff; }
.btn-wa:hover { background: #18994D; }
.btn-text { background: none; border: 0; color: var(--blue-500); font-weight: 500; padding: 4px 0; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 35, 66, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background .2s; }
.site-header.is-scrolled { background: rgba(5, 15, 34, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--white); }
.brand-sub { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-400); margin-top: 4px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--gold-200); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding: 84px 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(37, 99, 201, .35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(201, 162, 39, .18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 14px; }
.hero .eyebrow, .section-navy .eyebrow { color: var(--gold-400); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(221, 187, 78, .2); }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold-400); background: linear-gradient(90deg, var(--gold-200), var(--gold-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 36em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255, 255, 255, .75); font-size: .94rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--gold-400); }

.hero-visual { position: relative; padding: 30px 10px 40px; }
.mock { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); }
.mock-top { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255, 255, 255, .7); margin-bottom: 16px; }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mock-top span:first-child { background: var(--gold-400); }
.mock-top b { margin-left: 8px; font-weight: 500; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { background: rgba(5, 15, 34, .45); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px; }
.mock-kpis small { display: block; color: rgba(255, 255, 255, .6); font-size: .72rem; }
.mock-kpis strong { font-size: 1.15rem; color: var(--white); }
.mock-kpis div:first-child strong { color: var(--gold-400); }
.mock-chart { height: 150px; display: flex; align-items: flex-end; gap: 8px; padding: 14px; background: rgba(5, 15, 34, .45); border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 14px; }
.mock-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(37, 99, 201, .95), rgba(37, 99, 201, .35)); animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.mock-chart i:nth-child(1) { height: 32%; } .mock-chart i:nth-child(2) { height: 45%; animation-delay: .05s; }
.mock-chart i:nth-child(3) { height: 38%; animation-delay: .1s; } .mock-chart i:nth-child(4) { height: 56%; animation-delay: .15s; }
.mock-chart i:nth-child(5) { height: 50%; animation-delay: .2s; } .mock-chart i:nth-child(6) { height: 64%; animation-delay: .25s; }
.mock-chart i:nth-child(7) { height: 60%; animation-delay: .3s; } .mock-chart i:nth-child(8) { height: 74%; animation-delay: .35s; }
.mock-chart i:nth-child(9) { height: 82%; animation-delay: .4s; }
.mock-chart i:nth-child(10) { height: 95%; animation-delay: .45s; background: linear-gradient(180deg, var(--gold-400), rgba(201, 162, 39, .45)); }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.mock-flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .78rem; color: rgba(255, 255, 255, .8); }
.mock-flow span { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 10px; border-radius: 999px; }
.mock-flow span.gold { background: rgba(201, 162, 39, .18); border-color: rgba(221, 187, 78, .45); color: var(--gold-200); }
.mock-flow b { color: var(--gold-400); font-weight: 400; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: .85rem; animation: float 6s ease-in-out infinite; }
.float-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--gold-50); color: var(--gold-600); }
.float-card b { display: block; color: var(--navy-900); }
.float-card small { color: var(--muted); }
.fc-1 { left: -26px; bottom: -22px; }
.fc-2 { right: -14px; top: 0; animation-delay: -3s; }
.fc-2 .icon { background: var(--blue-100); color: var(--blue-500); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stack-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 30px 0 34px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); font-size: .88rem; font-weight: 500; letter-spacing: .04em; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-navy { background: var(--navy-900); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2, .why-grid h2, .contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.06rem; }
.section-head.light p:last-child { color: rgba(255, 255, 255, .72); }

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-400); margin-bottom: 20px; }
.service-icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; }
.service-card > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 8px; font-size: .94rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { width: 18px; height: 18px; color: var(--gold-600); margin-top: 3px; }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-800); text-decoration: none; font-size: .94rem; }
.link-arrow .icon { width: 18px; transition: transform .2s; }
.link-arrow:hover { color: var(--gold-600); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Proceso */
.section-navy::before { content: ""; position: absolute; right: -200px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 39, .16), transparent 70%); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.steps p { color: rgba(255, 255, 255, .7); font-size: .95rem; margin: 0; }
.step-n { display: inline-block; font-family: var(--display); font-size: 2.1rem; color: var(--gold-400); margin-bottom: 10px; line-height: 1; }

/* Por qué */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-item { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.why-item > .icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--gold-50); color: var(--gold-600); }
.why-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.why-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Agenda ---------- */
.booking { max-width: 960px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 34px; }
.booking-steps { list-style: none; padding: 0; margin: 0 0 30px; display: flex; gap: 10px; }
.booking-steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--muted); padding-bottom: 12px; border-bottom: 3px solid var(--line); }
.booking-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; }
.booking-steps li.is-active { color: var(--navy-900); border-color: var(--gold-500); }
.booking-steps li.is-active span, .booking-steps li.is-done span { background: var(--navy-900); color: var(--gold-400); border-color: var(--navy-900); }
.booking-steps li.is-done { border-color: var(--navy-700); color: var(--navy-800); }
.panel-title { font-family: var(--font); font-size: 1.15rem; margin-bottom: 18px; }
.panel-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.chip { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px; color: var(--ink); font-weight: 500; transition: border-color .15s, background .15s, box-shadow .15s; }
.chip .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--soft); color: var(--navy-800); }
.chip:hover { border-color: var(--gold-400); }
.chip[aria-checked="true"] { border-color: var(--gold-500); background: var(--gold-50); box-shadow: 0 0 0 3px rgba(201, 162, 39, .15); }
.chip[aria-checked="true"] .icon { background: var(--navy-900); color: var(--gold-400); }

.cal-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-weight: 600; text-transform: capitalize; color: var(--navy-900); }
.cal-nav { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 1.3rem; line-height: 1; color: var(--navy-800); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-dow span { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: none; color: #A3AEC0; font-size: .92rem; cursor: default; }
.cal-day.is-available { background: var(--blue-100); color: var(--navy-900); font-weight: 600; cursor: pointer; }
.cal-day.is-available:hover { border-color: var(--navy-700); }
.cal-day.is-selected { background: var(--navy-900); color: var(--gold-400); }
.cal-day.is-today { box-shadow: inset 0 -2px 0 var(--gold-500); }
.times-title { font-weight: 600; color: var(--navy-900); margin-bottom: 12px; }
.times-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.time-btn { border: 1.5px solid var(--line); background: var(--white); border-radius: 10px; padding: 10px 6px; font-weight: 600; color: var(--navy-900); font-size: .92rem; line-height: 1.2; }
.time-btn small { display: block; font-weight: 400; color: var(--muted); font-size: .7rem; margin-top: 2px; }
.time-btn:hover { border-color: var(--gold-500); background: var(--gold-50); }
.tz-note { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.tz-note .icon { width: 16px; height: 16px; }
.selected-slot { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-50); border: 1px solid var(--gold-200); color: var(--navy-900); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: .94rem; }
.booking-done { text-align: center; padding: 20px 0 6px; }
.done-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-400); }
.done-icon .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.done-meta { display: flex; justify-content: center; gap: 28px; margin: 20px 0; flex-wrap: wrap; }
.done-meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.done-meta dd { margin: 4px 0 0; font-weight: 600; font-size: 1.15rem; color: var(--navy-900); letter-spacing: .05em; }
.empty-note { color: var(--muted); font-size: .94rem; grid-column: 1 / -1; }
.skeleton { height: 40px; border-radius: 10px; background: linear-gradient(90deg, var(--soft), #EAEFF6, var(--soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 18px 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--navy-900); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(23, 64, 111, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: .82rem; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-900); flex: none; }
.form-alert { padding: 12px 14px; border-radius: 12px; font-size: .94rem; margin: 12px 0; background: #FDECEA; color: var(--danger); border: 1px solid #F7C6C1; }
.form-alert.is-ok { background: #E7F6EF; color: var(--ok); border-color: #BDE5D2; }
.form .btn { margin-top: 10px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; color: var(--navy-900); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-right: 30px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; position: relative; }
.contact-info p { color: rgba(255, 255, 255, .75); }
.contact-list { list-style: none; padding: 0; margin: 26px 0 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--gold-400); }
.contact-list a { color: var(--white); text-decoration: none; }
.card-form { background: var(--white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); color: var(--ink); }
.card-form .form-grid { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .65); padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-tag { margin-top: 16px; max-width: 28em; }
.footer-h { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-400); margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-list a:hover { color: var(--gold-200); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { color: rgba(255, 255, 255, .7); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.social a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom a { color: rgba(255, 255, 255, .7); }

/* ---------- Asistente ---------- */
.bot-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border: 0; border-radius: 999px; background: var(--navy-900); color: var(--white); font-weight: 600; box-shadow: 0 14px 34px -10px rgba(5, 15, 34, .6); border: 2px solid var(--gold-500); transition: transform .2s; }
.bot-launcher:hover { transform: translateY(-2px); }
.bot-launcher .icon { color: var(--gold-400); width: 22px; height: 22px; }
.bot { position: fixed; right: 22px; bottom: 22px; z-index: 61; width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--white); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(5, 15, 34, .55); overflow: hidden; border: 1px solid var(--line); animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy-900); color: var(--white); border-bottom: 3px solid var(--gold-500); }
.bot-head strong { display: block; font-size: .98rem; }
.bot-head small { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); font-size: .78rem; }
.online { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; }
.bot-close { margin-left: auto; background: rgba(255, 255, 255, .08); border: 0; color: var(--white); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.bot-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-line; word-wrap: break-word; }
.msg.bot-msg { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.msg.user-msg { align-self: flex-end; background: var(--navy-900); color: var(--white); border-bottom-right-radius: 4px; }
.msg a { color: var(--blue-500); font-weight: 600; }
.msg .card-line { display: block; padding: 2px 0; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA8BC; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.bot-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; background: var(--soft); }
.bot-quick:empty { display: none; }
.qr { border: 1.5px solid var(--navy-700); color: var(--navy-800); background: var(--white); border-radius: 999px; padding: 7px 13px; font-size: .86rem; font-weight: 500; }
.qr:hover { background: var(--navy-900); color: var(--white); }
.qr.gold { border-color: var(--gold-500); background: var(--gold-50); color: var(--navy-900); }
.qr.gold:hover { background: var(--gold-500); }
.bot-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.bot-input input { flex: 1; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.bot-input input:focus { outline: none; border-color: var(--navy-700); }
.bot-input button { width: 44px; border-radius: 12px; border: 0; background: var(--gold-500); color: var(--navy-950); display: grid; place-items: center; }

/* ---------- Páginas simples ---------- */
.page { padding: 64px 0 90px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page p, .page li { color: #2C3A50; }
.manage-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.manage-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 20px 0; }
.manage-card dt { color: var(--muted); }
.manage-card dd { margin: 0; font-weight: 600; color: var(--navy-900); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--blue-100); color: var(--navy-800); }
.badge.cancelada { background: #FDECEA; color: var(--danger); }
.badge.confirmada { background: #E7F6EF; color: var(--ok); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .why-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-950); padding: 10px 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); transform: translateY(-120%); transition: transform .25s ease; visibility: hidden; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav .btn { margin-top: 16px; }
  .cal-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero { padding-top: 54px; }
  .services-grid, .steps, .why-list, .form-grid { grid-template-columns: 1fr; }
  .booking { padding: 22px 16px; }
  .booking-steps li { font-size: 0; gap: 0; justify-content: center; }
  .booking-steps span { font-size: .8rem; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .mock-flow span { padding: 5px 7px; font-size: .7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .bot-launcher span { display: none; }
  .bot-launcher { padding: 15px; }
  .bot { right: 12px; bottom: 12px; }
  .manage-card dl { grid-template-columns: 1fr; gap: 2px; }
  .manage-card dd { margin-bottom: 10px; }
  .card-form { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   v2 — idiomas, partner Odoo y sección de contacto unificada
   ========================================================== */
.header-right { display: flex; align-items: center; gap: 10px; order: 3; margin-left: 22px; }
.nav { order: 2; margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch span { padding: 4px 9px; border-radius: 999px; color: rgba(255, 255, 255, .65); }
.lang-switch span.on { background: var(--gold-500); color: var(--navy-950); }
.lang-switch:hover span:not(.on) { color: var(--white); }

.partner-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(201, 162, 39, .14); border: 1px solid rgba(221, 187, 78, .45); color: var(--gold-200); font-size: .85rem; font-weight: 600; letter-spacing: .02em; }
.partner-badge .icon { color: var(--gold-400); width: 18px; height: 18px; }
.partner-badge-dark { margin-top: 18px; font-size: .8rem; }
.service-card { border-color: var(--gold-200); background: linear-gradient(180deg, var(--gold-50), var(--white) 45%); }
.service-card:hover { border-color: var(--gold-400); }
.card-badge { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--navy-900); color: var(--gold-200); font-size: .74rem; font-weight: 600; }
.card-badge .icon { width: 14px; height: 14px; color: var(--gold-400); }

.section-contact .booking { box-shadow: var(--shadow-lg); border-color: transparent; }
.contact-tabs { display: flex; justify-content: center; gap: 6px; width: fit-content; margin: -16px auto 26px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.contact-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: rgba(255, 255, 255, .78); padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.contact-tabs button .icon { width: 18px; height: 18px; }
.contact-tabs button:hover { color: var(--white); }
.contact-tabs button[aria-selected="true"] { background: var(--gold-500); color: var(--navy-950); }
.msg-panel .form-grid { margin-top: 6px; }
.channels { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 28px; color: rgba(255, 255, 255, .7); font-size: .94rem; }
.chan { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.chan .icon { width: 18px; height: 18px; color: var(--gold-400); }
.chan:hover { background: rgba(255, 255, 255, .12); }
.chan-wa { background: #1FAF5A; border-color: #1FAF5A; }
.chan-wa .icon { color: #fff; }
.chan-wa:hover { background: #18994D; }
.section-soft .faq details { border-color: #DCE2EC; }

@media (max-width: 860px) {
  .header-right { margin-left: auto; order: 2; }
  .nav { order: 3; margin-left: 0; }
}
@media (max-width: 640px) {
  .contact-tabs { width: 100%; }
  .contact-tabs button { flex: 1; justify-content: center; padding: 10px 8px; font-size: .88rem; }
  .card-badge { position: static; margin-bottom: 14px; width: fit-content; }
  .chan { width: 100%; justify-content: center; }
}
.section-contact .booking { color: var(--ink); }
.section-contact .booking h3 { color: var(--navy-900); }
.section-contact .booking .muted { color: var(--muted); }

/* v3 — política de privacidad */
.legal h2 { scroll-margin-top: 90px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; margin: 26px 0 10px; padding: 18px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.toc a { color: var(--navy-800); text-decoration: none; }
.toc a:hover { color: var(--gold-600); text-decoration: underline; }

/* v4 — logos oficiales de Odoo */
.odoo-logo { display: block; height: 20px; width: auto; }
.partner-badge { gap: 10px; padding: 8px 16px; }
.partner-badge .badge-sep { width: 1px; align-self: stretch; background: rgba(221, 187, 78, .55); }
.partner-badge-dark .odoo-logo { height: 16px; }
.card-badge { background: var(--white); color: var(--navy-900); border: 1px solid var(--gold-200); box-shadow: var(--shadow-sm); padding: 5px 11px; gap: 7px; }
.card-badge .odoo-logo { height: 14px; }

.footer-addr { max-width: 22em; line-height: 1.5; }
.footer-bottom { padding-bottom: 84px; }
