/* ============================================================
   Página de agradecimiento — "Nos casamos"
   Se carga después de styles.css y reutiliza sus tokens
   y sus utilidades (.container, .section-title, .fade-up…)
   ============================================================ */

/* --- Cabecera mínima: sólo el logo --- */
.gr-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 28px 0;
  opacity: 0;
  animation: heroFadeIn 1.2s ease forwards 1.8s;
}

.gr-header__logo img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* --- Hero --- */
.gr-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark);
}

.gr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/atardecer-costa.jpg');
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
  animation: kenBurnsHero 25s ease-out forwards;
}

.gr-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(13, 8, 8, 0.50) 0%, rgba(30, 15, 26, 0.42) 40%, rgba(13, 8, 8, 0.68) 100%),
    linear-gradient(to bottom, rgba(10, 5, 10, 0.28) 0%, rgba(10, 5, 10, 0.46) 55%, rgba(10, 5, 10, 0.78) 100%);
}

.gr-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
  width: 100%;
}

.gr-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--champagne);
  display: block;
  margin-bottom: 26px;
  opacity: 0;
  animation: heroFadeUp 1s ease forwards 0.3s;
}

.gr-hero__names {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 44px);
  font-style: italic;
  color: var(--champagne);
  margin-bottom: 10px;
  opacity: 0;
  animation: heroFadeUp 1s ease forwards 0.55s;
}

.gr-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(50px, 9vw, 112px);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 30px;
  opacity: 0;
  animation: heroFadeUp 1.1s ease forwards 0.9s;
}

.gr-hero__rule {
  width: 0;
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, rgba(232, 213, 176, 0.85), transparent);
  animation: grRule 1.4s var(--ease) forwards 1.25s;
}

.gr-hero__meta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  display: block;
  margin-bottom: 18px;
  opacity: 0;
  animation: heroFadeUp 1s ease forwards 1.5s;
}

.gr-hero__thanks {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: heroFadeUp 1s ease forwards 1.75s;
}

.gr-hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: heroFadeIn 1s ease forwards 2.4s;
}

.gr-hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.55));
  animation: grScrollPulse 2.6s var(--ease) infinite;
}

.gr-hero__scroll-text {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

@keyframes grRule {
  to { width: min(320px, 70%); }
}

@keyframes grScrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.75); transform-origin: top; }
  50%      { opacity: 1;    transform: scaleY(1);    transform-origin: top; }
}

/* --- Franja de cifras --- */
.gr-facts {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.gr-facts__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.gr-fact {
  padding: 0 clamp(24px, 5vw, 60px);
  position: relative;
  text-align: center;
}

.gr-fact:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  width: 1px;
  background: var(--border);
}

.gr-fact__number {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1;
  color: var(--dark);
  display: block;
}

.gr-fact__label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-top: 12px;
  display: block;
}

/* --- Gracias en grande --- */
.gr-thanks {
  padding: clamp(90px, 15vw, 170px) 0;
  background: var(--white);
  text-align: center;
}

.gr-thanks__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 12px;
}

.gr-thanks__title em {
  font-style: italic;
  color: var(--gold);
}

.gr-thanks__sign {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--grey);
  margin-top: 34px;
}

.gr-thanks__sign .amp {
  color: var(--grey-light);
}

/* --- Footer mínimo --- */
.gr-footer {
  background: var(--dark);
  padding: 34px 0;
  text-align: center;
}

.gr-footer__date {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .gr-header { padding: 20px 0; }
  .gr-header__logo img { height: 42px; }
}

@media (max-width: 480px) {
  .gr-facts { padding: 40px 0; }
  .gr-fact  { padding: 0 16px; }

  .gr-hero__eyebrow { letter-spacing: 0.28em; }
  .gr-hero__meta    { letter-spacing: 0.14em; font-size: 11px; }
  .gr-footer__date  { letter-spacing: 0.18em; }
}

@media (prefers-reduced-motion: reduce) {
  .gr-hero::before,
  .gr-hero__scroll-line {
    animation: none;
  }
}
