/* Fuentes locales. No se redistribuyen archivos de tipografía. */
@font-face {
  font-family: "El Chino Bodoni";
  src: local("Bodoni MT"), local("BodoniMT");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "El Chino Google Sans";
  src: local("Google Sans"), local("GoogleSans-Regular");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "El Chino Bernard";
  src: local("Bernard MT Condensed"), local("BernardMT-Condensed"), local("BernardMTCondensed");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brand-red: #b8181d;
  --brand-red-dark: #8b0203;
  --brand-cream: #fffcdf;
  --surface-light: #fffef7;
  --text-dark: #231f20;
  --text-muted: #7a5d2d;
  --control-radius: 28px;
  --font-display: "El Chino Bernard", "Bernard MT Condensed", Impact, serif;
  --font-heading: "El Chino Bodoni", "Bodoni MT", "Didot", "Times New Roman", serif;
  --font-body: "El Chino Google Sans", "Google Sans", "Segoe UI", Arial, sans-serif;
}

/* Base y fondo decorativo. */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  min-height: 100%;
  background: var(--brand-red);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--brand-cream);
  background: var(--brand-red);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.backdrop-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Nombre accesible de la página sin añadir un título visible. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Adaptación web del material de cristal: fondo visible y desenfocado,
bordes especulares, luces internas y profundidad. El texto queda nítido. */
.glass-link, .glass-frame {
  --pointer-x: 28%;
  --pointer-y: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgb(255 252 223 / .32);
  border-radius: var(--control-radius);
  box-shadow: 0 8px 18px rgb(91 0 5 / .12), inset 0 1px 1px rgb(255 252 223 / .45), inset 0 -2px 3px rgb(255 252 223 / .16), inset 2px 0 4px rgb(255 252 223 / .08);
}

.glass-link {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 15px 24px;
  color: var(--brand-cream);
  background: linear-gradient(165deg, rgb(255 252 223 / .045), rgb(139 2 3 / .035) 47%, rgb(255 252 223 / .02));
  -webkit-backdrop-filter: blur(5px) saturate(1.04);
  backdrop-filter: blur(5px) saturate(1.04);
  font: 400 16px/1.3 var(--font-body);
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
  touch-action: manipulation;
}

.glass-link::before, .glass-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 145% at var(--pointer-x) var(--pointer-y), rgb(255 252 223 / .07), transparent 73%);
}

.glass-link::after, .glass-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgb(255 252 223 / .72), rgb(255 252 223 / .03) 40%, rgb(255 252 223 / .07) 61%, rgb(255 252 223 / .5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.link-icon, .link-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-icon {
  justify-self: start;
}

.whatsapp-mark {
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("../images/whatsapp-logo.png") center / contain no-repeat;
  mask: url("../images/whatsapp-logo.png") center / contain no-repeat;
}

.social-icon .whatsapp-mark {
  width: 32px;
  height: 32px;
}

.solid-dot {
  fill: currentColor;
  stroke: none;
}

.link-arrow {
  width: 16px;
  height: 16px;
  justify-self: end;
  opacity: .7;
}

.link-label {
  min-width: 0;
}

.glass-link:focus-visible, .social-icon:focus-visible, .dialog-close:focus-visible {
  outline: 3px solid var(--brand-cream);
  outline-offset: 5px;
}

.glass-link:active {
  transform: scale(.985);
}

@media (hover: hover) and (pointer: fine) {
  .glass-link:hover {
    transform: translateY(-2px);
    background-color: rgb(255 252 223 / .035);
    box-shadow: 0 12px 24px rgb(91 0 5 / .16), inset 0 1px 1px rgb(255 252 223 / .6), inset 0 -2px 4px rgb(255 252 223 / .22);
  }
}
