/* ==========================================================================
   Grupo Luxentis — hoja de estilos
   ========================================================================== */

/* Tipografías autoalojadas (sin peticiones a Google: más rápido y sin
   problemas de RGPD). Licencia SIL Open Font License. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070707;
  --gold: #c9a14f;
  --gold-light: #f3dfa2;
  --ivory: #ece3cf;
  --muted: rgba(236, 227, 207, 0.55);
  --hairline: rgba(201, 161, 79, 0.14);
  --gold-gradient: linear-gradient(
    110deg,
    #8a6428 0%,
    #c99a45 18%,
    #f3dfa2 32%,
    #d6ae5c 46%,
    #a87c34 60%,
    #e6c77c 76%,
    #f6e6b4 86%,
    #a87c34 100%
  );
  --serif: "Cormorant Garamond", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --inset: clamp(12px, 2.4vw, 28px); /* distancia del marco al borde */
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(201, 161, 79, 0.11), transparent 70%),
    radial-gradient(ellipse 110% 70% at 50% 115%, rgba(201, 161, 79, 0.07), transparent 60%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grano fotográfico muy sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Marco perimetral con esquinas en «L»
   -------------------------------------------------------------------------- */
.frame {
  position: fixed;
  inset: var(--inset);
  z-index: 1;
  pointer-events: none;
  border: 1px solid var(--hairline);
  animation: fade 2s ease 0.2s both;
}

.frame i {
  position: absolute;
  width: clamp(26px, 4.5vw, 54px);
  aspect-ratio: 1;
  border: 0 solid rgba(201, 161, 79, 0.65);
}
.frame i:nth-child(1) { top: -1px;    left: -1px;  border-top-width: 1px;    border-left-width: 1px; }
.frame i:nth-child(2) { top: -1px;    right: -1px; border-top-width: 1px;    border-right-width: 1px; }
.frame i:nth-child(3) { bottom: -1px; left: -1px;  border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

/* --------------------------------------------------------------------------
   Bloque central
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3.5rem, 8vh, 5rem) 1.5rem;
}

/* Logotipo */
.mark {
  display: block;
  width: clamp(96px, 16vw, 140px);
  height: auto;
  margin-bottom: clamp(1.75rem, 4.5vh, 2.75rem);
  overflow: visible;
}

.mark__outer,
.mark__inner {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.mark__outer { animation: draw 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both; }
.mark__inner { animation: draw 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.35s both; }
.mark__gem   { animation: fade 0.8s ease 1.5s both; }
.mark__l     { animation: rise 1.2s var(--ease) 0.7s both; }
.mark__sweep { animation: sweep 8s ease-in-out 2.4s infinite; }

/* Nombre */
.name {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: normal;
}

.name__pre {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.75em;
  padding-left: 0.75em; /* compensa el espaciado final para centrar */
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(0.6rem, 1.5vh, 1rem);
  animation: rise 1s var(--ease) 1s both;
}

.name__main {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 10vw, 6.75rem);
  line-height: 1;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background-image: var(--gold-gradient);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    rise 1.2s var(--ease) 1.1s both,
    shimmer 12s ease-in-out 2.5s infinite alternate;
}

/* Separador */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(1.75rem, 4.5vh, 2.75rem) 0;
  animation: fade 1.2s ease 1.4s both;
}
.divider span {
  width: clamp(44px, 8vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider span:last-child {
  background: linear-gradient(270deg, transparent, var(--gold));
}
.divider i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Email */
.email {
  position: relative;
  display: inline-block;
  padding: 0.5em 0 0.6em 0.14em;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  letter-spacing: 0.14em;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.4s ease;
  animation: rise 1s var(--ease) 1.6s both;
}
.email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.3);
  opacity: 0.6;
  transition: transform 0.6s var(--ease), opacity 0.6s ease;
}
.email:hover,
.email:focus-visible {
  color: var(--gold-light);
}
.email:hover::after,
.email:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}
.email:focus-visible {
  outline: 1px solid rgba(201, 161, 79, 0.45);
  outline-offset: 10px;
}

/* --------------------------------------------------------------------------
   Datos legales (LSSI) — pie discreto dentro del marco
   -------------------------------------------------------------------------- */
.legal {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem calc(var(--inset) + clamp(1rem, 2.5vh, 1.6rem));
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.9;
  letter-spacing: 0.12em;
  color: var(--muted);
  animation: fade 1.2s ease 2s both;
}
.legal p {
  margin: 0;
}
.legal span {
  white-space: nowrap;
}
.legal span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 1.1em;
  vertical-align: middle;
  background: var(--gold);
  opacity: 0.7;
  transform: rotate(45deg);
}

/* En móvil, una línea por dato y sin separadores */
@media (max-width: 640px) {
  .legal span {
    display: block;
  }
  .legal span + span::before {
    content: none;
  }
}

/* Texto secundario (página 404) */
.note {
  margin: 0 0 1.25rem;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  letter-spacing: 0.08em;
  color: var(--muted);
  animation: rise 1s var(--ease) 1.4s both;
}

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes shimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
@keyframes sweep {
  0%        { transform: translateX(0); }
  30%, 100% { transform: translateX(300px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
