* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f7efe8;
  color: #1c1c1c;
  font-family: Georgia, serif;
  overflow-x: hidden;
}

.hidden {
  display: none;
}


.intro {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(183,110,90,.25), transparent 40%),
    #171312;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-wrap {
  text-align: center;
}

.envelope {
  position: relative;
  width: 330px;
  height: 220px;
  perspective: 1000px;
  transform: translateY(35px);
  transition: transform 1.2s ease;
}

.pocket {
  position: absolute;
  inset: 65px 0 0;
  background: linear-gradient(145deg, #b76e5a, #7d3f32);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 25px 70px rgba(0,0,0,.5);
  z-index: 3;
}

.pocket::before,
.pocket::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,.08);
}

.pocket::before {
  left: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.pocket::after {
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.flap {
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(145deg, #d9a08e, #a95f46);
  clip-path: polygon(0 0, 50% 80%, 100% 0);
  transform-origin: top;
  z-index: 5;
  transition: transform 1s ease;
}

.letter {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 5px;
  height: 180px;
  background: #fff8f3;
  border-radius: 12px;
  padding: 28px 15px;
  text-align: center;
  color: #8b4a38;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform 1.2s ease .4s, opacity 1s ease;
}

.letter .mini {
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.letter h2 {
  font-size: 30px;
  font-weight: normal;
  line-height: 1;
}

.letter span {
  display: block;
  color: #b76e5a;
  font-size: 28px;
  margin: 7px 0;
}

.seal {
  position: absolute;
  left: 50%;
  top: 118px;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d99a84, #8b3f32);
  color: #f8f5f2;
  border: 2px solid rgba(255,255,255,.45);
  font-size: 18px;
  font-family: Georgia, serif;
  cursor: pointer;
  z-index: 8;
  box-shadow: 0 10px 25px rgba(0,0,0,.45);
}

.tap-text {
  margin-top: 35px;
  color: #d9c7a2;
  letter-spacing: 3px;
  font-size: 13px;
  text-transform: uppercase;
}

.intro.open .flap {
  transform: rotateX(180deg);
}

.intro.open .letter {
  transform: translateY(-250px) scale(1.08);
}

.intro.open .envelope {
  transform: translateY(90px);
}

.intro.fade {
  opacity: 0;
  visibility: hidden;
  transition: 2s ease;
}

/* BOTÓN MÚSICA */

.music-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: #a95f46;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

.music-btn.playing {
  animation: girar 4s linear infinite;
}

@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* PORTADA */

.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55)),
    url("../img/fondo.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.content {
  color: white;
  max-width: 760px;
  animation: aparecer 1.3s ease;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.save {
  letter-spacing: 7px;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 25px;
  color: #e8b9a4;
}

h1 {
  font-size: 64px;
  font-weight: normal;
  line-height: 1.05;
}

.and {
  display: block;
  font-size: 48px;
  color: #d88f73;
  margin: 10px 0;
}

.fecha {
  margin-top: 25px;
  font-size: 24px;
  letter-spacing: 3px;
}

.contador {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 42px 0;
  flex-wrap: wrap;
}

.contador div {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  padding: 18px;
  width: 95px;
  border-radius: 18px;
}

.contador span {
  display: block;
  font-size: 34px;
  color: #fff;
}

.contador small {
  font-size: 13px;
  color: #f5d6c9;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: #a95f46;
  color: white;
  text-decoration: none;
  border-radius: 40px;
  letter-spacing: 1px;
  margin: 8px;
}

.principal {
  margin-top: 20px;
}

.ubicaciones {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.8);
}

.btn-outline:hover {
  background: white;
  color: #8b4a38;
}

.mensaje {
  padding: 80px 25px;
  text-align: center;
  background: #fff8f3;
}

.mensaje h2 {
  font-size: 42px;
  color: #8b4a38;
  margin-bottom: 20px;
}

.mensaje p {
  max-width: 650px;
  margin: auto;
  font-size: 18px;
  line-height: 1.7;
}

@media(max-width: 600px) {
  .envelope {
    width: 290px;
    height: 205px;
  }

  h1 {
    font-size: 42px;
  }

  .fecha {
    font-size: 17px;
  }

  .contador div {
    width: 75px;
    padding: 13px;
  }

  .contador span {
    font-size: 28px;
  }
}
.scroll-indicator {
  margin-top: 35px;
  color: #f8f5f2;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .85;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  margin: 12px auto 0;
  position: relative;
}

.mouse::before {
  content: "";
  width: 4px;
  height: 7px;
  background: #e8b9a4;
  border-radius: 10px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.6s infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    top: 7px;
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    top: 22px;
  }
}
.historia {
  background: #f8f5f2;
  padding: 90px 22px;
  color: #2a211f;
}

.section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 70px;
}

.section-title span {
  color: #b76e5a;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
}

.section-title h2 {
  font-size: 44px;
  font-weight: normal;
  color: #7d3f32;
  margin: 15px 0;
}

.section-title p {
  color: #7b746e;
  font-size: 17px;
  line-height: 1.7;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(#b76e5a, #d9c7a2);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 25px 45px;
  opacity: 0;
  transform: translateY(50px);
  transition: 1s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 35px;
  width: 48px;
  height: 48px;
  background: #fff8f3;
  border: 1px solid #d9c7a2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b76e5a;
  font-size: 22px;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -24px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -24px;
}

.timeline-card {
  background: #fff8f3;
  border: 1px solid rgba(183,110,90,.18);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.timeline-card .year {
  display: inline-block;
  color: #b76e5a;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-size: 28px;
  color: #7d3f32;
  font-weight: normal;
  margin-bottom: 12px;
}

.timeline-card p {
  font-size: 16px;
  line-height: 1.75;
  color: #514844;
}

@media(max-width: 760px) {
  .section-title h2 {
    font-size: 34px;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 22px 0 22px 60px;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 0;
    right: auto;
  }

  .timeline-card h3 {
    font-size: 25px;
  }
}
.evento {
  background: #171312;
  padding: 95px 22px;
  color: #f8f5f2;
}

.evento .section-title h2 {
  color: #f8f5f2;
}

.evento .section-title p {
  color: #d9c7a2;
}

.evento-grid {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.evento-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(217,199,162,.25);
  border-radius: 28px;
  padding: 38px 30px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0,.28);
}

.evento-icon {
  font-size: 42px;
  margin-bottom: 18px;
}

.evento-card h3 {
  font-size: 32px;
  font-weight: normal;
  color: #e8b9a4;
  margin-bottom: 15px;
}

.evento-lugar {
  font-size: 20px;
  color: #fff8f3;
  margin-bottom: 12px;
}

.evento-card p {
  color: #d9c7a2;
  line-height: 1.6;
  font-size: 15px;
}

.evento-hora {
  margin-top: 18px;
  font-size: 18px !important;
  color: #fff !important;
}

.evento-btn {
  margin-top: 25px;
}

@media(max-width: 760px) {
  .evento-grid {
    grid-template-columns: 1fr;
  }

  .evento-card h3 {
    font-size: 28px;
  }
}
.itinerario {
  background: #fff8f3;
  padding: 95px 22px;
  color: #2a211f;
}

.agenda {
  max-width: 850px;
  margin: auto;
  position: relative;
}

.agenda::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(#b76e5a, #d9c7a2);
}

.agenda-item {
  width: 50%;
  padding: 25px 45px;
  position: relative;
}

.agenda-item:nth-child(odd) {
  text-align: right;
}

.agenda-item:nth-child(even) {
  margin-left: 50%;
  text-align: left;
}

.agenda-icon {
  width: 54px;
  height: 54px;
  background: #171312;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 25px;
  font-size: 24px;
}

.agenda-item:nth-child(odd) .agenda-icon {
  right: -27px;
}

.agenda-item:nth-child(even) .agenda-icon {
  left: -27px;
}

.agenda-time {
  color: #b76e5a;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.agenda-item h3 {
  font-size: 28px;
  font-weight: normal;
  color: #7d3f32;
  margin-top: 8px;
}

@media(max-width: 760px) {
  .agenda::before {
    left: 27px;
  }

  .agenda-item,
  .agenda-item:nth-child(even),
  .agenda-item:nth-child(odd) {
    width: 100%;
    margin-left: 0;
    text-align: left;
    padding: 25px 0 25px 75px;
  }

  .agenda-item:nth-child(odd) .agenda-icon,
  .agenda-item:nth-child(even) .agenda-icon {
    left: 0;
    right: auto;
  }
}
/*==========================================
DRESS CODE
==========================================*/

.dresscode{

    padding:100px 20px;

    background:#f5f1ec;

}

.dress-container{

    max-width:900px;

    margin:auto;

    display:flex;

    justify-content:center;

    gap:40px;

    flex-wrap:wrap;

}

.dress-card{

    width:320px;

    background:white;

    border-radius:20px;

    padding:40px;

    text-align:center;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    transition:.35s;

}

.dress-card:hover{

    transform:translateY(-8px);

}

.dress-icon{

    font-size:55px;

    margin-bottom:15px;

}

.dress-card h3{

    font-size:30px;

    color:#8b4a38;

    margin-bottom:15px;

    font-weight:normal;

}

.dress-card p{

    font-size:18px;

    color:#555;

}

.colors{

    margin-top:70px;

    text-align:center;

}

.colors h3{

    color:#8b4a38;

    margin-bottom:30px;

}

.palette{

    display:flex;

    justify-content:center;

    gap:35px;

    flex-wrap:wrap;

}

.color{

    text-align:center;

}

.circle{

    width:70px;

    height:70px;

    border-radius:50%;

    margin:auto;

    border:1px solid #ddd;

    box-shadow:0 5px 20px rgba(0,0,0,.12);

}

.blanco{

    background:white;

}

.ivory{

    background:#FFFFF0;

}

.champagne{

    background:#F7E7CE;

}

.color span{

    display:block;

    margin-top:12px;

}
/*==========================================
MESA DE REGALOS
==========================================*/

.regalos {
  padding: 100px 20px;
  background: #171312;
  color: #f8f5f2;
}

.regalos .section-title h2 {
  color: #f8f5f2;
}

.regalos .section-title p {
  color: #d9c7a2;
}

.regalos-grid {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.regalo-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(217,199,162,.25);
  border-radius: 24px;
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,.22);
}

.regalo-icon {
  font-size: 42px;
  margin-bottom: 18px;
}

.regalo-card h3 {
  font-size: 26px;
  font-weight: normal;
  color: #e8b9a4;
  margin-bottom: 12px;
}

.regalo-card p {
  color: #d9c7a2;
  line-height: 1.6;
  font-size: 15px;
}

.regalo-btn {
  margin-top: 22px;
  padding: 12px 24px;
}

@media(max-width: 900px) {
  .regalos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px) {
  .regalos-grid {
    grid-template-columns: 1fr;
  }
}
.banco-card {
  background: linear-gradient(145deg, #2f2f2f, #171312);
  border: 1px solid rgba(255,255,255,.18);
}

.bank-logo {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background: #303030;
  color: white;
  font-size: 34px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-family: Arial, sans-serif;
}

.titular {
  color: #f8f5f2 !important;
  margin-bottom: 25px;
}

.bank-data {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 18px 0;
}

.bank-data span {
  display: block;
  color: #d9c7a2;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bank-data strong {
  display: block;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.copy-btn {
  border: 1px solid rgba(217,199,162,.5);
  background: transparent;
  color: #f8f5f2;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
}

.copy-btn.copied {
  background: #b76e5a;
  border-color: #b76e5a;
}
.galeria {
  padding: 100px 20px;
  background: #fff8f3;
}

.galeria-grid {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.foto-placeholder{

    width:100%;

    height:100%;

    object-fit:cover;

    border-radius:24px;

    box-shadow:0 20px 45px rgba(0,0,0,.12);

    transition:.4s;

    cursor:pointer;

}

.foto-placeholder:hover{

    transform:scale(1.04);

}

.foto-placeholder.grande {
  grid-column: span 2;
  grid-row: span 2;
}

@media(max-width: 800px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media(max-width: 520px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }

  .foto-placeholder.grande {
    grid-column: span 1;
    grid-row: span 1;
  }
}
.mensaje-final {
  padding: 110px 22px;
  background:
    linear-gradient(rgba(23,19,18,.75), rgba(23,19,18,.85)),
    url("../img/fondo.jpg");
  background-size: cover;
  background-position: center;
  color: #f8f5f2;
  text-align: center;
}

.mensaje-final-card {
  max-width: 760px;
  margin: auto;
  padding: 55px 38px;
  border: 1px solid rgba(217,199,162,.35);
  border-radius: 28px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
}

.mensaje-final-card span {
  color: #e8b9a4;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 13px;
}

.mensaje-final-card h2 {
  font-size: 42px;
  font-weight: normal;
  margin: 20px 0;
}

.mensaje-final-card p {
  line-height: 1.8;
  color: #d9c7a2;
  font-size: 17px;
}

.firma {
  margin-top: 35px;
  color: #fff8f3 !important;
  font-size: 20px !important;
}
.rsvp {
  padding: 100px 22px;
  background: #f8f5f2;
}

.rsvp-card {
  max-width: 560px;
  margin: auto;
  background: #fff8f3;
  border-radius: 28px;
  padding: 45px 35px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0,.12);
  border: 1px solid rgba(183,110,90,.2);
}

.rsvp-card h3 {
  font-size: 34px;
  color: #7d3f32;
  font-weight: normal;
  margin-bottom: 15px;
}

.lugares-text {
  color: #514844;
  margin-bottom: 30px;
  font-size: 18px;
}

.rsvp-card label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: #7d3f32;
}

.rsvp-card select,
.rsvp-card input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #d9c7a2;
  margin-bottom: 22px;
  font-size: 16px;
}

.cantidad-box {
  display: none;
}

.mensaje-confirmacion {
  margin-top: 30px;
  padding: 30px;
  border-radius: 22px;
  background: #171312;
  color: #f8f5f2;
}

.mensaje-confirmacion h3 {
  color: #e8b9a4;
}

.mensaje-confirmacion p {
  margin: 10px 0;
  color: #d9c7a2;
}

.mensaje-confirmacion strong {
  color: white;
  font-size: 20px;
}

.corazon {
  font-size: 42px;
  color: #b76e5a;
  margin-bottom: 10px;
}
.evento-icon{
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-icon img{
    width: 142.22px;
    height: 80px;
    object-fit: contain;
    transition: .35s ease;
}

.evento-card:hover .evento-icon img{
    transform: scale(1.1);
}