/* Navegación y movimiento */
.topbar {
  background: color-mix(in srgb, #372256 88%, transparent);
  backdrop-filter: blur(17px) saturate(140%);
}
.nav-links .nav-book {
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 6px;
  white-space: nowrap;
}
.nav-book[aria-current="page"] { color: var(--lime); border-color: var(--lime); }
.footer-book { text-decoration: underline; text-underline-offset: 4px; }
.footer-book:hover { color: var(--lime); }
.motion-glide {
  transition: opacity .62s ease, transform .62s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--glide-delay, 0ms);
}
.motion-glide.glide-ready:not(.glide-visible) {
  opacity: 0;
  transform: translate3d(var(--glide-x, 0), 18px, 0);
}
.location-card:hover, .service-card:hover, .blog-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(55,34,86,.11);
}
@media (min-width: 851px) and (max-width: 1060px) {
  .nav-links { gap: 12px; }
  .nav-links .nav-book { padding: 8px 9px; }
}
@media (max-width: 850px) {
  .nav-book { margin: 2px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-glide, .promo-inner, .location-card, .service-card, .blog-list-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Iluminación de botones y bordes */
:where(.led-edge) { position: relative; }

.led-edge {
  --led-opacity: 0;
  --led-radius: 138px;
  --led-rim: #a68ad0;
  --led-halo: rgba(143, 95, 205, .30);
  --led-highlight: #bcd226;
}
.led-edge:where(.btn, .menu-toggle, .nav-book, .floating-wa, .promo-dismiss, .uni, .hero-art) {
  --led-rim: #c5dc41;
  --led-halo: rgba(211, 237, 74, .43);
  --led-highlight: #f3ffb7;
}
.led-edge:where(a.btn, button, .nav-book, .floating-wa) { --led-radius: 78px; }

.led-edge::before, .led-edge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--led-opacity);
  transition: opacity .24s ease-out;
}
.led-edge::before {
  border: 1px solid var(--led-rim);
  box-shadow: 0 0 5px var(--led-halo), 0 0 18px var(--led-halo);
}
@supports (mask-composite: exclude) {
  .led-edge::after {
    padding: 2px;
    background: radial-gradient(
      circle var(--led-radius) at var(--led-x, 50%) var(--led-y, 0%),
      var(--led-highlight), transparent 100%
    );
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}
.led-edge:is(:focus-visible, :has(:focus-visible)):not(:disabled, [aria-disabled="true"]) {
  --led-opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .led-edge:hover:not(:disabled, [aria-disabled="true"]) { --led-opacity: 1; }
}
@media (hover: none) {
  .led-edge:where(a, button):active:not(:disabled, [aria-disabled="true"]) { --led-opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .led-edge::before, .led-edge::after { transition: none; }
}
@media (forced-colors: active) {
  .led-edge::before, .led-edge::after { content: none; }
}

/* Trayectoria y red de especialistas */
.trajectory-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  margin-top: clamp(20px, 3vw, 35px);
}
.trajectory-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: clamp(13px, 2vw, 23px);
  border: 1px solid #ddd4e7;
  border-radius: 13px;
  background: linear-gradient(145deg, #fcfbfd, #f3eef7);
  color: var(--purple);
}
.trajectory-metric:nth-child(2) {
  border-color: #dbe5a2;
  background: linear-gradient(145deg, #fcfdf6, #f2f5dd);
}
.trajectory-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9e0f2;
}
.trajectory-metric:nth-child(2) .trajectory-icon { background: #e5edb2; }
.trajectory-icon svg { width: 22px; height: 22px; }
.trajectory-copy { display: grid; gap: 4px; font-size: 13px; line-height: 1.4; }
.trajectory-value {
  font-size: clamp(35px, 4.12vw, 57px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  line-height: 1;
}
.trajectory-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.map-top { gap: 10px 16px; flex-wrap: wrap; }
.map-specialists { color: #fff; font-size: clamp(15px, 1.72vw, 18px); letter-spacing: 0; line-height: 1.45; }
.map-specialists strong { color: var(--lime); font-weight: 700; }
.peru-badge { white-space: nowrap; }
@media (max-width: 540px) {
  .trajectory-metric { grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
}

/* Campaña de Black Friday */
.promo-dialog {
  width: min(590px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 22px;
  box-shadow: 0 28px 95px rgba(17,11,29,.5);
  overflow: auto;
}
body:has(.promo-dialog[open]) { overflow: hidden; }
.promo-dialog::backdrop { background: rgba(22,15,38,.7); backdrop-filter: blur(10px); }
.promo-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(27px, 6vw, 47px);
  background:
    radial-gradient(ellipse at 86% 6%, rgba(194,209,27,.24), transparent 43%),
    radial-gradient(ellipse at 7% 78%, rgba(141,104,187,.39), transparent 48%),
    linear-gradient(135deg, #211631, #372256 54%, #35254d);
  animation: offer-in .52s cubic-bezier(.19,.82,.25,1) both;
}
@keyframes offer-in {
  from { opacity: 0; transform: translateY(15px) scale(.982); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.promo-dismiss {
  position: absolute;
  top: 12px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.11);
  color: white;
  font-family: inherit;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}
.promo-label { margin: 0; color: #e4dceb; font-size: 12px; font-weight: 650; letter-spacing: .22em; }
.promo-inner h2 { margin: 0; font-size: clamp(37px, 8.12vw, 62px); line-height: 1.06; letter-spacing: -.052em; font-weight: 700; }
.promo-price {
  display: grid;
  justify-items: center;
  width: min(350px, 100%);
  padding: 12px 12px 16px;
  margin: 9px 0 3px;
  border: 1px solid rgba(239,235,252,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.073);
  box-shadow: inset 0 1px rgba(255,255,255,.13);
  backdrop-filter: blur(13px);
}
.promo-price strong { color: #d0e336; font-size: clamp(85px, 19vw, 132px); line-height: .98; letter-spacing: -.09em; }
.promo-price strong span { margin-left: .06em; font-size: .59em; letter-spacing: -.05em; }
.promo-price > span { margin-top: 7px; font-size: 13px; font-weight: 700; letter-spacing: .2em; }
#promo-caption { font-size: 18px; }
.promo-date { font-size: 16px; color: #f0e5fb; }
.promo-date strong { color: #d4e34a; }
.promo-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 11px 18px; margin-top: 11px; }
.promo-actions .btn { min-height: 48px; padding: 13px 19px; border-radius: 8px; }
.promo-enter { padding: 14px 4px; border: 0; background: transparent; color: white; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* Direcciones */
.location-area {
  padding: 54px 0 67px;
  background: radial-gradient(ellipse at 85% 0%, #efe8f5, transparent 75%), #faf9fc;
  color: var(--purple);
}
.location-area h2 { margin: 13px 0 24px; font-size: 33px; }
.location-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.location-card {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(55,34,86,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(14px);
  transition: transform .43s ease, opacity .43s ease, box-shadow .25s ease;
}
.site-pin {
  display: grid;
  place-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50% 50% 48% 4px;
  background: #e6edac;
  transform: rotate(-45deg);
}
.site-pin::after { content: ""; width: 9px; height: 9px; border: 2px solid var(--purple); border-radius: 50%; }
.location-card h3 { font-size: 18px; }
.location-card address { margin-top: 5px; font-size: 15px; line-height: 1.6; font-style: normal; color: #60576b; }
.location-card a { grid-column: 2; width: max-content; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1040px) {
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Libro de Reclamaciones */
.claim-area { padding: 55px 0 76px; color: #372256; background: linear-gradient(#f4f0f8 0%, #fefcfe 550px); }
.claim-wrap { max-width: 960px; }
.claim-heading { margin-bottom: 22px; }
.claim-heading h1 { margin: 12px 0 10px; font-size: clamp(35px, 5.12vw, 52px); line-height: 1.11; letter-spacing: -.043em; }
.claim-heading > p:last-child { max-width: 680px; font-size: 17px; color: #5e526c; }
.claim-provider {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px 28px;
  padding: 18px 22px;
  border: 1px solid #ded5e8;
  border-radius: 13px;
  background: rgba(255,255,255,.8);
}
.claim-provider > div { display: grid; gap: 4px; }
.claim-provider span { color: #5c506a; font-size: 13px; }
.claim-provider strong { font-size: 16px; }
.claim-info { margin: 16px 0 20px; font-size: 15px; color: #5e526c; }
.claim-demo-note { background: #eee7f4; padding: 9px 13px; border-radius: 6px; font-size: 13px; margin-bottom: 17px; }
#claim-form { display: grid; gap: 19px; }
.claim-section {
  margin: 0;
  min-width: 0;
  padding: 19px 23px 23px;
  border: 1px solid #e1d9eb;
  border-radius: 13px;
  background: white;
  box-shadow: 0 6px 24px rgba(55,34,86,.048);
}
.claim-section legend { padding: 0 8px; font-size: 18px; font-weight: 650; }
.claim-section legend span { color: #6e5890; font-size: 13px; padding-right: 5px; }
.claim-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.claim-fields .claim-wide { grid-column: 1/-1; }
.claim-fields label { display: grid; align-content: start; gap: 6px; font-size: 15px; font-weight: 600; }
.claim-fields input, .claim-fields select, .claim-fields textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  line-height: 1.35;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  color: #30203f;
  background: #faf8fc;
  border: 1px solid #d5cbe1;
  border-radius: 7px;
}
.claim-fields textarea { resize: vertical; }
.claim-fields :is(input,select,textarea):focus { outline: 2px solid #9275b1; outline-offset: 2px; }
.claim-optional { font-size: 12px; font-weight: 400; color: #645970; }
.claim-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 17px; font-size: 15px; line-height: 1.55; }
.claim-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #533675; }
.claim-representative { margin-top: 16px; border-top: 1px solid #e8e0ed; padding-top: 17px; }
.claim-hint, .claim-submit p { color: #665b73; font-size: 13px; }
.claim-submit { display: grid; justify-items: start; gap: 12px; }
.claim-submit .btn, .claim-receipt-actions .btn { min-height: 43px; padding: 10px 14px; border-radius: 7px; }
.claim-submit button:disabled { opacity: .56; cursor: wait; }
.claim-submit .claim-error { color: #8d2444; }
.claim-receipt { border-radius: 13px; border: 1px solid #ded5e7; background: white; padding: 22px; }
.claim-receipt h2 { margin: 9px 0 10px; font-size: 29px; }
.claim-receipt p { font-size: 15px; }
#claim-receipt-text { font-family: inherit; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; background: #f8f5fa; padding: 16px; border-radius: 8px; }
.claim-receipt-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.claim-receipt-actions .btn:not(.primary) { border: 1px solid #cabbd9; color: #372256; background: white; }
.claim-print-sheet { display: none; }
@media (max-width: 700px) {
  .location-grid, .claim-fields { grid-template-columns: minmax(0,1fr); }
  .claim-area { padding: 37px 0 50px; }
  .claim-section { padding: 17px 15px; }
  .promo-date { font-size: 15px; }
}
@media print {
  body.claim-printing > :not(.claim-print-sheet) { display: none !important; }
  body.claim-printing .claim-print-sheet {
    display: block;
    color: #000;
    font: 12pt/1.42 Arial, sans-serif;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
