/* ==========================================================
   Imperio Dental — estilos
   Paleta y tipografía se controlan desde las variables de :root
   ========================================================== */

:root {
  --black-900: #000000;
  --black-800: #0a0a0b;
  --black-700: #1d1d20;
  --black-600: #303035;
  --silver-600: #6b6f76;
  --silver-500: #a9adb4;
  --silver-300: #d9dbdf;
  --silver-100: #eeeff1;
  --ivory: #f5f5f6;
  --white: #ffffff;
  --ink: #111214;
  --muted: #5d6168;
  --line: #e3e4e7;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-brand: "Cinzel", "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .05);
  --shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 18px 40px rgba(0, 0, 0, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--black-800);
  color: var(--white);
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.012em;
  color: var(--black-800);
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--black-800); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silver-600);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--gold { color: var(--silver-300); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  background: var(--black-800);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.btn--primary:hover { background: var(--black-700); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }

.btn--ghost { border-color: #cfd1d6; color: var(--black-800); background: transparent; }
.btn--ghost:hover { border-color: var(--black-800); background: var(--white); }

.btn--gold { background: var(--silver-500); color: var(--black-900); }
.btn--gold:hover { background: var(--silver-300); }

.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgba(6, 6, 7, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black-800);
  color: var(--silver-300);
}
.brand__mark .icon { width: 24px; height: 24px; stroke-width: 1.4; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--black-800);
}
.brand__tag {
  margin-top: 3px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver-600);
}
.brand--light .brand__mark { background: rgba(255, 255, 255, .08); }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__tag { color: var(--silver-300); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: .92rem;
  font-weight: 500;
  color: var(--black-700);
}
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--silver-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  background: var(--black-800);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(169, 173, 180, .16), transparent 62%),
    radial-gradient(700px 480px at 0% 100%, rgba(0, 0, 0, .05), transparent 60%),
    var(--ivory);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 64px;
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(2.7rem, 6.2vw, 4.7rem);
  line-height: 1.02;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--silver-600); }
.hero__lead {
  margin-top: 24px;
  max-width: 54ch;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--black-700);
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--silver-600); stroke-width: 2; }

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
}
.hero__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, #2b4d6e 0%, var(--black-800) 55%, var(--black-900) 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(217, 219, 223, .22);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__arch::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(217, 219, 223, .28);
  border-radius: inherit;
  pointer-events: none;
}
.hero__arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__rings {
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 38px, rgba(217, 219, 223, .09) 38px 39px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}
.hero__tooth {
  position: relative;
  width: 46%;
  fill: rgba(217, 219, 223, .06);
  stroke: var(--silver-300);
  stroke-width: .55;
  stroke-linejoin: round;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .35));
  animation: floaty 7s ease-in-out infinite;
}
.hero__spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--silver-300);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 3.6s ease-in-out infinite;
}
.hero__spark--1 { top: 30%; right: 24%; }
.hero__spark--2 { bottom: 30%; left: 22%; width: 9px; height: 9px; animation-delay: 1.4s; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .8rem;
  line-height: 1.35;
}
.float-card p { display: flex; flex-direction: column; }
.float-card strong { font-size: .9rem; color: var(--black-800); }
.float-card span { color: var(--muted); }
.float-card--rating { left: -44px; bottom: 76px; flex-direction: column; align-items: flex-start; gap: 6px; }
.float-card--visit { right: -22px; top: 92px; }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--silver-100);
  color: var(--silver-600);
}
.float-card__icon .icon { width: 20px; height: 20px; }

.stars { display: flex; gap: 2px; color: var(--silver-500); }
.stars .icon { width: 16px; height: 16px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  padding: 30px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stats > div { padding: 4px 32px; text-align: center; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--black-800);
}
.stats dd { margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* ---------- Secciones ---------- */

.section { padding: clamp(72px, 10vw, 124px) 0; }
.section--white { background: var(--white); }
.section--dark {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(169, 173, 180, .14), transparent 60%),
    var(--black-800);
  color: rgba(255, 255, 255, .74);
}
.section--dark h2, .section--dark h3 { color: var(--white); }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { margin-top: 18px; }
.section__head > p:last-child:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Servicios ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  position: relative;
  padding: 30px 26px 32px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background .35s;
}
.service:hover {
  transform: translateY(-6px);
  background: var(--white);
  border-color: var(--silver-300);
  box-shadow: var(--shadow);
}
.service__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--silver-600);
  transition: background .35s, color .35s, border-color .35s;
}
.service__icon .icon { width: 26px; height: 26px; stroke-width: 1.4; }
.service:hover .service__icon { background: var(--black-800); border-color: var(--black-800); color: var(--silver-300); }
.service p { margin-top: 10px; font-size: .92rem; color: var(--muted); }

.services__note { margin-top: 44px; text-align: center; color: var(--muted); }
.services__note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--black-800);
  border-bottom: 1px solid var(--silver-500);
}
.services__note a .icon { transition: transform .25s var(--ease); }
.services__note a:hover .icon { transform: translateX(4px); }

/* ---------- Nosotros ---------- */

.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.about__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.about__intro h2 { margin-top: 18px; }
.about__intro > p:not(.eyebrow) { margin-top: 22px; font-size: 1.05rem; }
.about__intro .btn { margin-top: 34px; }

.about__list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.about__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.about__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
  color: var(--silver-300);
}
.about__list h3 { font-size: 1.18rem; }
.about__list p { margin-top: 8px; font-size: .96rem; }

/* ---------- Proceso ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 4px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 70px;
  right: -14px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--silver-300) 0 6px, transparent 6px 12px);
}
.step__num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid var(--silver-300);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black-800);
}
.step p { margin-top: 10px; font-size: .93rem; color: var(--muted); }

/* ---------- Testimonios ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 30px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.testimonial blockquote {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--black-800);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  line-height: 1.3;
}
.testimonial figcaption > span:last-child { display: flex; flex-direction: column; }
.testimonial small { color: var(--muted); font-size: .8rem; }
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black-800);
  color: var(--silver-300);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- Preguntas ---------- */

.faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.faq__intro h2 { margin-top: 18px; }
.faq__intro > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.faq__intro .btn { margin-top: 28px; }
.faq__intro .btn:hover .icon { transform: none; }

.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--black-800);
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-right: 1.5px solid var(--silver-600);
  border-bottom: 1.5px solid var(--silver-600);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__list details p { padding: 0 40px 24px 2px; color: var(--muted); }

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__info h2 { margin-top: 18px; }
.contact__info > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.contact__list { margin-top: 36px; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--silver-100);
  color: var(--silver-600);
}
.contact__icon .icon { width: 21px; height: 21px; }
.contact__list div { display: flex; flex-direction: column; line-height: 1.45; }
.contact__list strong { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact__list span, .contact__list a { margin-top: 3px; font-weight: 500; color: var(--black-800); }
.contact__list a:hover { color: var(--silver-600); }

.form {
  padding: clamp(26px, 4vw, 40px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.form__hint { margin-top: 6px; margin-bottom: 26px; font-size: .88rem; color: var(--muted); }
.field { margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 600; color: var(--black-700); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--white);
  border: 1px solid #d3d5d9;
  border-radius: var(--radius-sm);
  font-size: .96rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6f76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
}
.field input::placeholder, .field textarea::placeholder { color: #a3abb6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--silver-500);
  box-shadow: 0 0 0 4px rgba(169, 173, 180, .18);
}
.field .is-invalid { border-color: #c2513f; }
.form__error { margin-bottom: 14px; font-size: .88rem; font-weight: 500; color: #b5412f; }
.form .btn:hover .icon { transform: none; }

/* ---------- Pie ---------- */

.footer {
  padding-top: 72px;
  background: var(--black-900);
  color: rgba(255, 255, 255, .62);
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1.1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__brand p { margin-top: 20px; max-width: 34ch; }
.footer h4 {
  margin: 0 0 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silver-300);
}
.footer nav a { display: block; padding: 5px 0; transition: color .2s; }
.footer nav a:hover { color: var(--white); }
.footer__grid > div:last-child p + p { margin-top: 10px; }
.footer__bottom {
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Animaciones ---------- */

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { gap: 40px; }
  .float-card--rating { left: -20px; }
  .float-card--visit { right: -10px; }
  .about, .faq, .contact { gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }

  .header__cta { display: none; }
  .menu-toggle { display: block; }
  .header.is-open { background: var(--ivory); border-bottom-color: var(--line); }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 20px 32px;
    background: var(--ivory);
    font-size: 1.12rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 18px 2px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 26px; padding: 16px; }

  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__grid { grid-template-columns: 1fr; gap: 52px; }
  .hero__visual { justify-self: center; width: min(78%, 380px); }

  .about, .faq, .contact { grid-template-columns: 1fr; }
  .about__intro { position: static; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .step::after { display: none; }

  .testimonials { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .section__head { margin-bottom: 44px; }
}

@media (max-width: 620px) {
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.32rem; }

  .hero__lead { font-size: 1.02rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__points { flex-direction: column; }
  .hero__visual { width: min(84%, 340px); }
  .float-card { padding: 11px 14px; }
  .float-card--rating { left: -22px; bottom: 44px; }
  .float-card--visit { right: -22px; top: 60px; }

  .stats { grid-template-columns: 1fr 1fr; margin-top: 56px; padding: 8px 0; }
  .stats > div { padding: 22px 12px; }
  .stats > div + div { border-left: 0; }
  .stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .services { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 22px 20px; }
  .service__icon { grid-row: span 2; margin-bottom: 0; }
  .service h3 { align-self: end; }
  .service p { margin-top: 4px; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; }
  .step p { margin-top: 4px; }

  .about__list li { grid-template-columns: 48px 1fr; gap: 14px; padding: 24px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .faq__list details p { padding-right: 8px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ==========================================================
   Tema del logo: negro, plata y blanco
   ========================================================== */

/* ---------- Marca ---------- */
.brand__mark { width: auto; height: 46px; background: none; border-radius: 0; }
.brand__name { color: var(--white); }
.brand__tag { color: var(--silver-500); }

/* ---------- Cabecera oscura ---------- */
.header.is-scrolled, .header.is-open { border-bottom-color: rgba(255, 255, 255, .1); }
.header.is-open { background: var(--black-900); }
.nav { color: rgba(255, 255, 255, .78); }
.nav a:not(.btn):hover { color: var(--white); }
.nav a:not(.btn)::after { background: var(--silver-300); }
.header .btn--primary, .hero .btn--primary, .btn--gold {
  background: var(--white);
  color: var(--black-900);
  box-shadow: none;
}
.header .btn--primary:hover, .hero .btn--primary:hover, .btn--gold:hover { background: var(--silver-300); }
.menu-toggle { background: transparent; border-color: rgba(255, 255, 255, .28); }
.menu-toggle span { background: var(--white); }

/* ---------- Hero oscuro ---------- */
.hero {
  background:
    radial-gradient(900px 560px at 84% 0%, rgba(217, 219, 223, .13), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(217, 219, 223, .06), transparent 60%),
    var(--black-900);
}
.hero .eyebrow { color: var(--silver-500); }
.hero__title { color: var(--white); }
.hero__title em { color: var(--silver-300); }
.hero__lead { color: rgba(255, 255, 255, .68); }
.hero__points { color: rgba(255, 255, 255, .86); }
.hero__points .icon { color: var(--silver-300); }
.hero .btn--ghost { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.hero .btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.hero__arch {
  background: radial-gradient(120% 70% at 50% 0%, #1b1b1e 0%, #070708 58%, var(--black-900) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(217, 219, 223, .3);
}
.hero__arch::after { border-color: rgba(217, 219, 223, .16); }
.hero__arch .hero__logo {
  position: relative;
  inset: auto;
  width: 72%;
  height: auto;
  margin-top: 8%;
  object-fit: contain;
}
.float-card--rating { bottom: -24px; }
.stars { color: var(--black-800); }

.stats {
  --line: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}
.stats dt { color: var(--white); }
.stats dd { color: rgba(255, 255, 255, .6); }

/* ---------- Equipo ---------- */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.member {
  flex: 0 0 calc((100% - 60px) / 4);
  padding: 34px 22px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.member:hover { transform: translateY(-6px); border-color: var(--silver-500); box-shadow: var(--shadow); }
.member__avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--black-900);
  box-shadow: inset 0 0 0 1px rgba(217, 219, 223, .5), 0 0 0 5px var(--silver-100);
  color: var(--silver-300);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.member__role {
  margin-top: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--silver-600);
}

/* ---------- Redes ---------- */
.socials { display: flex; gap: 10px; margin-top: 30px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--black-800);
  transition: background .25s, color .25s, border-color .25s;
}
.socials a:hover { background: var(--black-900); border-color: var(--black-900); color: var(--white); }
.socials .icon { width: 19px; height: 19px; }
.footer .socials { margin-top: 22px; }
.footer .socials a { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); }
.footer .socials a:hover { background: var(--white); border-color: var(--white); color: var(--black-900); }
.contact__map { font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; color: var(--silver-600) !important; }

@media (max-width: 1080px) {
  .member { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 920px) {
  .nav { background: var(--black-900); }
  .nav a:not(.btn) { border-bottom-color: rgba(255, 255, 255, .12); }
  .member { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 620px) {
  .brand__mark { width: auto; height: 40px; }
  .member {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 18px;
    align-items: center;
    padding: 20px;
    text-align: left;
  }
  .member__avatar { grid-row: span 2; width: 60px; height: 60px; margin: 0; font-size: 1.3rem; }
  .member h3 { align-self: end; }
  .member__role { align-self: start; margin-top: 4px; }
  .socials { flex-wrap: wrap; }
}

/* Ajustes del hero con logo */
.hero__arch .hero__logo { width: 70%; margin-top: 0; }
.float-card--rating { bottom: -40px; }
@media (max-width: 620px) {
  .hero .eyebrow { font-size: .68rem; letter-spacing: .14em; }
  .hero .eyebrow::before { display: none; }
  .stats { margin-top: 88px; }
}

/* ==========================================================
   Tipografía: Playfair Display (títulos), Montserrat (texto),
   Cinzel (marca y cifras, como en el logo)
   ========================================================== */

h1, h2 { line-height: 1.14; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-weight: 600; letter-spacing: -.005em; }
.hero__title { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.1; }
.hero__title em { font-weight: 500; }

.brand__name {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand__tag { margin-top: 5px; font-size: .56rem; font-weight: 600; letter-spacing: .3em; }

.eyebrow { font-weight: 600; letter-spacing: .22em; }
.btn { font-weight: 600; letter-spacing: .01em; }
.nav { font-size: .88rem; letter-spacing: .02em; }
.about__num { font-size: 1.7rem; }
.step__num { font-family: var(--font-brand); font-size: 1.2rem; }
.member__avatar { font-family: var(--font-brand); font-size: 1.1rem; letter-spacing: .06em; }
.form h3 { font-size: 1.6rem; }
.faq__list summary { font-size: 1rem; }

/* ==========================================================
   Inicio: logo con más presencia
   ========================================================== */

.hero__visual { isolation: isolate; }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -16% -22%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(217, 219, 223, .22), rgba(217, 219, 223, .06) 55%, transparent 100%);
  filter: blur(24px);
  animation: halo 7s ease-in-out infinite;
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(217, 219, 223, .14);
  border-radius: 999px 999px 40px 40px;
  pointer-events: none;
}

.hero__arch {
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(217, 219, 223, .2) 0%, transparent 70%),
    linear-gradient(180deg, #17171a 0%, #060607 55%, var(--black-900) 100%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 0 0 1px rgba(217, 219, 223, .32);
}
.hero__arch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .13) 50%, transparent 58%);
  background-size: 300% 100%;
  background-position: 120% 0;
  pointer-events: none;
  animation: sheen 7s ease-in-out infinite;
}
.hero__rings {
  width: 170%;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(217, 219, 223, .1) 34px 35px);
}
.hero__arch .hero__logo {
  z-index: 1;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .8));
}
.hero__spark { z-index: 1; background: var(--white); }
.hero__spark--1 { top: 15%; right: 17%; bottom: auto; left: auto; }
.hero__spark--2 { bottom: 12%; left: 16%; }
.hero__spark--3 { top: 46%; left: 8%; width: 7px; height: 7px; animation-delay: 2.3s; }

.float-card { z-index: 3; }
.float-card--rating {
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
  animation: floaty 8s ease-in-out infinite;
}
.float-pill {
  position: absolute;
  top: 5%;
  right: -34px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  background: rgba(22, 22, 25, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
  white-space: nowrap;
  animation: floaty 8s ease-in-out -4s infinite;
}
.float-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, .2);
}

/* ==========================================================
   Cifras
   ========================================================== */

.stats {
  position: relative;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
}
.stats > div {
  position: relative;
  padding: 40px 20px 36px;
  transition: background .35s;
}
.stats > div:hover { background: rgba(255, 255, 255, .04); }
.stats > div::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto 18px;
  background: linear-gradient(180deg, var(--white), var(--silver-500));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.stats dt {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(180deg, #ffffff 25%, #8e9299 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats dd {
  margin-top: 14px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

@keyframes halo {
  0%, 100% { opacity: .7; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.03); }
}
@keyframes sheen {
  0%, 55% { background-position: 120% 0; }
  85%, 100% { background-position: -20% 0; }
}

@media (max-width: 1080px) {
  .float-pill { right: -14px; }
}
@media (max-width: 620px) {
  .brand__name { font-size: .98rem; letter-spacing: .14em; }
  .brand__tag { font-size: .5rem; }
  .float-pill { top: 1%; right: -20px; padding: 9px 14px 9px 12px; font-size: .72rem; }
  .stats > div { padding: 30px 10px 28px; }
  .stats dd { font-size: .64rem; letter-spacing: .16em; }
}

/* Evita desbordes horizontales por el halo y las tarjetas flotantes */
html { overflow-x: clip; }
.hero { overflow: hidden; }

/* ==========================================================
   Iconos de servicios: medallón negro con trazo plata, como el logo
   ========================================================== */
.service__icon {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #26262a 0%, var(--black-900) 70%);
  box-shadow: inset 0 0 0 1px rgba(217, 219, 223, .5), 0 0 0 5px var(--silver-100);
  color: var(--silver-300);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.service__icon .icon { width: 40px; height: 40px; stroke-width: 1.15; overflow: visible; }
.service__icon .a { stroke: var(--white); }
.service__icon .af { fill: var(--white); stroke: none; }
.service__icon .tf { fill: var(--silver-300); }
.service__icon .k { fill: var(--black-900); stroke: var(--white); }
.service:hover .service__icon {
  background: radial-gradient(circle at 50% 0%, #26262a 0%, var(--black-900) 70%);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white), 0 0 0 5px var(--silver-300);
  transform: scale(1.05);
}
@media (max-width: 620px) {
  .service { grid-template-columns: 60px 1fr; }
  .service__icon { width: 60px; height: 60px; }
  .service__icon .icon { width: 35px; height: 35px; }
}

/* ==========================================================
   Efecto vidrio (inicio): cuadro del logo, tarjetas y cifras
   ========================================================== */

/* Esferas plateadas: fuera del vidrio se ven nítidas, detrás se ven esmeriladas */
.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d9dbdf 18%, #8e9299 46%, #2b2b30 78%, #0a0a0b 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  animation: floaty 9s ease-in-out infinite;
}
.orb--1 { width: 150px; height: 150px; top: 9%; left: -64px; }
.orb--2 { width: 104px; height: 104px; right: -40px; bottom: 15%; animation-delay: -4.5s; }

.hero__visual::before {
  inset: -10% -16%;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(255, 255, 255, .26), transparent 70%),
    radial-gradient(closest-side at 72% 74%, rgba(217, 219, 223, .2), transparent 70%);
}
.hero__visual::after { display: none; }

.hero__arch {
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, .22) 0%, transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .09) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .26),
    inset 0 1.5px 0 rgba(255, 255, 255, .75),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    inset 0 0 46px rgba(255, 255, 255, .07);
}
.hero__arch::after { inset: 10px; border-color: rgba(255, 255, 255, .1); }
.hero__arch .hero__logo { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55)); }

.float-card--rating, .float-pill {
  background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.float-card--rating strong { color: var(--white); }
.float-card--rating span { color: rgba(255, 255, 255, .78); }
.float-card--rating .stars { color: var(--white); }

/* Cifras de vidrio con una esfera asomando por detrás */
.hero > .container:last-child { position: relative; }
.hero > .container:last-child::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 7%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d9dbdf 18%, #8e9299 46%, #2b2b30 78%, #0a0a0b 100%);
}
.hero > .container:last-child::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 4%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d9dbdf 18%, #8e9299 46%, #2b2b30 78%, #0a0a0b 100%);
}
.stats {
  z-index: 1;
  background: linear-gradient(150deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .04) 50%, rgba(255, 255, 255, .09) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 1.5px 0 rgba(255, 255, 255, .6), inset 0 0 40px rgba(255, 255, 255, .05);
}

@media (max-width: 620px) {
  .orb--1 { width: 104px; height: 104px; left: -40px; }
  .orb--2 { width: 76px; height: 76px; right: -28px; }
  .hero > .container:last-child::before { width: 92px; height: 92px; top: 48px; }
  .hero > .container:last-child::after { width: 64px; height: 64px; bottom: -22px; }
}
.hero > .container:last-child::before { top: -46px; }
@media (max-width: 620px) {
  .hero > .container:last-child::before { top: -38px; }
}

/* ==========================================================
   Servicios con fotografía
   ========================================================== */
.service {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--white);
}
.service__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--black-900);
  transition: transform .7s var(--ease);
}
.service:hover .service__photo { transform: scale(1.05); }
.service h3 { position: relative; padding: 24px 26px 0; font-size: 1.12rem; background: var(--white); }
.service h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--black-900), var(--silver-500));
}
.service p { position: relative; flex: 1; margin-top: 0; padding: 10px 26px 28px; background: var(--white); }

@media (max-width: 620px) {
  .service { display: flex; padding: 0; }
  .service__photo { aspect-ratio: 16 / 10; }
  .service h3 { align-self: stretch; padding: 20px 22px 0; }
  .service p { margin-top: 0; padding: 8px 22px 24px; }
}
