/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

.components-container {
  width: 100%;
  overflow-x: hidden;
  padding: 0;
}

/* Main Menu Styles */
.main-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover {
  background: transparent;
  background-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1E1C1C;
}

/* Desktop: Horizontal sticky menu */
@media (min-width: 769px) {
  .main-menu {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .menu-toggle {
    display: none;
  }

  .menu-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    display: flex;
    justify-content: center;
    gap: 0;
    backdrop-filter: none;
  }

  .menu-item {
    display: inline-block;
    padding: 8px 20px;
    font-size: 16px;
    border-bottom: none;
    border-radius: 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
  }

  .menu-item:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1E1C1C;
    transform: translateY(-2px);
  }
}

/* Mobile: Collapsible menu */
@media (max-width: 768px) {
  .main-menu {
    top: 15px;
    right: 15px;
  }

  .menu-toggle {
    display: flex;
    width: 45px;
    height: 45px;
    font-size: 18px;
    background-color: transparent !important;
  }

  .menu-dropdown {
    min-width: 180px;
  }
}

* {
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  color: #222;
}

body {
  margin: 0px;
  width: 100%;
}

.header {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Remove or comment out any fixed height or padding that causes issues */
}

.details {
  padding-top: 0px;
  padding-left: 15%;
  padding-right: 15%;
  padding-bottom: 5%;
  text-align: center;
}

.details h2 {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
}

.details h1 {
  font-family: 'Caveat', cursive;
  font-size: 6rem;
  margin-top: 15px;
  margin-bottom: 15px;
  color: #817649;
}

.details p {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 400;
}

.text-missing-days {
  font-family: 'Caveat', cursive !important;
  color: #daa668 !important;
  font-size: 2rem !important;
}

.main-containers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.main-containers>div {
  padding: 5%;
  text-align: center;
}

.child-containers {
  flex: 1 1 400px;
  max-width: 500px;
}

.child-containers p {
  text-align: center;
}

.calendar-button i {
  font-size: 1.2rem;
  color: white;
}

.calendar-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: green;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.calendar-button:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: green;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.calendar-actions {
  text-align: center;
  margin: 2rem 0;
}

.sub-heading {
  font-family: 'Caveat', cursive;
  font-size: 3em;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.ceremony-info-details-subtext {
  font-family: 'Caveat', cursive;
  font-size: 1.5em;
  font-weight: bolder;
  margin-top: 5px;
  margin-bottom: 5px;
}

.gallery-slider .gallery-slide {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.location-card {
  background: white;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
}

.confirm-assistance-text {
  font-family: 'Caveat', cursive;
  font-size: 1.5em;
  font-weight: 400;
  margin-top: 5px;
  margin-bottom: 5px;
}

.subchild-containers-wrapper {
  display: inline-flex;
}

.dress-code-image {
  width: 100%;
}

.sub-heading-dress-code {
  font-family: 'Caveat', cursive;
  font-size: 1.5em;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;
}

.header-content {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  position: relative;
  z-index: 5;
  top: 70px;
}

@media (max-width: 768px) {


  .header-content {
    top: 0px;
  }
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.7s;
  z-index: 1;
  background: #eaeaea;
}

.gallery-slide.active {
  display: block;
  opacity: 1;
  position: relative;
  z-index: 2;
}

.gallery-arrow {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-arrow-left {
  left: 10px;
}

.gallery-arrow-right {
  right: 10px;
}

.gallery-arrow:hover {
  background: transparent;
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 1023px) {
  .gallery-arrow {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .gallery-slider {
    max-width: 100%;
    min-height: 160px;
    aspect-ratio: 4/3;
  }

  .gallery-slide {
    max-width: 100%;
    min-height: 160px;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 350px) {
  .gallery-arrow {
    display: none !important;
  }
}

.floating-rsvp {
  position: fixed;
  background: transparent;
  top: 20px;
  right: 20px;
  left: auto;
  bottom: auto;
  z-index: 1002;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.floating-rsvp:hover,
.floating-rsvp:focus {
  outline: none;
  transform: scale(1.07);
}

.floating-rsvp i {
  color: green;
}

@media (max-width: 600px) {
  .floating-rsvp {
    font-size: 1.4rem;
    top: 12px;
    right: 12px;
    left: auto;
    bottom: auto;
  }

  .slider-container {
    flex: 0 0 60vh;
    max-height: 60vh;
    min-height: 0;
  }

  .slider .slide {
    height: 100%;
    max-height: 100%;
    aspect-ratio: unset;
  }

  .gallery-slider .gallery-slide {
    height: 40vh;
    max-height: 40vh;
    object-fit: cover;
  }
}

.music-player-controls {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 30px;
}

.music-player-controls button {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.music-player-controls button i {
  font-size: 18px;
  color: #fff;
  pointer-events: none;
}

.music-player-controls button:hover,
.music-player-controls button:focus {
  background: #d8430f;
  outline: none;
  transform: scale(1.08);
}

/* --- HEADER: Use dynamic viewport height for better mobile support --- */


/* --- SLIDER: Use aspect-ratio for background images --- */
.slider .slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 16/9;
  /* Keeps images proportional on all screens */
}

@media (max-width: 1023px) {
  .slider-arrow {
    display: none !important;
  }
}

/* Gallery styles for Recepción section */
.gallery {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.gallery-img {
  width: 48%;
  max-width: 320px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .gallery {
    flex-direction: column;
    gap: 0.7rem;
  }

  .gallery-img {
    width: 100%;
    max-width: 100%;
  }
}

/* Gallery Slider styles for Recepción section */
.gallery-slider {
  position: relative;
  width: 100%;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background: #f7f7f7;
  border-radius: 12px;
  overflow: hidden;
}

/* Slider Styles */
.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  padding: 18px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-arrow-left {
  left: 20px;
}

.slider-arrow-right {
  right: 20px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* Music Player Styles */
.music-player {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.music-toggle {
  background: transparent;
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.8);
}

.music-toggle.playing {
  color: #f35412;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .music-player {
    top: 15px;
    right: 15px;
  }

  .music-toggle {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

.modal-button {
  background: #1E1C1C;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.modal-button:hover {
  background: #333;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 40px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-button {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.rsvp-form h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #333;
}

@media (max-width: 768px) {
  .header {
    padding-top: 10vh;
  }

  .heading {
    font-size: 2.5rem;
  }

  .heading-subtext {
    font-size: 1.5rem;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown-item span:first-child {
    font-size: 2rem;
  }

  .modal-content {
    padding: 20px;
    margin: 20% auto;
  }

  .radio-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile slider adjustments */
  .slider-arrow {
    padding: 12px 10px;
    font-size: 16px;
  }

  .slider-arrow-left {
    left: 10px;
  }

  .slider-arrow-right {
    right: 10px;
  }

  .slider-dots {
    bottom: 20px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .header {
    min-height: unset !important;
    height: 100dvh !important;
    max-height: 100dvh;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* critical for flex scroll */
  }

  .details h1 {
    font-size: 3rem;
  }

  .details {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main-containers > div {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #1E1C1C;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #333;
}

.heading {
  margin-bottom: 2rem;
  color: #1E1C1C;
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
  font-family: 'Caveat', cursive;
  font-weight: normal;
  text-shadow: 0 0 10px #000;
}

.heading-subtext {
  display: block;
  margin-top: 1rem;
  font-size: 2rem;
}

.countdown-section {
  margin-top: 2rem;
}

.wedding-date {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-item span:first-child {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1E1C1C;
}

.countdown-item .label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}



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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.radio-group {
  display: inline-block;
  gap: 30px;
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-option input[type="radio"] {
  margin: 0;
}

.radio-option label {
  margin: 0;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.rsvp-form {
  max-width: 500px;
  margin: 1.5rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
}

.rsvp-form h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.heading-subtext {
  color: #000;
  display: block;
  font-family: 'Caveat', cursive;
  font-size: .6em;
}

.fixed-button {
  background: rgba(20, 20, 20, .5);
  border-radius: 1em;
  bottom: 1em;
  color: white;
  font-weight: bold;
  padding: 1em;
  position: fixed;
  right: 1em;
  text-decoration: none;
  z-index: 9999;
}

.fixed-button::after {
  content: "\25BE";
  display: block;
  font-size: 28px;
  line-height: 0;
  margin-bottom: 6px;
  margin-top: 10px;
  text-align: center;
}

.fixed-button:active,
.fixed-button:hover {
  background: rgba(20, 20, 20, .9);
}

.location-card h3 {
  color: #1E1C1C;
  margin-bottom: 0.5rem;
}

.map-container {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.directions-button {
  display: inline-block;
  background: #1E1C1C;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.directions-button:hover {
  background: #333;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }

  .header {
    max-height: 450px !important;
  }
}




.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.radio-group input[type="radio"] {
  margin-right: 0.5rem;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #1E1C1C;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #333;
}

/* Opcional: Estilo para campos requeridos */
label::after {
  content: " *";
  color: #ff0000;
  display: none;
}

label[for="name"]::after,
label[for="email"]::after,
.form-group:nth-child(4)>label::after {
  display: inline;
}

@media only screen and (max-width: 600px) {
  .heading {
    font-size: 4em;
  }
}

.fas {
  font-size: 3em;
  opacity: .8;
}

#numero-invitados {
  font-family: 'Caveat', cursive;
  font-size: 2em;
  font-weight: 400;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
}

/* Video Container Styles */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-video-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent!important;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  z-index: 10000;
}

.close-video-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.video-container.fade-out {
  animation: fadeOut 0.5s ease;
}

/* Mobile responsive for video */
@media only screen and (max-width: 768px) {
  .video-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  
  .video-wrapper {
    width: 95%;
    max-width: 95vw;
    aspect-ratio: 9/16; /* Vertical aspect ratio for mobile shorts */
    margin: 0 auto;
  }
  
  .close-video-btn {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

@media only screen and (max-width: 600px) {
  .video-container {
    padding: 10px;
  }
  
  .video-wrapper {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
}