/* ==========================================================================
   Disegrafico — Design system
   Estética: oscura, refinada, asimétrica. Acento dorado + verde frío.
   ========================================================================== */

:root {
  /* Color */
  --bg: #0c0c0a;
  --bg-raised: #1a1812;
  --bg-card: #221f18;
  --line: rgba(247, 245, 240, 0.10);
  --line-strong: rgba(247, 245, 240, 0.20);
  --ink: #f7f5ef;
  --ink-soft: #c4bfb1;
  --ink-faint: #8a8678;
  --gold: #cfa454;
  --gold-soft: #e8cd9a;
  --green: #8fb79f;
  --green-soft: #c3dccf;

  /* Mood — overridden per sector page to give each its own palette
     while keeping gold as the one constant brand/CTA color. */
  --mood: var(--gold);
  --mood-soft: var(--gold-soft);
  --mood-dim: rgba(207, 164, 84, 0.16);

  /* Type */
  --display: "Bricolage Grotesque", "Georgia", serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 9rem;

  /* Layout */
  --container: 1240px;
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
@media (min-width: 720px) {
  .container { padding-inline: var(--space-5); }
}

.eyebrow {
  display: block;
  position: relative;
  padding-left: 2.5em;
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--gold); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  font-weight: 600; z-index: 999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform .35s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #1a1505; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 8, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: var(--space-3);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }
.logo__img {
  height: 34px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .logo__img { height: 28px; }
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-4);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
}
.nav__list > li {
  display: flex;
  align-items: center;
}
.nav__list a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
  line-height: 1.4;
  transition: color .2s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease);
}
.nav__list a:hover::after { right: 0; }

@media (min-width: 940px) {
  .nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---- Dropdown nav (Servicios / Sectores) ------------------------------- */
.nav__item { position: relative; }
.nav__item--dropdown {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
@media (hover: hover) and (pointer: fine) {
  .nav__item--dropdown::after {
    content: "";
    position: absolute;
    left: -1rem;
    right: -1rem;
    top: 100%;
    height: 1.3rem;
  }
}
.nav__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding-block: 0.3rem;
  line-height: 1.4;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__item.is-open .nav__link { color: var(--ink); }
.nav__dd-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0.3rem 0.15rem;
  margin-left: -0.15rem;
  transition: color .2s var(--ease);
}
.nav__dd-toggle:hover { color: var(--gold); }
.nav__item.is-open .nav__dd-toggle { color: var(--gold); }
.nav__item--dropdown:hover .nav__dd-toggle { color: var(--gold); }
.nav__chevron {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform .3s var(--ease);
}
.nav__item.is-open .nav__chevron { transform: rotate(180deg); color: var(--gold); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 300px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -22px rgba(0,0,0,0.65);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  z-index: 60;
}
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--bg-raised);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px 0 0 0;
}
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__item--dropdown:hover .nav__link { color: var(--ink); }
  .nav__item--dropdown:hover .nav__chevron { transform: rotate(180deg); color: var(--gold); }
}

.nav__dd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.nav__dd-list a,
.nav__dd-grid a,
.nav__dd-foot a {
  text-decoration: none;
}
.nav__dd-list a::after,
.nav__dd-grid a::after { content: none; }
.nav__dd-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius) - 1px);
  color: var(--ink-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__dd-list a:hover { background: var(--mood-dim); color: var(--ink); }
.nav__dd-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--gold);
}
.nav__dd-icon svg { width: 17px; height: 17px; }
.nav__dd-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.nav__dd-text small {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.35;
}

.nav__dropdown--wide {
  min-width: 600px;
  left: auto;
  right: -2.4rem;
  transform: translateY(10px);
}
.nav__item.is-open .nav__dropdown--wide,
.nav__item--dropdown:hover .nav__dropdown--wide {
  transform: translateY(0);
}
.nav__dropdown--wide::before { left: auto; right: 3rem; }
.nav__dd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.1rem 0.4rem;
}
.nav__dd-grid a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: calc(var(--radius) - 1px);
  color: var(--ink-soft);
  font-size: 0.87rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__dd-grid a:hover { background: var(--mood-dim); color: var(--ink); }
.nav__dd-grid .dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
  flex: none;
}
.nav__dd-foot {
  margin-top: 0.4rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.nav__dd-foot a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius) - 1px);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold);
  transition: background .2s var(--ease);
}
.nav__dd-foot a:hover { background: var(--mood-dim); }
.nav__dd-foot .btn-arrow { transition: transform .3s var(--ease); }
.nav__dd-foot a:hover .btn-arrow { transform: translateX(4px); }

/* ---- Mobile nav: expandable groups ------------------------------------- */
.mobile-nav__group { display: flex; flex-direction: column; }
.mobile-nav__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
}
.mobile-nav__group-head > a {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav__group-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
}
.mobile-nav__group-toggle .nav__chevron {
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  transition: transform .3s var(--ease);
}
.mobile-nav__group.is-open .mobile-nav__group-toggle .nav__chevron {
  transform: rotate(180deg);
  color: var(--gold);
}
.mobile-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-height .4s var(--ease);
}
.mobile-nav__group.is-open .mobile-nav__sublist { max-height: 900px; }
.mobile-nav__list .mobile-nav__sublist a {
  font-family: var(--font-body, inherit);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
  padding: 0.5rem 0 0.5rem 1rem;
  margin-top: 0.35rem;
  border-left: 1px solid var(--line);
}
.mobile-nav__list .mobile-nav__sublist a:hover { color: var(--gold); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-nav__list a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
}
.mobile-nav__list .text-gold { color: var(--gold); }
.mobile-nav__close {
  background: none; border: none; color: var(--ink);
  cursor: pointer; width: 2.6rem; height: 2.6rem;
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: var(--space-6);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -25%; right: -12%;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(207,164,84,0.22) 0%, rgba(207,164,84,0) 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -35%; left: -10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(143,183,159,0.14) 0%, rgba(143,183,159,0) 70%);
  pointer-events: none;
}
/* Faint moving grid — gives the hero a sense of depth & motion without weight */
.hero__grid-bg {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(247,245,240,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,245,240,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 70% 20%, rgba(0,0,0,0.9), transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 70% 20%, rgba(0,0,0,0.9), transparent 75%);
  animation: grid-drift 50s linear infinite;
  pointer-events: none;
}
@keyframes grid-drift {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(64px, 64px, 0); }
}
/* Slow-spinning decorative ring */
.hero__ring {
  position: absolute;
  top: 6%;
  right: 4%;
  width: clamp(160px, 22vw, 320px);
  height: clamp(160px, 22vw, 320px);
  pointer-events: none;
  opacity: 0.55;
  animation: ring-spin 90s linear infinite;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 860px) {
  .hero__ring { display: none; }
}
.hero__grid {
  display: grid;
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}
.hero__grid > * { min-width: 0; }
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.25fr 0.85fr;
    align-items: end;
  }
}
/* Pulsing availability badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(247,245,240,0.03);
  font-size: 0.84rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.hero__badge-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hero__badge-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.35;
  animation: badge-pulse 2.4s ease-out infinite;
}
@keyframes badge-pulse {
  0%   { transform: scale(0.6); opacity: 0.45; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.hero__title { margin-block: var(--space-2); }
.hero__title em {
  font-style: normal;
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 45%, var(--gold) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-sweep 7s ease-in-out infinite;
}
@keyframes shine-sweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* Rotating-word line ("Diseño para talleres / clínicas / despachos…") */
.hero__rotator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-3);
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink-soft);
}
.hero__rotator-stage {
  position: relative;
  display: inline-block;
  height: 1.5em;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 11ch;
}
.hero__rotator-word {
  position: absolute;
  left: 0; top: 0;
  display: block;
  color: var(--mood, var(--gold));
  font-weight: 600;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  white-space: nowrap;
}
.hero__rotator-word.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero__rotator-word.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.cta-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.cta-trust strong { color: var(--ink-soft); font-weight: 600; }
.cta-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cta-trust__item svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--gold);
}
.hero__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--bg-card), var(--bg-raised));
  padding: var(--space-3);
  display: grid;
  gap: var(--space-2);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}
@media (hover: hover) and (min-width: 980px) {
  .hero__panel:hover { border-color: var(--line-strong); }
}
.hero__panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: var(--space-1);
  border-bottom: 1px solid var(--line);
}
.hero__panel-row:last-child { border-bottom: none; }
.hero__panel-num {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--gold);
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---- Marquee strip — slow infinite scroll of sectors served ------------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.marquee__item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: 0.6; flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---- Tech/brand logos marquee — herramientas que usamos ----------------- */
.tech-stack .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}
.tech-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-3);
}
.tech-marquee__track {
  animation-duration: 60s;
  gap: var(--space-5);
}
.tech-marquee__item {
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-faint);
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity .25s ease, filter .25s ease, color .25s ease;
}
.tech-marquee__item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.tech-marquee:hover .tech-marquee__item { opacity: 0.45; }
.tech-marquee__item:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--gold);
}

/* ---- Mood utilities (per-sector palette) -------------------------------- */
.text-mood { color: var(--mood); }
.eyebrow--mood { color: var(--mood); }
.eyebrow--mood::before { background: var(--mood); }
.btn-mood { background: var(--mood); color: #14110a; }
.btn-mood:hover { background: var(--mood-soft); }
.glow-mood {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mood-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Sector hero (full-bleed image, mood-tinted overlay) ----------------- */
.sector-hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.sector-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sector-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.82) brightness(0.78);
}
.sector-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,8,0.74) 28%, rgba(10,10,8,0.34) 60%, rgba(10,10,8,0.5) 100%),
    linear-gradient(100deg, rgba(10,10,8,0.92) 0%, rgba(10,10,8,0.55) 46%, rgba(10,10,8,0.22) 100%),
    linear-gradient(120deg, var(--mood-dim), transparent 55%);
}
.sector-hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-6) var(--space-5);
  width: 100%;
}
.sector-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 10, 8, 0.5);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.sector-hero__tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mood);
  box-shadow: 0 0 0 4px var(--mood-dim);
}

/* Photo panel used inside content sections (alternative to demo-frame) */
.photo-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 5;
  filter: saturate(0.85) brightness(0.86);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.photo-panel:hover img { transform: scale(1.045); filter: saturate(1) brightness(0.92); }
.photo-panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, transparent 45%, rgba(10,10,8,0.85) 100%), linear-gradient(0deg, var(--mood-dim), transparent 60%);
  z-index: 1;
}
.photo-panel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.photo-panel__caption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mood); flex-shrink: 0; }
.photo-panel__caption span { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }

/* ---- Showcase (cinematic floating-mockup panel) ------------------------- */
.showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--line);
  min-height: clamp(420px, 62vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 6vw, 4.5rem);
}
.showcase__media { position: absolute; inset: 0; z-index: 0; }
.showcase__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.5);
  transform: scale(1.03);
}
.showcase__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 20%, rgba(207,164,84,0.20), transparent 60%),
    linear-gradient(155deg, rgba(10,10,8,0.86) 0%, rgba(10,10,8,0.62) 45%, rgba(10,10,8,0.88) 100%);
}
.showcase__mockup {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  box-shadow: 0 50px 120px -28px rgba(0,0,0,0.75), 0 0 0 1px rgba(247,245,239,0.06);
  transform: perspective(1600px) rotateX(5deg) rotateY(-7deg);
  transition: transform 0.7s var(--ease);
  border-color: rgba(247,245,239,0.14);
}
.showcase:hover .showcase__mockup {
  transform: perspective(1600px) rotateX(2deg) rotateY(-3deg) translateY(-8px);
}
.showcase__tag-row {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 6vw, 3rem);
  bottom: clamp(1.5rem, 6vw, 3rem);
  max-width: 30ch;
}
.showcase__tag-row p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .showcase__tag-row { position: static; margin-top: var(--space-3); max-width: none; }
  .showcase__mockup { transform: none; }
  .showcase:hover .showcase__mockup { transform: none; }
}

/* Photo variant — a real cinematic photograph framed like a product shot,
   with a glass tag overlaid. Used when an actual atmospheric photo reads
   more premium than a faked screen mockup. */
.showcase--photo {
  border: none;
  padding: 0;
  min-height: 0;
  display: block;
  border-radius: 0;
  background: none;
}
.showcase__frame {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 60px 140px -32px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.04);
  isolation: isolate;
  transform: perspective(1800px) rotateX(2deg);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.showcase__frame:hover {
  transform: perspective(1800px) rotateX(0deg) translateY(-6px);
  box-shadow: 0 70px 160px -28px rgba(0,0,0,0.8), 0 0 80px -10px var(--mood-dim);
}
.showcase__frame img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04) brightness(0.94);
  transform: scale(1.01);
  transition: transform 1.4s var(--ease);
}
.showcase__frame:hover img { transform: scale(1.05); }
.showcase__frame::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10,10,8,0.7) 0%, transparent 38%, rgba(10,10,8,0.18) 100%);
  pointer-events: none;
}
.showcase__frame-tag {
  position: absolute;
  z-index: 2;
  left: clamp(1.2rem, 4vw, 2.2rem);
  bottom: clamp(1.2rem, 4vw, 2.2rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem 0.65rem 0.8rem;
  border-radius: 999px;
  background: rgba(10,10,8,0.45);
  border: 1px solid rgba(247,245,239,0.14);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  max-width: min(86%, 46ch);
}
.showcase__frame-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(207,164,84,0.18);
  flex-shrink: 0;
}

/* ---- Living background — slow drifting glow (the site's "video" effect,
   pure CSS, costs nothing on Core Web Vitals) ------------------------------ */
@keyframes drift-glow-a {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.85; }
  50%      { transform: translate3d(3%, -4%, 0) scale(1.12); opacity: 1; }
}
@keyframes drift-glow-b {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.7; }
  50%      { transform: translate3d(-4%, 3%, 0) scale(1.08); opacity: 0.95; }
}
.hero::before { animation: drift-glow-a 24s ease-in-out infinite; }
.hero::after  { animation: drift-glow-b 30s ease-in-out infinite; animation-delay: -9s; }
.glow-mood    { animation: drift-glow-a 26s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .glow-mood { animation: none; }
}

/* ---- Full-bleed photo section (breaks up dark blocks with imagery) ------ */
.section--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.section--photo__media { position: absolute; inset: 0; z-index: -1; }
.section--photo__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.7) contrast(1.05);
}
.section--photo__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10,10,8,0.32) 20%, rgba(10,10,8,0.46) 80%, var(--bg) 100%),
    radial-gradient(70% 60% at 50% 40%, rgba(207,164,84,0.08), transparent 70%);
}

/* ---- Film-grain texture overlay — adds a premium, tactile finish -------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---- Section scaffolding ------------------------------------------------ */
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  max-width: 64ch;
}
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  max-width: none;
}
.section--alt {
  position: relative;
  background:
    radial-gradient(ellipse 640px 420px at 88% -12%, var(--mood-dim), transparent 60%),
    radial-gradient(ellipse 520px 420px at -8% 112%, rgba(143, 183, 159, 0.12), transparent 60%),
    var(--bg-raised);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.section--alt::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mood, var(--gold)), transparent);
  box-shadow: 0 0 24px 1px var(--mood, var(--gold));
  opacity: 0.55;
  pointer-events: none;
}
.section--alt > * { position: relative; z-index: 1; }

/* ---- Cards / grids ------------------------------------------------------ */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid--services { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--sectors { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--two { grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 860px) {
  .grid--two { grid-template-columns: 1fr 1fr; }
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform .4s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mood, var(--gold)), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--bg-raised);
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 44px; height: 44px;
  color: var(--gold);
}
.card__title { font-size: 1.2rem; }
.card__text { color: var(--ink-soft); font-size: 0.97rem; }
.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--gold);
}
.card__link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.card__link:hover svg { transform: translateX(3px); }

/* Sector tile (icon + name) */
.sector-tile {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-card);
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.sector-tile:hover { transform: translateY(-3px); border-color: var(--gold); }
.sector-tile svg { width: 30px; height: 30px; color: var(--green); flex-shrink: 0; }
.sector-tile span { font-weight: 600; font-size: 0.97rem; }

/* ---- Why us / differentiators ------------------------------------------- */
.diff-list { display: grid; gap: 0; }
.diff-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
}
.diff-item:last-child { border-bottom: 1px solid var(--line); }
.diff-item__num {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink-faint);
}
.diff-item__title { font-size: 1.15rem; margin-bottom: 0.35rem; }
.diff-item__text { color: var(--ink-soft); max-width: 56ch; }

/* ---- Stats / social proof ------------------------------------------------ */
.stats {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 22ch;
}

/* ---- CTA banner ---------------------------------------------------------- */
.cta-banner {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--bg-card) 0%, var(--bg-raised) 100%);
  padding: var(--space-5) var(--space-4);
  display: grid;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207,164,84,0.18), transparent 70%);
}
@media (min-width: 760px) {
  .cta-banner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

/* ---- Forms --------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: var(--space-2);
}
@media (min-width: 640px) {
  .form-grid--two { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 0.85rem 1rem;
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cfa454' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form-note { font-size: 0.85rem; color: var(--ink-faint); }
.form-status { font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--green); }
.form-status[data-state="err"] { color: #e08a8a; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  text-align: left;
  padding: var(--space-3) 0;
  cursor: pointer;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--gold);
  transition: transform .35s var(--ease);
}
.faq-item[data-open="true"] .faq-item__icon { transform: rotate(45deg); color: var(--mood, var(--gold)); }
.faq-item[data-open="true"] .faq-item__q { color: var(--mood, var(--gold)); }
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-item[data-open="true"] .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a-inner { overflow: hidden; }
.faq-item__a-inner p {
  color: var(--ink-soft);
  padding-bottom: var(--space-3);
  max-width: 64ch;
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: #000;
  padding-block: var(--space-5) var(--space-3);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 360px at 12% 0%, var(--mood-dim), transparent 70%),
    radial-gradient(480px 320px at 88% 100%, rgba(143, 183, 159, 0.10), transparent 70%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold); }

/* ---- Reveal-on-scroll animation -------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Breadcrumb ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---- List with check marks -------------------------------------------------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--ink-soft);
  padding: 0.35rem 0.5rem;
  margin-inline: -0.5rem;
  border-radius: calc(var(--radius) - 2px);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.check-list li:hover {
  background: var(--mood-dim);
  color: var(--ink);
}
.check-list svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 0.15em; transition: color .25s var(--ease); }
.check-list li:hover svg { color: var(--mood, var(--gold)); }

/* ---- Callout / highlight box — breaks up long text blocks --------------- */
.callout {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mood, var(--gold));
  background: linear-gradient(120deg, var(--mood-dim), transparent 70%), var(--bg-card);
  padding: var(--space-3) var(--space-4);
  margin-block: var(--space-4);
  display: grid;
  gap: 0.4rem;
}
.callout p { margin: 0; color: var(--ink-soft); }
.callout strong { color: var(--ink); }
.callout__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mood, var(--gold));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Demo frame ------------------------------------------------------------- */
.demo-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.demo-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.demo-frame__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); opacity: .5; }
.demo-frame__url {
  margin-left: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-family: ui-monospace, monospace;
}
.demo-frame__body { padding: var(--space-4); display: grid; gap: var(--space-2); }

/* ---- Floating contact actions (WhatsApp + Llamar) ----------------------- */
.floating-actions {
  position: fixed;
  right: var(--space-2, 1.2rem);
  bottom: var(--space-2, 1.2rem);
  z-index: 180;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
}
.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #14110a;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  text-decoration: none;
}
.floating-btn svg { width: 24px; height: 24px; }
.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
}
.floating-btn--whatsapp { background: linear-gradient(145deg, #34e277, #1f9e54); color: #06210f; }
.floating-btn--whatsapp:hover { background: linear-gradient(145deg, #3ee07d, #25b863); }
.floating-btn--call { background: linear-gradient(145deg, var(--gold-soft), var(--gold)); color: #1a1505; }
.floating-btn--call:hover { background: linear-gradient(145deg, #f3deb4, var(--gold-soft)); }
.floating-btn--quote { background: linear-gradient(145deg, #2a2820, var(--ink)); color: var(--bg, #0d0d10); }
.floating-btn--quote:hover { background: var(--ink-soft); }
.floating-btn__label { display: none; }

@media (min-width: 720px) {
  .floating-actions { right: var(--space-3, 2rem); bottom: var(--space-3, 2rem); }
  /* Hide the "Presupuesto" floating button on desktop: the header CTA already covers it */
  .floating-btn--quote { display: none; }
  .floating-btn {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,255,255,0.18);
  }
  .floating-btn svg { width: 26px; height: 26px; }
  .floating-btn--call {
    animation: floating-pulse 3.5s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .floating-btn--call { animation: none; }
  }
}

/* ---- Back to top ---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  left: var(--space-2, 1.2rem);
  bottom: var(--space-2, 1.2rem);
  z-index: 179;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease), visibility .3s;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--mood-dim); border-color: var(--mood, var(--gold)); color: var(--mood, var(--gold)); }

@media (max-width: 719px) {
  .back-to-top { bottom: calc(58px + var(--space-2, 1.2rem)); }
}
@media (min-width: 720px) {
  .back-to-top { left: var(--space-3, 2rem); bottom: var(--space-3, 2rem); }
}

/* ---- Mobile sticky CTA bar ------------------------------------------------
   On small screens the floating round buttons become a full-width bar
   docked to the bottom, with text labels — easier to tap, clearer intent,
   and a stronger conversion path for visitors coming from ads on mobile. */
@media (max-width: 719px) {
  .floating-actions {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 1px;
    background: var(--bg-raised);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.45);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .floating-btn {
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-height: 58px;
    border-radius: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.3rem;
    box-shadow: none;
  }
  .floating-btn:hover { transform: none; box-shadow: none; }
  .floating-btn svg { width: 19px; height: 19px; }
  .floating-btn__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  /* keep content from hiding behind the bar */
  body { padding-bottom: 58px; }
}

@keyframes floating-pulse {
  0%, 70%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3), 0 0 0 0 rgba(232,162,60,0.0); }
  80% { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3), 0 0 0 8px rgba(232,162,60,0.25); }
  90% { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3), 0 0 0 0 rgba(232,162,60,0.0); }
}

/* ---- Cookie consent banner ---------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-strong);
  padding: 1.1rem var(--space-2, 1.2rem);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
}
.cookie-banner__text {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 64ch;
  margin: 0;
}
.cookie-banner__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-banner__actions .btn {
  padding: 0.65rem 1.3rem;
  font-size: 0.86rem;
}

/* Lift floating contact actions above the cookie banner while it's visible
   (the actual translateY value is calculated in JS from the banner's real height) */
.floating-actions {
  transition: transform .4s var(--ease);
}

/* ====================================================================== */
/* DEMO WIDGETS — small looping visual mockups for service/agent cards    */
/* ====================================================================== */
.demo-window {
  background: var(--surface, #15151a);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  margin-top: 1.4rem;
  box-shadow: 0 12px 30px -18px rgba(0,0,0,.6);
}
.demo-window__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.demo-window__bar span.demo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-faint); opacity: 0.45;
}
.demo-window__title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: .02em;
}
.demo-window__body { padding: 1rem 1rem 1.1rem; }

/* ---- Chat / conversación (WhatsApp, chatbot, citas, agentes) --------- */
.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}
.demo-chat__msg {
  max-width: 78%;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  animation: demo-msg-cycle 9s ease-in-out infinite both;
  animation-delay: var(--d, 0s);
}
.demo-chat__msg--in {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border-bottom-left-radius: 3px;
  color: var(--ink-soft);
}
.demo-chat__msg--out {
  align-self: flex-end;
  background: var(--gold);
  color: #181812;
  border-bottom-right-radius: 3px;
  font-weight: 500;
}
.demo-chat__msg--typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.85rem;
}
.demo-chat__msg--typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .5;
  animation: demo-typing-dot 1s ease-in-out infinite;
}
.demo-chat__msg--typing span:nth-child(2) { animation-delay: .15s; }
.demo-chat__msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes demo-typing-dot {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-3px); opacity: 1; }
}
@keyframes demo-msg-cycle {
  0%, 2%   { opacity: 0; transform: translateY(8px); }
  8%, 90%  { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(8px); }
}

/* ---- Typewriter (redacción de blog, contenido) ------------------------ */
.demo-typewriter {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  min-height: 130px;
}
.demo-typewriter h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 .5rem;
}
.demo-typewriter .demo-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: demo-type-line 8s steps(40,end) infinite;
  animation-delay: var(--d, 0s);
}
.demo-typewriter .demo-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: demo-blink 0.9s steps(1) infinite;
}
@keyframes demo-type-line {
  0%, 2% { width: 0; }
  40%, 92% { width: 100%; }
  98%, 100% { width: 0; }
}
@keyframes demo-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---- Bar chart (analítica, SEO, marketing) ----------------------------- */
.demo-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  height: 130px;
  padding-top: 0.5rem;
}
.demo-bars__bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold), rgba(212,175,55,0.25));
  border-radius: 4px 4px 0 0;
  height: var(--h, 30%);
  transform: scaleY(0);
  transform-origin: bottom;
  animation: demo-bar-grow 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes demo-bar-grow {
  0%, 4%   { transform: scaleY(0); opacity: .4; }
  35%, 85% { transform: scaleY(1); opacity: 1; }
  96%,100% { transform: scaleY(0); opacity: .4; }
}
.demo-bars__caption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ---- Lista de resultados (propiedades, empleo, leads, alertas) --------- */
.demo-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 170px;
}
.demo-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(10px);
  animation: demo-item-cycle 8s ease-in-out infinite both;
  animation-delay: var(--d, 0s);
}
.demo-list__item strong { color: var(--ink); font-weight: 600; }
.demo-list__badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  white-space: nowrap;
}
@keyframes demo-item-cycle {
  0%, 2%   { opacity: 0; transform: translateX(10px); }
  10%, 90% { opacity: 1; transform: translateX(0); }
  97%,100% { opacity: 0; transform: translateX(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-chat__msg, .demo-typewriter .demo-line, .demo-cursor,
  .demo-bars__bar, .demo-list__item, .demo-chat__msg--typing span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
  }
}
