:root {
  --color-primario: #606644 ;
  --color-secundario: #565d3a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  color: #f7f7f7;
  background: #f4f0e9;
  min-height: 100vh;
  position: relative;
}

/* Full-width page background: save-the-date, content scrolls on top, subtle parallax via JS */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("../img/save-the-date.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: background-position;
}

p {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 17px;
}

h4 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 25px;
  font-weight: 400;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

a:hover {
  text-decoration: none;
}

/* Template buttons (ceremonia-fiesta, wedding-party, CBU, confirm, accommodations, dress-code, agenda) */
.ceremonia-fiesta .btn,
.wedding-party .btn,
.cbu .btn,
.confirm .btn,
.accommodations .btn,
.dress-code .btn,
.agenda .btn {
  font-family: "Montserrat", sans-serif;
  color: white;
  background-color: #bd6130;
  border-radius: 30px;
  padding: 10px 40px;
  border: 1px solid #bd6130;
  text-transform: uppercase;
}

.ceremonia-fiesta .btn:hover,
.wedding-party .btn:hover,
.cbu .btn:hover,
.confirm .btn:hover,
.accommodations .btn:hover,
.dress-code .btn:hover,
.agenda .btn:hover {
  color: #bd6130;
  background-color: white;
}

.btn-alt {
  font-family: "Montserrat", sans-serif;
  color: #bd6130;
  background-color: white;
}

.btn-alt:hover {
  color: white;
  background-color: #bd6130;
  border: 1px solid white;
}

.btn:focus {
  box-shadow: none;
}

.fancybox-bg {
  background-color: var(--color-primario) !important;
}

/* Fade in animation */
.fade-in {
  animation: fadeIn ease 4s;
  -webkit-animation: fadeIn ease 4s;
  -moz-animation: fadeIn ease 4s;
  -o-animation: fadeIn ease 4s;
  -ms-animation: fadeIn ease 4s;
}

/* Elements that animate on scroll (opacity 0 until they enter the viewport) */
.fiesta,
.regalo,
.divAlojamientos,
.divFiesta,
.divCbu,
.dress-code-content,
.confirm-content,
.agenda-content {
  opacity: 0;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-moz-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-webkit-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-o-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-ms-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Fade in up animation */
.fadeInUp {
  animation-name: fadeInUp;
  -webkit-animation-name: fadeInUp;
}

.animated {
  animation-duration: 1.5s;
  animation-fill-mode: both;
  -webkit-animation-duration: 1.5s;
  -webkit-animation-fill-mode: both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(120px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@-moz-keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(120px); }
  100% { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(120px); }
  100% { opacity: 1; transform: translateY(0); }
}

@-o-keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(120px); }
  100% { opacity: 1; transform: translateY(0); }
}

@-ms-keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(120px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Arrow for landing scroll */
.scroll-down {
  cursor: pointer;
  position: absolute;
  bottom: 40px;
  display: block;
  text-align: center;
  font-size: 20px;
  z-index: 9;
  text-decoration: none;
  text-shadow: 0;
  width: 30px;
  height: 30px;
  border-bottom: 5px solid #000;
  border-right: 5px solid #000;
  left: calc(50% - 15px);
  transform: translate(-50%, 0%) rotate(45deg);
  -webkit-transform: translate(-50%, 0%) rotate(45deg);
  -moz-transform: translate(-50%, 0%) rotate(45deg);
  animation: fade_move_down 2s ease-in-out infinite;
  -webkit-animation: fade_move_down 2s ease-in-out infinite;
  -moz-animation: fade_move_down 2s ease-in-out infinite;
}

@-webkit-keyframes fade_move_down {
  0% { -webkit-transform: translate(0, -10px) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { -webkit-transform: translate(0, 10px) rotate(45deg); opacity: 0; }
}

@-moz-keyframes fade_move_down {
  0% { -moz-transform: translate(0, -10px) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { -moz-transform: translate(0, 10px) rotate(45deg); opacity: 0; }
}

@keyframes fade_move_down {
  0% { transform: translate(0, -10px) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(0, 10px) rotate(45deg); opacity: 0; }
}

/* Landing (position: relative so .scroll-down is positioned relative to the landing, not the body) */
section.landing {
  position: relative;
  height: 100vh;
}

/* Countdown */
section.countdown {
  font-family: "Montserrat", sans-serif !important;
  text-align: center;
  padding-top: 40px;
  background-color: var(--color-secundario);
  height: 250px;
}

section.countdown p {
  color: white;
}

.num_cuenta {
  font-size: 30px;
  margin-bottom: 0;
  font-weight: 600;
}

.margenSup {
  margin-top: 30px;
}

.text_cuenta {
  font-size: 15px;
}

#reloj {
  text-align: center;
  font-size: 25px;
  margin-bottom: 0;
}

.descartar {
  display: none;
}

/* Ceremonia / Fiesta (same layout as CBU: single column, icon, content) */
section.ceremonia-fiesta {
  text-align: center;
  padding: 40px 0 70px;
  background-color: var(--color-primario);
}

section.ceremonia-fiesta .icon.fa-solid,
section.ceremonia-fiesta img.icon {
  width: 150px;
}

section.ceremonia-fiesta .icon.fa-solid {
  display: inline-block;
  width: auto;
  font-size: 5.5rem;
  color: white;
}

section.ceremonia-fiesta h4 {
  margin-top: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: white;
  font-size: 25px;
}

section.ceremonia-fiesta p {
  margin-bottom: 25px;
  color: white;
}

/* Font Awesome section icons (CBU, etc.) */
section.cbu .icon.fa-solid {
  display: inline-block;
  width: auto;
  font-size: 5.5rem;
  color: inherit;
}

/* CBU */
section.cbu {
  text-align: center;
  padding: 40px 0 70px;
  background-color: var(--color-primario);
}

section.cbu img.icon {
  width: 150px;
}

section.cbu p {
  color: white;
}

/* Bank details modal: light background and dark text for readability */
#hidden-cbu {
  padding: 28px 32px;
  border-radius: 12px;
  background-color: #fff;
  color: #2c2c2c;
}

#hidden-cbu span.title {
  font-family: "Montserrat", sans-serif;
  display: inline-block;
  text-align: center;
  width: 100%;
  font-size: 25px;
  color: #1a4d2e;
  margin-bottom: 1rem;
  font-weight: 600;
}

#hidden-cbu ul {
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
  margin-bottom: 15px;
}

#hidden-cbu ul li {
  color: #2c2c2c;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

#hidden-cbu ul li a {
  color: #bd6130;
  text-decoration: underline;
  font-weight: 500;
}

#hidden-cbu .bank-row-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#hidden-cbu .btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #eee;
  color: #2c2c2c;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#hidden-cbu .btn-copy:hover {
  background: #bd6130;
  color: #fff;
}

#hidden-cbu .btn-copy.copied {
  background: #1a4d2e;
  color: #fff;
}

#hidden-cbu .btn-copy i {
  font-size: 0.95rem;
}

/* Attendance confirmation (same layout as CBU, etc.) */
section.confirm {
  text-align: center;
  padding: 40px 0 70px;
  background-color: var(--color-primario);
}

section.confirm .icon.fa-solid,
section.confirm img.icon {
  width: 150px;
}

section.confirm .icon.fa-solid {
  display: inline-block;
  width: auto;
  font-size: 5.5rem;
  color: white;
}

section.confirm h4 {
  margin-top: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: white;
  font-size: 25px;
}

section.confirm p {
  margin-bottom: 1rem;
  color: white;
}

section.confirm p:last-of-type {
  margin-bottom: 25px;
}

/* Font Awesome dropdown calendar links */
.iconLink.fa-brands {
  display: inline-block;
  width: 1em;
  font-size: 1.25rem;
  margin-right: 0.5rem;
  text-align: center;
  color: inherit;
}

/* Dress code (same layout as CBU / wedding-party) */
section.dress-code {
  text-align: center;
  padding: 40px 0 70px;
  background-color: var(--color-primario);
}

section.dress-code .icon.fa-solid,
section.dress-code img.icon {
  width: 150px;
}

section.dress-code .icon.fa-solid {
  display: inline-block;
  width: auto;
  font-size: 5.5rem;
  color: white;
}

section.dress-code h4 {
  margin-top: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: white;
  font-size: 25px;
}

section.dress-code p {
  margin-bottom: 0;
  color: white;
}

section.alojamientos {
  text-align: center;
}

section.dress-code img.icon {
  width: 150px;
}

section.alojamientos p {
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Agenda / Save the date (same layout as CBU, dress-code) */
section.agenda {
  text-align: center;
  padding: 40px 0 70px;
  background-color: var(--color-primario);
}

section.agenda .icon.fa-solid,
section.agenda img.icon {
  width: 150px;
}

section.agenda .icon.fa-solid {
  display: inline-block;
  width: auto;
  font-size: 5.5rem;
  color: white;
}

section.agenda h4 {
  margin-top: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: white;
  font-size: 25px;
}

section.agenda p {
  margin-bottom: 25px;
  color: white;
}

section.agenda .calendar-links {
  margin-top: 1rem;
  gap: 0.75rem;
}

section.agenda .calendar-links .btn {
  margin: 0.25rem;
}

section.alojamientos {
  padding: 80px 0 80px;
  background-color: var(--color-primario);
  color: white;
}

section.alojamientos .contenido {
  padding: 50px 10px;
}

section.alojamientos h4 {
  text-align: center;
  margin-bottom: 25px;
}

/* Useful info / Accommodations modal: same contrast scheme */
#hidden-alojamientos {
  padding: 28px 32px;
  border-radius: 12px;
  background-color: #fff;
  color: #2c2c2c;
}

#hidden-alojamientos span.title {
  font-family: "Montserrat", sans-serif;
  color: #1a4d2e;
  display: inline-block;
  text-align: center;
  width: 100%;
  font-size: 25px;
  margin-bottom: 1rem;
  font-weight: 600;
}

#hidden-alojamientos ul {
  list-style: none;
  text-align: center;
  margin-bottom: 15px;
}

#hidden-alojamientos ul li {
  color: #2c2c2c;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

#hidden-alojamientos ul li a {
  color: #bd6130;
  text-decoration: underline;
  font-weight: 500;
}

.hidden {
  display: none;
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.vertical_shake {
  animation: vertical-shaking 0.7s infinite;
}

@keyframes vertical-shaking {
  0% { transform: translateY(0); }
  25% { transform: translateY(4px); }
  50% { transform: translateY(-4px); }
  75% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

/* ========== Overrides & page layout (unified) ========== */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 0rem 4rem 0rem;
}

/* Full-width sections (break out of .page container) */
.page section.ceremonia-fiesta,
.page section.cbu,
.page section.dress-code,
.page section.confirm,
.page section.accommodations,
.page section.alojamientos,
.page section.agenda {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

/* Spacing between sections */
.page > section + section {
  margin-top: 2rem;
}

.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}

.hero__eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  margin: 0 0 2rem;
}

/* Pill-style countdown (only for components using .countdown-pill; section uses .countdown) */
.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.countdown-pill .countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.3rem;
}

.countdown-pill .countdown__number {
  font-weight: 600;
  font-size: 1.3rem;
}

.countdown-pill .countdown__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.8;
}

.countdown-pill .countdown__separator {
  font-size: 1.2rem;
  opacity: 0.7;
}

.section {
  margin-top: 2.5rem;
  text-align: center;
}

.section--card {
  padding: 2.1rem 1.6rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top, #2e2e36, #101017);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.section--accent {
  padding: 2rem 1.8rem;
  border-radius: 1.25rem;
  background: linear-gradient(120deg, #242430, #181823);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.section__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.section__text {
  margin: 0 0 1.4rem;
  line-height: 1.6;
  color: rgba(246, 246, 250, 0.9);
}

.section__tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Default/utility buttons (sections, footer) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  color: #f5f5f7;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
}

.btn--primary {
  background: linear-gradient(135deg, #ffffff, #d0d0da);
  color: #111119;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.collapsible {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.3rem;
}

.collapsible__card {
  padding: 1.4rem 1.3rem;
  border-radius: 0.9rem;
  background: rgba(6, 6, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.collapsible__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-list li + li {
  margin-top: 0.3rem;
}

.calendar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.info-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li + li {
  margin-top: 0.9rem;
}

.info-list a {
  font-size: 0.85rem;
  text-decoration: underline;
}

/* Footer (unified) */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 1.5rem 2.8rem;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer__section {
  text-align: center;
  margin-bottom: 1.8rem;
}

.footer__section--nav .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.footer__text {
  margin: 0 0 0.9rem;
  color: rgba(236, 236, 242, 0.86);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.footer__list li + li {
  margin-top: 0.25rem;
}

.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.86;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer__legal {
  margin: 1.6rem 0 0;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(200, 200, 210, 0.82);
}

.footer__legal a {
  font-weight: 600;
  text-decoration: underline;
}

/* Ceremonia / Fiesta: .btn stays white (shared with cbu, alojamientos) */

/* Parallax landing: image fitted to viewport (cover) */
.parallax-mirror-landing {
  overflow: hidden;
}

.parallax-mirror-landing .parallax-slider {
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
}

/* Media queries */

@media (min-width: 720px) {
  .hero {
    padding-top: 4.5rem;
  }

  .page {
    padding-inline: 2.5rem;
  }

  .info-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
