/* =========================================================
   PABLO LUIS CRESPO — ESTUDIO JURÍDICO
========================================================= */

:root {
  --navy-950: #07101c;
  --navy-900: #0a1524;
  --navy-850: #0e1b2c;
  --navy-800: #122238;

  --blue: #1d426c;
  --blue-light: #315a87;

  --cream: #eee8da;
  --cream-light: #f5f1e8;
  --white: #faf8f3;

  --charcoal: #262a2e;
  --gray: #72777c;
  --gray-light: #a5a9aa;

  --gold: #b99a52;
  --gold-light: #d1b873;

  --green: #2f8b57;

  --font-display: "Forum", serif;
  --font-body: "DM Sans", sans-serif;

  --container: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background: var(--cream-light);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.7;
  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Utilidad de reveal por scroll (fallback sin GSAP).
   Vive acá, en la base, para que su "transition" nunca
   pise la transición propia de componentes declarados
   más abajo (area-card, service-panel, etc.) */
.js-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--navy-950);
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   ANCLAS
========================================================= */

section[id],
#contact {
  scroll-margin-top: 90px;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: min(calc(100% - 48px), var(--container));

  margin-inline: auto;
}

/* =========================================================
   PRELOADER
========================================================= */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  background: var(--navy-950);

  transition:
    opacity 0.8s var(--ease),
    visibility 0.8s var(--ease);
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-mark {
  color: var(--cream);

  font-family: var(--font-display);
  font-size: 4rem;

  letter-spacing: 0.15em;
}

.preloader-line {
  width: 80px;
  height: 1px;

  background: var(--gold);

  transform-origin: left;

  animation: preloadLine 1.2s ease-in-out infinite;
}

@keyframes preloadLine {
  0% {
    transform: scaleX(0);
  }

  50% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: fixed;
  z-index: 1000;

  top: 0;
  left: 0;

  width: 100%;

  padding: 22px 0;

  color: var(--cream);

  background: linear-gradient(
    180deg,
    rgba(7, 16, 28, 0.96) 0%,
    rgba(7, 16, 28, 0.88) 100%
  );

  border-bottom: 1px solid rgba(185, 154, 82, 0.35);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  transition:
    padding 0.4s ease,
    background-color 0.4s ease;
}

.header.scrolled {
  padding: 14px 0;

  background: rgba(7, 16, 28, 0.97);

  border-bottom-color: rgba(185, 154, 82, 0.55);
}

.header::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -1px;

  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 20%,
    var(--gold-light) 50%,
    var(--gold) 80%,
    transparent 100%
  );

  opacity: 0.55;
}

.header-inner {
  width: min(calc(100% - 56px), 1400px);

  margin-inline: auto;

  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;
}

.header-spacer {
  grid-column: 1;
}

.header-name {
  grid-column: 2;

  font-family: var(--font-display);

  font-size: clamp(2.2rem, 2vw, 3rem);

  line-height: 1;

  white-space: nowrap;

  letter-spacing: 0.04em;

  color: var(--cream);

  transition:
    color 0.4s ease,
    text-shadow 0.4s ease;
}

.header-name-dr {
  color: var(--gold-light);
  font-style: italic;
  margin-right: 2px;
}

.header-name:hover {
  color: var(--gold-light);

  text-shadow: 0 0 18px rgba(209, 184, 115, 0.35);
}

.menu-toggle {
  grid-column: 3;

  justify-self: end;

  display: flex;
  align-items: center;

  gap: 13px;

  border: 0;
  background: transparent;

  color: var(--gold-light);
}

.menu-toggle:hover {
  color: var(--cream);
}

.menu-label {
  font-size: 1.2rem;

  text-transform: uppercase;

  letter-spacing: 0.18em;

  font-weight: 600;
}

.menu-icon {
  width: 28px;

  display: flex;
  flex-direction: column;

  gap: 7px;
}

.menu-icon span {
  display: block;

  width: 100%;
  height: 1px;

  background: currentColor;

  transition:
    transform 0.4s var(--ease),
    width 0.4s var(--ease);
}

.menu-icon span:last-child {
  width: 70%;
  margin-left: auto;
}

.menu-toggle:hover .menu-icon span:last-child {
  width: 100%;
}

/* =========================================================
   MENU
========================================================= */

.menu-overlay {
  position: fixed;
  inset: 0;

  z-index: 1100;

  visibility: hidden;
  pointer-events: none;
}

.menu-overlay.active {
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay-bg {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  opacity: 0;
}

.menu-panel {
  position: absolute;

  top: 0;
  right: 0;

  width: min(620px, 100%);
  height: 100dvh;
  max-height: 100dvh;

  padding: clamp(24px, 4vh, 40px) clamp(28px, 5vw, 60px);

  display: flex;
  flex-direction: column;

  justify-content: flex-start;

  overflow-y: auto;
  overscroll-behavior: contain;

  background: var(--navy-900);

  color: var(--cream);

  transform: translateX(100%);
}

/* Fallback si GSAP no carga */

.menu-overlay.active .menu-panel {
  transform: translateX(0);

  transition: transform 0.55s var(--ease);
}

.menu-panel-top {
  display: flex;

  justify-content: space-between;
  align-items: center;

  padding-bottom: 30px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  font-size: 1.1rem;

  text-transform: uppercase;

  letter-spacing: 0.2em;

  color: var(--gray-light);
}

.menu-close {
  width: 40px;
  height: 40px;

  border: 0;

  background: transparent;

  position: relative;
}

.menu-close span {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 26px;
  height: 1px;

  background: var(--cream);
}

.menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-navigation {
  display: flex;

  flex-direction: column;

  justify-content: center;
  flex: 1;

  gap: clamp(2px, 1.2vh, 10px);
  margin: clamp(14px, 2vh, 30px) 0;
}

.menu-navigation a {
  display: grid;

  grid-template-columns: 1fr;

  align-items: baseline;

  padding: 4px 0;

  transition: color 0.3s ease;
}

.menu-link-text {
  font-family: var(--font-display);

  font-size: clamp(3rem, min(5vw, 7vh), 5.2rem);

  line-height: 1.05;

  transition:
    transform 0.4s var(--ease),
    color 0.3s ease;
}

.menu-navigation a:hover .menu-link-text {
  color: var(--gold-light);

  transform: translateX(15px);
}

.menu-panel-bottom {
  display: flex;

  justify-content: space-between;
  align-items: end;

  gap: 30px;

  padding-top: 30px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  color: var(--gray-light);

  font-size: 1.3rem;
}

.menu-panel-bottom > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.menu-small-label {
  color: var(--gold);

  text-transform: uppercase;

  letter-spacing: 0.15em;

  font-size: 1rem;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  height: 100svh;
  min-height: 680px;

  overflow: hidden;

  background: var(--navy-950);

  color: var(--white);
}

.hero-slider,
.hero-slide {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;

  z-index: 1;

  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 1.4s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;

  z-index: 2;

  transition-delay: 0s;
}

.hero-image-wrap {
  position: absolute;

  inset: -3%;

  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  /* Escala base fija (sin transición acá) para poder
     resetearla instantáneamente por JS antes de cada zoom.
     El movimiento real vive en .hero-image.is-zooming */
  transform: scale(1);

  transition:
    opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.8s ease;

  will-change: transform, opacity, filter;

  backface-visibility: hidden;

  filter: saturate(0.45) contrast(1.22);
}

.hero-slide.is-active .hero-image {
  opacity: 1;

  filter: saturate(0.65) contrast(1.08);
}

/* Zoom Ken Burns: JS agrega esta clase recién después de
   resetear la escala a 1, así el movimiento siempre arranca
   limpio sin importar el slide anterior. */
.hero-image.is-zooming {
  transition:
    opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.8s ease,
    transform 7.2s linear;

  transform: scale(1.14);
}

/* =========================================================
   HERO OVERLAY
========================================================= */

.hero-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(5, 12, 21, 0.84) 0%,
    rgba(5, 12, 21, 0.55) 45%,
    rgba(5, 12, 21, 0.38) 100%
  );

  z-index: 2;
}

.hero-content {
  position: relative;

  z-index: 3;

  height: 100%;

  width: min(calc(100% - 48px), var(--container));

  margin-inline: auto;

  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(820px, 100%);

  padding-top: 50px;
}

/* Usado por JS solo cuando GSAP no está disponible: deja
   visible el copy del primer slide sin depender de la
   animación de entrada. */
.hero-copy.is-fallback-visible {
  opacity: 1;
  transform: none;
}

.hero-title {
  max-width: 850px;

  min-height: 1.84em;

  font-family: var(--font-display);

  font-weight: 400;

  font-size: clamp(5.2rem, 8vw, 10.5rem);

  line-height: 0.92;

  letter-spacing: -0.025em;

  color: var(--white);
}

.hero-description {
  max-width: 570px;

  min-height: 5.1em;

  margin-top: 35px;

  color: rgba(250, 248, 243, 0.78);

  font-size: clamp(1.5rem, 1.5vw, 1.8rem);

  line-height: 1.7;
}

/* =========================================================
   CTA BUTTONS — ESTILO UNIFICADO (HERO)
========================================================= */

.hero-button,
.dark-button,
.whatsapp-button,
.form-button,
.menu-whatsapp,
.card-link {
  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 20px;

  padding: 16px 34px;

  color: var(--navy-950);

  background: linear-gradient(
    135deg,
    var(--gold-light) 0%,
    var(--gold) 55%,
    #a3843f 100%
  );

  border: 1px solid rgba(209, 184, 115, 0.6);

  font-family: inherit;

  font-size: 1.25rem;

  font-weight: 600;

  line-height: 1;

  text-transform: uppercase;

  letter-spacing: 0.16em;

  text-decoration: none;

  white-space: nowrap;

  overflow: hidden;

  cursor: pointer;

  transition:
    color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-button::before,
.dark-button::before,
.whatsapp-button::before,
.form-button::before,
.menu-whatsapp::before,
.card-link::before {
  content: "";

  position: absolute;

  inset: 0;

  background: var(--navy-950);

  transform: translateX(-101%);

  transition: transform 0.45s var(--ease);

  z-index: 0;
}

.hero-button span,
.dark-button span,
.whatsapp-button span,
.form-button span,
.menu-whatsapp span,
.card-link span {
  position: relative;

  z-index: 1;
}

.hero-button-arrow,
.dark-button span:last-child,
.whatsapp-button span:last-child,
.form-button span:last-child,
.card-link span:last-child {
  color: inherit;

  font-size: 1.7rem;

  transition: transform 0.4s var(--ease);
}

.hero-button:hover,
.dark-button:hover,
.whatsapp-button:hover,
.form-button:hover,
.menu-whatsapp:hover,
.card-link:hover {
  color: var(--gold-light);

  box-shadow: 0 16px 38px rgba(185, 154, 82, 0.35);

  transform: translateY(-2px);
}

.hero-button:hover::before,
.dark-button:hover::before,
.whatsapp-button:hover::before,
.form-button:hover::before,
.menu-whatsapp:hover::before,
.card-link:hover::before {
  transform: translateX(0);
}

.hero-button:hover .hero-button-arrow,
.dark-button:hover > span:last-child,
.whatsapp-button:hover > span:last-child,
.form-button:hover > span:last-child,
.card-link:hover > span:last-child {
  transform: translate(5px, -5px);
}

/* Márgenes específicos de contexto */

.hero-button {
  margin-top: 38px;

  min-width: 320px;

  justify-content: center;
}

.dark-button {
  margin-top: 25px;
}

.whatsapp-button {
  margin-top: 40px;
}

.form-button {
  align-self: flex-start;
}

/* =========================================================
   HERO GOLD LINE
========================================================= */

.hero-line-wrap {
  position: absolute;

  z-index: 5;

  left: 0;
  right: 0;
  bottom: 32px;

  height: 80px;

  pointer-events: none;
}

.hero-line {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: visible;
}

.hero-line-path {
  fill: none;

  stroke: var(--gold);

  stroke-width: 1.4;

  vector-effect: non-scaling-stroke;

  stroke-linecap: round;

  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

/* =========================================================
   GENERAL
========================================================= */

.section {
  padding: 95px 0;
}

.eyebrow {
  display: block;

  margin-bottom: 20px;

  color: var(--gold);

  font-size: 1.05rem;

  text-transform: uppercase;

  letter-spacing: 0.22em;

  font-weight: 600;
}

.section-heading {
  max-width: 780px;

  margin-bottom: 60px;
}

.section-heading h2,
.about-title h2 {
  font-family: var(--font-display);

  font-size: clamp(4.5rem, 6vw, 7.5rem);

  line-height: 1;

  font-weight: 400;

  color: var(--navy-900);
}

.section-heading p {
  max-width: 600px;

  margin-top: 25px;

  color: var(--gray);

  font-size: 1.7rem;
}

.gold-rule {
  width: 70px;
  height: 1px;

  background: var(--gold);

  margin: 30px 0;
}

/* =========================================================
   PROFESSIONAL
========================================================= */

.professional {
  background: #e8e0cc;
}

.professional-grid {
  display: grid;

  grid-template-columns:
    minmax(320px, 0.85fr)
    minmax(0, 1.15fr);

  gap: 70px;

  align-items: center;
}

.professional-image {
  position: relative;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  background: var(--navy-800);

  box-shadow:
    0 0 0 6px var(--navy-950),
    0 24px 50px rgba(7, 16, 28, 0.18);
}

.professional-image img {
  height: 100%;

  object-fit: cover;

  filter: saturate(0.8);

  transition: transform 1s var(--ease);
}

.professional-image:hover img {
  transform: scale(1.03);
}

.professional-content h2 {
  font-family: var(--font-display);

  font-size: clamp(4rem, 5vw, 6.5rem);

  line-height: 1;

  font-weight: 400;

  color: var(--navy-900);
}

.professional-content p {
  max-width: 670px;

  color: var(--gray);

  margin-bottom: 20px;
}

.professional-content .lead {
  color: var(--charcoal);

  font-size: 2rem;

  line-height: 1.5;
}

/* =========================================================
   AREAS
========================================================= */

.areas {
  background: var(--navy-900);

  color: var(--cream);
}

.areas .section-heading h2 {
  color: var(--cream);
}

.areas .section-heading p {
  color: var(--gray-light);
}

/* Encabezados centrados (Áreas / Servicios) */

.areas .section-heading,
.services .section-heading {
  margin-inline: auto;

  text-align: center;
}

.areas .section-heading p,
.services .section-heading p {
  margin-inline: auto;
}

/* Divisor elegante entre bloques: una línea dorada fina que
   se afirma un poco al pasar el mouse por la sección. */

.professional,
.areas,
.about {
  position: relative;
}

.professional::after,
.areas::after,
.statement::after,
.about::after,
.services::after,
.contact::after {
  content: "";

  position: absolute;

  z-index: 8;

  top: 0;
  left: 50%;

  width: 72%;
  max-width: 1100px;
  height: 1px;

  transform: translateX(-50%) scaleX(0.85);
  transform-origin: center;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(209, 184, 115, 0.32),
    transparent
  );

  opacity: 0.72;

  transition:
    transform 0.6s var(--ease),
    opacity 0.45s ease;
}

.professional:hover::after,
.areas:hover::after,
.statement:hover::after,
.about:hover::after,
.services:hover::after,
.contact:hover::after {
  transform: translateX(-50%) scaleX(1);

  opacity: 1;
}

.areas-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.area-card {
  position: relative;

  display: flex;

  flex-direction: column;

  border: 1px solid rgba(255, 255, 255, 0.14);

  background: rgba(255, 255, 255, 0.04);

  padding: 22px;

  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease);
}

.area-card:hover {
  border-color: rgba(185, 154, 82, 0.65);

  background: rgba(255, 255, 255, 0.06);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(185, 154, 82, 0.25);

  transform: translateY(-4px);
}

.area-card figure {
  aspect-ratio: 4 / 3;

  margin-bottom: 30px;

  overflow: hidden;
}

.area-card img {
  height: 100%;

  object-fit: cover;

  filter: grayscale(0.2) saturate(0.7);

  transition:
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
}

.area-card:hover img {
  transform: scale(1.04);

  filter: grayscale(0) saturate(0.9);
}

.area-content {
  display: flex;

  flex-direction: column;

  flex: 1;
}

.area-content h3 {
  min-height: 2.3em;

  font-family: var(--font-display);

  font-size: clamp(2.6rem, 2.6vw, 3.3rem);

  line-height: 1.15;

  font-weight: 400;

  color: var(--cream);

  margin-bottom: 18px;
}

.area-content p {
  flex: 1;

  color: var(--gray-light);

  font-size: 1.45rem;

  line-height: 1.7;

  margin-bottom: 25px;
}

/* .card-link hereda el estilo unificado de botones de arriba.
   Solo define su ubicación dentro de la tarjeta. */

.card-link {
  align-self: center;

  margin-block: auto;
}

.card-link span {
  font-size: 1.4rem;

  transition: transform 0.3s ease;
}

/* =========================================================
   STATEMENT
========================================================= */

.statement {
  position: relative;

  background: var(--navy-950);

  padding: 120px 0;

  overflow: hidden;
}

.statement::before {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(7, 16, 28, 0.82),
      rgba(7, 16, 28, 0.87)
    ),
    url("img/parallax1.jpg");

  background-size: cover;

  background-position: center;

  background-attachment: fixed;
}

.statement-inner {
  position: relative;

  z-index: 1;

  max-width: 950px;
}

.statement h2 {
  font-family: var(--font-display);

  font-size: clamp(4.2rem, 6vw, 7.2rem);

  line-height: 1.03;

  font-weight: 400;

  color: var(--white);
}

.statement h2 em {
  color: var(--gold-light);

  font-style: normal;
}

.statement p {
  max-width: 650px;

  margin-top: 35px;

  color: rgba(250, 248, 243, 0.88);

  font-size: 1.6rem;
}

/* =========================================================
   ABOUT
========================================================= */

.about {
  background: var(--white);
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;

  align-items: start;
}

.about-title h2 {
  max-width: 600px;
}

.about-content {
  padding-top: 50px;

  max-width: 600px;
}

.about-content p {
  color: var(--gray);

  margin-bottom: 20px;
}

.about-content .lead {
  color: var(--navy-900);

  font-family: var(--font-display);

  font-size: 3.3rem;

  line-height: 1.2;
}

/* =========================================================
   AMPAROS DE SALUD
   Reusa el layout de ABOUT (título + lead + párrafos + botón)
   pero con foto de fondo + overlay, igual técnica que
   STATEMENT/SERVICES, para diferenciarla visualmente sin
   agregar un layout nuevo.
========================================================= */

#amparos-salud {
  position: relative;

  background: var(--navy-950);

  overflow: hidden;
}

#amparos-salud::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 0;

  background-image:
    linear-gradient(
      rgba(7, 16, 28, 0.86),
      rgba(7, 16, 28, 0.9)
    ),
    url("img/amparos_salud.jpg");

  background-size: cover;

  background-position: center;

  background-attachment: fixed;
}

#amparos-salud .container {
  position: relative;

  z-index: 1;
}

#amparos-salud .about-title h2,
#amparos-salud .about-content .lead {
  color: var(--cream);
}

#amparos-salud .about-content p {
  color: rgba(250, 248, 243, 0.82);
}

/* Título, subtítulo y texto centrados (a diferencia del layout
   a dos columnas que usa MÉTODO DE TRABAJO con las mismas clases) */

#amparos-salud .about-grid {
  grid-template-columns: 1fr;

  justify-items: center;

  text-align: center;
}

#amparos-salud .about-title h2 {
  max-width: 780px;
}

#amparos-salud .about-content {
  padding-top: 0;

  max-width: 720px;
}

/* =========================================================
   SERVICES
========================================================= */

.services {
  position: relative;

  background: var(--cream-light);
}

.services::before {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(7, 16, 28, 0.62),
      rgba(7, 16, 28, 0.72)
    ),
    url("img/servicios_1.jpg");

  background-size: cover;

  background-position: center;

  background-attachment: fixed;

  opacity: 0.95;
}

/* Encabezado de servicios: legible sobre el fondo oscuro */

.services .section-heading h2 {
  color: var(--cream);
}

.services .section-heading p {
  color: rgba(250, 248, 243, 0.82);

  font-size: 2rem;

  line-height: 1.6;
}

.services .container {
  position: relative;

  z-index: 1;
}

.services-accordion {
  display: grid;

  gap: 16px;

  margin-top: 24px;
}

.service-panel {
  overflow: hidden;

  border: 1px solid rgba(7, 16, 28, 0.12);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.55);

  backdrop-filter: blur(2px);

  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.service-panel:hover {
  border-color: rgba(185, 154, 82, 0.45);
}

.service-panel.is-active {
  background: rgba(11, 22, 35, 0.92);

  border-color: rgba(185, 154, 82, 0.6);

  box-shadow: 0 18px 40px rgba(11, 22, 35, 0.18);
}

.service-trigger {
  width: 100%;

  display: grid;

  grid-template-columns: 1fr auto;

  align-items: center;

  gap: 18px;

  padding: 26px 28px;

  background: transparent;

  border: 0;

  color: var(--navy-900);

  text-align: left;

  cursor: pointer;
}

.service-panel.is-active .service-trigger {
  color: var(--white);
}

.service-title {
  font-family: var(--font-display);

  font-size: clamp(2.8rem, 3.5vw, 4.3rem);

  line-height: 1.1;

  font-weight: 400;
}

.service-caret {
  font-size: 2.4rem;

  line-height: 1;

  color: var(--gold);

  transform: rotate(0deg);

  transition: transform 0.3s ease;
}

.service-panel.is-active .service-caret {
  transform: rotate(180deg);
}

.service-content {
  display: grid;

  grid-template-rows: 0fr;

  overflow: hidden;

  transition:
    grid-template-rows 0.45s var(--ease),
    padding 0.45s var(--ease),
    opacity 0.35s ease;

  opacity: 0;
}

.service-content > * {
  min-height: 0;
}

.service-panel.is-active .service-content {
  grid-template-rows: 1fr;

  opacity: 1;

  padding: 0 28px 28px;
}

.service-list {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px 40px;

  padding-top: 8px;
}

.service-list li {
  position: relative;

  padding-left: 18px;

  color: var(--white);

  font-size: 1.4rem;

  line-height: 1.7;

  opacity: 0.9;
}

.service-list li::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0.75em;

  width: 8px;
  height: 1px;

  background: var(--gold);
}

/* =========================================================
   CONTACT
========================================================= */

.contact {
  position: relative;

  padding: 100px 0;

  background: var(--navy-950);

  color: var(--cream);

  overflow: hidden;
}

.contact::before {
  content: "";

  position: absolute;

  inset: 0;

  /* Overlay bien oscuro a propósito: la imagen queda como
     textura sutil, sin restarle legibilidad al formulario. */
  background-image:
    linear-gradient(
      rgba(7, 16, 28, 0.9),
      rgba(7, 16, 28, 0.93)
    ),
    url("img/parallax2.jpg");

  background-size: cover;

  background-position: center;

  background-attachment: fixed;
}

.contact-grid {
  position: relative;

  z-index: 1;

  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 100px;

  align-items: start;
}

.contact-intro h2 {
  max-width: 600px;

  font-family: var(--font-display);

  font-size: clamp(4.5rem, 6vw, 7.5rem);

  line-height: 0.98;

  font-weight: 400;
}

.contact-intro p {
  max-width: 420px;

  margin-top: 30px;

  color: var(--gray-light);
}

.contact-form {
  display: flex;

  flex-direction: column;

  gap: 28px;

  padding: 36px;

  background: rgba(7, 16, 28, 0.55);

  border: 1px solid rgba(185, 154, 82, 0.18);

  border-radius: 10px;

  backdrop-filter: blur(3px);
}

.field-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 25px;
}

.contact-form label {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.contact-form label > span {
  color: var(--gold-light);

  font-size: 1rem;

  text-transform: uppercase;

  letter-spacing: 0.16em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 15px 0;

  border: 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);

  outline: 0;

  background: transparent;

  color: var(--cream);

  border-radius: 0;

  transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #d16a5a;
}

.contact-form input.is-invalid::placeholder,
.contact-form textarea.is-invalid::placeholder {
  color: rgba(209, 106, 90, 0.7);
}

.contact-form textarea {
  min-height: 150px;

  resize: vertical;
}

.form-confirm {
  display: none;

  padding: 14px;

  border: 1px solid var(--green);

  color: #8fd1a8;

  font-size: 1.3rem;
}

.form-confirm.show {
  display: block;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  background: var(--navy-900);

  color: var(--cream);

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
  display: grid;

  grid-template-columns: 1.2fr 0.8fr;

  gap: 50px;

  align-items: end;

  padding: 60px 0 40px;
}

.footer-brand {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.footer-name {
  font-family: var(--font-display);

  font-size: clamp(2.8rem, 3vw, 4rem);

  line-height: 1;
}

.footer-role {
  color: var(--gray-light);

  font-size: 1.25rem;
}

.footer-contact {
  display: flex;

  flex-direction: column;

  justify-self: end;

  align-items: flex-end;

  text-align: right;

  color: var(--gray-light);

  font-size: 1.25rem;

  line-height: 1.6;
}

.footer-map-link {
  color: var(--gray-light);

  border-bottom: 1px solid rgba(185, 154, 82, 0.7);

  padding-bottom: 2px;
}

.footer-map-link:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;

  justify-content: center;

  padding: 18px 0 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: var(--gray-light);

  font-size: 1.1rem;

  text-align: center;
}

.footer-studio {
  color: var(--gold-light);
}

.footer-studio-link {
  color: var(--gold);

  font-weight: 600;

  border-bottom: 1px solid rgba(185, 154, 82, 0.7);
}

.footer-studio-link:hover {
  color: var(--gold-light);
}

/* =========================================================
   WHATSAPP FLOAT
========================================================= */

.wa-float {
  position: fixed;

  right: 28px;
  bottom: 28px;

  z-index: 800;

  width: 58px;
  height: 58px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  transition: transform 0.3s ease;
}

.wa-icon {
  width: 52px;
  height: 52px;

  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));

  transition: filter 0.3s ease;
}

.wa-float:hover {
  transform: translateY(-4px) scale(1.05);
}

.wa-float:hover .wa-icon {
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .preloader-line {
    animation: none;
  }

  /* "Reduced motion" apunta a movimiento grande/disparado solo
     (parallax, zoom Ken Burns, reveals de scroll) — eso ya lo
     desactiva script.js. El feedback de hover en botones y
     tarjetas es corto y lo dispara el usuario, no ese tipo de
     movimiento: se lo dejamos con una transición breve para que
     la UI no se sienta "muerta" con esta preferencia activada. */
  .hero-button,
  .dark-button,
  .whatsapp-button,
  .form-button,
  .menu-whatsapp,
  .card-link,
  .area-card,
  .service-panel,
  .footer-map-link,
  .footer-studio-link,
  .wa-float,
  .wa-icon {
    transition-duration: 0.2s !important;
  }
}

/* =========================================================
   RESPONSIVE — 1000px
========================================================= */

@media (max-width: 1000px) {
  .professional-grid,
  .about-grid,
  .contact-grid {
    gap: 60px;
  }

  .areas-grid {
    grid-template-columns: 1fr 1fr;
  }

  .area-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   RESPONSIVE — 760px
========================================================= */

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .header {
    padding: 22px 0;
  }

  .header-inner {
    width: calc(100% - 36px);
  }

  .header-name {
    font-size: 2.2rem;
  }

  .menu-label {
    display: none;
  }

  .menu-panel {
    padding: 24px 28px;
  }

  .menu-link-text {
    font-size: clamp(3rem, 8vh, 3.5rem);
  }

  .menu-panel-bottom {
    flex-direction: column;

    align-items: flex-start;

    gap: 18px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-title {
    font-size: clamp(4.8rem, 13vw, 7rem);
  }

  .hero-description {
    max-width: 450px;

    font-size: 1.45rem;
  }

  .hero-line-wrap {
    left: 0;
    right: 0;
    bottom: 20px;
  }

  .hero-line {
    inset: 0;

    width: 100%;
    height: 100%;
  }

  .section,
  .statement,
  .contact {
    padding: 95px 0;
  }

  .professional-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .professional-image {
    max-width: 480px;
  }

  .professional-content {
    max-width: 700px;
  }

  .about-content {
    padding-top: 0;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .area-card:last-child {
    grid-column: auto;

    max-width: none;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;

    justify-items: center;

    align-items: start;

    padding: 50px 0 30px;
  }

  .footer-contact {
    justify-self: center;

    align-items: center;

    text-align: center;
  }

  .footer-bottom {
    padding-top: 16px;
  }

  .wa-float {
    right: 18px;
    bottom: 18px;
  }

  /* En móviles, "fixed" puede provocar tirones: conserva
     el efecto sin bloquear el scroll. */
  .statement::before,
  .services::before,
  .contact::before {
    background-attachment: scroll;
  }
}

/* =========================================================
   RESPONSIVE — 480px
========================================================= */

@media (max-width: 480px) {
  .header-name {
    font-size: clamp(1.55rem, 5.2vw, 1.9rem);

    white-space: normal;

    line-height: 1.05;

    text-align: center;
  }

  .hero-copy {
    padding-top: 30px;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-description {
    margin-top: 25px;
  }

  .hero-button,
  .dark-button,
  .whatsapp-button,
  .form-button {
    margin-top: 28px;
    padding: 14px 22px;
    font-size: 1.15rem;
    gap: 14px;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
  }

  .hero-line-wrap {
    bottom: 20px;
  }

  .menu-link-text {
    font-size: clamp(2.8rem, 7.5vh, 3.1rem);
  }
}