/* ==========================================================================
   Lic. Daniela Kornuta — Landing page
   Hoja de estilos principal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */

:root {
  --purple-950: #2f123f;
  --purple-900: #3f1754;
  --purple-800: #51206b;
  --purple-700: #642880;
  --purple-600: #79389a;
  --purple-500: #9658b7;
  --purple-400: #b482cc;
  --purple-300: #cfafe0;
  --purple-200: #e4d4ee;
  --purple-100: #f1e9f6;
  --purple-50: #faf7fc;

  --lavender: #8c6ab1;
  --lavender-soft: #cfc2dd;
  --gold: #bd975f;
  --gold-soft: #eadcc7;

  --white: #ffffff;
  --ink: #241e29;
  --text: #4f4755;
  --muted: #766d7c;
  --line: rgba(76, 36, 94, 0.13);
  --line-strong: rgba(76, 36, 94, 0.22);

  --success: #26855a;
  --success-soft: #e8f5ee;
  --danger: #b23a4b;
  --danger-soft: #fff0f2;

  --container: 1180px;
  --header-height: 84px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --radius-pill: 999px;

  --shadow-xs: 0 4px 14px rgba(43, 18, 55, 0.06);
  --shadow-sm: 0 12px 35px rgba(43, 18, 55, 0.08);
  --shadow-md: 0 22px 55px rgba(43, 18, 55, 0.12);
  --shadow-lg: 0 36px 90px rgba(43, 18, 55, 0.18);
  --shadow-button: 0 13px 30px rgba(100, 40, 128, 0.3);

  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 220ms var(--ease);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 8%, rgba(207, 175, 224, 0.18), transparent 24rem),
    radial-gradient(circle at 95% 22%, rgba(234, 220, 199, 0.22), transparent 28rem),
    var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
}

::selection {
  color: var(--white);
  background: var(--purple-700);
}

:focus-visible {
  outline: 3px solid rgba(121, 56, 154, 0.34);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--purple-950);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 6vw, 5.15rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.18rem, 2vw, 1.4rem);
  font-weight: 700;
}

p {
  color: var(--text);
}

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

.section {
  position: relative;
  padding: 116px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-head p {
  max-width: 690px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.section-head-centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--purple-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.55;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.78);
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 14px;
  left: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: var(--purple-800);
  box-shadow: var(--shadow-sm);
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. Botones y enlaces
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--white);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.btn::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.22) 45%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 600ms var(--ease);
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.btn-primary:visited {
  color: var(--white) !important;
  background:
    linear-gradient(135deg, var(--purple-700) 0%, var(--purple-600) 58%, var(--purple-500) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  color: var(--white) !important;
  background:
    linear-gradient(135deg, var(--purple-800) 0%, var(--purple-700) 62%, var(--purple-500) 100%);
  box-shadow: 0 17px 38px rgba(100, 40, 128, 0.38);
}

.btn-light {
  color: var(--purple-800);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(80, 30, 104, 0.12);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.btn-light:hover {
  color: var(--purple-900);
  background: var(--white);
  border-color: rgba(80, 30, 104, 0.22);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--purple-700);
  font-weight: 700;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.text-link-light {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(42, 18, 53, 0.06);
}

.nav {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  width: clamp(205px, 23vw, 300px);
  align-items: center;
}

.brand img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.nav-links > a:not(.btn) {
  position: relative;
  color: #554c59;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-links > a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: var(--purple-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn).is-active {
  color: var(--purple-800);
}

.nav-links > a:not(.btn):hover::after,
.nav-links > a:not(.btn).is-active::after {
  transform: scaleX(1);
}

.btn-nav {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple-800);
  background: var(--white);
  font-size: 1.3rem;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 790px;
  padding: calc(var(--header-height) + 74px) 0 92px;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  top: 70px;
  right: -170px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(207, 175, 224, 0.4), rgba(207, 175, 224, 0));
}

.hero::after {
  bottom: -260px;
  left: -260px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(234, 220, 199, 0.48), rgba(234, 220, 199, 0));
}

.hero-grid {
  display: grid;
  min-height: 610px;
  align-items: center;
  gap: clamp(54px, 8vw, 108px);
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
}

.hero-copy {
  max-width: 680px;
}

.hero h1 span {
  display: block;
  color: var(--purple-700);
}

.hero-lead {
  max-width: 655px;
  margin-bottom: 34px;
  color: #5f5564;
  font-size: clamp(1.06rem, 1.8vw, 1.23rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5c5361;
  font-size: 0.9rem;
  font-weight: 600;
}

.check {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--purple-700);
  background: var(--purple-100);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.hero-media {
  position: relative;
  max-width: 480px;
  justify-self: end;
}

.hero-photo {
  position: relative;
  aspect-ratio: 0.82;
  padding: 10px;
  border: 1px solid rgba(116, 67, 137, 0.14);
  border-radius: 48% 48% 42% 42% / 38% 38% 52% 52%;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-photo::before {
  position: absolute;
  z-index: 1;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.floating-card {
  position: absolute;
  right: -42px;
  bottom: 34px;
  display: flex;
  width: min(330px, 86%);
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid rgba(88, 40, 109, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.floating-card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple-700), var(--purple-500));
  font-size: 1.2rem;
  box-shadow: 0 9px 20px rgba(100, 40, 128, 0.28);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  margin-bottom: 2px;
  color: var(--purple-950);
  font-size: 0.93rem;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. Franja de confianza
   -------------------------------------------------------------------------- */

.trust-strip {
  position: relative;
  z-index: 2;
  padding: 0 0 30px;
}

.trust-grid {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.trust-grid > div {
  position: relative;
  padding: 26px 30px;
  text-align: center;
}

.trust-grid > div + div::before {
  position: absolute;
  top: 24%;
  bottom: 24%;
  left: 0;
  width: 1px;
  content: "";
  background: var(--line);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 4px;
  color: var(--purple-900);
  font-size: 1rem;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   7. Servicios
   -------------------------------------------------------------------------- */

.services {
  background:
    linear-gradient(180deg, rgba(250, 247, 252, 0.35), rgba(250, 247, 252, 0.88)),
    var(--purple-50);
}

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-xs);
  isolation: isolate;
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card::after {
  position: absolute;
  z-index: -1;
  right: -58px;
  bottom: -76px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(207, 175, 224, 0.32), rgba(207, 175, 224, 0));
  transition: transform 450ms var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-7px);
}

.card:hover::after {
  transform: scale(1.25);
}

.card-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(121, 56, 154, 0.13);
  border-radius: 18px;
  color: var(--purple-700);
  background: linear-gradient(145deg, var(--white), var(--purple-100));
  font-size: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.card p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.card.featured {
  color: var(--white);
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(145deg, var(--purple-900), var(--purple-700));
  box-shadow: var(--shadow-md);
}

.card.featured h3,
.card.featured p {
  color: var(--white);
}

.card.featured p {
  opacity: 0.82;
}

.card.featured .card-icon {
  color: var(--purple-800);
  background: var(--white);
}

/* --------------------------------------------------------------------------
   8. Sobre la atención
   -------------------------------------------------------------------------- */

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

.about-grid {
  display: grid;
  align-items: center;
  gap: clamp(55px, 8vw, 108px);
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.about-image {
  position: relative;
  aspect-ratio: 0.84;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-image::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: calc(var(--radius-xl) - 10px);
  content: "";
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-xl) - 10px);
  object-fit: cover;
}

.about-copy > p {
  font-size: 1.03rem;
}

.principles {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--purple-50);
}

.principle b,
.principle small {
  display: block;
}

.principle b {
  margin-bottom: 2px;
  color: var(--purple-900);
  font-size: 0.92rem;
}

.principle small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. Motivos de consulta
   -------------------------------------------------------------------------- */

.common-reasons {
  background:
    radial-gradient(circle at 90% 10%, rgba(207, 175, 224, 0.2), transparent 22rem),
    #fbfafc;
}

.reason-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reason-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.reason-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.reason-card > span {
  display: block;
  margin-bottom: 24px;
  color: var(--purple-400);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.reason-card p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.scope-note {
  max-width: 850px;
  margin: 32px 0 0;
  padding: 17px 20px;
  border-left: 3px solid var(--purple-500);
  border-radius: 0 14px 14px 0;
  background: rgba(241, 233, 246, 0.7);
  color: var(--text);
  font-size: 0.91rem;
}

/* --------------------------------------------------------------------------
   10. Modalidades
   -------------------------------------------------------------------------- */

.modalities {
  padding-top: 102px;
  padding-bottom: 102px;
  background: var(--white);
}

.modality-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modality-item {
  padding: 32px;
  border-top: 3px solid var(--purple-500);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--purple-50);
  box-shadow: var(--shadow-xs);
}

.modality-item > span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple-700), var(--purple-500));
  box-shadow: 0 9px 20px rgba(100, 40, 128, 0.2);
}

.modality-item p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   11. Ubicación
   -------------------------------------------------------------------------- */

.location {
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(180, 130, 204, 0.26), transparent 35%),
    linear-gradient(130deg, var(--purple-950), var(--purple-800) 52%, var(--purple-700));
  overflow: hidden;
}

.location::before {
  position: absolute;
  right: -100px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.location-grid {
  display: grid;
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
}

.location h2,
.location p {
  color: var(--white);
}

.location-copy p {
  max-width: 610px;
  margin-bottom: 30px;
  opacity: 0.78;
  font-size: 1.05rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.address-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 70px rgba(19, 7, 25, 0.24);
  backdrop-filter: blur(18px);
}

.address-line {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}

.address-line + .address-line {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.address-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--purple-900);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.address-line strong,
.address-line span,
.address-line a {
  display: block;
}

.address-line strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.88rem;
}

.address-line span,
.address-line a {
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.86rem;
}

.address-line a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. Formulario de turnos
   -------------------------------------------------------------------------- */

.appointment {
  background:
    radial-gradient(circle at 5% 15%, rgba(234, 220, 199, 0.28), transparent 24rem),
    linear-gradient(180deg, #fbfafc, #f7f1fa);
}

.appointment-grid {
  display: grid;
  align-items: start;
  gap: clamp(48px, 7vw, 88px);
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
}

.appointment-info {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.appointment-info > p {
  font-size: 1.03rem;
}

.info-list {
  display: grid;
  gap: 18px;
  margin: 35px 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-item i {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple-700), var(--purple-500));
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(100, 40, 128, 0.18);
}

.info-item b,
.info-item span {
  display: block;
}

.info-item b {
  margin-bottom: 3px;
  color: var(--purple-900);
  font-size: 0.93rem;
}

.info-item span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.privacy-card {
  padding: 20px;
  border: 1px solid rgba(189, 151, 95, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.88);
}

.privacy-card strong {
  display: block;
  margin-bottom: 6px;
  color: #6c4c21;
}

.privacy-card p {
  margin: 0;
  color: #756243;
  font-size: 0.84rem;
}

.form-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(90, 42, 109, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.form-intro {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-intro span {
  display: block;
  margin-bottom: 4px;
  color: var(--purple-900);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.form-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-grid {
  display: grid;
  gap: 19px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  min-width: 0;
}

.field.full,
.guardian.full {
  grid-column: 1 / -1;
}

.field label,
.guardian legend {
  display: block;
  margin-bottom: 8px;
  color: #433849;
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(84, 49, 100, 0.16);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.field input,
.field select {
  height: 52px;
  padding: 0 15px;
}

.field textarea {
  min-height: 122px;
  padding: 14px 15px;
  line-height: 1.55;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa2ae;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(121, 56, 154, 0.28);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple-500);
  outline: 0;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(121, 56, 154, 0.1);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.guardian {
  margin: 2px 0 0;
  padding: 22px;
  border: 1px dashed rgba(121, 56, 154, 0.25);
  border-radius: var(--radius-md);
  background: var(--purple-50);
}

.guardian legend {
  padding: 0 8px;
  color: var(--purple-800);
}

.guardian-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[hidden] {
  display: none !important;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: #faf8fb;
}

.checkbox input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 3px 0 0;
  accent-color: var(--purple-700);
}

.checkbox label {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 24px;
}

.btn-submit {
  width: 100%;
  min-height: 58px;
  font-size: 0.98rem;
}

.btn-submit img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.form-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.status {
  display: none;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 600;
}

.status.is-visible {
  display: block;
}

.status.is-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.status.is-success {
  color: var(--success);
  background: var(--success-soft);
}

/* --------------------------------------------------------------------------
   13. Preguntas frecuentes
   -------------------------------------------------------------------------- */

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

.faq-list {
  max-width: 900px;
  margin-inline: auto;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 54px 24px 0;
  color: var(--purple-900);
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple-700);
  content: "+";
  background: var(--purple-50);
  font-size: 1.25rem;
  transform: translateY(-50%);
  transition:
    transform var(--transition),
    background var(--transition);
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--purple-100);
  transform: translateY(-50%) rotate(180deg);
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 0 24px;
  padding-right: 50px;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   14. CTA final
   -------------------------------------------------------------------------- */

.final-cta {
  padding: 0 0 104px;
  background: var(--white);
}

.final-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, var(--purple-900), var(--purple-700));
  box-shadow: var(--shadow-lg);
}

.final-cta-card h2,
.final-cta-card p {
  color: var(--white);
}

.final-cta-card h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.final-cta-card p {
  max-width: 650px;
  margin: 0;
  opacity: 0.78;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 70px 0 24px;
  border-top: 1px solid var(--line);
  background: #fbfafc;
}

.footer-grid {
  display: grid;
  align-items: start;
  gap: 46px;
  padding-bottom: 44px;
  grid-template-columns: 1.1fr 0.8fr 1fr;
}

.footer-brand img {
  width: min(300px, 100%);
  max-height: 90px;
  object-fit: contain;
  object-position: left center;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  width: fit-content;
  color: var(--text);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--purple-700);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   16. WhatsApp flotante
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  z-index: 900;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(28, 20, 31, 0.24);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.wa-float::before {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(38, 133, 90, 0.22);
  border-radius: inherit;
  content: "";
  animation: waPulse 2.8s ease-out infinite;
}

.wa-float:hover {
  box-shadow: 0 20px 45px rgba(28, 20, 31, 0.3);
  transform: translateY(-4px) scale(1.03);
}

.wa-float img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

@keyframes waPulse {
  0% {
    opacity: 0.6;
    transform: scale(0.82);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

/* --------------------------------------------------------------------------
   17. Animaciones de aparición
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease);
}

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

.cards .reveal:nth-child(2),
.reason-grid .reveal:nth-child(2),
.modality-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.cards .reveal:nth-child(3),
.reason-grid .reveal:nth-child(3),
.modality-grid .reveal:nth-child(3) {
  transition-delay: 150ms;
}

.cards .reveal:nth-child(4),
.reason-grid .reveal:nth-child(4) {
  transition-delay: 70ms;
}

.cards .reveal:nth-child(5),
.reason-grid .reveal:nth-child(5) {
  transition-delay: 130ms;
}

.cards .reveal:nth-child(6),
.reason-grid .reveal:nth-child(6) {
  transition-delay: 190ms;
}

/* --------------------------------------------------------------------------
   18. Mensaje sin JavaScript
   -------------------------------------------------------------------------- */

.noscript-message {
  position: fixed;
  z-index: 9999;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px 18px;
  border: 1px solid #e0b8be;
  border-radius: 14px;
  color: #7e2835;
  background: #fff1f3;
  box-shadow: var(--shadow-md);
  font-size: 0.86rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root {
    --header-height: 76px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links > a:not(.btn) {
    font-size: 0.85rem;
  }

  .hero-grid {
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
  }

  .floating-card {
    right: -18px;
  }

  .appointment-grid {
    gap: 50px;
    grid-template-columns: 0.82fr 1.18fr;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 92px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    z-index: 1001;
    top: calc(var(--header-height) + 10px);
    right: 20px;
    left: 20px;
    display: grid;
    max-height: calc(100vh - var(--header-height) - 30px);
    align-items: stretch;
    gap: 2px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-14px) scale(0.98);
    transform-origin: top;
    transition:
      opacity var(--transition),
      transform var(--transition);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links > a:not(.btn) {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .nav-links > a:not(.btn):hover {
    background: var(--purple-50);
  }

  .nav-links > a:not(.btn)::after {
    display: none;
  }

  .btn-nav {
    width: 100%;
    margin-top: 6px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 62px);
  }

  .hero-grid,
  .about-grid,
  .location-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 62px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    width: min(100%, 520px);
    justify-self: center;
  }

  .floating-card {
    right: 14px;
  }

  .about-grid {
    gap: 54px;
  }

  .about-image {
    width: min(100%, 570px);
    justify-self: center;
  }

  .location-grid {
    gap: 46px;
  }

  .appointment-info {
    position: static;
  }

  .appointment-info > p {
    max-width: 680px;
  }

  .cards,
  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

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

  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .brand {
    width: min(235px, calc(100vw - 94px));
  }

  .hero {
    min-height: 0;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-notes {
    display: grid;
    gap: 9px;
  }

  .hero-photo {
    border-radius: 40px;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 22px);
    margin: -38px auto 0;
  }

  .trust-grid,
  .cards,
  .reason-grid,
  .modality-grid,
  .principles,
  .form-grid,
  .guardian-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    padding: 21px 20px;
  }

  .trust-grid > div + div::before {
    top: 0;
    right: 20%;
    bottom: auto;
    left: 20%;
    width: auto;
    height: 1px;
  }

  .card {
    min-height: 0;
  }

  .location-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .address-card {
    padding: 23px;
  }

  .form-card {
    border-radius: 28px;
  }

  .field.full,
  .guardian.full {
    grid-column: auto;
  }

  .final-cta {
    padding-bottom: 78px;
  }

  .final-cta-card {
    align-items: stretch;
    flex-direction: column;
  }

  .final-cta-card .btn {
    width: 100%;
  }

  .footer-grid,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 12px;
  }

  .wa-float {
    width: 56px;
    height: 56px;
  }

  .wa-float img {
    width: 42px;
    height: 42px;
  }
}

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

  .site-header {
    min-height: 70px;
  }

  .nav {
    min-height: 70px;
  }

  .brand {
    width: min(215px, calc(100vw - 85px));
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-links {
    top: 80px;
    right: 11px;
    left: 11px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .btn {
    min-height: 50px;
    padding-inline: 18px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head p {
    font-size: 0.98rem;
  }

  .card,
  .reason-card,
  .modality-item {
    padding: 24px;
  }

  .about-image {
    border-radius: 30px;
  }

  .about-image img,
  .about-image::after {
    border-radius: 22px;
  }

  .address-card {
    padding: 19px;
  }

  .address-line {
    gap: 12px;
  }

  .form-card {
    padding: 23px 18px;
    border-radius: 24px;
  }

  .guardian {
    padding: 17px;
  }

  .checkbox {
    padding: 15px;
  }

  .btn-submit {
    min-height: 60px;
    padding-inline: 14px;
    font-size: 0.9rem;
  }

  .faq-list summary {
    padding-right: 46px;
  }

  .faq-list details p {
    padding-right: 10px;
  }

  .final-cta-card {
    padding: 30px 24px;
    border-radius: 28px;
  }

  .footer-brand img {
    width: 260px;
  }
}

/* --------------------------------------------------------------------------
   20. Preferencias de accesibilidad
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(47, 18, 63, 0.28);
    --text: #3f3743;
    --muted: #5f5763;
  }

  .btn-primary {
    background: var(--purple-800);
  }
}

@media print {
  .site-header,
  .hero-actions,
  .wa-float,
  .final-cta,
  .form-card,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero,
  .section {
    padding: 30px 0;
  }

  .hero-grid,
  .about-grid,
  .location-grid {
    display: block;
  }

  .hero-photo,
  .floating-card,
  .about-image {
    box-shadow: none;
  }
}
