@import url('https://fonts.googleapis.com/css2?family=Alice&family=Allura&family=Lora:ital,wght@0,400..700;1,400..700&family=Monsieur+La+Doulaise&family=MonteCarlo&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;

}

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #FCEDE2;
  font-family: 'Montserrat', sans-serif;
  height: 150vh;
}
/* ...existing code... */
#swipe-indicator {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s;
  animation: swipe-fadein 1.2s;
  overflow: visible !important;
}

#swipe-indicator.hide {
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.swipe-arrow {
  width: 32px;
  height: 32px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(-45deg);
  margin-bottom: 0.3rem;
  animation: swipe-arrow-move 1.1s infinite;
  opacity: 0.8;
}

@keyframes swipe-arrow-move {
  0% { transform: translateY(0) rotate(-45deg);}
  50% { transform: translateY(18px) rotate(-45deg);}
  100% { transform: translateY(0) rotate(-45deg);}
}

@keyframes swipe-fadein {
  from { opacity: 0;}
  to { opacity: 1;}
}



/* === LOADER DE INICIO === */
#loader-xv {
  position: fixed;
  inset: 0;
  background: #FCEDE2;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
}

#loader-xv .loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

#loader-xv .loader-spinner {
  border: 6px solid #e7d2c0;
  border-top: 6px solid #923231;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  animation: spin 1s linear infinite;
}

#loader-xv .loader-text {
  font-family: 'MonteCarlo', cursive;
  color: #923231;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-align: center;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.fade-in-opacity {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1);
}

.fade-in-opacity.visible {
  opacity: 1;
}

.content1 {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Cover Section */
.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  position: relative;

}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: -1;
  filter: brightness(0.8);
}

.text-cover {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: 'Montserrat', cursive;
  font-size: 1rem;
  font-weight: 200;
}

.name-cover {
  width: 100%;
  position: absolute;
  top: 58%;
  left: 46%;
  transform: translateX(-50%);
  color: #fff;
  font-family: 'MonteCarlo', cursive;
  font-size: 7rem;
  font-weight: 400;
}

.text-date{
  position: absolute;
  top: 78%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: 'Montserrat', cursive;
  font-size: 0.8rem;
  font-weight: 200;
}

/* Divider Image */
.divider-image {
  width: 90%;
  margin: 1.5rem auto;
  display: block;
}

/* Thanks and Parents Sections */
.thanks, .parents {
  display: block;

}

.thanks p, .parents p {
  font-family: 'Lora', serif;
  color: #923231;
  text-align: center;
  line-height: 1.5;
}

.thanks p{
  font-size: 4vw;
  text-align: center;
}

.thanks-paragraph {
  white-space: normal;
  word-break: break-word;
  width: 80%;
  margin: 0 auto;
}

.thanks-paragraph2 {
  white-space: normal;
  word-break: break-word;
  width: 80%;
  margin: 0 auto;
  margin-top: 0.5rem;
}


/* Parents Section */
.parents {
  position: relative;
  height: 60rem;
  text-align: center;
  padding: 2rem;
  margin-bottom: -18rem;
}

.parents-content {
  position: relative;
  text-align: center;
  line-height: 1.1;
  flex-direction: column;
  top: 33%; 
  left: 50%;
  transform: translate(-50%, -50%); 
  color: #923231;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  z-index: 10; 
}

.section-title p {
  font-family: 'Lora', serif;
  font-size: 3.5vw;
  margin-bottom: 2vw;
}

.group {
  margin-bottom: 2rem;
}

.highlight p {
  font-family: 'MonteCarlo', cursive;
  font-size: 12vw;
  color: #C19A6B;
  margin-bottom: 1vw;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.highlight {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.parent-name p, .godparent-name p {
  font-family: 'Lora', serif;
  font-size: 3.6vw;
  color: #923231;
  margin: 1vw 0;
}

.godparent-divider {
  border: none;
  border-top: 1px solid #92323133; 
  margin: 0.7em auto 0.7em auto;
  width: 60%;
}


/* Corner Images */
.corner-top-left img,
.corner-top-right1 img,
.corner-top-right2 img,
.bottom-left-corner1 img,
.bottom-left-corner2 img,
.bottom-right-corner img {
  position: absolute;
  width: 12rem;
  height: auto;
  z-index: 1;
}

.corner-top-left img { top: 0%; left: -10%; transform: rotate(2deg); }
.corner-top-right1 img { top: -1%; right: -10%; transform: rotate(14deg); }
.corner-top-right2 img { top: 4%; right: 5%; transform: rotate(90deg); }
.bottom-left-corner1 img { bottom: 35%; left: -10%; transform: rotate(-90deg) scaleX(-1); }
.bottom-left-corner2 img { bottom: 40%; left: 5%; transform: rotate(-90deg); }
.bottom-right-corner img { bottom: 37%; right: -10%; transform: rotate(-180deg); }

.countdown{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40rem;
  text-align: center;
  position: relative;
  font-weight: 200;
  
}

.countdown-bg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: -1;
  filter: brightness(0.4);
}

.countdown-header {
  font-family: 'MonteCarlo', cursive;
  font-size: 10vw;
  color: #fff;
  margin-bottom: 2vw;
  text-shadow: 1px 1px 8px #0006;
  font-weight: 200;
  letter-spacing: 0.02em;
}

#countdown-timer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  font-family: 'Lora', serif;
  color: #fff;
  font-size: 10vw;
  font-weight: 200;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 8px #0006;
  margin-bottom: 0.2rem;
}

#countdown-timer span {
  min-width: 2.5rem;
  display: inline-block;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 200;
}

.countdown-units {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  color: #fff;
  font-size: 3vw;
  margin-top: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  letter-spacing: 0.05em;
  width: 100%;
  position: relative;
  top: -0.2rem;
}

#countdown-message {
  font-family: 'MonteCarlo', cursive;
  font-size: 8vw;
  color: #fff;
  margin-top: 5vw;
  text-shadow: 1px 1px 8px #0006;
  font-weight: 200;
}

.unit-days { margin-right: 1rem; }
.unit-seconds { margin-right: -1rem;}


.details-frame-wrap {
  position: relative;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.details{
  display: block;
  position: relative;
  width: 100%;
  height: auto; 
  text-align: center;
  padding: 2rem;
  overflow: visible !important; 
}

.frame-element1 img, .frame-element2 img, .frame-element3 img, .frame-element4 img, .frame-element5 img, .frame-element6 img {
  display: flex;
  width: 50vw;
  height: auto;
  z-index: -10;
}

.frame-element1 img {
  position: absolute;
  top: 0%;
  left: 0%;
  transform: translate(-32%, -7%);
}

.frame-element2 img {
  position: absolute;
  top: 0%;
  left: 0%;
  transform: translate(100%, -11%) rotate(180deg);
}

.frame-element3 img{
  position: absolute;
  top: 28%;
  left: 0%;
  transform: translate(-32%, 0);
}

.frame-element4 img{
  position: absolute;
  top: 0%;
  left: 0%;
  transform: translate(100%, 80%) rotate(180deg);
}

.frame-element5 img{
  position: absolute;
  top: 66%;
  left: 0%;
  transform: translate(-32%, 0);
}

.frame-element6 img{
  position: absolute;
  top: 0%;
  left: 0%;
  transform: translate(100%, 170%) rotate(180deg);
}

.icon-iglesia{
  display: flex;
  width: 30vw;
  height: auto;
  z-index: 1;
}

.icon-recepcion{
  display: flex;
  width: 20vw;
  height: auto;
  z-index: 1;
}

.icon-gala{
  display: flex;
  width: 20vw;
  height: auto;
  z-index: 1;
}

.icon-carta{
  display: flex;
  width: 20vw;
  height: auto;
  z-index: 1;
  margin-bottom: 4vw;
}


.details-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  margin-top: 2.5rem;
  z-index: 10;
}

.details-text {
  font-family: 'Alice', serif;
  font-size: 4.5vw;
  color: #76430d;
  text-align: top center;
  line-height: 1.5;
  max-width: 600px; 
  margin-bottom: -1rem;
}

.details-phrase{
  font-family: 'MonteCarlo', serif;
  font-size: 8vw;
  color: #923231;
  margin-bottom: 0.4vw;
  z-index: 10;
  padding: 0.5rem;
}

.details-block {
  min-height: 90px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.details-block2{
  min-height: 90px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.detail-info{
  font-family: 'Alice', cursive;
  font-size: 4vw;
  color: #C19A6B;
  margin-bottom: 0.4vw;
  font-style: italic; 
  padding-right: 0.5rem;
}

.details-label {
  font-family: 'MonteCarlo', cursive;
  font-size: 9vw;
  color: #C19A6B;
  margin-bottom: 0.4vw;
}

.details-place {
  font-family: 'Lora', serif;
  font-size: 4vw;
  color: #923231;
  margin-bottom: 0.4vw;
}

.details-time {
  font-family: 'Lora', serif;
  font-size: 4vw;
  color: #923231;
  font-style: italic;
  margin-bottom: 1.4vw;
}

.details-link {
  display: inline-block;
  padding: 0.8vw 2.4vw;
  background: #c1b085;
  color: #fff;
  border-radius: 1.4vw;
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5vw;
  text-decoration: none;
  margin-top: 1.4vw;
  margin-bottom: 1vw;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.details-link:hover,
.details-link:focus {
  background: #a18c5b;
  color: #fff;
}

.confirmation{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40rem;
  text-align: center;
  position: relative;
  font-weight: 200;
}

.attendance-bg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: -1;
  filter: brightness(0.4);
}

.confirmation-header-group{
  display: flex;
  position: absolute;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem; 
  top: 10%;
}

.confirmation-text-group{
  display: flex;
  position: absolute;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1rem; 
  top: 30%;
}

.confirmation-header {
  font-family: 'MonteCarlo', cursive;
  font-size: 3rem; 
  color: #fff;
  text-shadow: 1px 1px 8px #0006;
  font-weight: 200;
  letter-spacing: 0.02em;
  margin-bottom: -2.5rem; 
  text-align: top center;
}

.confirmation-header2 {
  font-family: 'MonteCarlo', cursive;
  font-size: 3rem; 
  color: #fff;
  margin-bottom: 0.6rem; 
  text-shadow: 1px 1px 8px #0006;
  font-weight: 200;
  letter-spacing: 0.02em;
}

.confirmation-text{
  font-family: 'Montserrat', serif;
  font-size: 1.2rem; 
  color: #fff;
  text-align: center;
  line-height: 1.5;
  max-width: 600px;
}

.confirmation-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem; 
    z-index: 2;
    position: absolute;
    top: 60%;
  }

  .btn-confirmar-asistencia {
    background: transparent;
    border: 0.12rem solid #fff; 
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; 
    padding: 0.7rem 1.1rem; 
    border-radius: 0.3rem; 
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    outline: none;
    font-weight: 400;
    box-shadow: none;
    letter-spacing: 0.03em;
  }

.btn-confirmar-asistencia:hover,
.btn-confirmar-asistencia:focus {
  background: #fff;
  color: #000;
  border: 0.12rem solid #fff;
  cursor: pointer;
}


  /* === MODAL CONFIRMACIÓN ASISTENCIA === */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(146, 50, 49, 0.25);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

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

.confirm-modal {
  background: #FCEDE2;
  border-radius: 2rem;
  box-shadow: 0 8px 32px #92323133;
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 90vw;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: modalPop 0.25s;
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-modal h2 {
  font-family: 'MonteCarlo', cursive;
  color: #923231;
  font-size: 2.2rem;
  text-align: center;
  font-weight: 400;
}

.confirm-modal label {
  font-family: 'Lora', serif;
  color: #76430d;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  display: block;
  text-align: center;
}

.confirm-modal input[type="text"], 
.confirm-modal select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  border: 1px solid #c1b085;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.2rem;
  background: #fff;
  color: #923231;
  outline: none;
  transition: border-color 0.2s;
}

.confirm-modal input[type="text"]:focus,
.confirm-modal select:focus {
  border-color: #923231;
}

.confirm-modal .modal-btn {
  background: #c1b085;
  color: #fff;
  border: none;
  border-radius: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  padding: 0.7rem 2.2rem;
  cursor: pointer;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
  transition: background 0.2s;
  box-shadow: 0 2px 8px #0002;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.confirm-modal .modal-btn:hover,
.confirm-modal .modal-btn:focus {
  background: #a18c5b;
}

.confirm-modal .modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #923231;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.confirm-modal .modal-close:hover {
  color: #c1b085;
}

.confirm-modal .modal-msg {
  font-family: 'Lora', serif;
  color: #923231;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  min-height: 1.5em;
}

.confirm-modal .modal-success {
  color: #388e3c;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.confirm-modal .modal-error {
  color: #b71c1c;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.confirm-modal .modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.confirm-modal .spinner {
  border: 4px solid #f3e9d7;
  border-top: 4px solid #c1b085;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.confirm-modal select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg width='16' height='16' fill='c1b085' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23923231' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 1rem center/1.2rem;
}

.confirm-modal .modal-final {
  font-family: 'Montserrat', cursive;
  color: #923231;
  font-size: 1rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
}

.confirm-modal .modal-small {
  font-family: 'Montserrat', sans-serif;
  color: #76430d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}

.confirm-modal .modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ocultar scroll del fondo cuando modal abierto */
body.modal-open {
  overflow: hidden !important;
}

/* === GALERÍA === */
.galery {
  position: relative;
  background: #FCEDE2;
  padding: 9vw 3vw 7vw 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 115vw;
  margin-top: 6vw;
  margin-bottom: 0;
  border-radius: 4vw;
  box-sizing: border-box;
}

.galery-decor-left,
.galery-decor-right {
  position: absolute;
  top: 6vw;
  width: 30%;
  max-width: 220px;
  z-index: 1;
}

.galery-decor-left {
  top: 2.5%;
  left: 0;
  display: flex;
  justify-content: flex-start;
}

.galery-decor-right {
  top: 2.5%;
  right: 0;
  display: flex;
  justify-content: flex-end;
  transform: scaleX(-1);
}

.galery-decor-left img,
.galery-decor-right img {
  width: 100%;
  height: auto;
  opacity: 1;
}

.galery-header {
  font-family: 'MonteCarlo', cursive;
  font-size: 12vw;
  color: #923231;
  text-align: center;
  margin: 0 auto 8vw auto;
  font-weight: 400;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  line-height: 1.1;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.galery-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vw;
  margin-bottom: 7vw;
  margin-top: 1.5vw;
  width: 100%;
  max-width: 420px;
  z-index: 2;
}

.galery-img-large {
  width: 55vw;
  height: 61vw;
  background: linear-gradient(to top, #b8d8e6 70%, #fff 100%);
  border-radius: 1.5vw;
  margin-bottom: 1.5vw;
  box-shadow: 0 0.6vw 2vw #0001;
  
}

.galery-img-row {
  display: flex;
  flex-direction: row;
  gap: 2vw;
  width: 100%;
  justify-content: center;
}

.galery-img-small {
  width: 27vw;
  height: 24vw;
  background: linear-gradient(to top, #b8d8e6 70%, #fff 100%);
  border-radius: 1.5vw;
  box-shadow: 0 0.6vw 2vw #0001;
  
}

.galery-text-main {
  font-family: 'Lora', serif;
  font-size: 4vw;
  color: #76430d;
  text-align: center;
  margin-top: 4vw;
  margin-bottom: 2vw;
  z-index: 2;
}

.galery-text-thanks {
  font-family: 'MonteCarlo', cursive;
  font-size: 8vw;
  color: #923231;
  text-align: center;
  margin-top: 0.6vw;
  z-index: 2;
  width: 100%;
}

/* === GALERÍA MODAL (solo lo necesario) === */
#galery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important; 
}

.galery-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.galery-modal-content {
  position: relative;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  overflow: visible !important; 
}

.galery-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 1vw;
  box-shadow: 0 0 24px #0008;
  background: #fff;
  display: block;
  
}

.galery-modal-close,
.galery-modal-prev,
.galery-modal-next {
  position: absolute;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 1.3rem;    
  cursor: pointer;
  z-index: 3;
  border-radius: 50%;
  width: 1.7rem;        
  height: 1.7rem;       
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  pointer-events: auto;
  overflow: visible !important;
}

.galery-modal-close { top: 1rem; right: 1rem; }
.galery-modal-prev { left: 0.5rem; }
.galery-modal-next { right: 0.5rem; }

.galery-modal-close:hover,
.galery-modal-prev:hover,
.galery-modal-next:hover {
  background: rgba(146,50,49,0.8);
}

/* Animaciones para abrir/cerrar modal y cambiar imagen */
.galery-modal-open-anim {
  animation: galeryModalOpen 0.25s cubic-bezier(.4,0,.2,1);
}
.galery-modal-close-anim {
  animation: galeryModalClose 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes galeryModalOpen {
  from { opacity: 0; transform: scale(0.95);}
  to   { opacity: 1; transform: scale(1);}
}
@keyframes galeryModalClose {
  from { opacity: 1; transform: scale(1);}
  to   { opacity: 0; transform: scale(0.95);}
}

.galery-img-fadein {
  animation: galeryImgFadeIn 0.25s cubic-bezier(.4,0,.2,1);
}
.galery-img-fadeout {
  animation: galeryImgFadeOut 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes galeryImgFadeIn {
  from { opacity: 0; transform: scale(0.96);}
  to   { opacity: 1; transform: scale(1);}
}
@keyframes galeryImgFadeOut {
  from { opacity: 1; transform: scale(1);}
  to   { opacity: 0; transform: scale(1.04);}
}

/* --- NUEVAS ANIMACIONES SLIDE --- */
.galery-img-slideout-left {
  animation: galeryImgSlideOutLeft 0.3s cubic-bezier(.4,0,.2,1);
}
.galery-img-slidein-right {
  animation: galeryImgSlideInRight 0.3s cubic-bezier(.4,0,.2,1);
}
.galery-img-slideout-right {
  animation: galeryImgSlideOutRight 0.3s cubic-bezier(.4,0,.2,1);
}
.galery-img-slidein-left {
  animation: galeryImgSlideInLeft 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes galeryImgSlideOutLeft {
  from { opacity: 1; transform: translateX(0);}
  to   { opacity: 0; transform: translateX(-3rem);}
}
@keyframes galeryImgSlideInRight {
  from { opacity: 0; transform: translateX(3rem);}
  to   { opacity: 1; transform: translateX(0);}
}
@keyframes galeryImgSlideOutRight {
  from { opacity: 1; transform: translateX(0);}
  to   { opacity: 0; transform: translateX(3rem);}
}
@keyframes galeryImgSlideInLeft {
  from { opacity: 0; transform: translateX(-3rem);}
  to   { opacity: 1; transform: translateX(0);}
}

/* Galería imágenes cuadradas */
.galery-img-photo {
  width: 15rem;
  height: auto;
  aspect-ratio: 1/1;
  background: #eee;
  border-radius: 0.6rem;
  box-shadow: 0 0.23rem 0.75rem #0001;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.galery-img-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* === NAVBAR FLOTANTE === */
.floating-navbar-xv {
  position: fixed;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 20000;
  background: #FCEDE2;
  border: 1.5px solid #c1b085;
  border-radius: 1.1rem;
  padding: 0.25rem 0.15rem;
  box-shadow: 0 2px 8px #92323122;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
}
.floating-navbar-xv.visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-navbar-xv .floating-btn-xv {
  background: #fff;
  color: #923231;
  border: none;
  border-radius: 0.7rem;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 1px 4px #c1b08522;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  outline: none;
  margin: 0 0.1rem;
}
.floating-navbar-xv .floating-btn-xv:hover,
.floating-navbar-xv .floating-btn-xv.active,
.floating-navbar-xv .floating-btn-xv:focus {
  background: #c1b085;
  color: #fff;
  transform: scale(1.09);
}
.floating-navbar-xv .floating-btn-xv.music-paused {
  background: #923231;
  color: #fff;
}
.floating-navbar-xv .floating-btn-xv i {
  pointer-events: none;
  font-size: 1.1rem;
}
@media (min-width: 700px) {
  .floating-navbar-xv {
    right: calc(50vw - 200px - 0.7rem);
  }
}

/* === SIMULACIÓN DE TELÉFONO EN DESKTOP === */
@media (min-width: 700px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }

  body {
    background-color: #923231;
    display: flex;
    align-items: center;
    justify-content: center;
  }

#mobile-simulator {
    background: #FCEDE2;
    border-radius: 40px;
    box-shadow: 0 0 40px 8px #0008;
    padding: 0;
    width: 400px;
    max-height: 90vh;      
    height: auto;          
    overflow-y: auto;      
    overflow-x: hidden;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

  #mobile-simulator::-webkit-scrollbar {
    display: none;                
  }

  #mobile-simulator::before {
    content: '';
    display: block;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 9999;
  }

  .cover {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
  }

  .cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 0; 
    filter: brightness(0.8);
  }


.cover-text-group {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.1;
  flex-direction: column;
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  z-index: 10;
  overflow: visible !important;
  white-space: normal;
  max-height: none;
  width: 100%;
  padding: 0 1rem;
}

.text-cover {
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', cursive;
  font-size: 1rem;
  font-weight: 200;
  overflow: visible !important; 
  white-space: normal;          
  max-height: none; 
  margin-bottom: -1rem;
}

.text-cover p {
  overflow: visible !important; 
  white-space: normal;          
  max-height: none;             
}

.name-cover {
  top: 0%;
  left: 50%;
  transform: translate(-50%, -10%);
  width: 100%;
  font-family: 'MonteCarlo', cursive;
  font-size: 7rem;
  font-weight: 400;
  overflow: visible !important; 
  white-space: normal;          
  max-height: none;             
}

.name-cover p{
  overflow: visible !important; 
  white-space: normal;          
  max-height: none;      
  padding-right: 3rem;       
}


.text-date{
  top: 0%;
  left: 50%;
  transform: translate(-50%, 700%);
  font-family: 'Montserrat', cursive;
  font-size: 0.8rem;
  font-weight: 200;
  overflow: visible !important; 
  white-space: normal;          
  max-height: none; 
  margin-top: 1rem;
}

.text-date p {
  overflow: visible !important; 
  white-space: normal;          
  max-height: none;             
}

  /* Divider Image */
  .divider-image {
    width: 90%;
    margin: 1rem auto;
    display: block;
  }

  /* Thanks and Parents Sections */
  .thanks, .parents {
    display: block;
  }

  .thanks p, .parents p {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #923231;
    text-align: center;
    line-height: 1.5;
  }

  .thanks p{
  text-align: center;
  }

  .thanks-paragraph {
    white-space: normal;
    word-break: break-word;
    width: 80%;
    margin: 0 auto;
  }

  .thanks-paragraph2 {
    white-space: normal;
    word-break: break-word;
    width: 80%;
    margin: 0 auto;
    margin-top: 0.5rem;
  }







  /* Parents Section */
  .parents {
    position: relative;
    height: 60rem;
    text-align: center;
    padding: 2rem;
    margin-bottom: -18rem;
  }

  .parents-content {
    position: relative;
    text-align: center;
    line-height: 1.1;
    flex-direction: column;
    top: 33%; 
    left: 50%;
    transform: translate(-50%, -50%);
    color: #923231;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }


  .section-title p {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .group {
    margin-bottom: 2rem;
  }

  .highlight p {
    font-family: 'MonteCarlo', cursive;
    font-size: 2.2rem;
    color: #C19A6B;
    margin-bottom: 0.5rem;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  .parent-name p, .godparent-name p {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #923231;
    margin: 0.5rem 0;
  }

  /* Corner Images */
  .corner-top-left img,
  .corner-top-right1 img,
  .corner-top-right2 img,
  .bottom-left-corner1 img,
  .bottom-left-corner2 img,
  .bottom-right-corner img {
    position: absolute;
    width: 12rem;
    height: auto;
    z-index: 1;
  }

  .corner-top-left img { top: 0%; left: -10%; transform: rotate(2deg); }
  .corner-top-right1 img { top: -1%; right: -10%; transform: rotate(14deg); }
  .corner-top-right2 img { top: 4%; right: 5%; transform: rotate(90deg); }
  .bottom-left-corner1 img { bottom: 35%; left: -10%; transform: rotate(-90deg) scaleX(-1); }
  .bottom-left-corner2 img { bottom: 40%; left: 5%; transform: rotate(-90deg); }
  .bottom-right-corner img { bottom: 37%; right: -10%; transform: rotate(-180deg); }

  .countdown{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40rem;
    text-align: center;
    position: relative;
    font-weight: 200;
    
  }

  .countdown-bg{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 0;
    filter: brightness(0.4);
  }

  .countdown-header {
    font-family: 'MonteCarlo', cursive;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 8px #0006;
    font-weight: 200;
    letter-spacing: 0.02em;
    z-index: 0;
  }

  #countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    font-family: 'Lora', serif;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 8px #0006;
    margin-bottom: 0.2rem;
    z-index: 0;
  }

  #countdown-timer span {
    min-width: 2.5rem;
    display: inline-block;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 200;
  }

  .countdown-units {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    color: #fff;
    font-size: 0.7rem;
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    letter-spacing: 0.05em;
    position: relative;
    top: -0.2rem;
    width: 100%;
  }

  #countdown-message {
    font-family: 'MonteCarlo', cursive;
    font-size: 2rem;
    color: #fff;
    margin-top: 2rem;
    text-shadow: 1px 1px 8px #0006;
    font-weight: 200;
    z-index: 0;
  }

  .unit-days { margin-right: 1rem; }
  .unit-seconds { margin-right: -1rem;}


  .details-frame-wrap {
    position: relative;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .details{
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 2rem;
    overflow: visible !important; 
  }

  .frame-element1 img, .frame-element2 img, .frame-element3 img, .frame-element4 img, .frame-element5 img, .frame-element6 img {
    display: flex;
    width: 13rem;
    height: auto;
    z-index: 1;
  }

  .frame-element1 img {
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translate(-31.5%, -7%);
  }

  .frame-element2 img {
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translate(93%, -11%) rotate(180deg);
  }

  .frame-element3 img{
    position: absolute;
    top: 33%;
    left: 0%;
    transform: translate(-31.5%, 0);
  }

  .frame-element4 img{
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translate(93%, 80%) rotate(180deg);
  }

  .frame-element5 img{
    position: absolute;
    top: 70%;
    left: 0%;
    transform: translate(-31.5%, 0);
  }

  .frame-element6 img{
    position: absolute;
    top: 0%;
    left: 0%;
    transform: translate(93%, 170%) rotate(180deg);
  }

  .icon-iglesia{
    display: flex;
    width: 10rem;
    height: auto;
    z-index: 1;
  }

  .icon-recepcion{
    display: flex;
    width: 6rem;
    height: auto;
    z-index: 1;
  }

  .icon-gala{
    display: flex;
    width: 6rem;
    height: auto;
    z-index: 1;
  }

  .icon-carta{
    display: flex;
    width: 6rem;
    height: auto;
    z-index: 1;
    margin-bottom: 1.5rem;
  }

  .details-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    margin-top: 1.2rem;
  }

  .details-text {
    font-family: 'Alice', serif;
    font-size: 1.2rem;
    color: #76430d;
    text-align: top center;
    line-height: 1.5;
    max-width: 600px;
  }

  .details-phrase{
    font-family: 'MonteCarlo', serif;
    font-size: 2.2rem;
    color: #923231;
    margin-bottom: 0.2rem;
    padding: 0.5rem;
  }

  .details-block {
    min-height: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }

  .details-block2{
    min-height: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }

  .detail-info{
    font-family: 'Alice', cursive;
    font-size: 1.2rem;
    color: #C19A6B;
    margin-bottom: 0.2rem;
    font-style: italic; 
  }

  .details-label {
    font-family: 'MonteCarlo', cursive;
    font-size: 2.2rem;
    color: #C19A6B;
    margin-bottom: 0.2rem;
  }

  .details-place {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #923231;
    margin-bottom: 0.2rem;
  }

  .details-time {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #923231;
    font-style: italic;
    margin-bottom: 0.5rem;
  }

  .details-link {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #c1b085;
    color: #fff;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px #0002;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
  }

  .details-link:hover,
  .details-link:focus {
    background: #a18c5b;
    color: #fff;
  }


  .confirmation{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40rem;
    text-align: center;
    position: relative;
    font-weight: 200;
    z-index: 2;
  }

  .attendance-bg{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 2;
    filter: brightness(0.4);

  }

  .confirmation-header-group{
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; 
    top: 10%;
    z-index: 2;
  }

  .confirmation-text-group{
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem; 
    top: 30%;
    z-index: 2;
  }

  .confirmation-header {
    font-family: 'MonteCarlo', cursive;
    font-size: 3rem; 
    color: #fff;
    text-shadow: 1px 1px 8px #0006;
    font-weight: 200;
    letter-spacing: 0.02em;
    margin-bottom: -2.5rem; 
    text-align: top center;
    z-index: 2;
  }

  .confirmation-header2 {
    font-family: 'MonteCarlo', cursive;
    font-size: 3rem; 
    color: #fff;
    margin-bottom: 0.6rem; 
    text-shadow: 1px 1px 8px #0006;
    font-weight: 200;
    letter-spacing: 0.02em;
    z-index: 2;
  }

  .confirmation-text{
    font-family: 'Montserrat', serif;
    font-size: 1.2rem; 
    color: #fff;
    text-align: center;
    line-height: 1.5;
    max-width: 600px; 
    z-index: 2;

  }

 .confirmation-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem; 
    z-index: 2;
    position: absolute;
    top: 60%;
  }

  .btn-confirmar-asistencia {
    background: transparent;
    border: 0.12rem solid #fff; 
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; 
    padding: 0.7rem 1.1rem; 
    border-radius: 0.3rem; 
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    outline: none;
    font-weight: 400;
    box-shadow: none;
    letter-spacing: 0.03em;
  }

  .btn-confirmar-asistencia:hover,
  .btn-confirmar-asistencia:focus {
    background: #fff;
    color: #000;
    border: 0.12rem solid #fff;
    cursor: pointer;
  }

  /* === MODAL CONFIRMACIÓN ASISTENCIA === */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(146, 50, 49, 0.25);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

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

.confirm-modal {
  background: #FCEDE2;
  border-radius: 2rem;
  box-shadow: 0 8px 32px #92323133;
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 90vw;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: modalPop 0.25s;
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-modal h2 {
  font-family: 'MonteCarlo', cursive;
  color: #923231;
  font-size: 2.2rem;
  text-align: center;
  font-weight: 400;
}

.confirm-modal label {
  font-family: 'Lora', serif;
  color: #76430d;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  display: block;
  text-align: center;
}

.confirm-modal input[type="text"], 
.confirm-modal select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  border: 1px solid #c1b085;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.2rem;
  background: #fff;
  color: #923231;
  outline: none;
  transition: border-color 0.2s;
}

.confirm-modal input[type="text"]:focus,
.confirm-modal select:focus {
  border-color: #923231;
}

.confirm-modal .modal-btn {
  background: #c1b085;
  color: #fff;
  border: none;
  border-radius: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  padding: 0.7rem 2.2rem;
  cursor: pointer;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
  transition: background 0.2s;
  box-shadow: 0 2px 8px #0002;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.confirm-modal .modal-btn:hover,
.confirm-modal .modal-btn:focus {
  background: #a18c5b;
}

.confirm-modal .modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #923231;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.confirm-modal .modal-close:hover {
  color: #c1b085;
}

.confirm-modal .modal-msg {
  font-family: 'Lora', serif;
  color: #923231;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  min-height: 1.5em;
}

.confirm-modal .modal-success {
  color: #388e3c;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.confirm-modal .modal-error {
  color: #b71c1c;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.confirm-modal .modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.confirm-modal .spinner {
  border: 4px solid #f3e9d7;
  border-top: 4px solid #c1b085;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.confirm-modal select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg width='16' height='16' fill='c1b085' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23923231' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 1rem center/1.2rem;
}

.confirm-modal .modal-final {
  font-family: 'Montserrat', cursive;
  color: #923231;
  font-size: 1rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
}

.confirm-modal .modal-small {
  font-family: 'Montserrat', sans-serif;
  color: #76430d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}

.confirm-modal .modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ocultar scroll del fondo cuando modal abierto */
body.modal-open {
  overflow: hidden !important;
}

  /* === GALERÍA === */
  .galery {
    position: relative;
    background: #FCEDE2;
    padding: 3.5rem 1.2rem 2.7rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 44rem;
    margin-top: 2.2rem;
    margin-bottom: 0;
    border-radius: 1.5rem;
    box-sizing: border-box;
  }

  .galery-decor-left,
  .galery-decor-right {
    position: absolute;
    top: 2.2rem;
    width: 30%;
    max-width: 13.75rem;
    z-index: 1;
  }

  .galery-decor-left {
    left: 0;
    display: flex;
    justify-content: flex-start;
    top: 4%;
  }

  .galery-decor-right {
    right: 0;
    display: flex;
    justify-content: flex-end;
    transform: scaleX(-1);
    top: 4%;
  }

  .galery-decor-left img,
  .galery-decor-right img {
    width: 100%;
    height: auto;
    opacity: 1;
  }

  .galery-header {
    font-family: 'MonteCarlo', cursive;
    font-size: 3.5rem;
    color: #923231;
    text-align: center;
    margin: 0 auto 3rem auto;
    font-weight: 400;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 2;
    line-height: 1.1;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  .galery-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.7rem;
    margin-top: 0.6rem;
    width: 100%;
    max-width: 26.25rem;
    z-index: 2;
  }

  .galery-img-large {
    width: 21rem;
    height: 23.5rem;
    background: linear-gradient(to top, #b8d8e6 70%, #fff 100%);
    border-radius: 0.6rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 0.23rem 0.75rem #0001;
    
  }

  .galery-img-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .galery-img-small {
    width: 10.3rem;
    height: 9.2rem;
    background: linear-gradient(to top, #b8d8e6 70%, #fff 100%);
    border-radius: 0.6rem;
    box-shadow: 0 0.23rem 0.75rem #0001;
    
  }

  .galery-text-main {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: #76430d;
    text-align: center;
    margin-top: 1.7rem;
    margin-bottom: 0.75rem;
    z-index: 2;
  }

  .galery-text-thanks {
    font-family: 'MonteCarlo', cursive;
    font-size: 2.3rem;
    color: #923231;
    text-align: center;
    margin-top: 0.23rem;
    z-index: 2;
    width: 100%;
  }

  /* === GALERÍA MODAL (solo lo necesario) === */
  #galery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important; 
  }

  .galery-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
  }

  .galery-modal-content {
    position: relative;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    max-width: 36rem;
    max-height: 36rem;
    overflow: visible !important; 
  }

  .galery-modal-img {
    max-width: 36rem;
    max-height: 36rem;
    width: auto;
    height: auto;
    border-radius: 0.4rem;
    box-shadow: 0 0 1.5rem #0008;
    background: #fff;
    display: block;
    
  }

  .galery-modal-close,
  .galery-modal-prev,
  .galery-modal-next {
    position: absolute;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    pointer-events: auto;
    overflow: visible !important;
  }

  .galery-modal-close { top: 1rem; right: 1rem; }
  .galery-modal-prev { left: 0.5rem; }
  .galery-modal-next { right: 0.5rem; }

  .galery-modal-close:hover,
  .galery-modal-prev:hover,
  .galery-modal-next:hover {
    background: rgba(146,50,49,0.8);
  }

  /* Animaciones para abrir/cerrar modal y cambiar imagen */
  .galery-modal-open-anim {
    animation: galeryModalOpen 0.25s cubic-bezier(.4,0,.2,1);
  }
  .galery-modal-close-anim {
    animation: galeryModalClose 0.25s cubic-bezier(.4,0,.2,1);
  }
  @keyframes galeryModalOpen {
    from { opacity: 0; transform: scale(0.95);}
    to   { opacity: 1; transform: scale(1);}
  }
  @keyframes galeryModalClose {
    from { opacity: 1; transform: scale(1);}
    to   { opacity: 0; transform: scale(0.95);}
  }

  .galery-img-fadein {
    animation: galeryImgFadeIn 0.25s cubic-bezier(.4,0,.2,1);
  }
  .galery-img-fadeout {
    animation: galeryImgFadeOut 0.25s cubic-bezier(.4,0,.2,1);
  }
  @keyframes galeryImgFadeIn {
    from { opacity: 0; transform: scale(0.96);}
    to   { opacity: 1; transform: scale(1);}
  }
  @keyframes galeryImgFadeOut {
    from { opacity: 1; transform: scale(1);}
    to   { opacity: 0; transform: scale(1.04);}
  }

  /* --- NUEVAS ANIMACIONES SLIDE --- */
  .galery-img-slideout-left {
    animation: galeryImgSlideOutLeft 0.3s cubic-bezier(.4,0,.2,1);
  }
  .galery-img-slidein-right {
    animation: galeryImgSlideInRight 0.3s cubic-bezier(.4,0,.2,1);
  }
  .galery-img-slideout-right {
    animation: galeryImgSlideOutRight 0.3s cubic-bezier(.4,0,.2,1);
  }
  .galery-img-slidein-left {
    animation: galeryImgSlideInLeft 0.3s cubic-bezier(.4,0,.2,1);
  }
  @keyframes galeryImgSlideOutLeft {
    from { opacity: 1; transform: translateX(0);}
    to   { opacity: 0; transform: translateX(-3rem);}
  }
  @keyframes galeryImgSlideInRight {
    from { opacity: 0; transform: translateX(3rem);}
    to   { opacity: 1; transform: translateX(0);}
  }
  @keyframes galeryImgSlideOutRight {
    from { opacity: 1; transform: translateX(0);}
    to   { opacity: 0; transform: translateX(3rem);}
  }
  @keyframes galeryImgSlideInLeft {
    from { opacity: 0; transform: translateX(-3rem);}
    to   { opacity: 1; transform: translateX(0);}
  }

  /* Galería imágenes */
  .galery-img-photo {
    width: 15rem;
    height: auto;
    aspect-ratio: 1/1;
    background: #eee;
    border-radius: 0.6rem;
    box-shadow: 0 0.23rem 0.75rem #0001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
  }

  .galery-img-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  /* === NAVBAR FLOTANTE === */
.floating-navbar-xv {
  position: fixed;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 20000;
  background: #FCEDE2;
  border: 1.5px solid #c1b085;
  border-radius: 1.1rem;
  padding: 0.25rem 0.15rem;
  box-shadow: 0 2px 8px #92323122;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
}
.floating-navbar-xv.visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-navbar-xv .floating-btn-xv {
  background: #fff;
  color: #923231;
  border: none;
  border-radius: 0.7rem;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 1px 4px #c1b08522;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  outline: none;
  margin: 0 0.1rem;
}
.floating-navbar-xv .floating-btn-xv:hover,
.floating-navbar-xv .floating-btn-xv.active,
.floating-navbar-xv .floating-btn-xv:focus {
  background: #c1b085;
  color: #fff;
  transform: scale(1.09);
}
.floating-navbar-xv .floating-btn-xv.music-paused {
  background: #923231;
  color: #fff;
}
.floating-navbar-xv .floating-btn-xv i {
  pointer-events: none;
  font-size: 1.1rem;
}

}

