/* =========================================================
   Spigel & Asociados — Estudio jurídico
   Hoja de estilos principal
   Paleta: Navy #1D2C3D · Oro #A88C5A · Beige #EFEBE3
   Tipografías: Cormorant (títulos) · Montserrat (texto)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #1D2C3D;
  --navy-soft: #24374d;
  --gold: #A88C5A;
  --gold-dark: #937743;
  --beige: #EFEBE3;
  --beige-2: #F4F1EB;
  --white: #FFFFFF;
  --line: #D9D9D9;
  --text: #1D2C3D;

  --font-title: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(24px, 6vw, 112px);
  --radius: 28px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 40px rgba(29, 44, 61, .10);
  --shadow-soft: 0 10px 30px rgba(29, 44, 61, .08);

  --header-h: 92px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 88px; }
.section--beige { background: var(--beige); }
.section--navy { background: var(--navy); color: var(--white); }

.title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: .2px;
}
.section--navy .title,
.stats .title,
.contact .title { color: var(--white); }

.eyebrow-lead { max-width: 780px; margin-inline: auto; }
.text-center { text-align: center; }
.gold { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 6px 15px;
  border: none;
  border-radius: var(--radius-sm);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 20px rgba(168, 140, 90, .28);
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 1.15rem; padding: 6px 15px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 22px rgba(29, 44, 61, .10);
  border-bottom-color: rgba(29, 44, 61, .06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
  margin: 0;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  padding-block: 12px;
}
.site-header__logo img { height: 56px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .site-header__logo img { height: 50px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}
.header-phone__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: grid; place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(168, 140, 90, .35);
}
.header-phone__icon svg { width: 19px; height: 19px; fill: #fff; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg,
      rgba(255,255,255,.97) 0%,
      rgba(255,255,255,.92) 26%,
      rgba(255,255,255,.55) 50%,
      rgba(255,255,255,.08) 76%,
      rgba(255,255,255,0) 100%),
    url('../img/banner.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--gutter);
  padding-block: var(--header-h) 40px;
}
.hero__content { max-width: 560px; margin-left: 56px; }
.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.86;
  color: var(--navy);
  margin-bottom: 22px;
}
.hero__subtitle {
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--navy);
  max-width: 480px;
  margin-bottom: 30px;
}

/* =========================================================
   INTRO
   ========================================================= */
.intro { background: var(--beige); text-align: center; padding-block: 72px; }
.intro p { max-width: 820px; margin-inline: auto; font-size: 1.3rem; color: var(--navy); }
.intro p:last-child { margin-bottom: 0; }
.intro strong { font-weight: 600; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--beige); padding-block: 20px 96px; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__media img { box-shadow: var(--shadow-card); width: 100%; object-fit: cover; }
.about__title { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 24px; width: 361px;}
.about__body p { font-size: 1.15rem; text-align: left; color: var(--navy); }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services { padding-block: 96px; }
.services__head { text-align: center; margin-bottom: 54px; }
.services__head .title { font-size: clamp(2.1rem, 3.6vw, 3.2rem); margin-bottom: 18px; }
.services__head p { max-width: 700px; margin-inline: auto; font-size: 1.15rem; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 42px 34px 38px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(29,44,61,.28); }
.service-card__num {
  position: absolute;
  top: 26px; right: 26px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
}
.service-card__title {
  font-weight: 400;
  font-size: 1.65rem;
  color: var(--gold);
  max-width: 78%;
  margin: 6px 0 20px;
  line-height: 1.12;
}
.service-card__text { font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,.92); margin: 0; }

/* No encontrás */
.notfound { text-align: center; padding-block: 20px 96px; }
.notfound .title { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 16px; }
.notfound p { font-size: 1.2rem; max-width: 528px; margin: 0 auto 30px; }
.notfound p strong { font-weight: 600; }

/* =========================================================
   PRIMER CONTACTO (proceso)
   ========================================================= */
.process { background: var(--beige); }
.process__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.process__title { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 36px; }
.process__steps { list-style: none; margin: 0; padding: 0; max-width: 520px;}
.process__steps li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 26px; }
.process__num { color: var(--gold); font-weight: 500; font-size: 1.4rem; line-height: 1.3; flex: 0 0 auto; }
.process__steps h3 {
  color: var(--navy);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 6px;
}
.process__steps p { margin: 0; font-size: 1.05rem; color: var(--navy); text-align: left; }
.process__media img { width: 100%; }

/* =========================================================
   VALORES
   ========================================================= */
.values {
  position: relative;
  overflow: hidden;
  padding-block: 90px;
  background: linear-gradient(rgba(246,243,238,.75), rgba(246,243,238,.89)),
              url('../img/fondo-testimonio.webp') top center / cover no-repeat;
}
.values__title { text-align: center; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.15; margin-bottom: 50px; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.value-card {
  background: var(--white);
  border: 1px solid #A88C5A;
  border-radius: 16px;
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-soft);
}
.value-card h3 {
  color: var(--navy);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.18;
  margin-bottom: 14px;
  min-height: calc(1.18em * 3);
}
.value-card p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--navy); }

/* =========================================================
   ESTADÍSTICAS
   ========================================================= */
.stats { background: var(--navy); color: var(--white); padding-block: 66px; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat { text-align: center; }
.stat__num { font-weight: 300; font-size: clamp(3.4rem, 6vw, 5rem); color: var(--gold); line-height: 1; margin-bottom: 16px; }
.stat__text { font-weight: 400; font-size: 1rem; max-width: 267px; margin-inline: auto; color: var(--white); }

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonials {
  position: relative;
  background: var(--beige);
  padding-block: 90px;
  overflow: hidden;
}
.testimonials__grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 44px; align-items: center; }
.testimonials__title { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.testimonials__grid > * { min-width: 0; }
.tst-slider { position: relative; min-width: 0; width: 100%; }
.tst-row { display: flex; align-items: center; gap: 16px; }
.tst-track { flex: 1 1 auto; display: flex; gap: 26px; overflow: hidden; scroll-behavior: smooth; min-width: 0; }
.tst-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 30px 34px;
  flex: 0 0 calc(50% - 13px);
  min-width: 0;
}
.tst-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.tst-card__avatar {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--navy) center/cover no-repeat;
  display: grid; place-items: center;
  color: var(--white); font-weight: 600; font-size: 1.4rem;
  flex: 0 0 auto;
}
.tst-card__name { font-weight: 500; font-size: 1.25rem; color: var(--navy); }
.tst-card__case { font-style: italic; font-size: .95rem; color: var(--navy); }
.tst-card__quote { font-size: 1rem; color: var(--navy); margin: 0; }
.tst-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.tst-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--navy); border: none; padding: 0; cursor: pointer; transition: background .2s; }
.tst-dot.is-active { background: var(--gold); }
.tst-arrow {
  flex: 0 0 auto;
  background: transparent; border: none;
  color: var(--navy);
  display: grid; place-items: center;
  padding: 6px; cursor: pointer;
  transition: color .2s, transform .2s;
}
.tst-arrow:hover { color: var(--gold); transform: translateX(3px); }
.tst-arrow svg { width: 30px; height: 30px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-block: 90px; }
.faq__title { text-align: center; font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 46px; }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.faq__col { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid #1D2C3D;
  border-radius: 15px;
  background: var(--beige-2);
  overflow: hidden;
  transition: background .25s ease;
}
.faq-item.is-open { background: var(--navy); }
.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 22px 24px;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy);
  transition: color .25s ease;
}
.faq-item.is-open .faq-item__btn { color: var(--white); }
.faq-item__icon { flex: 0 0 auto; font-size: 1.7rem; line-height: 1; color: var(--gold); font-weight: 400; }
.faq-item__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item__panel-inner { padding: 0 24px 24px; color: var(--white); font-size: 1rem; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--navy); color: var(--white); padding: 44px 0 0; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 44px; align-items: stretch; }
.contact__title { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin-bottom: 26px; }
.contact__text { font-size: 1.05rem; color: rgba(255,255,255,.9); max-width: 360px; }

.contact__intro { align-self: center; }
.contact__info { align-self: center; }

.contact__channels { display: grid; gap: 18px; margin-bottom: 30px; }
.contact__channel { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact__channel svg { width: 22px; height: 22px; fill: var(--gold); flex: 0 0 auto; }
.contact__socials { display: flex; gap: 18px; }
.contact__socials a {
  display: grid; place-items: center;
  transition: opacity .2s, transform .2s;
}
.contact__socials a:hover { opacity: .8; transform: translateY(-2px); }
.contact__socials img { width: 30px; height: 30px; display: block; }

/* Formulario (fondo blanco pegado al borde inferior) */
.contact__form-col { display: flex; }
.contact__form {
  width: 100%;
  align-self: stretch;
  background: var(--white);
  color: var(--navy);
  border-radius: 23px 23px 0 0;
  padding: 42px 36px 56px;
  box-shadow: 0 -6px 40px rgba(0,0,0,.18);
}
.field { position: relative; margin-bottom: 14px; }
.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; }
.field label:not(.sr-only) { display: block; font-weight: 300; font-size: 1.05rem; margin-bottom: 6px; }
.field label .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 2px 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  transition: border-color .2s;
}
.field ::placeholder { color: var(--navy); opacity: .85; }
.field select:invalid { color: var(--navy); opacity: .85; }
.field textarea { resize: vertical; min-height: 54px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field select { appearance: none; background: transparent; cursor: pointer; }
.field--select::after {
  content: "";
  position: absolute; right: 4px; top: 22px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  pointer-events: none;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: center; align-items: center; margin-top: 20px; }
.form-note { font-size: .85rem; color: #6b7280; }
.form-msg { font-size: .95rem; margin-top: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.is-ok { display: block; background: #e7f4ec; color: #1c6b3f; border: 1px solid #bfe2cd; }
.form-msg.is-err { display: block; background: #fdecec; color: #a12525; border: 1px solid #f3c6c6; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #16222f; color: rgba(255,255,255,.7); text-align: center; padding-block: 22px; font-size: .9rem; }
.site-footer a { color: var(--gold); }
footer.site-footer p {
    margin: 0px;
}

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .2s ease;
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
@keyframes waPulse {
  0% { box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 44px; }
  .process__grid { gap: 44px; }
  .contact { padding-bottom: 60px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__intro, .contact__info { max-width: 560px; }
  .contact__info { align-self: start; }
  .contact__form { border-radius: 23px; align-self: auto; box-shadow: var(--shadow-card); }
}

@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .section, .services, .values, .faq, .contact { padding-block: 60px; }
  .about__grid,
  .process__grid,
  .testimonials__grid,
  .contact__grid,
  .faq__grid { grid-template-columns: 1fr; }

  .about { padding-block: 10px 60px; }
  .about__media { order: -1; }
  .about__media img { max-height: 340px; }
  .process__media { order: -1; }
  .process__media img { max-height: 320px; object-fit: cover; }

  .hero { min-height: 100vh; min-height: 100svh; background-image: linear-gradient(90deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.12) 55%, rgba(255,255,255,0) 100%), url('../img/banner-mobile.webp'); background-size: cover; background-position: center right; background-repeat: no-repeat; }
  .hero__inner { padding-block: calc(var(--header-h) + 20px) 40px; }
  .hero__content { max-width: 90%; margin-left: 0; }
  .hero__title { font-size: 2.9rem; line-height: 1.06; }
  .hero__subtitle {max-width: 260px;}
  .hero__title br { display: inline; }
  .hero__content a.btn.btn--lg.is-visible {width: 150px;}

  .stats__grid { grid-template-columns: 1fr; gap: 30px; }
  .tst-card { flex: 0 0 100%; }

  .site-header__logo img { height: 44px; }
  .header-phone { font-size: 1.05rem; }
  .header-phone .header-phone__txt { display: none; }
  br{ display: none; }

  .site-header {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 22px rgba(29, 44, 61, .10);
    border-bottom-color: rgba(29, 44, 61, .06);
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
  .contact__form { padding: 30px 22px; }
  .service-card { padding: 34px 26px 30px; }
  .btn { width: 100%; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

/* Accesibilidad: respetar reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}


/* =========================================================
   ANIMACIONES DE ENTRADA (reveal on scroll)
   ========================================================= */
.anim-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.anim-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .anim-ready [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================
   PÁGINAS UTILITARIAS (gracias / 404)
   ========================================================= */
.upage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--beige);
  padding: 120px 24px 80px;
}
.upage__inner { max-width: 620px; }
.upage__logo { height: 64px; width: auto; margin: 0 auto 40px; }
.upage__code {
  font-family: var(--font-title);
  font-style: italic; font-weight: 600;
  font-size: clamp(4.5rem, 14vw, 9rem);
  color: var(--gold); line-height: 1; margin-bottom: 6px;
}
.upage__title {
  font-family: var(--font-title);
  font-style: italic; font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--navy); margin-bottom: 20px;
}
.upage__title .gold { color: var(--gold); }
.upage__text { font-size: 1.15rem; color: var(--navy); margin-bottom: 32px; line-height: 1.6; }
.upage__count { font-weight: 600; color: var(--gold); }