/* ============================================================
   Invitación Grecia & David · verde salvia + beige
   ============================================================ */
:root {
  --c-sage: #8a9a82;
  --c-sage-light: #b5c4ad;
  --c-sage-dark: #6b7a63;
  --c-cream: #ede4ce; /* papel natural tipo Primera.png */
  --c-cream-soft: #f4ecd9; /* papel ligeramente más claro */
  --c-beige: #e8dcc4;
  --c-beige-dark: #d8c8a5;
  --c-gold: #c9a96e;
  --c-gold-dark: #a88a50;
  --c-brown: #3d3428;
  --c-brown-soft: #6b5a47;

  /* Colores del sello de cera (marfil nacarado) */
  --seal-highlight: #f7efdd;
  --seal-base: #e4d8bf;
  --seal-mid: #d3c4a6;
  --seal-shadow: #a99680;
  --seal-initials: #4a3a26; /* café oscuro para alto contraste contra el sello marfil */

  /* Textura de papel hecho a mano (SVG fractal noise, tileable) */
  --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.38  0 0 0 0 0.28  0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --font-display: "Great Vibes", "Brush Script MT", cursive;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --radius: 8px;
  --shadow-soft: 0 10px 40px rgba(61, 52, 40, 0.1);
  --shadow-card: 0 6px 24px rgba(61, 52, 40, 0.12);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--c-brown);
  background: var(--c-cream);
  line-height: 1.65;
  font-size: clamp(16px, 1.05vw + 0.6rem, 19px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
}

/* ---------- utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.container--narrow {
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72em;
  color: var(--c-sage-dark);
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-sub {
  text-align: center;
  color: var(--c-brown-soft);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 2.8rem;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.6rem auto;
}
.ornament span {
  height: 1px;
  width: clamp(40px, 10vw, 90px);
  background: var(--c-gold);
  opacity: 0.7;
}
.ornament span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  opacity: 1;
}

/* ============================================================
   SOBRE · hero con solapa superior animada
   ============================================================ */
.envelope {
  --flap-angle: 0deg;
  --seal-opacity: 1;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  perspective: 1600px;
  perspective-origin: 50% 0%;
  /* Papel crema natural con textura granulada tipo Primera.png */
  background-color: var(--c-cream);
  background-image: var(--paper-texture);
  background-size: 320px 320px;
  background-repeat: repeat;
}

/* Sin textura ni viñeteado: fondo completamente limpio */
.envelope__back {
  display: none;
}
.envelope__flap--bottom,
.envelope__flap--left,
.envelope__flap--right {
  display: none;
}

/* Mensaje del cuerpo (sobre el fondo, bajo la solapa cerrada) */
.envelope__message {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2rem, 10vh, 5rem);
  text-align: center;
  color: var(--c-brown-soft);
  z-index: 2;
  pointer-events: none;
  padding: 0 1rem;
  opacity: var(--msg-opacity, 1);
  transition: opacity 0.4s ease;
}
.envelope__names-small {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--c-brown);
  margin-bottom: 0.4rem;
}
.envelope__tagline {
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.4;
  letter-spacing: 0.05em;
}

/* Solapa SUPERIOR (animada) · mismo papel que el cuerpo + sombras de pliegue */
.envelope__top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52%;
  transform-origin: 50% 0%;
  transform: rotateX(var(--flap-angle));
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 3;
  /* Sombra proyectada de la solapa sobre el papel del sobre */
  filter: drop-shadow(0 8px 18px rgba(90, 72, 45, 0.22));
}
.envelope__top-inner {
  position: absolute;
  inset: 0;
  /* Misma textura de papel, con leve variación de tono para percibirla como solapa separada */
  background-color: #e6dcc2;
  background-image: var(--paper-texture);
  background-size: 320px 320px;
  background-repeat: repeat;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow:
    inset 0 -60px 90px -40px rgba(120, 95, 55, 0.32),
    inset 0 8px 12px -8px rgba(255, 250, 235, 0.4);
  backface-visibility: hidden;
}
/* Líneas diagonales sutiles (pliegues del papel hacia el vértice) */
.envelope__top-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    linear-gradient(
      135deg,
      transparent 49.7%,
      rgba(120, 95, 55, 0.18) 49.9%,
      rgba(120, 95, 55, 0.18) 50.1%,
      transparent 50.3%
    ),
    linear-gradient(
      45deg,
      transparent 49.7%,
      rgba(120, 95, 55, 0.18) 49.9%,
      rgba(120, 95, 55, 0.18) 50.1%,
      transparent 50.3%
    );
  pointer-events: none;
  opacity: 0.7;
}

/* Sello de cera marfil nacarado · montado sobre la punta del triángulo */
.wax-seal {
  position: absolute;
  left: 50%;
  top: 100%; /* vértice inferior del triángulo */
  transform: translate(
    -50%,
    -50%
  ); /* centra el sello exactamente en la punta */
  width: clamp(105px, 17vmin, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 32%,
    var(--seal-highlight) 0%,
    var(--seal-base) 35%,
    var(--seal-mid) 70%,
    var(--seal-shadow) 100%
  );
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  z-index: 4;
  opacity: var(--seal-opacity);
  filter: drop-shadow(0 6px 14px rgba(90, 72, 45, 0.32));
  box-shadow:
    inset -10px -12px 22px rgba(90, 72, 45, 0.22),
    inset 8px 10px 16px rgba(255, 250, 235, 0.5),
    inset 0 0 0 1px rgba(255, 250, 235, 0.15);
}
/* Reborde irregular (cera derretida, forma orgánica) */
.wax-seal::before {
  content: "";
  position: absolute;
  inset: -7%;
  border-radius: 48% 52% 47% 53% / 52% 47% 53% 48%;
  background: radial-gradient(
    circle at 40% 35%,
    var(--seal-base) 0%,
    var(--seal-mid) 60%,
    var(--seal-shadow) 100%
  );
  z-index: -1;
  box-shadow:
    inset -5px -7px 14px rgba(90, 72, 45, 0.22),
    0 3px 8px rgba(90, 72, 45, 0.28);
  opacity: 0.9;
  animation: wobble 14s ease-in-out infinite alternate;
}
@keyframes wobble {
  0% {
    border-radius: 48% 52% 47% 53% / 52% 47% 53% 48%;
  }
  100% {
    border-radius: 52% 48% 53% 47% / 47% 53% 48% 52%;
  }
}
/* Anillo interior grabado */
.wax-seal__ring {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(90, 72, 45, 0.18);
  box-shadow:
    inset 0 0 12px rgba(90, 72, 45, 0.12),
    inset 0 1px 0 rgba(255, 250, 235, 0.3),
    inset 0 -1px 0 rgba(90, 72, 45, 0.18);
  pointer-events: none;
}
/* Iniciales en alto contraste (café oscuro sobre marfil) con relieve grabado */
.wax-seal__text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(36px, 8.5vmin, 68px);
  color: var(--seal-initials);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.08em;
  /* Efecto debossed: highlight claro abajo + sombra interior */
  text-shadow:
    0 1px 0 rgba(255, 250, 235, 0.55),
    0 -1px 0 rgba(90, 72, 45, 0.3);
  z-index: 1;
  user-select: none;
  font-weight: 500;
}
.wax-seal__amp {
  font-size: 0.85em;
  opacity: 0.85;
}

/* Hint de scroll */
.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-brown-soft);
  animation: hint-bob 2.4s ease-in-out infinite;
  pointer-events: none;
}
.scroll-hint svg {
  opacity: 0.75;
}
@keyframes hint-bob {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.85;
  }
  50% {
    transform: translate(-50%, 6px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .envelope__top {
    transform: rotateX(180deg) !important;
  }
  .wax-seal {
    opacity: 0 !important;
  }
  .scroll-hint,
  .wax-seal::before {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   SECCIONES DE CONTENIDO
   ============================================================ */
.section {
  padding: clamp(4rem, 10vh, 7rem) 0;
  position: relative;
}

/* ---- 1 · INTRO ---- */
.section--intro {
  background: linear-gradient(
    180deg,
    var(--c-cream-soft) 0%,
    var(--c-cream) 100%
  );
  text-align: center;
  padding-top: clamp(5rem, 12vh, 8rem);
}
.display-names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.95;
  margin: 0.5rem 0 0;
}
.display-names span {
  display: inline-block;
}
.display-names__amp {
  color: var(--c-gold-dark);
  font-size: 0.75em;
  margin: 0 0.15em;
  vertical-align: 0.05em;
}
.event-date {
  margin-top: 0.8rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-sage-dark);
  font-weight: 500;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.4rem);
  margin: 2.8rem auto 2.2rem;
  max-width: 600px;
}
.countdown__item {
  background: #fff;
  border: 1px solid rgba(201, 176, 128, 0.4);
  border-radius: var(--radius);
  padding: clamp(0.8rem, 2.5vw, 1.4rem) 0.4rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.countdown__item:hover {
  transform: translateY(-3px);
}
.countdown__num {
  display: block;
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--c-sage-dark);
}
.intro-quote {
  max-width: 640px;
  margin: 2.4rem auto 0;
  font-style: italic;
  color: var(--c-brown-soft);
  font-size: 1.05rem;
}
.intro-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--c-sage-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---- 2 · NOVIOS ---- */
.section--couple {
  background: linear-gradient(180deg, var(--c-sage-dark) 0%, #4f5d48 100%);
  color: var(--c-cream);
}
.section--couple .section-title,
.section--couple .eyebrow { 
  color: var(--c-cream); 
}
.section--couple .eyebrow { 
  color: var(--c-gold); 
}
.section--couple .section-sub { 
  color: var(--c-cream); 
  opacity: .92; 
}
.couple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  justify-items: center;
  margin-top: 1rem;
}
.couple__card {
  max-width: 380px;
  text-align: center;
}
.couple__photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  border: 4px solid var(--c-cream);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}
.couple__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  margin-bottom: 0.6rem;
  line-height: 1;
}
.couple__bio {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: var(--c-cream);
}
.couple__parents {
  font-style: italic;
  font-size: 1rem;
  color: var(--c-cream);
  line-height: 1.55;
}
.couple__parents span {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--c-cream);
  display: inline-block;
  margin-bottom: 0.3rem;
}
.couple__amp {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--c-gold);
  line-height: 0.6;
  text-align: center;
  align-self: center;
}

/* Padrinos (bloque al final de la sección de novios) */
.godparents {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
}
.godparents .ornament span {
  background: rgba(244, 237, 224, 0.55);
}
.godparents .ornament span.dot {
  background: var(--c-gold);
}
.godparents .eyebrow {
  color: var(--c-gold);
  margin-bottom: 0.8rem;
}
.godparents__names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.35;
  color: #fff8e8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

/* ---- 3/4 · VENUE (misa / salón) ---- */
.section--venue {
  background: var(--c-cream);
}
.section--reception {
  background: var(--c-cream-soft);
}
.venue {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  align-items: center;
  margin-top: 2rem;
}
.venue__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.venue__info {
  text-align: center;
}
.venue__label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--c-sage-dark);
  margin-top: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.venue__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.venue__address {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--c-brown-soft);
}
.venue__time {
  font-size: 1.1rem;
}
.venue__time strong {
  color: var(--c-gold-dark);
  font-weight: 600;
}
.venue__time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  max-width: 320px;
  margin: 0.8rem auto 0;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  margin-top: 1.3rem;
  background: var(--c-sage-dark);
  color: var(--c-cream);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(61, 52, 40, 0.22);
  background: #4f5d48;
}
.btn--outline {
  background: transparent;
  color: var(--c-sage-dark);
  border-color: var(--c-sage-dark);
}
.btn--outline:hover {
  background: var(--c-sage-dark);
  color: var(--c-cream);
}
.btn--primary {
  background: var(--c-gold);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-gold-dark);
}
.btn--large {
  padding: 1.1rem 2.4rem;
  font-size: 1.08rem;
}
.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  margin-top: 0.6rem;
  letter-spacing: 0.06em;
}

/* ---- 5 · TIMELINE ---- */
.section--timeline {
  background: var(--c-beige);
}
.timeline {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: clamp(3rem, 8vw, 4.5rem);
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: clamp(1.6rem, 4.5vw, 2.8rem);
  width: 2px;
  background: var(--c-gold);
  opacity: 0.4;
}
.timeline__item {
  position: relative;
  padding: 0.6rem 0 1.6rem 0.5rem;
}
.timeline__marker {
  position: absolute;
  left: calc(clamp(1.6rem, 4.5vw, 2.8rem) - clamp(3rem, 8vw, 4.5rem) - 1.1rem);
  top: 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--c-cream);
  border: 2px solid var(--c-gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.timeline__time {
  font-weight: 600;
  color: var(--c-gold-dark);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.timeline__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.1;
  margin: 0.15rem 0 0.3rem;
}

/* ---- 6 · CÓDIGO DE VESTIMENTA ---- */
.section--dresscode {
  background: var(--c-cream-soft);
  text-align: center;
}
.dresscode__label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--c-gold-dark);
  margin: 0.3rem 0;
}
.dresscode {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.dresscode__group-title {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--c-sage-dark);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.swatches {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c, #eee);
  display: inline-block;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
}
.swatch--cross::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    transparent 46%,
    #c64b4b 46%,
    #c64b4b 54%,
    transparent 54%
  );
}
.dresscode__note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--c-brown-soft);
  margin-top: 0.9rem;
}

/* ---- 7 · REGLAS ---- */
.section--rules {
  background: var(--c-sage-light);
}
.rules {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}
.rules__item {
  background-image: url(assets/textura.png);
  /*background: var(--c-cream-soft);*/
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.rules__icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.rules__item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.rules__item p {
  color: var(--c-brown-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---- 8 · HOTELES ---- */
.section--hotels {
  background: var(--c-cream);
}
.hotels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  max-width: 1000px;
  margin: 0 auto;
}
.hotel-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(61, 52, 40, 0.16);
}
.hotel-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hotel-card__body {
  padding: 1.3rem 1.4rem 1.5rem;
}
.hotel-card__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  margin-bottom: 0.25rem;
}
.hotel-card__meta {
  font-size: 0.88rem;
  color: var(--c-sage-dark);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.hotel-card__price {
  margin-top: 0.6rem;
  font-size: 0.98rem;
}
.hotel-card__price strong {
  color: var(--c-gold-dark);
}
.hotel-card__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

/* ---- 9 · TIPS ---- */
.section--tips {
  background: var(--c-beige);
  /*background: var( --c-sage-dark);*/
}
.tips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  max-width: 1000px;
  margin: 0 auto;
}
.tip {
  background: var(--c-cream-soft);
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.tip__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.tip h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}
.tip p {
  color: var(--c-brown-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---- 10 · MESA DE REGALOS · transferencia bancaria ---- */
.section--gifts { background: var(--c-sage-light); }

.bank-card {
  background-image: url(assets/textura.png);
  /*background: #fff;];*/
  border: 1px solid rgba(201, 176, 128, .35);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bank-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-sage) 50%, var(--c-gold) 100%);
}
.bank-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-cream);
  color: var(--c-sage-dark);
}
.bank-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-sage-dark);
  margin-bottom: 1.6rem;
}

.bank-card__list {
  display: grid;
  gap: 1rem;
  text-align: left;
  margin: 0 auto;
  max-width: 480px;
}
.bank-card__row {
  display: grid;
  gap: .25rem;
  padding: .9rem 1rem;
  background: var(--c-cream-soft);
  border-radius: 6px;
  border: 1px solid rgba(201, 176, 128, .2);
}
.bank-card__row dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--c-sage-dark);
  font-weight: 600;
}
.bank-card__row dd {
  font-size: 1.1rem;
  color: var(--c-brown);
  font-weight: 500;
  word-break: break-word;
}
.bank-card__row--clabe dd {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.bank-card__clabe {
  font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-gold-dark);
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.bank-card__copy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  background: var(--c-sage);
  color: var(--c-cream);
  border: none;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .2s ease;
  margin-left: auto;
}
.bank-card__copy:hover {
  background: var(--c-sage-dark);
  transform: translateY(-1px);
}
.bank-card__copy.is-copied {
  background: var(--c-gold-dark);
}
.bank-card__copy.is-copied .bank-card__copy-label::after {
  content: ' ✓';
}

.bank-card__note {
  margin-top: 1.6rem;
  font-style: italic;
  color: var(--c-brown-soft);
  font-size: .95rem;
}

/* ---- 11 · RSVP ---- */
.section--rsvp {
  background: linear-gradient(180deg, var(--c-sage-dark) 0%, #4f5d48 100%);
  color: var(--c-cream);
  text-align: center;
}
.section--rsvp .section-title {
  color: var(--c-cream);
}
.section--rsvp .section-sub {
  color: rgba(244, 237, 224, 0.85);
}
.section--rsvp .section-sub strong {
  color: var(--c-gold);
  font-weight: 600;
}
.rsvp__small {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: rgba(244, 237, 224, 0.75);
  font-style: italic;
}
.rsvp__small a {
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--c-cream);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.footer__names {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--c-sage-dark);
  margin-bottom: 0.3rem;
}
.footer__display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.8rem);
  line-height: 1;
  color: var(--c-brown);
  margin-bottom: 0.6rem;
}
.footer__date {
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--c-gold-dark);
  font-weight: 500;
}


/* ==================================================0
CODIGO PARA EFECTOS DE FOTO Y REPRODUCTOR
 /////////////////////////////////////////////////
*/

 .polaroid-container {
      display: flex;
      justify-content: center;
      width: 100%;
      margin: 2rem 0;
    }
    
    /* El wrapper se ajusta al tamaño de la foto y sirve de ancla (relative) */
    .polaroid-wrapper {
      position: relative;
      display: inline-block;
    }
    
    /* La tarjeta polaroid principal */
    .polaroid {
      background: #fdfdfc;
      padding: 12px 12px 24px 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      max-width: 260px;
      text-align: center;
      position: relative;
      z-index: 2; /* Nivel medio (las flores van por encima) */
    }
    .polaroid__img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }
    .polaroid__caption {
      font-family: 'Great Vibes', cursive;
      font-size: 2.2rem;
      margin-top: 15px;
      color: #5a6b7c;
      line-height: 1.2;
    }

    /* Estilos para las flores sobrepuestas */
    .polaroid-flower {
      position: absolute;
      z-index: 3; /* Nivel superior para sobreponerse a la foto */
      pointer-events: none; /* Para que no bloqueen clics en la foto o botones */
      width: 150px; /* Tamaño ajustable según tu imagen PNG */
      height: auto;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08)); /* Leve sombra para dar efecto 3D */
    }
    
    /* Posición exacta de cada flor */
    .polaroid-flower--left {
      bottom: -15px;
      left: -70px;
      transform: rotate(-10deg);
    }
    .polaroid-flower--right {
      top: -25px;
      right: -70px;
      transform: rotate(15deg);
    }

    /* Responsividad: Ajuste en pantallas móviles para que las flores no ensanchen la página */
    @media (max-width: 480px) {
      .polaroid-flower { width: 110px; }
      .polaroid-flower--left { left: -40px; bottom: -10px; }
      .polaroid-flower--right { right: -40px; top: -15px; }
    }




    /* Estilos del Reproductor de Música */
    .music-player {
      width: 100%;
      max-width: 250px;
      margin: 2rem auto;
      display: flex;
      flex-direction: column;
      gap: 15px;
      align-items: center;
    }
    .music-player__bar {
      width: 100%;
      height: 2px;
      background: rgba(0,0,0,0.1);
      position: relative;
      border-radius: 2px;
    }
    .music-player__progress {
      width: 35%;
      height: 100%;
      background: #8ea0b3;
      position: relative;
    }
    .music-player__progress::after {
      content: '';
      position: absolute;
      right: -5px;
      top: -4px;
      width: 10px;
      height: 10px;
      background: #8ea0b3;
      border-radius: 50%;
    }
    .music-player__controls {
      display: flex;
      gap: 20px;
      align-items: center;
      color: #8ea0b3;
    }
    .music-btn {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: inherit;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .music-btn.play {
      background: #8ea0b3;
      color: #fff;
      border-radius: 50%;
      width: 40px;
      height: 40px;
    }

    /* Estilos de la Nueva Sección del Contador */
    .section--countdown-banner {

       background: linear-gradient(180deg, var(--c-sage-dark) 0%, #4f5d48 100%);
        color: var(--c-gold);
      /*background-color: #8ea0b3; /* Azul pizarra de la imagen de referencia */
     /* color: #fff;*/
      padding: 4rem 1rem;
      text-align: center;
    }
    .section--countdown-banner .polaroid-wrapper {
      margin-bottom: 2rem;
    }
    .countdown-subtitle {
      font-family: 'Great Vibes', cursive;
      font-size: 2.2rem;
      margin-bottom: 1.5rem;
    }
    .countdown--inline {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      font-family: 'Cormorant Garamond', serif;
    }
    .countdown--inline .countdown__item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .countdown--inline .countdown__num {
      font-size: 3.5rem;
      line-height: 1;
    }
    .countdown--inline .countdown__label {
      font-size: 0.75rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-top: 5px;
    }
    .countdown__sep {
      font-size: 2.5rem;
      line-height: 1;
      margin-top: -20px;
    }



/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .couple {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
  }
  .couple__card {
    max-width: none;
  }
  .rules {
    grid-template-columns: repeat(2, 1fr);
  }
  .tips {
    grid-template-columns: repeat(2, 1fr);
  }
  .gifts {
    grid-template-columns: repeat(3, 1fr);
  }
  .hotels {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .venue {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .venue--reverse > .venue__info {
    order: 1;
  }
  .venue--reverse > .venue__photo {
    order: 2;
  }
  .venue__info {
    text-align: left;
  }
  .venue__info .btn {
    margin-top: 1.6rem;
  }
  .venue__time-grid {
    margin-left: 0;
    margin-right: 0;
  }
  .hotels {
    grid-template-columns: repeat(3, 1fr);
  }
  .tips {
    grid-template-columns: repeat(3, 1fr);
  }
  .rules {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: clamp(5rem, 11vh, 8rem) 0;
  }
}
