/* --- GLOBAL RESET & FONTS --- */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  color: #0d3950;
}

p {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  color: #0d3950;
  font-size: 24px;
}

.landing-quicksand {
  background-color: #f1e8d5;
  overflow-x: hidden;
  padding-bottom: 20px;
}

/* --- COMPONENTS --- */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #f1e8d5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(13, 57, 80, 0.1);
}

.img-logo-nav {
  padding: 5px;
  max-width: 75px;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.img-logo-nav:hover {
  opacity: 0.8 !important;
}

.img-logo-nav.visible {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
  margin: 0;
  margin-right: 40px;
}

.nav-links a {
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0d3950;
  transition: opacity 0.2s;
  padding: 6px 12px;
}

.nav-links a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.nav-links a.rsvp-link {
  color: #f1e8d5;
  font-weight: 600;
  background-color: #0d3950;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.nav-links a.rsvp-link:hover {
  text-decoration: none;
  opacity: 1;
  background-color: #1a4a63;
}

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

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #0d3950;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.button-2 {
  display: inline-block;
  background-color: #123446;
  color: white;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  transition: opacity 0.2s;
}

.button-2:hover {
  opacity: 0.85;
}

.location-wrapper .button-2 {
  margin-bottom: 15px;
}

/* --- HERO SECTION --- */
.inicio {
  text-align: center;
  padding-top: 80px;
}

.img-sitio {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.titulos-inicio {
  padding-top: 20px;
  padding-bottom: 15px;
}

.hero-title,
.hero-subtitle {
  font-size: 30px;
}

.hero-title {
  margin-bottom: 15px;
}

/* --- DIVIDERS (Flores) --- */
.division {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
  width: 95%;
  margin: 60px auto;
  overflow: hidden;
  height: 110px;
  flex-wrap: wrap;
}

.cornice-puffetti {
  max-width: 250px;
  height: auto;
  flex-shrink: 0;
}

/* --- EVENT SECTIONS (Shared Styles) --- */
.event-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.ceremony {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0;
}

.cocktail-and-dinner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0;
  margin-bottom: 15px;
}

.cocktail-and-dinner .event-venue {
  padding-top: 40px;
  padding-bottom: 20px;
  margin: 0;
}

.cocktail-and-dinner .location-wrapper {
  padding-bottom: 100px;
}

.cocktail-and-dinner .title-weekend {
  margin-bottom: 25px;
}

/* Ocultar fecha mobile en desktop */
.title-container .info-date {
  display: none;
}

/* Mostrar fecha desktop al costado */
.event-details>.info-date {
  display: block;
}

/* Espacio extra para la primera división */
.divider-main {
  margin-top: 50px;
  margin-bottom: 50px;
}

/* División después de ceremony */
.ceremony+.division {
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Dresscode en una sola línea en desktop */
.dress-code {
  white-space: nowrap;
}

.dress-code br {
  display: none;
}

.title-container {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 40px;
}

.title-weekend {
  font-size: clamp(24px, 6vw, 60px);
  font-weight: normal;
  margin-bottom: 10px;
}

.info-wedding {
  text-align: center;
  margin-bottom: 60px;
}

.event-body {
  display: flex;
  justify-content: center;
  gap: 80px;
  align-items: stretch;
  /* Obliga a la columna de texto a tener la altura de la imagen */
  padding-top: 20px;
}

.event-details {
  display: flex;
  flex-direction: column;
  /* Acerca los elementos al centro sin afectar gaps internos */
  justify-content: center;
  align-items: center;
  /* ¡CRUCIAL! Esto evita que el botón se estire al 100% */
  text-align: center;
  width: 100%;
}

.info-date {
  width: 100%;
  margin-bottom: 80px;
}

/* Mueve el "Saturday" hacia arriba solo en desktop sin afectar el resto */
@media (min-width: 769px) {
  .ceremony .event-details>.info-date.desktop-only {
    transform: translateY(10px);
  }
}

.location-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centra verticalmente este bloque */
  align-items: center;
  /* Centra horizontalmente el contenido (incluido el botón) */
  gap: 25px;
  /* Espacio entre Iglesia, Dirección y Botón */
}

/* Event Images */
.img-event {
  height: auto;
  display: block;
}

.img-ceremony {
  width: 700px;
  max-width: 100%;
}

.img-dinner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Clase especial para alinear texto con la cruz de la iglesia */
.text-ceremony-align {
  padding-top: 15px;
}

.event-venue {
  font-size: 28px;
  margin-top: 20px;
  margin-bottom: 45px;
  line-height: 1.2;
}

.dress-code {
  margin-top: 25px;
  padding-bottom: 5px;
  font-size: 20px;
  width: 100%;
}

/* Desktop: dresscode más arriba */
.ceremony .dress-code {
  margin-top: 25px;
}

.address-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  /* Alinea el pin con la primera línea de texto */
  text-align: left;
  /* Para que la calle y ciudad se lean bien */
}

.location-pin {
  width: 18px;
  margin-top: 5px;
}

.address-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.address-street {
  margin-bottom: 15px;
  /* Espaciado uniforme */
}

/* --- RSVP SECTION --- */
.RSVP {
  background-image: url("../img/Fondo\ righe\ trasparente.png");
  background-repeat: repeat;
  background-position: center;
  text-align: center;
  padding: 40px 20px;
}

.wrapper-RSVP {
  background-color: #f1e8d5;
  border: 2px solid #6fa1b6;
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.wrapper-RSVP h2,
.wrapper-RSVP p {
  text-align: center;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  gap: 25px;
}

.form-row .input-wrapper {
  flex: 1;
}

.input-label {
  color: #123446;
  font-size: 18px;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
}

.input-field {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #6fa1b6;
  resize: none;
  background-color: white;
  font-size: 16px;
  font-family: "Quicksand", sans-serif;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: #0d3950;
  box-shadow: 0 0 0 3px rgba(111, 161, 182, 0.3);
}

.required-star {
  color: #c0392b;
  font-weight: 600;
}

.rsvp-confirmation {
  text-align: center;
  padding: 30px;
}

.confirmation-message {
  font-size: 22px;
  color: #0d3950;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
}

.button-2.loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-italic-title {
  font-family: "Source Sans 3", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 25px;
}

.fieldset-legend {
  font-family: "Quicksand", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #123446;
  margin-bottom: 15px;
}

.personal-fieldset,
.address-fieldset,
.attendance-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.radio-options-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

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

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #6fa1b6;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: white;
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
  border-color: #0d3950;
  background: #0d3950;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #0d3950;
}

.radio-option input[type="radio"]:hover {
  border-color: #0d3950;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 4px;
}

.radio-option label {
  font-family: "Quicksand", sans-serif;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  color: #123446;
}

.text-wrapper-21 {
  font-size: 18px;
  font-weight: 500;
  color: #123446;
  font-family: "Quicksand", sans-serif;
  margin-bottom: 15px;
}

.submit-button-container {
  text-align: center;
}

/* --- TRAVEL SECTION --- */
.travel {
  text-align: center;
  padding-top: 100px;
}

.travel>.cornice-puffetti {
  margin-bottom: 60px;
  margin-top: 50px;
}

.travel>.title-weekend {
  margin-bottom: 70px;
}

article.how-to-get-here {
  background: url("../img/htgh.png") no-repeat center / 100% 100%;
  padding: 40px 30px;
  margin-top: 0;
  position: relative;
}

article.how-to-get-here .columns-container {
  margin-top: 20px;
}

.columns-container {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.column-image {
  flex-basis: 50%;
}

.column-text-desktop {
  flex-basis: 70%;
  text-align: center;
}

.column-text-desktop p {
  text-align: center;
  margin-bottom: 12px;
}

.column-text-desktop p:last-child {
  margin-bottom: 0;
}

.airlines-text {
  text-align: center;
  margin-top: 8px;
  font-size: 24px;
}

.the-easiest-way-to,
.text-wrapper-29,
.text-wrapper-28 {
  font-size: 24px;
}

.text-wrapper-29 {
  margin-top: 35px;
  margin-bottom: 35px;
}

.mobile-only,
.mobile-text {
  display: none;
}

.text-third {
  margin-top: 25px;
  text-align: center;
}

.text-third p {
  text-align: center;
}

img.how-to-get-here {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

article.where-to-stay {
  margin-top: 50px;
}

img.where-to-stay-2 {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 20px 0;
}

/* Click here to view hotels link */
#view-hotels-link {
  color: #0d3950;
  font-weight: bold;
}

.text-wrapper-31 {
  font-weight: bold;
}

.book-early-notice {
  background: url("../img/Vector.png") no-repeat center / 100% 100%;
  padding: 10px 25px;
  margin: 25px auto;
  width: fit-content;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .book-early-notice {
    white-space: normal;
    width: auto;
    padding: 10px 20px;
    margin: 15px 20px;
  }
}

/* Space between Click here and Around Montalto */
.component {
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .component {
    margin-bottom: 30px;
  }
}

.sub-heading {
  font-size: clamp(24px, 5vw, 40px);
  margin-bottom: 5px;
}

#hotel-list-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.hotel-card:nth-child(-n+3) {
  animation-delay: 0s;
}

.hotel-card:nth-child(n+4):nth-child(-n+6) {
  animation-delay: 0.1s;
}

.hotel-card:nth-child(n+7):nth-child(-n+9) {
  animation-delay: 0.2s;
}

.hotel-card:nth-child(n+10):nth-child(-n+12) {
  animation-delay: 0.3s;
}

.hotel-card:nth-child(n+13):nth-child(-n+15) {
  animation-delay: 0.4s;
}

.hotel-card:nth-child(n+16) {
  animation-delay: 0.5s;
}

/* Hotel grid */
.hotel-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
  animation: fadeSlideDown 0.4s ease both;
}

.hotel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: calc((100% - 60px) / 3);
  animation: fadeIn 0.4s ease both;
}

.hotel-name {
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #0d3950;
  margin-bottom: 4px;
}

.hotel-link {
  font-family: "Source Sans 3", sans-serif;
  font-size: 17px;
  color: #0d3950;
  text-decoration: underline;
  display: block;
}

.hotel-distance {
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  color: #5a7a8a;
  font-style: italic;
  margin-top: 4px;
}

/* --- AROUND MONTALTO SECTION --- */
.around-montalto {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  isolation: isolate;
}

.around-montalto::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: url("../img/bg yellow.png") no-repeat center / 100% 100%;
  z-index: -1;
}

.around-montalto-intro {
  width: 1100px;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 20px 0;
  line-height: 1.6;
  padding: 0 40px;
}

.around-montalto-intro:first-of-type {
  margin-top: 40px;
}

.around-montalto-intro:last-of-type {
  margin-bottom: 20px;
}

.around-montalto-subtitle {
  margin: 25px 0 30px;
  font-size: 22px;
}

.recommendations-wrapper {
  margin: 0 auto;
}

.recommendations-card {
  background: #e6ddc9;
  border-radius: 0 0 16px 16px;
  padding: 30px 50px 40px;
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 0;
}

.tab-button {
  flex: 1;
  background: #d4c9b1;
  border: none;
  padding: 10px 24px;
  font-family: "Quicksand", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0d3950;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  position: relative;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background-color: #0d3950;
  transition: transform 0.35s ease;
}

.tab-button:first-child {
  border-radius: 12px 0 0 0;
}

.tab-button:last-child {
  border-radius: 0 12px 0 0;
}

.tab-button:hover {
  background: #ddd3bd;
}

.tab-button.active {
  background: #e6ddc9;
}

.tab-button.active::after {
  transform: translateX(-50%) scaleX(1);
}

.tab-panel {
  display: none;
  text-align: left;
  position: relative;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

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

.tab-panel-img {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 230px;
  height: auto;
  opacity: 1;
  pointer-events: none;
}

#panel-beaches .tab-panel-img {
  width: 270px;
}

#panel-cultural .tab-panel-img {
  width: 310px;
}

@media (max-width: 600px) {
  .tab-panel-img {
    display: none;
  }
}

.recommendations-list {
  list-style: none;
  padding-left: 20px;
}

.recommendations-list li {
  font-family: "Source Sans 3", sans-serif;
  font-size: 20px;
  color: #0d3950;
  padding: 12px 0;
  line-height: 1.5;
}

.recommendations-list li::before {
  content: "\2022";
  color: #6fa1b6;
  font-size: 14px;
  display: inline-block;
  width: 20px;
  margin-left: -20px;
}

/* --- WEDDING GIFTS SECTION --- */
.wedding-gifts {
  text-align: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.wedding-gifts-img {
  max-width: 280px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.wedding-gifts-text {
  max-width: 500px;
  margin: 20px auto 30px;
  line-height: 1.6;
}

.wishlist-button {
  margin-bottom: 0;
}

.registry-intro {
  max-width: 500px;
  margin: 30px auto 15px;
  font-size: 24px;
  text-align: center;
  line-height: 1.6;
  font-family: "Source Sans 3", sans-serif;
  color: #0d3950;
}

.registry-list {
  list-style: none;
  padding-left: 0;
  max-width: 600px;
  margin: 0 auto 30px;
  text-align: center;
  line-height: 1.6;
  font-family: "Source Sans 3", sans-serif;
  color: #0d3950;
}

.registry-list li {
  max-width: 500px;
  margin: 0 auto;
  font-size: 20px;
  padding: 6px 0;
  line-height: 1.4;
  text-align: center;
  font-family: "Source Sans 3", sans-serif;
  color: #0d3950;
}

@media (min-width: 769px) {
  .wedding-gifts {
    padding: 60px 40px;
    max-width: 700px;
  }

  .wedding-gifts-text {
    max-width: 600px;
    margin: 30px auto 40px;
  }

  /* FAQ desktop - items more extensive */
  .faq-section {
    max-width: 900px;
    padding: 60px 60px;
  }

  .faq-item {
    padding: 0 20px;
  }

  .faq-toggle {
    padding: 20px 0;
  }

  /* Alineación vertical de textos en Ceremony - Desktop */
  .ceremony .text-ceremony-align {
    padding-top: 50px;
  }

  .ceremony .event-details>.info-date {
    margin-top: 60px;
    margin-bottom: 60px;
    transform: translateY(30px);
  }

  .ceremony .event-venue {
    transform: translateY(-25px);
  }

  .ceremony .address-row {
    transform: translateY(-55px);
  }

  .ceremony .location-wrapper>.button-2 {
    transform: translateY(-20px);
  }

  .ceremony .dress-code {
    transform: translateY(-20px);
  }

  .ceremony .address-street {
    margin-bottom: 20px;
  }
}

/* --- FAQ SECTION --- */
.faq-section {
  text-align: center;
  padding: 0 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-header-img {
  max-width: 250px;
  height: auto;
  margin: 0 auto 80px;
  display: block;
}

.faq-item {
  text-align: left;
}

.faq-toggle {
  background: none;
  border: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #0d3950;
}

.faq-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-toggle.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  line-height: 1.6;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
  opacity: 1;
  padding: 0 0 15px;
}

.faq-answer ul {
  list-style: disc;
  padding-left: 25px;
  margin-top: 10px;
}

.faq-answer li {
  font-family: "Source Sans 3", sans-serif;
  font-size: 20px;
  color: #0d3950;
  padding: 4px 0;
}

.faq-answer a {
  color: #0d3950;
}

.faq-divider {
  border: none;
  border-top: 1px solid #0d3950;
  margin: 0;
}

/* --- FOOTER --- */
.site-footer {
  text-align: center;
  padding: 30px 20px 10px;
}

.footer-decoration {
  max-width: 350px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Footer divider - misma guirnalda que arriba */
.footer-divider {
  margin: 40px auto 20px;
  width: 95%;
  max-width: 100%;
  overflow: hidden;
}

/* Evitar doble linea en guirnaldas largas */
.divider-main {
  flex-wrap: nowrap;
}

/* Ocultar flores en guirnaldas largas para que no hagan wrap */
@media (max-width: 1200px) {
  .divider-main .cornice-puffetti:nth-last-child(1) {
    display: none;
  }
}

@media (max-width: 1055px) and (min-width: 601px) {

  .divider-main .cornice-puffetti:nth-last-child(1),
  .divider-main .cornice-puffetti:nth-last-child(2) {
    display: none;
  }
}

@media (max-width: 800px) and (min-width: 601px) {
  .divider-main .cornice-puffetti:nth-last-child(3) {
    display: none;
  }
}

/* --- RESPONSIVE: Desktop medium (max-width: 1100px) --- */
@media (max-width: 1100px) {
  .ceremony {
    max-width: 100%;
    padding: 0;
  }

  .event-body {
    gap: 40px;
  }

  .info-date .p {
    white-space: normal;
  }
}

/* --- RESPONSIVE: Tablet (max-width: 768px) --- */
@media (max-width: 768px) {

  /* Navbar: hamburger visible, links collapsed */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f1e8d5;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-links.open {
    display: flex;
    max-height: 300px;
    padding: 8px 20px 12px;
  }

  .nav-links li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(13, 57, 80, 0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: 17px;
  }

  .nav-links a.rsvp-link {
    background-color: #0d3950;
    color: #f1e8d5;
    border-radius: 4px;
  }

  /* Typography */
  p {
    font-size: 20px;
    line-height: 1.5;
  }

  /* Event layout: stack on tablet (dinner only) */
  .event-body {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* Ceremony keeps row layout on all screens, scales down */
  .ceremony .event-body {
    flex-direction: row;
    gap: 20px;
  }

  .ceremony .img-ceremony {
    width: 45vw;
  }

  .ceremony .event-details {
    font-size: 16px;
  }

  .ceremony .event-venue {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .ceremony .dress-code {
    font-size: 16px;
  }

  .event-details {
    height: auto;
    justify-content: center;
  }

  .ceremony {
    padding: 0;
  }

  .cocktail-and-dinner {
    padding: 0;
  }

  /* Columns (Travel): stack vertical */
  .columns-container {
    flex-direction: column;
  }

  /* Around Montalto */
  .recommendations-card {
    padding: 25px 35px 30px;
  }

  .tab-button {
    padding: 6px 12px;
    font-size: 16px;
  }

  /* Hotel grid tablet */
  .hotel-grid {
    gap: 30px 20px;
  }

  .hotel-card {
    width: calc((100% - 20px) / 2);
  }
}

/* --- RESPONSIVE: Mobile (max-width: 600px) --- */
@media (max-width: 600px) {

  /* Hero */
  .inicio {
    padding-top: 80px;
  }

  .hero-title,
  .hero-subtitle {
    font-size: 22px;
  }

  /* Typography */
  p {
    font-size: 18px;
    line-height: 1.4;
  }

  .info-date .p,
  .event-venue {
    font-size: 16px;
    text-wrap: balance;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Title container menos espacio en mobile */
  .title-container {
    margin-bottom: 15px;
  }

  /* Fecha debajo del título solo en mobile */
  .title-container .info-date {
    display: block;
    margin-top: 8px;
    margin-bottom: 3px;
    text-align: center;
    width: 100%;
  }

  .title-container .info-date .p {
    font-size: 16px;
    color: #0d3950;
    margin: 0 auto;
    text-align: center;
    display: block;
    width: 100%;
    line-height: 1.3;
  }

  /* Ocultar la fecha del lateral en mobile */
  .event-details>.info-date {
    display: none;
  }

  /* Mostrar la fecha debajo del título solo en mobile */
  .title-container .info-date {
    display: block;
  }

  /* Ocultar fecha de desktop en mobile */
  .desktop-only {
    display: none !important;
  }

  /* Dresscode en dos líneas en mobile */
  .dress-code {
    white-space: normal;
  }

  .dress-code br {
    display: block;
  }

  /* Dividers - Guirnaldas decorativas en mobile */
  .division {
    height: auto;
    min-height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
    flex-wrap: nowrap;
    gap: 3px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .divider-main {
    margin-top: 25px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 320px;
  }

  /* Primera guirnalda - 2 flores */
  .divider-main .cornice-puffetti {
    height: 27.88px;
    width: 130.5px;
    max-height: 27.88px;
    max-width: 130.5px;
    flex-shrink: 0;
    flex-grow: 0;
    object-fit: contain;
  }

  /* Ocultar flores 3, 4 y 5 en mobile (mostrar solo 2) */
  .divider-main .cornice-puffetti:nth-child(3),
  .divider-main .cornice-puffetti:nth-child(4),
  .divider-main .cornice-puffetti:nth-child(5) {
    display: none;
  }

  /* División después de ceremony - mostrar solo 1 flor */
  .ceremony+.division .cornice-puffetti:nth-child(2),
  .ceremony+.division .cornice-puffetti:nth-child(3) {
    display: none;
  }

  .ceremony+.division {
    max-width: 180px;
    width: 100%;
  }

  .ceremony+.division .cornice-puffetti {
    height: 27.88px;
    width: 130.5px;
    max-height: 27.88px;
    max-width: 130.5px;
    flex-shrink: 0;
    flex-grow: 0;
    object-fit: contain;
  }

  /* Ajuste para la división en travel */
  .travel>.cornice-puffetti {
    height: auto;
    width: 50%;
    max-height: 50px;
    max-width: 160px;
    display: block;
    margin: 25px auto;
  }

  /* Titles */
  .title-ceremony {
    margin-top: 15px;
  }

  /* Event Layout - sin padding */
  .ceremony {
    padding: 0;
  }

  .cocktail-and-dinner {
    padding: 0;
  }

  .ceremony .event-body {
    gap: 15px;
  }

  /* Imagen más grande */
  .img-ceremony {
    width: 55vw;
    max-width: 250px;
  }

  .ceremony .event-details {
    font-size: 14px;
    gap: 8px;
  }

  .ceremony .event-venue {
    font-size: 17px;
    margin-bottom: 5px;
    margin-top: 0;
  }

  /* Dress code más cerca del botón */
  .ceremony .dress-code {
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0;
  }

  .ceremony .location-wrapper {
    gap: 8px;
    margin: 0;
  }

  .address-row {
    justify-content: center;
    margin: 5px 0;
  }

  .event-venue,
  .address-street {
    margin-bottom: 5px;
  }

  .button-2 {
    padding: 8px 18px !important;
    font-size: 15px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }

  /* Centrar todos los textos en ceremony */
  .ceremony .event-details {
    text-align: center;
    align-items: center;
  }

  .ceremony .location-wrapper {
    text-align: center;
    align-items: center;
  }

  .ceremony .address-row {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    max-width: 320px;
    margin: 5px auto;
  }

  .ceremony .address-text-block {
    text-align: left;
    align-items: flex-start;
  }

  .ceremony .address-street {
    text-align: left;
    font-size: 15px;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
  }

  .ceremony .address-city {
    text-align: center;
    font-size: 15px;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    width: 100%;
  }

  .ceremony .location-pin {
    width: 16px;
    margin-top: 3px;
    flex-shrink: 0;
  }

  /* Aplicar mismos tamaños de fuente a Cocktail and Dinner */
  .cocktail-and-dinner .event-details {
    font-size: 14px;
  }

  .cocktail-and-dinner .event-venue {
    font-size: 17px;
    padding-top: 20px;
    padding-bottom: 15px;
  }

  .cocktail-and-dinner .address-street {
    font-size: 15px;
  }

  .cocktail-and-dinner .address-city {
    font-size: 15px;
  }

  .location-wrapper {
    gap: 15px;
  }

  .dress-code {
    margin-top: 15px;
  }

  /* Around Montalto mobile */
  .recommendations-card {
    padding: 20px;
    border-radius: 0 0 12px 12px;
  }

  .tab-button {
    padding: 8px 10px;
    font-size: 14px;
  }

  .tab-button:first-child {
    border-radius: 8px 0 0 0;
  }

  .tab-button:last-child {
    border-radius: 0 8px 0 0;
  }

  .recommendations-list li {
    font-size: 16px;
    padding: 12px 0;
    line-height: 1.5;
  }

  .around-montalto-subtitle {
    font-size: 18px;
  }

  .around-montalto-intro {
    padding: 0 20px;
  }

  /* Wedding Gifts mobile */
  .wedding-gifts-img {
    max-width: 200px;
  }

  .registry-intro {
    font-size: 18px;
    margin: 20px auto 10px;
  }

  .registry-list li {
    font-size: 16px;
  }

  /* RSVP mobile - espaciado original */
  .wrapper-RSVP {
    padding: 30px 16px;
    max-width: 90vw;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .input-wrapper {
    margin-bottom: 16px;
  }

  .personal-fieldset,
  .address-fieldset,
  .attendance-fieldset {
    margin: 0 0 20px 0;
  }

  .input-wrapper {
    gap: 6px;
    margin-bottom: 16px;
  }

  /* FAQ mobile */
  .faq-header-img {
    max-width: 200px;
  }

  .faq-toggle {
    font-size: 18px;
  }

  .faq-answer li {
    font-size: 16px;
  }

  .footer-decoration {
    max-width: 250px;
  }

  /* Footer divider mobile - igual que la primera guirnalda (2 flores) */
  .footer-divider {
    margin: 30px auto 15px;
    width: auto;
    max-width: 280px;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .footer-divider .cornice-puffetti {
    height: auto;
    width: 45%;
    max-height: 30px;
    max-width: 120px;
    flex-shrink: 1;
  }

  .footer-divider .cornice-puffetti:nth-child(3),
  .footer-divider .cornice-puffetti:nth-child(4),
  .footer-divider .cornice-puffetti:nth-child(5) {
    display: none;
  }

  /* Hotel grid mobile */
  .hotel-grid {
    gap: 30px;
  }

  .hotel-card {
    width: 100%;
  }

  .hotel-name {
    font-size: 18px;
  }

  .hotel-link {
    font-size: 16px;
  }

  /* Modal responsive - formato rectangular vertical */
  .modal-content.rectangular {
    max-width: 90vw;
    padding: 30px 40px;
  }

  .modal-dogs-img {
    max-width: 120px;
  }

  .modal-check-img {
    max-width: 40px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-message {
    font-size: 16px;
  }

  /* Travel section mobile - espaciado reducido */
  .travel {
    padding-top: 60px;
  }

  .travel>.title-weekend {
    margin-bottom: 50px;
  }

  article.how-to-get-here {
    padding: 30px 20px;
  }

  .columns-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
  }

  .column-image {
    flex: 0 0 45%;
    max-width: 45%;
    margin: 0;
    float: none;
  }

  .column-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .column-text-desktop {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .column-text-desktop .the-easiest-way-to {
    text-align: center;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .column-text-desktop .airlines-text,
  .column-text-desktop .desktop-only {
    display: none;
  }

  .airlines-text.mobile-text {
    display: block;
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    clear: both;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    margin-top: 15px;
    text-align: center;
  }

  .mobile-only p {
    text-align: center;
    font-size: 16px;
  }

  .text-wrapper-29 {
    margin-top: 0;
    margin-bottom: 0;
  }

  .text-third {
    margin-top: 20px;
    text-align: center;
  }

  .text-third p {
    text-align: center;
    margin-bottom: 0;
    font-size: 16px;
  }

  /* Where to stay mobile adjustments */
  article.where-to-stay {
    margin-top: 40px;
    text-align: center;
    padding: 0 30px;
  }

  article.where-to-stay h3 {
    margin-bottom: 25px;
  }

  img.where-to-stay-2 {
    margin: 25px auto;
  }

  .we-have-put-together {
    text-align: center;
    margin: 25px 0;
  }

  .book-early-notice {
    margin: 25px auto;
  }
}

/* --- MODAL RSVP --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 57, 80, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #f1e8d5;
  border: 2px solid #6fa1b6;
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay:not([hidden]) .modal-content {
  transform: scale(1);
}

.modal-title {
  font-family: "Quicksand", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #0d3950;
  margin-bottom: 15px;
}

.modal-message {
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  color: #0d3950;
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-close-btn {
  margin-top: 20px;
  min-width: 120px;
}

/* Modal Rectangular Vertical Layout */
.modal-content.rectangular {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 550px;
  width: 90%;
  padding: 40px 60px;
}

.modal-dogs-img {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
}

.modal-check-img {
  max-width: 50px;
  height: auto;
  display: block;
  margin: 10px auto;
}

.modal-content.rectangular .modal-title {
  margin-bottom: 10px;
}

.modal-content.rectangular .modal-message {
  margin-bottom: 5px;
}

.modal-content.rectangular .modal-close-btn {
  margin-top: 20px;
}

/* Cerrar modal al hacer click fuera */
.modal-overlay {
  cursor: pointer;
}

.modal-content {
  cursor: default;
}

/* --- LOGIN OVERLAY --- */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1e8d5;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Decorative corners - tamaño proporcional al boceto */
.login-decoration {
  position: absolute;
  width: 140px;
  height: 140px;
  background: url("../img/esquinero.png") no-repeat center / contain;
  pointer-events: none;
}

.login-decoration.top-left {
  top: 5px;
  left: 5px;
  transform: rotate(0deg);
}

.login-decoration.top-right {
  top: 5px;
  right: 5px;
  transform: rotate(90deg);
}

.login-decoration.bottom-left {
  bottom: 5px;
  left: 5px;
  transform: rotate(-90deg);
}

.login-decoration.bottom-right {
  bottom: 5px;
  right: 5px;
  transform: rotate(180deg);
}

/* Login content - según boceto */
.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 400px;
  width: 90%;
  padding: 40px 20px;
  z-index: 1;
}

.login-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 10px;
}

.login-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.password-input {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 12px 20px;
  border: 2px solid #6fa1b6;
  border-radius: 10px;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  color: #0d3950;
  background: white;
  text-align: left;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.password-input:focus {
  border-color: #0d3950;
  box-shadow: 0 0 0 3px rgba(111, 161, 182, 0.3);
}

.password-input::placeholder {
  color: #9ab3c0;
  font-size: 15px;
}

.unlock-btn {
  background: #0d3950;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: "Quicksand", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.unlock-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.unlock-btn:active {
  transform: translateY(0);
}

.error-message {
  color: #c0392b;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  opacity: 0.9;
}

/* Desktop login styles */
@media (min-width: 769px) {
  .login-decoration {
    width: 180px;
    height: 180px;
  }

  .login-decoration.top-left {
    top: 8px;
    left: 8px;
  }

  .login-decoration.top-right {
    top: 8px;
    right: 8px;
  }

  .login-decoration.bottom-left {
    bottom: 8px;
    left: 8px;
  }

  .login-decoration.bottom-right {
    bottom: 8px;
    right: 8px;
  }

  .login-content {
    max-width: 500px;
    gap: 40px;
  }

  .login-logo {
    max-width: 220px;
  }

  .password-input {
    font-size: 18px;
    padding: 14px 24px;
    max-width: 320px;
    min-width: 250px;
  }

  .unlock-btn {
    font-size: 16px;
    padding: 14px 28px;
  }
}

/* Mobile login adjustments - proporcional al boceto */
@media (max-width: 480px) {
  .login-decoration {
    width: 100px;
    height: 100px;
  }

  .login-decoration.top-left {
    top: 3px;
    left: 3px;
  }

  .login-decoration.top-right {
    top: 3px;
    right: 3px;
  }

  .login-decoration.bottom-left {
    bottom: 3px;
    left: 3px;
  }

  .login-decoration.bottom-right {
    bottom: 3px;
    right: 3px;
  }

  .login-content {
    padding: 30px 20px;
    gap: 25px;
    max-width: 350px;
  }

  .login-logo {
    max-width: 150px;
  }

  .login-form {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .password-input {
    font-size: 15px;
    padding: 12px 18px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #6fa1b6;
    text-align: left;
  }

  .password-input::placeholder {
    font-size: 14px;
  }

  .unlock-btn {
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-left: auto;
  }

  .error-message {
    font-size: 14px;
  }
}