/* ========================================
   VARIABLES
   ======================================== */
:root {
  --color-primary: #862633;
  --color-primary-dark: #6b1e29;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #FAFAF8;

  --font-sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --container-max: 1100px;
  --container-narrow: 700px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

/* ========================================
   SNAP SCROLL — FULL HEIGHT SECTIONS
   ======================================== */
.snap-section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 80px 0;
  width: 100%;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}

.section-title-light {
  color: var(--color-white);
}

.section-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 16px;
}

.section-description-light {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 24px;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-small {
  padding: 12px 28px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('images/hero.png') center center / cover no-repeat;
  background-color: #e8e8e8;
  color: #7F2A3E;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  z-index: 10;
}

.logo-svg {
  height: 36px;
  width: auto;
}

.hero-src {
  pointer-events: none;
}

.src-svg {
  height: 16px;
  width: auto;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-logo-main {
  margin-bottom: 24px;
}

.hero-logo-img {
  height: 200px;
  width: auto;
  margin: 0 auto;
}

.hero-date {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 5px;
  color: #7F2A3E;
  margin-bottom: 4px;
}

.hero-venue {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 4px;
  margin-bottom: 32px;
  color: #7F2A3E;
  opacity: 1;
}

.hero-cta {
  margin-top: 8px;
}

/* ========================================
   ¡LLEGÓ EL GRAN DÍA!
   ======================================== */
.section-gran-dia {
  background: var(--color-bg-alt);
}

.gran-dia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.gran-dia-image img {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

.gran-dia-text .section-title {
  text-align: left;
  font-size: 24px;
  margin-bottom: 20px;
  color: #7F2A3E;
}

.gran-dia-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

/* ========================================
   ¿EN DÓNDE?
   ======================================== */
.section-donde {
  background: #ffffff;
}

.donde-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.donde-text .section-title {
  text-align: left;
  font-size: 24px;
  margin-bottom: 16px;
  color: #7F2A3E;
}

.donde-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.donde-hotel-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  color: #7F2A3E;
}

.donde-address {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.donde-image img {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

/* ========================================
   PHOTO GALLERY
   ======================================== */
.section-gallery {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 100vh;
}

.gallery-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gallery-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-floating {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10vh 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item--1 {
  width: 14%;
  height: 50%;
}

.gallery-item--2 {
  width: 20%;
  height: 60%;
}

.gallery-item--3 {
  width: 24%;
  height: 70%;
}

.gallery-item--4 {
  width: 22%;
  height: 60%;
}

.gallery-item--5 {
  width: 18%;
  height: 50%;
}

/* ========================================
   ESTANCIAS Y HABITACIONES
   ======================================== */
.section-estancias {
  background: var(--color-bg-alt);
  text-align: center;
}

.section-estancias .section-title {
  color: #7F2A3E;
}

.estancias-contactos {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 40px;
}

.contacto-label {
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.contacto-phone {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--color-text);
  transition: color 0.3s;
}

.contacto-phone:hover {
  color: var(--color-primary);
}

/* ========================================
   ¿CUÁL ES EL PROGRAMA?
   ======================================== */
.section-programa {
  background: #7F2A3E;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.programa-bg-overlay {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  opacity: 0.04;
}

.programa-bg-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.programa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 50px;
  text-align: center;
}

.programa-nombre {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.programa-hora {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 10px;
}

.programa-detalle {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

/* ========================================
   UN DETALLE, NO UN REQUISITO
   ======================================== */
.section-regalo {
  text-align: center;
  background: var(--color-bg-alt);
}

.section-regalo .section-title {
  color: #7F2A3E;
}

.section-regalo .container {
  max-width: 80%;
}

.iban-number {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 2px;
  margin: 32px 0 20px;
  text-align: center;
}

.iban-toast {
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.iban-toast.visible {
  opacity: 1;
}

/* ========================================
   CONFIRMA TU ASISTENCIA
   ======================================== */
.section-confirmar {
  text-align: center;
  background: #ffffff;
  position: relative;
}

.section-confirmar .section-title {
  color: #7F2A3E;
}

.section-confirmar .footer-date {
  margin-top: auto;
  padding-bottom: 30px;
}

.rsvp-form {
  margin-top: 32px;
  text-align: left;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #4A4A4A;
}

.form-group input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-bottom-color: var(--color-primary);
}

.rsvp-form .btn {
  display: block;
  margin: 12px auto 0;
}

.footer-date {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--color-primary);
}

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 900px) {
  .container {
    padding: 0 28px;
  }

  .gran-dia-row,
  .donde-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gran-dia-text .section-title,
  .donde-text .section-title {
    text-align: center;
  }

  .donde-text {
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .programa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .estancias-contactos {
    gap: 40px;
  }
}

/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 680px) {
  .programa-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .programa-hora {
    font-size: 24px;
  }

  .programa-detalle {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-snap-type: y mandatory;
  }

  .container {
    padding: 0 20px;
  }

  .hero-nav {
    padding: 20px 20px;
  }

  .hero-logo-img {
    height: 120px;
  }

  .logo-svg {
    height: 28px;
  }

  .src-svg {
    height: 16px;
  }

  .hero-date {
    font-size: 11px;
    letter-spacing: 4px;
  }

  .hero-venue {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .section-title {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .section-description {
    font-size: 16px;
  }

  .gran-dia-row {
    display: flex;
    flex-direction: column;
  }

  .gran-dia-text {
    order: -1;
  }

  .gran-dia-image img {
    height: 280px;
  }

  .donde-image img {
    height: 260px;
  }

  .gallery-floating {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 5vh 10px;
  }

  .gallery-item--1,
  .gallery-item--2,
  .gallery-item--3 {
    width: 90%;
    height: 28%;
  }

  .gallery-item--4,
  .gallery-item--5 {
    display: none;
  }

  .programa-hora {
    font-size: 28px;
  }

  .estancias-contactos {
    flex-direction: column;
    gap: 24px;
  }

  .iban-number {
    font-size: 20px;
    letter-spacing: 1px;
    word-break: break-all;
  }

  .section-regalo .iban-toast {
    display: block;
    margin-left: 0;
    margin-top: 8px;
  }

  .section-confirmar {
    min-height: 100vh;
    padding: 40px 0 10px;
  }

  .section-confirmar .section-title {
    margin-bottom: 16px;
  }

  .rsvp-form {
    margin-top: 16px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 4px;
  }
}
