/* =========================================================
   RDP · Rodríguez del Pino — estilos complementarios a Tailwind
   (CSS plano: el CDN de Tailwind no procesa @apply en hojas externas)
   ========================================================= */

:root {
  --ink-950: #0d0d0f;
  --ink-900: #141417;
  --ink-800: #1d1d21;
  --ink-600: #3d3d45;
  --brand-300: #ffab63;
  --brand-400: #ff9a3c;
  --brand-500: #ff8a1f;
  --brand-600: #ec7410;
  --brand-700: #b9560a;
  --paper: #f6f3ee;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Tokens de tema (RGB para usar con alfa en Tailwind) */
  --surface: 246 243 238;   /* fondo de secciones claras */
  --card: 255 255 255;      /* tarjetas y formularios */
  --fg: 13 13 15;           /* texto principal */
  --muted: 61 61 69;        /* texto secundario */
  --input: 246 243 238;     /* campos y opciones */
  --tint: 255 245 236;      /* naranja muy suave */
  --accent-text: #b9560a;   /* naranja legible sobre el fondo */
}

html.dark {
  --surface: 18 18 21;
  --card: 28 28 33;
  --fg: 240 238 234;
  --muted: 168 166 176;
  --input: 38 38 44;
  --tint: 58 36 16;
  --accent-text: #ff9a3c;
}

html.dark #como-trabajamos,
html.dark footer { border-top: 1px solid rgba(255, 255, 255, .06); }

html { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
#header { background: transparent; }
#header.is-scrolled {
  background: rgba(13, 13, 15, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

/* Móvil: logo grande y centrado; se compacta al hacer scroll */
@media (max-width: 639px) {
  #header.is-scrolled .logo-img { height: 2.75rem; }
  #header.is-scrolled a[href="#inicio"] { padding: .35rem .75rem; border-radius: .9rem; }
}

.nav-link {
  position: relative;
  padding: .55rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  border-radius: 999px;
  transition: color .2s;
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px;
  background: var(--brand-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.mobile-link {
  padding: .9rem .25rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .85);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

/* ---------- Hero ---------- */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

.check-dot {
  flex: none;
  width: 1.15rem; height: 1.15rem;
  border-radius: 999px;
  background: var(--brand-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.float-card { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Marquee ---------- */
.marquee { animation: marquee 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - 1.25rem)); }
}
.slashes { color: rgba(13, 13, 15, .35); letter-spacing: -.1em; }

.stripes {
  background: repeating-linear-gradient(-60deg, var(--ink-950) 0 14px, transparent 14px 40px);
}

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 3px;
  background: var(--brand-500);
  border-radius: 2px;
  transform: skewX(-25deg);
}

.section-title {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: rgb(var(--fg));
}

/* ---------- Servicios ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1.6rem;
  background: rgb(var(--card));
  box-shadow: 0 1px 2px rgb(var(--fg) / .05);
  outline: 1px solid rgb(var(--fg) / .06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgb(var(--fg) / .3);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  flex: none;
  border-radius: 1rem;
  background: rgb(var(--tint));
  color: var(--brand-600);
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.icon-tile svg { width: 1.6rem; height: 1.6rem; }
.service-card:hover .icon-tile { background: var(--brand-500); color: rgb(var(--fg)); transform: rotate(-6deg); }

.card-title {
  margin-top: 1.4rem;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  color: rgb(var(--fg));
}
.card-text { margin-top: .7rem; color: rgb(var(--muted)); line-height: 1.6; }
.card-link {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  font-weight: 700;
  font-size: .92rem;
  color: rgb(var(--fg));
}
.card-link::after { content: "→"; color: var(--brand-600); transition: transform .25s var(--ease); }
.card-link:hover::after { transform: translateX(4px); }

/* ---------- Pasos ---------- */
.step {
  position: relative;
  padding: 2.25rem 1.75rem 2.5rem;
  background: var(--ink-950);
  transition: background .3s;
}
.step:hover { background: var(--ink-900); }
.step-num {
  display: block;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-500);
  transition: color .3s;
}
.step:hover .step-num { color: var(--brand-500); }
.step-title {
  margin-top: 1rem;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}
.step-text { margin-top: .5rem; color: rgba(255, 255, 255, .62); line-height: 1.6; }

/* ---------- Quiénes somos ---------- */
.value-card {
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  background: rgb(var(--card));
  border-left: 4px solid var(--brand-500);
  box-shadow: 0 1px 2px rgb(var(--fg) / .05);
}

/* ---------- Mapa ---------- */
.map-teide { font: 600 9px "Figtree", sans-serif; fill: rgba(255, 255, 255, .45); letter-spacing: .12em; text-transform: uppercase; }
.map-route { stroke-dashoffset: 0; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -300; } }

.pin { cursor: pointer; }
.pin-dot { fill: var(--brand-500); stroke: var(--ink-950); stroke-width: 2; transition: r .25s; }
.pin-halo { fill: var(--brand-500); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin-label {
  font: 600 10.5px "Figtree", sans-serif;
  fill: rgba(255, 255, 255, .55);
  transition: fill .25s;
  pointer-events: none;
}
.pin:hover .pin-label, .pin.is-active .pin-label { fill: #fff; }
.pin.is-active .pin-dot { r: 7; fill: #fff; stroke: var(--brand-500); stroke-width: 3; }
.pin.is-active .pin-halo { animation: ping 1.4s var(--ease) infinite; }
@keyframes ping {
  0% { opacity: .55; transform: scale(.5); }
  100% { opacity: 0; transform: scale(2.2); }
}

.zone-chip {
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  background: rgb(var(--input));
  color: rgb(var(--fg));
  border: 1px solid rgb(var(--fg) / .08);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.zone-chip:hover { border-color: var(--brand-500); }
.zone-chip.is-active { background: var(--ink-950); color: #fff; border-color: var(--ink-950); transform: translateY(-1px); }
html.dark .zone-chip.is-active { background: var(--brand-500); color: var(--ink-950); border-color: var(--brand-500); }

/* Google Maps: versión oscura aproximada en modo oscuro */
html.dark .map-frame { filter: invert(.9) hue-rotate(180deg) saturate(.75) brightness(.95); }

/* ---------- Formulario ---------- */
.field-label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 600; color: rgb(var(--fg)); }

.field {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border-radius: .85rem;
  border: 1px solid rgb(var(--fg) / .12);
  background: rgb(var(--input));
  font-size: 1rem;
  color: rgb(var(--fg));
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field::placeholder { color: rgb(var(--muted) / .7); }
.field:focus {
  outline: none;
  background: rgb(var(--card));
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, .18);
}
.field.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.field-error { font-size: .85rem; font-weight: 600; color: #b91c1c; }

.option-card { cursor: pointer; display: block; }
.option-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem 1.1rem 1rem 3rem;
  position: relative;
  border-radius: 1rem;
  border: 1.5px solid rgb(var(--fg) / .1);
  background: rgb(var(--input));
  transition: border-color .2s, background .2s, transform .2s;
}
.option-body::before {
  content: "";
  position: absolute;
  left: 1.05rem; top: 50%;
  width: 1.2rem; height: 1.2rem;
  margin-top: -.6rem;
  border-radius: 999px;
  border: 2px solid rgb(var(--fg) / .25);
  background: rgb(var(--card));
  transition: all .2s;
}
.option-body strong { color: rgb(var(--fg)); }
.option-body small { color: rgb(var(--muted)); font-size: .82rem; }
.option-card:hover .option-body { border-color: rgba(255, 138, 31, .6); }
.option-card input:checked + .option-body { border-color: var(--brand-500); background: rgb(var(--tint)); }
.option-card input:checked + .option-body::before { border-color: var(--brand-500); background: var(--brand-500); box-shadow: inset 0 0 0 3px rgb(var(--card)); }
.option-card input:focus-visible + .option-body { outline: 3px solid var(--brand-500); outline-offset: 2px; }

.pill { cursor: pointer; display: inline-flex; }
.pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid rgb(var(--fg) / .12);
  background: rgb(var(--input));
  font-size: .92rem;
  font-weight: 600;
  transition: all .2s;
}
.pill:hover span { border-color: rgba(255, 138, 31, .6); }
.pill input:checked + span { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
html.dark .pill input:checked + span { background: var(--brand-500); border-color: var(--brand-500); color: var(--ink-950); }
.pill input:focus-visible + span { outline: 3px solid var(--brand-500); outline-offset: 2px; }

.extra {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  padding: .7rem 1rem;
  cursor: pointer;
  border-radius: .85rem;
  border: 1.5px solid rgb(var(--fg) / .1);
  background: rgb(var(--input));
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.extra:has(input:checked) { border-color: var(--brand-500); background: rgb(var(--tint)); }

.wizard-step:not(.hidden) { animation: stepIn .45s var(--ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
.shake { animation: shake .4s; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---------- Contacto ---------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1.2rem;
  background: rgb(var(--card));
  box-shadow: 0 1px 2px rgb(var(--fg) / .05);
  outline: 1px solid rgb(var(--fg) / .06);
  transition: transform .25s var(--ease), outline-color .25s;
}
.contact-row:hover { transform: translateX(4px); outline-color: var(--brand-500); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  flex: none;
  border-radius: .9rem;
  background: var(--ink-950);
  color: var(--brand-500);
}
.contact-icon svg { width: 1.35rem; height: 1.35rem; }

/* ---------- FAQ ---------- */
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgb(var(--fg));
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq-icon {
  position: relative;
  flex: none;
  width: 2.1rem; height: 2.1rem;
  border-radius: 999px;
  background: rgb(var(--input));
  transition: background .25s, transform .35s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: .8rem; height: 2px;
  margin: -1px 0 0 -.4rem;
  background: rgb(var(--fg));
  border-radius: 2px;
}
.faq[open] .faq-icon::before, .faq[open] .faq-icon::after { background: var(--ink-950); }
.faq-icon::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq[open] .faq-icon { background: var(--brand-500); transform: rotate(180deg); }
.faq[open] .faq-icon::after { transform: rotate(0); }
.faq-body { padding: 0 3.5rem 1.5rem 0; color: rgb(var(--muted)); line-height: 1.7; }
.faq[open] .faq-body { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Añadidos versión demo final
   ========================================================= */

/* ---------- Tarjetas de servicio: acciones ---------- */
.card-actions { margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.card-actions .card-link { margin-top: 0; padding-top: 0; }
.card-sub { font-size: .88rem; font-weight: 600; color: rgb(var(--muted)); text-decoration: underline; text-decoration-color: rgb(var(--fg) / .2); text-underline-offset: 4px; }
.card-sub:hover { color: rgb(var(--fg)); text-decoration-color: var(--brand-500); }

/* ---------- Opiniones ---------- */
.stars { color: var(--brand-500); letter-spacing: .12em; font-size: 1.05rem; }
.review-card {
  margin: 0;
  display: flex; flex-direction: column;
  padding: 1.75rem;
  border-radius: 1.6rem;
  background: rgb(var(--card));
  outline: 1px solid rgb(var(--fg) / .06);
  box-shadow: 0 1px 2px rgb(var(--fg) / .05);
}
.review-card blockquote { margin: 1rem 0 0; line-height: 1.65; }
.review-author { margin-top: auto; padding-top: 1.5rem; display: flex; align-items: center; gap: .8rem; }
.review-author strong { display: block; color: rgb(var(--fg)); }
.review-author small { color: rgb(var(--muted)); }
.avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: 999px; background: var(--ink-950); color: var(--brand-500); font-weight: 700; font-size: .85rem; }

/* ---------- Formulario: antispam y estado ---------- */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status.is-ok { display: block; background: #e7f7e0; color: #14532d; }
#form-status.is-error { display: block; background: #fee2e2; color: #991b1b; }
html.dark #form-status.is-ok { background: #15281c; color: #bbf7d0; }
html.dark #form-status.is-error { background: #3b1212; color: #fecaca; }

/* ---------- Redes ---------- */
.social-btn {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: .8rem;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .8);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.social-btn svg { width: 1.2rem; height: 1.2rem; }
.social-btn:hover { background: var(--brand-500); color: var(--ink-950); transform: translateY(-2px); }

/* ---------- WhatsApp flotante (estilo de la propuesta Gemini) ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 5.5rem; z-index: 45;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 999px;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .65), 0 4px 10px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease), background .2s, opacity .25s, visibility .25s;
}
.wa-float svg { width: 2rem; height: 2rem; }
.wa-float:hover { background: #1da851; transform: scale(1.1); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #25d366; animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.wa-tip {
  position: absolute; right: calc(100% + .75rem); top: 50%;
  white-space: nowrap; padding: .5rem .8rem; border-radius: .7rem;
  background: var(--ink-950); color: #fff; font-size: .82rem; font-weight: 600;
  transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 1024px) { .wa-float { right: 1.5rem; bottom: 1.5rem; } }
body.consent-open .wa-float { opacity: 0; visibility: hidden; }

/* ---------- Volver arriba (ordenador) ---------- */
.to-top {
  position: fixed; right: 1.75rem; bottom: 6rem; z-index: 40;
  display: none; place-items: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: var(--ink-950); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
  outline: 1px solid rgba(255, 255, 255, .1);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease), background .2s;
}
.to-top svg { width: 1.25rem; height: 1.25rem; }
.to-top:hover { background: var(--brand-500); color: var(--ink-950); }
@media (min-width: 1024px) { .to-top { display: grid; } }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
body.consent-open .to-top { opacity: 0; pointer-events: none; }

/* ---------- Aviso y panel de cookies ---------- */
.consent-banner {
  position: fixed; z-index: 60;
  left: .75rem; right: .75rem; bottom: 5rem;
  padding: 1.25rem;
  border-radius: 1.4rem;
  background: rgb(var(--card));
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  outline: 1px solid rgb(var(--fg) / .08);
  animation: bannerIn .5s var(--ease) both;
}
.consent-banner[hidden] { display: none; }
@media (min-width: 640px) { .consent-banner { left: 1.5rem; right: auto; max-width: 30rem; } }
@media (min-width: 1024px) { .consent-banner { bottom: 1.5rem; } }
@keyframes bannerIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.consent-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: .9rem; background: rgb(var(--tint)); color: var(--brand-600); }
.consent-icon svg { width: 1.4rem; height: 1.4rem; }
.consent-btn {
  min-height: 44px; padding: .6rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem; font-weight: 700;
  color: rgb(var(--fg));
  background: rgb(var(--input));
  border: 1.5px solid rgb(var(--fg) / .12);
  transition: border-color .2s, background .2s;
}
.consent-btn:hover { border-color: rgb(var(--fg) / .35); }
.consent-btn--primary { background: var(--brand-500); border-color: var(--brand-500); color: var(--ink-950); }
.consent-btn--primary:hover { background: var(--brand-400); border-color: var(--brand-400); }

.consent-panel {
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 0;
  border-radius: 1.6rem;
  background: rgb(var(--card));
  color: rgb(var(--fg));
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}
.consent-panel::backdrop { background: rgba(13, 13, 15, .6); backdrop-filter: blur(4px); }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 0; }
.consent-row strong { color: rgb(var(--fg)); }
.consent-row p { margin-top: .2rem; font-size: .85rem; color: rgb(var(--muted)); }
.switch {
  appearance: none; -webkit-appearance: none;
  position: relative; flex: none;
  width: 3rem; height: 1.75rem; border-radius: 999px;
  background: rgb(var(--fg) / .18); cursor: pointer;
  transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: .2rem; left: .2rem;
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease);
}
.switch:checked { background: var(--brand-500); }
.switch:checked::after { transform: translateX(1.25rem); }
.switch:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Aviso breve ---------- */
.toast {
  position: fixed; left: 50%; bottom: 5.5rem; z-index: 70;
  padding: .75rem 1.2rem; border-radius: 999px;
  background: var(--ink-950); color: #fff; font-size: .9rem; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 138, 31, .5), 0 14px 30px -10px rgba(0, 0, 0, .5);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 1.75rem; } }

/* ---------- Páginas interiores ---------- */
.prose-rdp { color: rgb(var(--muted)); line-height: 1.75; font-size: 1.05rem; }
.prose-rdp h2 { margin-top: 2.5rem; font-family: "Barlow Condensed", system-ui, sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.9rem; line-height: 1; color: rgb(var(--fg)); }
.prose-rdp h3 { margin-top: 1.5rem; font-weight: 700; font-size: 1.1rem; color: rgb(var(--fg)); }
.prose-rdp p, .prose-rdp ul, .prose-rdp .table-scroll { margin-top: 1rem; }
.prose-rdp ul { padding-left: 1.25rem; list-style: disc; }
.prose-rdp li { margin-top: .35rem; }
.prose-rdp li::marker { color: var(--brand-500); }
.prose-rdp strong { color: rgb(var(--fg)); }
.prose-rdp a { color: rgb(var(--fg)); text-decoration: underline; text-decoration-color: var(--brand-500); text-underline-offset: 3px; }
.prose-rdp table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .92rem; }
.prose-rdp th, .prose-rdp td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid rgb(var(--fg) / .1); vertical-align: top; }
.prose-rdp th { color: rgb(var(--fg)); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.breadcrumb a:hover { color: #fff; }
.check-list { display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: rgb(var(--fg)); }
.check-list .check-dot { margin-top: .25rem; }

/* ---------- Servicios compactos: caben en una pantalla ---------- */
.services-compact .section-title { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.services-compact .service-card { padding: 1.25rem 1.35rem; border-radius: 1.4rem; }
.services-compact .service-card:not(.service-featured):not(.sm\:col-span-2) {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: .85rem;
}
.services-compact .icon-tile { width: 2.6rem; height: 2.6rem; border-radius: .8rem; }
.services-compact .icon-tile svg { width: 1.3rem; height: 1.3rem; }
.services-compact .card-title { margin-top: 0; align-self: center; font-size: 1.45rem; }
.services-compact .service-card:not(.service-featured) .card-text {
  grid-column: 1 / -1;
  margin-top: .7rem;
  font-size: .93rem;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.services-compact .service-card:not(.service-featured) .card-text { align-self: start; }
.services-compact .card-actions,
.services-compact .service-card > .card-link { grid-column: 1 / -1; grid-row: 3; padding-top: .85rem; }
.services-compact .service-card > .icon-tile { grid-row: 1; grid-column: 1; }
.services-compact .service-card > .card-title { grid-row: 1; grid-column: 2; }
.services-compact .sm\:col-span-2 .card-title { margin-top: .2rem; }
.services-compact .sm\:col-span-2 .card-link { padding-top: .75rem; }
.services-compact .service-featured { min-height: 22rem; padding: 1.6rem; }
@media (min-width: 1024px) { .services-compact .service-featured { min-height: 0; } }

/* ---------- Configurador interactivo (estilo propuesta Gemini) ---------- */
.cfg-legend {
  display: flex; align-items: center; gap: .7rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(var(--muted));
}
.cfg-legend span {
  display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: var(--brand-500); color: var(--ink-950);
  font: 900 italic 1rem/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: 0;
}
.cfg-option {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .95rem 1.1rem;
  text-align: left;
  border-radius: 1rem;
  border: 1.5px solid rgb(var(--fg) / .1);
  background: rgb(var(--card));
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.cfg-option strong { color: rgb(var(--fg)); font-weight: 700; }
.cfg-option small { color: rgb(var(--muted)); font-size: .8rem; }
.cfg-option:hover { border-color: rgba(255, 138, 31, .6); transform: translateY(-1px); }
.cfg-option[aria-pressed="true"] {
  border-color: var(--brand-500);
  background: rgb(var(--tint));
  box-shadow: 0 0 0 3px rgba(255, 138, 31, .18);
}
.cfg-summary {
  padding: 1.75rem;
  border-radius: 2rem;
  background: var(--ink-950);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(13, 13, 15, .6);
  outline: 1px solid rgba(255, 255, 255, .08);
}
html.dark .cfg-summary { background: #08080a; }
.config-compact .section-title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.config-compact .cfg-option { padding: .7rem .9rem; border-radius: .9rem; }
.config-compact .cfg-option strong { font-size: .95rem; }
.config-compact .cfg-option small { font-size: .76rem; }
.config-compact .extra { min-height: 46px; padding: .55rem .9rem; font-size: .95rem; }
.config-compact .cfg-summary { padding: 1.5rem; }
.cfg-flash { animation: cfgFlash .45s var(--ease); }
@keyframes cfgFlash { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Hero y cabecera según el tema: blanco en claro, negro en oscuro
   ========================================================= */
html:not(.dark) .hero-theme { background: #fff; color: var(--ink-950); }
html:not(.dark) .hero-theme .hero-grid {
  background-image:
    linear-gradient(rgba(13, 13, 15, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 15, .55) 1px, transparent 1px);
}
html:not(.dark) .hero-theme :is(.text-white, .text-white\/70, .text-white\/75):not(.keep-dark, .keep-dark *) { color: rgb(13 13 15 / var(--hero-a, 1)); }
html:not(.dark) .hero-theme .text-white\/70:not(.keep-dark *) { --hero-a: .72; }
html:not(.dark) .hero-theme .text-white\/75:not(.keep-dark *) { --hero-a: .75; }
html:not(.dark) .hero-theme .text-brand-300 { color: var(--brand-700); }
html:not(.dark) .hero-theme .border-white\/20 { border-color: rgba(13, 13, 15, .16); }
html:not(.dark) .hero-theme .hover\:border-white\/50:hover { border-color: rgba(13, 13, 15, .45); }
html:not(.dark) .hero-theme .hover\:bg-white\/5:hover { background: rgba(13, 13, 15, .04); }
html:not(.dark) .hero-theme .breadcrumb { color: rgba(13, 13, 15, .55); }
html:not(.dark) .hero-theme .breadcrumb a:hover { color: var(--ink-950); }
html:not(.dark) .hero-theme .bg-brand-500\/20 { opacity: .55; }

/* Cabecera en modo claro: texto oscuro; al hacer scroll, fondo blanco */
html:not(.dark) #header .nav-link { color: rgba(13, 13, 15, .7); }
html:not(.dark) #header .nav-link:hover,
html:not(.dark) #header .nav-link.is-active { color: var(--ink-950); }
html:not(.dark) #header .text-white { color: var(--ink-950); }
html:not(.dark) #header .border-white\/15 { border-color: rgba(13, 13, 15, .15); }
html:not(.dark) #header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(13, 13, 15, .08), 0 10px 30px -20px rgba(13, 13, 15, .4);
}
html:not(.dark) #mobile-menu { background: rgba(255, 255, 255, .97); border-color: rgba(13, 13, 15, .08); }
html:not(.dark) #mobile-menu .mobile-link { color: var(--ink-950); border-color: rgba(13, 13, 15, .08); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
