:root {
  --blanco: #fffdf8;
  --dorado: #c5a46d;
  --oscuro: #161713;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --firma: "Great Vibes", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--blanco); background: var(--oscuro); font-family: var(--sans); }
a { color: inherit; }

.portada { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.portada-fondo { position: fixed; inset: 0; z-index: -3; background: url("assets/hero-eventos-dpatty.jpg") center/cover no-repeat; transform: scale(1.02); }
.portada-velo { position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(8,9,7,.76) 0%, rgba(8,9,7,.38) 42%, rgba(8,9,7,.8) 100%), radial-gradient(circle at center, transparent 10%, rgba(0,0,0,.38) 100%); }

.encabezado { position: absolute; z-index: 4; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 26px clamp(22px,5vw,78px); }
.marca-mini { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; font: 400 18px/1 var(--serif); text-decoration: none; }
.encabezado nav { display: flex; gap: clamp(18px,3vw,42px); }
.encabezado nav a { position: relative; padding: 7px 0; font-size: 10px; font-weight: 500; letter-spacing: .24em; text-decoration: none; text-transform: uppercase; }
.encabezado nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--dorado); transition: right .25s ease; }
.encabezado nav a:hover::after, .encabezado nav a:focus-visible::after { right: 0; }

.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 92px 24px 32px; }
.identidad { width: min(720px,92vw); text-align: center; text-shadow: 0 3px 24px rgba(0,0,0,.75); animation: aparecer .9s ease both; }
.firma { margin: 0 0 -6px; font-family: var(--firma); font-size: clamp(64px,9vw,126px); font-weight: 400; line-height: .9; }
.oficio { margin: 14px 0 12px; font-size: clamp(12px,1.4vw,17px); font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }
.linea { display: block; width: 54px; height: 1px; margin: 20px auto; background: var(--dorado); }
.lema { margin: 0; font: italic 400 clamp(17px,2vw,25px)/1.3 var(--serif); letter-spacing: .08em; }

.accesos { width: min(920px,88vw); display: grid; grid-template-columns: repeat(2,1fr); margin-top: clamp(34px,6vh,66px); box-shadow: 0 24px 70px rgba(0,0,0,.28); animation: subir .9s .18s ease both; }
.acceso { position: relative; min-height: clamp(190px,29vh,290px); display: grid; place-items: center; overflow: hidden; text-align: center; text-decoration: none; }
.acceso-fondo { position: absolute; inset: 0; filter: brightness(.48) saturate(.72); transition: transform .7s ease, filter .7s ease; }
.acceso-bodas .acceso-fondo { background: url("assets/bodas.jpg") center 48%/cover no-repeat; }
.acceso-quince .acceso-fondo { background: url("assets/quince-anos.jpg") 32% 42%/cover no-repeat; }
.acceso::after { content: ""; position: absolute; inset: 12px; border: 1px solid transparent; transition: border-color .35s ease; }
.acceso:hover .acceso-fondo { transform: scale(1.06); filter: brightness(.6) saturate(.85); }
.acceso-quince:hover .acceso-fondo { transform: scale(1.06); }
.acceso:hover::after { border-color: rgba(255,255,255,.5); }
.acceso-contenido { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.acceso strong { font: italic 400 clamp(48px,6vw,76px)/1 var(--serif); }
.acceso small { margin-top: 14px; font-size: 10px; letter-spacing: .42em; text-transform: uppercase; }
.acceso em { margin-top: 22px; padding-bottom: 5px; border-bottom: 1px solid var(--dorado); font: normal 500 9px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.acceso:hover em { opacity: 1; transform: none; }

.contacto { display: flex; align-items: center; gap: 18px; margin-top: 26px; font-size: 10px; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; animation: aparecer .9s .35s ease both; }
.contacto strong { padding: 11px 16px; border: 1px solid rgba(255,255,255,.5); font-weight: 500; transition: background .25s ease,color .25s ease; }
.contacto:hover strong { color: var(--oscuro); background: var(--blanco); }

@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .encabezado { padding: 18px; }
  .encabezado nav { gap: 15px; }
  .encabezado nav a { font-size: 8px; letter-spacing: .15em; }
  .hero { justify-content: flex-start; padding: 116px 16px 24px; }
  .firma { font-size: clamp(58px,20vw,82px); }
  .oficio { font-size: 10px; letter-spacing: .18em; }
  .lema { max-width: 320px; margin-inline: auto; }
  .accesos { width: min(100%,430px); grid-template-columns: 1fr; margin-top: 34px; }
  .acceso { min-height: 190px; }
  .acceso strong { font-size: 52px; }
  .acceso em { display: none; }
  .contacto { flex-direction: column; gap: 10px; margin-top: 22px; text-align: center; }
}

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