/* ===========================
   QUIQUE & SUSANA — ESTILOS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --crema: #f7f3ee;
  --crema-dark: #ede7dc;
  --verde: #3d4f3c;
  --verde-light: #6b7f6a;
  --dorado: #b8965a;
  --dorado-light: #d4b47e;
  --text: #2e2e2e;
  --text-muted: #7a7060;
  --white: #ffffff;
  --nav-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--crema);
  color: var(--text);
  line-height: 1.7;
}

/* ---- NAVEGACIÓN ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--crema-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--verde);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--verde); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--verde);
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background-image: url('https://raw.githubusercontent.com/Quaque17/Quaque17.github.io/main/img/c1dd4bbc-cd3b-4c6b-88b2-6cb4674f91f2.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #d4b47e;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: #d4b47e;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: #d4b47e;
  margin: 0 auto 1.5rem;
}

.hero-fecha {
  font-size: 1.10rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 1.5rem 0;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  max-width: 420px;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s infinite;
  z-index: 1;
}

.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: #d4b47e;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- SECCIONES ---- */
.section {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--verde);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--dorado);
}

.section-subtitle {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--dorado);
  margin: 0.75rem auto 1rem;
}

/* ---- PÁGINA HERO (subpáginas) ---- */
.page-hero {
  height: 50vh;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  margin-top: var(--nav-height);
  background: linear-gradient(180deg, var(--crema-dark) 0%, var(--crema) 100%);
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--verde);
}

/* ---- ACCESOS RÁPIDOS ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-block {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--crema-dark);
  border-radius: 2px;
  transition: box-shadow 0.3s;
}

.info-block:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); }

.info-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.info-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.info-block p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ---- BOTONES ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 1px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--verde);
  color: var(--white);
  border: 1px solid var(--verde);
}

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

.btn-outline {
  background: transparent;
  color: var(--verde);
  border: 1px solid var(--verde);
}

.btn-outline:hover { background: var(--verde); color: var(--white); }

/* ---- MINUTO A MINUTO ---- */
.seccion-timeline {
  background-image: url('https://raw.githubusercontent.com/Quaque17/Quaque17.github.io/main/img/c1dd4bbc-cd3b-4c6b-88b2-6cb4674f91f2.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
  padding: 6rem 0;
  text-align: center;
}

.seccion-timeline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 28, 0.82);
  z-index: 0;
}

.seccion-timeline > * {
  position: relative;
  z-index: 1;
}

.tl-sub { color: #d4b47e; }
.tl-div { background: #d4b47e; }

.tl-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tl-titulo em {
  color: #d4b47e;
  font-style: italic;
  text-transform: lowercase;
}

.tl2-linea {
  position: relative;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.tl2-linea::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(212, 180, 126, 0.3);
  transform: translateX(-50%);
  z-index: 0;
}

.tl2-fila {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 160px;
  position: relative;
}

.tl2-fila:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 1px;
  background: rgba(212, 180, 126, 0.18);
}

.tl2-izq {
  padding: 2.5rem 3rem 2.5rem 1rem;
  text-align: right;
}

.tl2-der {
  padding: 2.5rem 1rem 2.5rem 3rem;
  text-align: left;
}

.tl2-centro {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  width: 32px;
}

.tl2-corazon {
  font-size: 1rem;
  color: #d4b47e;
  line-height: 1;
  display: block;
  user-select: none;
}

.tl2-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}

.tl2-hora {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4b47e;
  margin-bottom: 0.4rem;
}

.tl2-lugar {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.tl2-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0.85;
}

/* ---- RSVP ---- */
.seccion-rsvp {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.rsvp-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.rsvp-intro strong { color: var(--verde); font-weight: 500; }

.rsvp-btn {
  font-size: 0.75rem;
  padding: 1.1rem 3.5rem;
  letter-spacing: 0.25em;
}

/* ---- AGRADECIMIENTO ---- */
.seccion-gracias {
  text-align: center;
}

.gracias-texto {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.gracias-texto p {
  margin-bottom: 1.25rem;
}

.gracias-texto p:last-child { margin-bottom: 0; }

.gracias-firma {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--verde);
  margin-top: 2rem !important;
}

.gracias-firma em {
  font-style: italic;
  color: var(--dorado);
}

.gracias-cuenta {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--crema-dark);
}

.gracias-cuenta-texto {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.gracias-iban {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--verde);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.gracias-cuenta-nota {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.8;
}

/* ---- SEPARADOR DECORATIVO ---- */
.ornamental-divider {
  text-align: center;
  margin: 2rem 0;
  color: var(--dorado-light);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}

/* ---- TARJETAS EVENTO ---- */
.event-card {
  background: var(--white);
  border: 1px solid var(--crema-dark);
  border-radius: 2px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.event-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--dorado);
  border-radius: 2px 0 0 2px;
}

.event-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.5rem;
}

.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--verde);
  margin-bottom: 0.3rem;
}

.event-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.event-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }
.event-body p { margin-bottom: 0.75rem; }
.event-body p:last-child { margin-bottom: 0; }

/* ---- PERSONAS / CORTEJO ---- */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.person-card { text-align: center; padding: 1.5rem; }

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--crema-dark);
  border: 2px solid var(--dorado-light);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--dorado);
}

.person-role {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.25rem;
}

.person-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.person-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ---- INFO SUBPÁGINAS ---- */
.info-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-sub-block { text-align: center; }
.info-sub-block .info-sub-icon { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }

.info-sub-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.info-sub-block p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ---- LISTA DE BODA ---- */
.lista-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.lista-box {
  background: var(--white);
  border: 1px solid var(--crema-dark);
  border-radius: 2px;
  padding: 3rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.lista-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.lista-box p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--verde);
  color: var(--crema);
  text-align: center;
  padding: 3rem 2rem;
}

footer .footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--dorado-light);
  margin-bottom: 0.5rem;
}

footer p {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

/* ---- BOTÓN MÚSICA ---- */
.music-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--verde);
  border: 1px solid var(--dorado);
  color: var(--dorado-light);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.music-btn:hover { background: var(--dorado); color: var(--white); }

.music-btn.playing .music-icon {
  display: inline-block;
  animation: spin-note 4s linear infinite;
}

@keyframes spin-note {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---- HOTELES ---- */
.hotel-link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hotel-link-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.hotel-link-card:hover .event-title { color: var(--dorado); transition: color 0.3s; }
.hotel-link-card .event-meta { color: var(--dorado); font-size: 0.68rem; letter-spacing: 0.15em; }

/* ---- RESTAURANTES ---- */
.restaurante-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.restaurante-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--crema-dark);
  text-decoration: none;
  transition: background 0.2s;
}

.restaurante-fila:last-child { border-bottom: none; }
.restaurante-fila:hover .restaurante-nombre { color: var(--dorado); }
.restaurante-fila > div { display: flex; flex-direction: column; gap: 0.2rem; }

.restaurante-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--verde);
  font-weight: 400;
  transition: color 0.3s;
  display: block;
}

.restaurante-tipo { font-size: 0.78rem; color: var(--text-muted); display: block; }

.restaurante-ir {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dorado);
  white-space: nowrap;
  flex-shrink: 0;
}

.restaurante-ir:hover { color: var(--verde); }

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--crema);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--crema-dark);
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .hamburger { display: flex; }
  .section { padding: 4rem 1.5rem; }
  .seccion-rsvp { padding: 4rem 1.5rem; }
  .seccion-gracias { padding: 4rem 1.5rem; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .hero-tagline { font-size: 1.1rem; }
  .info-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .info-block { padding: 2rem 1.5rem; }
  .event-card { padding: 1.75rem; }
  .person-grid { grid-template-columns: 1fr; }
  .lista-box { padding: 2rem 1.5rem; }
  .info-sub-grid { grid-template-columns: 1fr; }

  .music-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .rsvp-btn {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    box-sizing: border-box;
  }

  /* Agradecimiento móvil */
  .gracias-texto { font-size: 0.95rem; }
  .gracias-cuenta { padding: 1.5rem 0; }

  /* Restaurantes móvil */
  .restaurante-fila {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .restaurante-ir { margin-top: 0.1rem; }

  /* ---- MINUTO A MINUTO MÓVIL ---- */
  .seccion-timeline {
    background-attachment: scroll;
    padding: 4rem 0;
  }

  .tl2-linea {
    padding: 0 1.5rem;
    max-width: 100%;
  }

  .tl2-linea::before {
    left: 3rem;
    transform: none;
  }

  .tl2-fila {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding: 1.5rem 0;
    gap: 0;
    position: relative;
  }

  .tl2-fila:not(:last-child)::after {
    left: 0;
    right: 0;
  }

  .tl2-centro {
    order: 1;
    width: 3rem;
    flex-shrink: 0;
    justify-content: center;
    align-self: center;
  }

  .tl2-fila:not(.reverse) .tl2-izq {
    display: block;
    order: 2;
    flex: 1;
    text-align: left;
    padding: 0 0.75rem;
  }

  .tl2-fila:not(.reverse) .tl2-der {
    display: flex;
    order: 3;
    flex: 0;
    padding: 0;
    align-items: center;
  }

  .tl2-fila.reverse .tl2-der {
    display: block;
    order: 2;
    flex: 1;
    text-align: left;
    padding: 0 0.75rem;
  }

  .tl2-fila.reverse .tl2-izq {
    display: flex;
    order: 3;
    flex: 0;
    padding: 0;
    align-items: center;
    text-align: left;
  }

  .tl2-img {
    width: 50px;
    height: 50px;
    opacity: 0.75;
  }
}
