/* =============================================================
   Alzada Abogados — styles.css
   Archetype: Editorial Dark (retint: deep blue-green + green accent)
   1. Tokens   2. Reset/base   3. Utilities   4. Typography
   5. Components   6. Sections   7. Effects   8. Responsive
   9. Reduced-motion
   ============================================================= */

/* ============================ 1. Tokens ============================ */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

:root {
  --bg:        #0a1a20;   /* deep blue-green near-black */
  --bg-2:      #0c2027;
  --bg-3:      #102d34;   /* card */
  --bg-4:      #143840;
  --blue-deep: #0c2a3a;

  --cream:     #eef4f1;   /* text on dark, never pure white */
  --cream-2:   #cadbd4;
  --cream-3:   #86a49a;   /* metadata */

  --accent:    #3fc98a;   /* green — trust / sustainability */
  --accent-2:  #1f8f79;   /* deep teal */
  --accent-3:  #7fe3c4;   /* light mint for highlights */
  --gold:      #c7a262;   /* warm secondary, used sparingly */

  --line:      rgba(238, 244, 241, 0.12);
  --line-2:    rgba(238, 244, 241, 0.22);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.15rem, 5vw, 4rem);
  --maxw: 1220px;
  --radius: 18px;
}

/* ============================ 2. Reset / base ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-family: var(--serif);
  font-weight: 500;
}
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================ 3. Utilities ============================ */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: var(--bg);
  z-index: 10001; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 860px; }

.kicker {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.demo-flag {
  font-size: .82rem;
  color: var(--cream-3);
  font-style: italic;
}

.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;
}

/* ============================ 4. Typography ============================ */
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  margin-top: .7rem;
}
.section-lead {
  margin-top: 1.1rem;
  color: var(--cream-2);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ============================ 5. Components ============================ */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .005em;
  position: relative;
  isolation: isolate;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background-color .3s var(--ease-out), color .3s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 10px 30px -10px rgba(63, 201, 138, .45), 0 2px 6px rgba(0,0,0,.25);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -14px rgba(63, 201, 138, .55), 0 8px 18px rgba(0,0,0,.3);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
}

.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 26, 32, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); }
.nav-logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  font-size: 1.15rem;
  font-family: var(--serif);
}
.nav-logo-text { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.nav-logo-sub {
  display: block;
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-top: 3px;
}
.nav-links { display: none; gap: 1.7rem; margin-left: auto; }
.nav-link {
  position: relative;
  font-size: .92rem;
  color: var(--cream-2);
  padding: .3rem 0;
  transition: color .3s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; padding: .7rem 1.2rem; }
@media (min-width: 1040px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-links { margin-left: auto; }
  .nav-cta { margin-left: 0; }
}

.nav-toggle {
  margin-left: auto;
  display: grid; gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--cream);
  transition: transform .35s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1040px) { .nav-toggle { display: none; } }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile nav { display: grid; gap: 1.4rem; text-align: center; }
.nav-mobile nav a {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--cream);
}
.nav-mobile nav a.btn { font-family: var(--sans); font-size: 1rem; margin-top: .5rem; }

/* ============================ 6. Sections ============================ */
.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem var(--gutter) 4.5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.03);
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,26,32,.72) 0%, rgba(10,26,32,.55) 40%, rgba(10,26,32,.9) 100%),
    linear-gradient(105deg, rgba(9,32,39,.92) 0%, rgba(9,32,39,.35) 55%, rgba(9,32,39,.15) 100%);
}
.hero-mesh {
  position: absolute; inset: -12%; z-index: 1;
  background:
    radial-gradient(52% 46% at var(--mesh-x) var(--mesh-y), rgba(63,201,138,.28), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(31,143,121,.20), rgba(12,42,58,.06), rgba(127,227,196,.16), rgba(31,143,121,.20));
  filter: blur(90px) saturate(125%);
  opacity: .72;
  mix-blend-mode: screen;
  animation: meshShift 24s linear infinite;
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 210px 210px;
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: 900px;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-2);
}
.hero-meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(63,201,138,.55);
  animation: pulseDot 2.6s var(--ease-out) infinite;
}
.hero-glyph {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  color: var(--accent);
  opacity: .32;
  margin: 1rem 0 .4rem;
}
.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.025em;
  max-width: 20ch;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-3);
  font-variation-settings: "SOFT" 60;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--cream-2);
  max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.4rem);
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -.02em;
}
.hero-stats dd {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-top: .2rem;
}
.hero-fineprint {
  margin-top: 1.2rem;
  font-size: .76rem;
  color: var(--cream-3);
  max-width: 54ch;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 3;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: none;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: scrollCue 2s var(--ease-out) infinite;
}
@media (min-width: 720px) and (min-height: 640px) { .hero-scroll { display: block; } }

/* ---- Marquee ---- */
.marquee {
  overflow: hidden; position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 1.1rem;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: inline-flex; gap: 2.4rem; white-space: nowrap; will-change: transform;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cream-2);
}
.marquee-track span:nth-child(even) { color: var(--accent); font-style: normal; }

/* ---- Por qué / pillars ---- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.pillar {
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex; flex-direction: column; gap: .7rem;
}
.pillar-k {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: .1em;
}
.pillar h3 { font-size: 1.28rem; }
.pillar p { color: var(--cream-2); font-size: .97rem; }

/* ---- Áreas ---- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.area-card { overflow: hidden; display: flex; flex-direction: column; }
.area-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.area-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.5) contrast(1.05) brightness(.82) saturate(1.1);
  transition: transform 1s var(--ease-soft), filter .6s var(--ease-out);
}
.area-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,45,52,.15), rgba(10,26,32,.8)),
              linear-gradient(120deg, rgba(31,143,121,.35), transparent 60%);
  mix-blend-mode: multiply;
}
.area-card:hover .area-media img {
  transform: scale(1.06);
  filter: grayscale(.15) contrast(1.05) brightness(.95) saturate(1.15);
}
.area-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .8rem; }
.area-body h3 { font-size: 1.7rem; }
.area-body > p { color: var(--cream-2); }
.area-body ul { display: grid; gap: .55rem; margin-top: .4rem; }
.area-body li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .93rem;
  color: var(--cream-2);
}
.area-body li::before {
  content: "§";
  position: absolute; left: 0; top: -1px;
  font-family: var(--serif);
  color: var(--accent);
}

/* ---- Cómo funciona ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  display: flex; flex-direction: column; gap: .6rem;
  position: relative;
}
.step-k {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: .35;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--cream-2); font-size: .95rem; }

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: center;
}
.cta-band-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-band-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,26,32,.86), rgba(10,26,32,.92)),
              radial-gradient(60% 60% at 50% 40%, rgba(31,143,121,.4), transparent 70%);
}
.cta-band-inner { position: relative; z-index: 2; max-width: 640px; }
.cta-band-inner h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); }
.cta-band-inner p { color: var(--cream-2); margin: 1rem 0 1.8rem; }

/* ---- Opiniones ---- */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.quote {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: 1.3rem;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: .6;
  color: var(--accent);
  opacity: .5;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--cream);
  font-style: italic;
}
.quote figcaption {
  display: flex; flex-direction: column; gap: .1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.quote-name { font-weight: 600; }
.quote-meta { font-size: .82rem; color: var(--cream-3); }
.quote-tag {
  margin-top: .5rem;
  align-self: flex-start;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(199,162,98,.4);
  border-radius: 999px;
  padding: .18rem .55rem;
}

/* ---- FAQ ---- */
.accordion { display: grid; gap: .7rem; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
}
.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--cream);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-icon {
  position: relative; flex: none;
  width: 16px; height: 16px;
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--accent);
}
.acc-icon::before { width: 16px; height: 2px; }
.acc-icon::after { width: 2px; height: 16px; transition: transform .35s var(--ease-out); }
.acc-item[open] .acc-icon::after { transform: scaleY(0); }
.acc-body { padding: 0 1.3rem 1.3rem; }
.acc-body p { color: var(--cream-2); font-size: .96rem; }
.acc-item[open] summary { color: var(--accent); }

/* ---- Contacto ---- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contacto-intro h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .7rem 0 1rem; }
.contacto-intro > p { color: var(--cream-2); max-width: 42ch; }
.contacto-data {
  margin-top: 1.8rem;
  display: grid; gap: .9rem;
}
.contacto-data li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.contacto-data span {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-3);
  padding-top: .15rem;
}
.contacto-data a:hover { color: var(--accent); }

.contacto-form-wrap { position: relative; }
.cta-form {
  display: grid; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft);
}
.cta-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 1.35rem 1rem .55rem;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(10,26,32,.55);
  color: var(--cream);
  font: inherit;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea { padding-top: 1.5rem; resize: vertical; min-height: 110px; }
.field-select select {
  padding: 1rem 2.8rem 1rem 1rem;
  appearance: none;
  -webkit-appearance: none;
  color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386a49a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.field-select select:invalid { color: var(--cream-3); }
.field-select select option { color: #0a1a20; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63,201,138,.16);
}
.field label {
  position: absolute; left: 1rem; top: 1rem;
  font-size: .95rem;
  color: var(--cream-3);
  pointer-events: none;
  transition: all .22s var(--ease-out);
}
.field label.label-static,
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  top: .45rem;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.consent {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .82rem; color: var(--cream-3);
}
.consent input { margin-top: .2rem; accent-color: var(--accent); }
.cta-submit { width: 100%; margin-top: .3rem; position: relative; overflow: hidden; }
.form-note { font-size: .74rem; color: var(--cream-3); }

.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
}
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(10,26,32,.3); border-top-color: var(--bg);
  border-radius: 50%; animation: spin .9s linear infinite;
}
.cta-form.is-done .cta-form-label { opacity: 0; }
.cta-form.is-done .cta-form-check { opacity: 1; }
.cta-form-check { width: 24px; height: 24px; margin: auto; }
.cta-form-check path {
  stroke: var(--bg); stroke-width: 2.5; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.cta-form.is-done .cta-form-check path { transition: stroke-dashoffset .5s var(--ease-out) .1s; stroke-dashoffset: 0; }

.cta-success {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: .6rem; text-align: center;
  padding: 2rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .6s var(--ease-out) .2s, transform .7s var(--ease-soft) .2s;
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.cta-success h3 { font-size: 1.3rem; color: var(--accent); }
.cta-success p { color: var(--cream-2); font-size: .95rem; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  background: var(--bg-2);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-brand strong { font-family: var(--serif); font-size: 1.15rem; }
.footer-brand p { color: var(--cream-3); font-size: .9rem; }
.footer-nav { display: grid; gap: .6rem; }
.footer-nav a { font-size: .92rem; color: var(--cream-2); }
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: grid; gap: .7rem;
}
.footer-legal p { font-size: .78rem; color: var(--cream-3); max-width: 70ch; }
.footer-credits a { color: var(--cream-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--accent); }

/* ============================ 7. Effects ============================ */
.splash { display: none; }
.js .splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease-out), clip-path 1s var(--ease-soft);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
.splash-inner { display: grid; justify-items: center; gap: 1rem; }
.splash-mark {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent);
}
.splash-word {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-2);
  padding-left: .3em;
}
.splash-line {
  width: 60px; height: 2px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.splash-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: splashBar 1.4s var(--ease-out) infinite;
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
@keyframes splashBar { to { transform: translateX(100%); } }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal][data-split] { opacity: 1; transform: none; }

.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), border-color .4s var(--ease-out);
}
.has-tilt:hover {
  transition-duration: .18s;
  border-color: rgba(63,201,138,.4);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(63,201,138,.18);
}

@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 32%; --mesh-y: 38%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 68%; --mesh-y: 60%; }
  100% { --mesh-angle: 360deg; --mesh-x: 32%; --mesh-y: 38%; }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(63,201,138,.5); }
  70% { box-shadow: 0 0 0 12px rgba(63,201,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,201,138,0); }
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Assistant widget ---- */
.assist {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: .9rem;
}
.assist-bubble {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 14px 34px -10px rgba(63,201,138,.55), 0 4px 12px rgba(0,0,0,.35);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.assist-bubble:hover { transform: translateY(-3px); }
.assist-bubble svg { width: 20px; height: 20px; }
.assist-ico-close { display: none; }
.assist[data-open="true"] .assist-ico-open { display: none; }
.assist[data-open="true"] .assist-ico-close { display: block; }
.assist[data-open="true"] .assist-bubble-label { display: none; }
.assist[data-open="true"] .assist-bubble { padding: .85rem; }

.assist-panel {
  width: min(92vw, 390px);
  height: min(78vh, 600px);
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.7);
}
.assist[data-open="true"] .assist-panel { display: flex; animation: assistIn .4s var(--ease-soft); }
@keyframes assistIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.assist-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.assist-id { display: flex; align-items: center; gap: .7rem; }
.assist-avatar {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(63,201,138,.14);
  border: 1px solid rgba(63,201,138,.4);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.assist-id strong { display: block; font-family: var(--serif); font-size: 1rem; }
.assist-id span { font-size: .74rem; color: var(--cream-3); }
.assist-x { padding: 6px; color: var(--cream-2); }
.assist-x svg { width: 20px; height: 20px; }
.assist-x:hover { color: var(--accent); }

.assist-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.assist-msg {
  max-width: 85%;
  padding: .75rem .95rem;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.5;
}
.assist-msg p + p { margin-top: .5rem; }
.assist-msg-bot {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--cream);
}
.assist-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.assist-disclaimer { font-size: .76rem; color: var(--cream-3); }
.assist-msg-bot.is-typing { color: var(--cream-3); font-style: italic; }
.assist-dots span {
  display: inline-block; width: 5px; height: 5px; margin: 0 1px;
  background: var(--cream-3); border-radius: 50%;
  animation: typing 1.2s var(--ease-out) infinite;
}
.assist-dots span:nth-child(2) { animation-delay: .15s; }
.assist-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.assist-suggestions {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0 1.1rem .6rem;
}
.assist-suggestions button {
  font-size: .78rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--cream-2);
  transition: border-color .3s, color .3s;
}
.assist-suggestions button:hover { border-color: var(--accent); color: var(--accent); }
.assist-suggestions.is-hidden { display: none; }

.assist-form {
  display: flex; gap: .5rem;
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--line);
}
.assist-form input {
  flex: 1;
  padding: .7rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10,26,32,.6);
  color: var(--cream);
  font: inherit; font-size: .88rem;
}
.assist-form input:focus { outline: none; border-color: var(--accent); }
.assist-form button {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  transition: transform .3s var(--ease-soft);
}
.assist-form button:hover { transform: scale(1.06); }
.assist-form button svg { width: 18px; height: 18px; }
.assist-foot {
  font-size: .72rem; color: var(--cream-3);
  padding: 0 1.1rem .9rem;
}
.assist-foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ============================ 8. Responsive ============================ */
@media (min-width: 640px) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quotes .quote:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .quotes .quote:nth-child(3) { grid-column: auto; }
  .contacto-grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .contacto-form-wrap { position: sticky; top: 96px; }
}
@media (min-width: 1180px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .pillar h3 { min-height: 2.6em; }
}

/* ============================ 9. Reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation-duration: 90s; }
  .hero-meta .dot { animation: none; }
  .hero-scroll span { animation: none; opacity: .6; }
  .splash-line::after { animation: none; }
  .marquee-track { animation-duration: 240s !important; }
  /* keep: reveals, tilt, hovers, count-up, form transitions */
}
