body {
    background-color: white;
  }
  :root {
    --color-primario: #fb7e8d;
    --color-secundario: #fcdde6;
    --color-acento: #d4af37;
    --color-texto: #7a2c45;
    --color-fondo: #fff6fa;
    --envelope-color: #d28484;
    --envelope-flap-color: #f49e9e;
    --envelope-bottom-flap-color: #f49e9e;
    --envelope-right-flap-color: #ffc1c1;
    --envelope-left-flap-color: #ffc1c1;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --paper-color: #f5f5f5;
    --text-color: #ffffff;
    --cream-color: #f8f0e3;
    --color-gradiante-1: #ffd8d9;
    --color-gradiante-2: #fb7e8d;
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .hidden{
   display:none !important;
}
  body {
    font-family: 'Dancing Script', cursive;
    color: var(--color-texto);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
  }
  .titulo-dorado{
    color: transparent;
    /* left: 30%; */
    font-family: 'Times New Roman', serif;
    font-size: clamp(1rem, 4vw, 1.7rem);
    letter-spacing: 5px;
    font-weight: bold;
    background-image: linear-gradient(to right, #cb9b51 0, #cb9b51 22%, #f6e27a 45%, #f6f2c0 50%, #f6e27a 55%, #cb9b51 78%, #cb9b51 100%);
    -webkit-background-clip: text;
  }
  #petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  }
  .video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
  }
  .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primario);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
  }
  .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
    background-image: url('../img/fondo.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  .floral-decoration {
    position: absolute;
    top: 20px;
    left: 20px;
   
  
    pointer-events: none;
    z-index: 10;
  }
  .floral-decoration img {
    position: absolute;
  }
  .floral-decoration .flower-petal {

    z-index: 5;
    animation: float 6s ease-in-out infinite;
  }
  .floral-decoration .flower-leaf {
    
    z-index: 3;
    animation: sway 8s ease-in-out infinite;
  }
  .floral-decoration .flower-leaf.leaf-1 {
    top: 40px;
    left: 15px;
  }
  .floral-decoration .flower-leaf.leaf-2 {
    top: 60px;
    left: 95px;
    transform: rotate(20deg);
  }
  .floral-decoration .flower-leaf.leaf-3 {
    top: 15px;
    left: 55px;
    transform: rotate(-15deg);
  }
  .floral-decoration {
   
    top: 15px;
    right: 15px;
    z-index: 4;
    animation: pulse 4s ease-in-out infinite;
  }

/* Botón de audio: fijo en esquina superior derecha */
.audio-control-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: var(--color-primario);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  font-family: 'Segoe UI', sans-serif;
  user-select: none;
}
.audio-control-btn:hover {
  background: var(--color-secundario);;
  transform: scale(1.08);
}

  /* Itinerario */
.timeline-container-itinerario {
      position: relative;
      max-width: 800px;
      width: 100%;
      padding: 20px 0;
    }

    .timeline-title-itinerario {
      text-align: center;
      font-size: 3rem;
      font-family: 'Brush Script MT', cursive;
      margin-bottom: 40px;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

    .timeline-line-itinerario {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 4px;
      background: linear-gradient(to bottom, #f6efb3, #e5c66a);
      transform: translateX(-50%);
      z-index: 1;
    }

    .timeline-item-itinerario {
      display: flex;
      align-items: center;
      margin: 30px 0;
      position: relative;
    }

    .left-side-itinerario {
      flex: 1;
      text-align: right;
      padding-right: 45px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }

    .right-side-itinerario {
      flex: 1;
      text-align: left;
      padding-left: 45px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .time-text-itinerario {
      font-size: clamp(1.8rem, 5vw, 2.2rem);
      color: var(--color-primario);
      font-family: 'Dancing Script', cursive;
      line-height: 1.4;
    }

    .event-text-itinerario {
      font-size: clamp(1rem, 3vw, 1.1rem);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.4;
    }

    .icon-itinerario {
      width: 100px;
      height: auto;
      margin: 10px 0;
    }

    .butterfly-itinerario {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 45px;
      height: auto;
      z-index: 2;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .timeline-title-itinerario {
        font-size: 2.2rem;
      }
      .time-text-itinerario {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        color: var(--color-primario);
        font-family: 'Dancing Script', cursive;
      }
      .event-text-itinerario {
        font-size: clamp(1rem, 3vw, 1.1rem);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      }
      .icon-itinerario {
        width: 70px;
      }
      .butterfly-itinerario {
        width: 40px;
      }
      .final-waiting-image {
      top: 0%;
      }
    }

    @media (max-width: 480px) {
      .timeline-title-itinerario {
        font-size: 1.8rem;
      }
      .time-text-itinerario {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        color: var(--color-primario);
        font-family: 'Dancing Script', cursive;
      }
      .event-text-itinerario {
        font-size: clamp(1rem, 3vw, 1.1rem);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      }
      .icon-itinerario {
        width: 70px;
      }
      .butterfly-itinerario {
        width: 40px;
      }
      .timeline-item-itinerario {
        margin: 20px 0;
      }
      .final-waiting-image {
      top: 0%;
      }
    }




  @keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
  }
  @keyframes sway {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
  }
  @keyframes pulse {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.8; transform: scale(1); }
  }
  .main-name {
    font-size: clamp(4rem, 10vw, 8rem);
    text-align: center;
    margin-top: 80px;
    color: var(--color-primario);
    position: relative;
    letter-spacing: 2px;
    display: inline-block;
    width: 100%;
  }
  .butterfly {
    display: block;
    text-align: center;
    margin-top: -150px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: flutter 3s ease-in-out infinite;
  }
  .butterfly img {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.5));
    margin: 0 auto;
  }
  .butterfly-second-section {
    position: absolute;
    top: -40px;
    left: 230px;
    width: 40px;
    height: auto;
    z-index: 20;
    animation: flutter 3s ease-in-out infinite;
    margin-top: -150px;
    margin-left: 0;
  }
  @keyframes flutter {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
  }
  .sub-title {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    text-align: center;
    margin: 95px auto 10px;
    color: var(--color-texto);
    letter-spacing: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    display: block;
  }
  .golden-xv {
    color: var(--color-acento);
    font-weight: bold;
    font-size: 1.2em;
  }
  /* Separador */
  .separator-container,
  .separator-container-reverse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 20px auto 30px;
    position: relative;
    z-index: 3;
    backface-visibility: hidden;
    height: 185px;
  }
  .pink-wave {
    flex-grow: 1;
    height: 95px;
    background: linear-gradient(to right, var(--color-gradiante-1), var(--color-gradiante-2));
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    box-shadow: 0 4px 12px rgba(187, 113, 159, 0.3);
    margin-right: 10px;
    position: relative;
    z-index: 1;
  }
  .pink-wave-reverse {
    flex-grow: 1;
    height: 95px;
    background: linear-gradient(to left, var(--color-gradiante-2), var(--color-gradiante-1));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
    box-shadow: 0 4px 12px rgba(187, 113, 159, 0.3);
    margin-left: 10px;
    position: relative;
    z-index: 1;
  }
  .wave-image-on-top {
    width: calc(100px + 100px);
    height: auto;
    object-fit: contain;
    margin-left: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    z-index: 2;
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    max-width: none;
  }
  .wave-image-on-top-reverse {
    width: calc(100px + 100px);
    height: auto;
    object-fit: contain;
    margin-right: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    z-index: 2;
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    max-width: none;
  }
  .photo-container {
    width: 100%;
    margin: -100px auto 0;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
  }
  .main-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
  .second-section {
    position: relative;
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
  }
  .countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -120px;
    flex-wrap: nowrap;
    z-index: 15;
    position: relative;
  }
  .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(255 215 216 / 70%);
    border-radius: 10px;
    padding: 15px;
    width: 100px;
    height: 100px;
    min-width: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  @media (max-width: 550px) {
    .countdown-item {
      width: 85px;
      height: 90px;
    }
      /* Separador */
  .separator-container,
  .separator-container-reverse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 20px auto 30px;
    position: relative;
    z-index: 3;
    backface-visibility: hidden;
    overflow: hidden;
    height: 185px;
  }
    .countdown-number {
      font-size: 1.5rem;
      margin-bottom: 3px;
    }
    .countdown-label {
      font-size: 0.7rem;
    }
  }
  @media (max-width: 370px) {

    .countdown-item {
      width: 85px;
      height: 80px;
      padding: 10px 5px;
    }
    .countdown-number {
      font-size: 1.3rem;
    }
    .countdown-label {
      font-size: 0.6rem;
    }
      /* Separador */
  .separator-container,
  .separator-container-reverse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 20px auto 30px;
    position: relative;
    z-index: 3;
    backface-visibility: hidden;
    overflow: hidden;
    height: 185px;
  }
  }
  @media (max-width: 639px) {
    .floral-decoration {
      left: -100px;
      top: -50px;
    }
      /* Separador */
  .separator-container,
  .separator-container-reverse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 20px auto 30px;
    position: relative;
    z-index: 3;
    backface-visibility: hidden;
    overflow: hidden;
    height: 185px;
  }
  }
  @media (min-width: 1025px) {
    .floral-decoration {
      left: 0px;
    }
      /* Separador */
  .separator-container,
  .separator-container-reverse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 20px auto 30px;
    position: relative;
    z-index: 3;
    backface-visibility: hidden;
    /*overflow: hidden;*/
    height: 185px;
  }
  }
  .countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-texto);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1;
    margin-bottom: 5px;
  }
  .countdown-label {
    font-size: 0.9rem;
    color: var(--color-primario);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Dancing Script', cursive;
    line-height: 1;
    margin-top: auto;
  }
  .third-section,
  .parents-section,
  .lera-y-section,
  .godparents-section,
  .final-message-section,
  .fourth-section,
  .confirm-section,
  .gallery-section,
  .gifts-section,
  .final-waiting-section {
    position: relative;
    margin: 40px auto;
    padding: 20px 0;
    text-align: center;
    z-index: 16;
    width: 100%;
  }
  .section-content,
  .parents-content,
  .lera-y-content,
  .godparents-content,
  .final-message-content,
  .confirm-content,
  .gallery-content,
  .gifts-content,
  .final-waiting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 100%;
  }
  .section-image {
    width: 230px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    max-width: 90%;
  }
  .section-message {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    color: var(--color-primario);
    text-align: center;
    margin: 0;
    line-height: 1.3;
    max-width: 90%;
    padding: 0 10px;
  }
  .section-author {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1rem, 4vw, 1.4rem);
    color: var(--color-primario);
    text-align: right;
    margin-top: 10px;
    width: 100%;
    align-self: flex-end;
    position: static;
    padding-right: 10px;
    padding-bottom: 5px;
  }
  .parents-names,
  .godparents-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .parent-name,
  .godparent-name {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.6rem, 5vw, 2rem);
    color: var(--color-primario);
    text-align: center;
    margin: 0;
    line-height: 1.3;
    width: 100%;
  }
  .parent-name-left,
  .parent-name-right,
  .godparent-name-left,
  .godparent-name-right {
    margin: 0;
    text-align: center;
    width: 100% !important;
  }
  .lera-y-image {
    width: 100px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    max-width: 60%;
  }
  .final-message-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 7vw, 3rem);
    color: var(--color-acento);
    text-align: center;
    margin: 0;
    line-height: 1.2;
    max-width: 90%;
    padding: 0 10px;
  }
  .petal {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  }
  .countdown-active {
    z-index: 20;
    position: absolute;
    font-size: 2.8rem;
    color: white;
    text-align: center;
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -110px;
    height: 150px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  .countdown-expired {
    font-size: 2.8rem;
    color: white;
    text-align: center;
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
    height: 150px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  .date-section {
    position: relative;
    margin: -350px auto 40px;
    padding: 15px 0 0;
    text-align: center;
    z-index: 20;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
  }
  @media (max-width: 768px) {
    .date-section {
      margin-top: -300px;
    }
  }
  .agenda-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    z-index: 10;
  }
  .agenda-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }
  .month-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(28px, 6vw, 40px);
    color: white;
    letter-spacing: 2px;
    margin: 0;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  .greca-image {
    width: calc(100% / 3);
    height: auto;
    margin: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }
  .greca-image.flipped {
    transform: rotate(180deg);
  }
  .date-table {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0;
  }
  .date-table span {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(28px, 5vw, 40px);
    color: white;
    font-weight: normal;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .date-table span:first-child {
    width: 40%;
    text-align: right;
    padding-right: 10px;
  }
  .date-table span:nth-child(2) {
    width: 20%;
    text-align: center;
    font-size: clamp(36px, 7vw, 50px);
    border-left: 5px solid white;
    border-right: 5px solid white;
    padding: 0 10px;
  }
  .date-table span:last-child {
    width: 40%;
    text-align: left;
    padding-left: 10px;
  }
  .sixth-section {
    position: relative;
    margin: 40px auto;
    padding: 15px 20px;
    text-align: center;
    z-index: 21;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
  }
  .events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }
  .event-column {
    /*display: flex;*/
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
  }
  .event-icon {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  }
  .event-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    color: var(--color-primario);
    margin: 0;
    text-align: center;
  }
  .event-details {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: var(--color-texto);
    text-align: center;
    line-height: 1.5;
    white-space: pre-line;
    word-break: break-word;
  }
  .whatsapp-button{
  background: linear-gradient(to bottom, #7acd97, #79db86);
    color: #0b6313;
    padding: 10px 20px;
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
  }
  .golden-button {
    background: linear-gradient(to bottom, var(--color-acento), #ffffff);
    color: var(--color-texto);
    border: 2px solid var(--color-acento);
    padding: 10px 20px;
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 
      0 4px 8px rgba(0,0,0,0.2),
      inset 0 -2px 4px rgba(255,255,255,0.5),
      0 0 10px rgba(212, 175, 55, 0.4);
    text-shadow: 0 1px 1px rgba(255,255,255,0.7);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
    font-family: 'Dancing Script', cursive;
  }
  .golden-button:hover {
    background: linear-gradient(to bottom, #ffffff, var(--color-acento));
    transform: translateY(-2px);
    box-shadow: 
      0 6px 12px rgba(0,0,0,0.3),
      inset 0 -2px 4px rgba(255,255,255,0.7),
      0 0 15px rgba(212, 175, 55, 0.6);
  }
  .golden-button:active {
    transform: translateY(1px);
    box-shadow: 
      0 2px 4px rgba(0,0,0,0.2),
      inset 0 -2px 4px rgba(255,255,255,0.4),
      0 0 8px rgba(212, 175, 55, 0.3);
  }
  /* Confirmación Sección Estilos Nuevos */
  .confirm-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--color-primario);
    margin-bottom: 20px;
  }
  .confirm-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    line-height: 1.4;
    color: var(--color-texto);
    max-width: 90%;
    margin: 0 auto 25px;
    letter-spacing: normal;
    font-weight: normal;
    white-space: normal;
    word-break: break-word;
  }
  /* Estilo del popup */
  #confirmPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(252, 221, 230, 0.5);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  #popupTransporte {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(252, 221, 230, 0.5);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  }
  .popup-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
  }
  .close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: var(--color-texto);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
  }
  .popup-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    color: var(--color-primario);
    margin-bottom: 20px;
  }
  .popup-question {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--color-texto);
    margin-bottom: 20px;
    font-weight: normal;
  }
  .radio-group {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
  }
  .radio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
  }
  .radio-option input {
    display: none;
  }
  .radio-option label {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    padding: 10px 18px;
    border: 2px solid #ccc;
    border-radius: 12px;
    transition: all 0.2s;
    width: 100px;
    text-align: center;
  }
  .radio-option input:checked + label {
    border-color: var(--color-primario);
    background-color: rgba(187, 113, 159, 0.1);
  }
  textarea#messageBox {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-primario);
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    margin: 15px 0 20px;
    height: 100px;
    resize: vertical;
  }
  .send-button {
    background: linear-gradient(to bottom, #4CAF50, #2E7D32);
    color: white;
    border: 2px solid #4CAF50;
    padding: 10px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Dancing Script', cursive;
  }
  .send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  }
  .send-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  /* Galería de Fotos */
  .gallery-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--color-primario);
    margin-bottom: 20px;
  }
  /* GALERIA */
.gallery-grid {

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(100px, 120px)
    );

  justify-content: center;

  gap: 10px;

  width: 90%;

  max-width: 600px;

  margin: 0 auto;

}
.gallery-content{
  text-align:center;
}
  .gallery-item {
    aspect-ratio: 1 / 2;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .gallery-item:hover {
    transform: scale(1.05);
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Lightbox */
  #lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  #lightbox img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
  }
  #close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }
  #thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    max-width: 90%;
    overflow-x: auto;
    padding: 8px;
  }
  #thumbnails img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
  }
  #thumbnails img.active {
    opacity: 1;
    border-color: var(--color-acento);
  }
  /* --- Sección Regalos y Vestimenta (Nueva) --- */
  .gifts-section {
    position: relative;
    margin: 40px auto;
    padding: 30px 20px;
    width: 100%;
    text-align: center;
    z-index: 16;
  }
  .gifts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }
  .gifts-left,
  .gifts-right {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  /* --- Sección Final: Te Esperamos --- */
  .final-waiting-section {
    position: relative;
    margin: 40px auto;
    padding: 40px 0 0;
    width: 100%;
    text-align: center;
    z-index: 16;
  }
  .final-waiting-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--color-acento);
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
  }
  .final-waiting-image-container {
    width: 100%;
    height: 150px;
    position: relative;
    z-index: 1;
  }
  .final-waiting-image {
    width: 100%;
    height: auto;
    display: block;
    object-position: center top;
    object-fit: cover;
    position: relative;
    top: -50%;
  }
  @media (max-width: 540px) {
    .gifts-left,
    .gifts-right {
      min-width: 100%;
      width: 100%;
    }
    .final-waiting-image {
    top: 50%;
    }
  }
  .gifts-left img {
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  }
  .gifts-right .dress-code-images {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }
  .gifts-right .dress-code-images img {
    height: 130px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  }
  .gifts-title,
  .dress-code-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    color: var(--color-primario);
    margin: 0;
  }
  .gifts-text,
  .dress-code-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--color-texto);
    text-align: center;
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
  }
  @media (max-width: 600px) {
    .radio-group {
      flex-direction: column;
      gap: 15px;
    }
    .radio-option label {
      width: 120px;
    }
    .confirm-text {
      font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    .popup-question {
      font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .final-waiting-image {
    top: 50%;
    }
  }

  /* Sobre Animacion */
          .envelope-container {
            width: 100vw;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            position: relative;
        }

        .envelope {
            width: 100%;
            max-width: 400px;
            aspect-ratio: 1.414 / 1; /* A4 ratio for realism */
            position: relative;
            background-color: var(--envelope-color);
            border-radius: 8px;
            box-shadow: 0 10px 30px var(--shadow-color);
        }

        .envelope-body {
            width: 100%;
            height: 100%;
            position: relative;
        }

        /* Decoración de flor vertical derecha */
        .envelope-flower-right {
            position: absolute;
            right: -20px;
            top: 0;
            bottom: 0;
            width: 80px;
            z-index: 16;
        }

        .envelope-flower-right img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        /* Textura encima de la solapa superior */
        .envelope-flap-texture {
            width: 100%;
            height: 60%;
            position: absolute;
            top: 0;
            left: 0;
            background-image: url('../img/textura-arriba.webp');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 5;
            clip-path: polygon(0 0, 100% 0, 50% 100%);
            pointer-events: none;
            transition: transform 5s cubic-bezier(0.23, 1, 0.32, 1);
            transform-origin: top center;
        }

        .envelope-flap-texture.open {
            transform: rotateX(180deg);
        }

        /* Textura encima de la solapa inferior */
        .envelope-bottom-flap-texture {
            width: 100%;
            height: 60%;
            position: absolute;
            bottom: 0;
            left: 0;
            background-image: url('../img/textura-abajo.webp');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 5;
            clip-path: polygon(0 100%, 100% 100%, 50% 0%);
            pointer-events: none;
            transition: z-index 0.1s;
        }

        .envelope-bottom-flap-texture.open {
            z-index: 16;
        }

        /* Textura encima de la solapa derecha */
        .envelope-right-flap-texture {
            width: 60%;
            height: 100%;
            position: absolute;
            right: 0;
            top: 0;
            background-image: url('../img/textura-derecha.webp');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 3;
            clip-path: polygon(100% 0, 100% 100%, 0% 50%);
            pointer-events: none;
            transition: z-index 0.1s;
        }

        .envelope-right-flap-texture.open {
            z-index: 15;
        }

        /* Textura encima de la solapa izquierda */
        .envelope-left-flap-texture {
            width: 60%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            background-image: url('../img/textura-izquierda.webp');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 3;
            clip-path: polygon(0% 0, 0% 100%, 100% 50%);
            pointer-events: none;
            transition: z-index 0.1s;
        }

        .envelope-left-flap-texture.open {
            z-index: 15;
        }

        /* Decoración de esquina inferior izquierda */
        .envelope-corner-decoration {
            position: absolute;
            bottom: 35px;
            left: 30px;
            transform: translate(-50%, 50%);
            padding: 10px;
            z-index: 17;
        }

        .envelope-corner-decoration-inner {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .envelope-corner-decoration-inner img {
            width: calc(100% + 25px);
            height: calc(100% + 25px);
            object-fit: contain;
            display: block;
        }

        /* Parte interior blanca */
        .envelope-inner-white {
            width: 160px;
            height: 200px;
            background-color: white;
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            margin: 0 auto;
            transform: translateY(-50%);
            z-index: 2;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            transition: all 5s cubic-bezier(0.23, 1, 0.32, 1) 1s;
            padding: 10px;
        }

        .envelope-inner-white.open {
            transform: rotate(20deg);
            top: -40%;
            left: 129px;
            z-index: 15;
        }

        .envelope-inner-white-content {
            width: 100%;
            height: 100%;
            overflow: hidden;
            border-radius: 4px;
        }

        .envelope-inner-white-content img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Parte interior crema */
        .envelope-inner-cream {
            width: 200px;
            height: 160px;
            background-color: var(--cream-color);
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            margin: 0 auto;
            transform: translateY(-50%);
            z-index: 2;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            padding: 10px;
            transition: all 5s cubic-bezier(0.23, 1, 0.32, 1) 1s;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .envelope-inner-cream.open {
            transform: rotate(-8deg);
            top: -55%;
            left: -170px;
            z-index: 15;
        }

        .envelope-inner-cream-content {
            width: 100%;
            height: 100%;
            border: 1px solid var(--envelope-color);
            border-radius: 4px;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 10px;
            font-size: 14px;
            color: var(--envelope-color);
            line-height: 1.4;
        }

        /* Botón redondo */
        .envelope-button {
            width: 90px;
            height: 120px;
            background-color: var(--cream-color);
            position: absolute;
            bottom: 0;
            right: 20px;
            transform: translate(50%, 50%);
            z-index: 12;
            border-radius: 50%;
            padding: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease-in-out 3s;
            cursor: pointer;
        }

        .envelope-button.show {
            opacity: 1;
            pointer-events: auto;
            z-index: 17;
        }

        .envelope-button-inner {
            width: 100%;
            height: 100%;
            border: 1px solid var(--envelope-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            font-size: 14px;
            font-weight: bold;
            color: var(--envelope-color);
            line-height: 1.3;
        }

        /* Parte inferior del sobre */
        .envelope-bottom {
            width: 100%;
            height: 9%;
            background-color: var(--envelope-color);
            position: absolute;
            bottom: 0;
            left: 0;
            z-index: 1;
        }

        /* Sombra interna para la parte inferior */
        .envelope-bottom::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 100%);
        }

        /* Solapa inferior del sobre */
        .envelope-bottom-flap {
            width: 100%;
            height: 60%;
            background-color: var(--envelope-bottom-flap-color);
            position: absolute;
            bottom: 0;
            left: 0;
            clip-path: polygon(0 100%, 100% 100%, 50% 0%);
            z-index: 4;
            /* Sombra interna para profundidad */
            box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.1);
            transition: z-index 0.1s;
        }

        .envelope-bottom-flap.open {
            z-index: 16;
        }

        /* Solapa derecha del sobre */
        .envelope-right-flap {
            width: 60%;
            height: 100%;
            background-color: var(--envelope-right-flap-color);
            position: absolute;
            right: 0;
            top: 0;
            clip-path: polygon(100% 0, 100% 100%, 0% 50%);
            z-index: 3;
            /* Sombra interna para profundidad */
            box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.1);
            transition: z-index 0.1s;
        }

        .envelope-right-flap.open {
            z-index: 15;
        }

        /* Solapa izquierda del sobre */
        .envelope-left-flap {
            width: 60%;
            height: 100%;
            background-color: var(--envelope-left-flap-color);
            position: absolute;
            left: 0;
            top: 0;
            clip-path: polygon(0% 0, 0% 100%, 100% 50%);
            z-index: 3;
            /* Sombra interna para profundidad */
            box-shadow: inset 5px 0 15px rgba(0, 0, 0, 0.1);
            transition: z-index 0.1s;
        }

        .envelope-left-flap.open {
            z-index: 15;
        }

        /* Solapa del sobre */
        .envelope-flap {
            width: 100%;
            height: 60%;
            background-color: var(--envelope-flap-color);
            position: absolute;
            top: 0;
            left: 0;
            clip-path: polygon(0 0, 100% 0, 50% 100%);
            z-index: 4;
            /* Sombra interna para profundidad */
            box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.15);
            transition: transform 5s cubic-bezier(0.23, 1, 0.32, 1);
            transform-origin: top center;
        }

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

        /* Sombra adicional en el borde de la solapa superior */
        .envelope-flap::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
            clip-path: polygon(0 100%, 100% 100%, 50% 0%);
        }

        /* Sombra adicional en el borde de la solapa inferior */
        .envelope-bottom-flap::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
            clip-path: polygon(0 0, 100% 0, 50% 100%);
        }

        /* Sombra adicional en el borde de la solapa derecha */
        .envelope-right-flap::after {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 8px;
            background: linear-gradient(to right, rgba(0,0,0,0.2), transparent);
            clip-path: polygon(100% 0, 100% 100%, 0% 50%);
        }

        /* Sombra adicional en el borde de la solapa izquierda */
        .envelope-left-flap::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 8px;
            background: linear-gradient(to left, rgba(0,0,0,0.2), transparent);
            clip-path: polygon(0% 0, 0% 100%, 100% 50%);
        }

        /* Imagen del sello en el centro */
        .envelope-seal {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100px;
            height: 100px;
            z-index: 5;
            cursor: pointer;
            transition: transform 2s ease-out, z-index 0.1s;
        }

        .envelope-seal.moved {
            transform: translate(-50%, calc(-50% + 25px));
            z-index: 16;
        }

        /* Texto sobre la solapa */
        .envelope-text {
            position: absolute;
            top: 200px;
            left: 50%;
            transform: translateX(-50%);
            color: var(--text-color);
            font-size: 18px;
            font-weight: bold;
            text-align: center;
            z-index: 6;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            white-space: nowrap;
            transition: opacity 0.3s ease-out;
        }

        .envelope-text.hidden {
            opacity: 0;
        }

        /* Botón de control de audio */
        .audio-control-btn {
            display: none;
            position: absolute;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--envelope-color);
            color: white;
            border: none;
            font-size: 18px;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        /* Responsive design */
        @media (max-width: 480px) {
            .envelope {
                max-width: 320px;
                aspect-ratio: 1.3 / 1;
            }
            
            .envelope-flower-right {
                width: 60px;
                right: -15px;
            }
            
            .envelope-corner-decoration {
                width: 110px;
                height: 110px;
                padding: 8px;
            }
            
            .envelope-corner-decoration-inner img {
                width: calc(100% + 25px);
                height: calc(100% + 25px);
            }
            
            .envelope-inner-white {
                width: 140px;
                height: 180px;
                padding: 8px;
            }
            
            .envelope-inner-cream {
                width: 190px;
                height: 140px;
            }
            
            .envelope-inner-white.open {
                left: 115px;
                top: -40%;
            }
            
            .envelope-inner-cream.open {
                left: -145px;
                top: -55%;
            }
            
            .envelope-button {
                width: 80px;
                height: 110px;
                right: 15px;
                z-index: 12;
            }
            
            .envelope-button-inner {
                font-size: 13px;
            }
            
            .envelope-seal {
                width: 85px;
                height: 85px;
            }
            
            .envelope-text {
                top: 180px;
                font-size: 16px;
            }
        }

        @media (max-width: 320px) {
            .envelope {
                max-width: 280px;
            }
            
            .envelope-flower-right {
                width: 50px;
                right: -10px;
            }
            
            .envelope-corner-decoration {
                width: 90px;
                height: 90px;
                padding: 6px;
            }
            
            .envelope-corner-decoration-inner img {
                width: calc(100% + 25px);
                height: calc(100% + 25px);
            }
            
            .envelope-inner-white {
                width: 120px;
                height: 160px;
                padding: 6px;
            }
            
            .envelope-inner-cream {
                width: 120px;
                height: 120px;
            }
            
            .envelope-inner-white.open {
                left: 95px;
                top: -40%;
            }
            
            .envelope-inner-cream.open {
                left: -125px;
                top: -55%;
            }
            
            .envelope-button {
                width: 70px;
                height: 90px;
                right: 10px;
                z-index: 12;
            }
            
            .envelope-button-inner {
                font-size: 12px;
            }
            
            .envelope-seal {
                width: 75px;
                height: 75px;
            }
            
            .envelope-text {
                top: 160px;
                font-size: 14px;
            }
            
            .envelope-inner-cream-content {
                font-size: 12px;
                padding: 8px;
            }
            .final-waiting-image {
            top: 0%;
            }
        }

        /* Animación sutil al cargar */
        .envelope {
            animation: fadeIn 0.8s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
/* Titulo Sobre */
.envelope-overlay-text {
  position: absolute;
  top: -250px;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1; /* Por debajo del sobre para que no tape el sello, pero por encima del fondo */
  text-align: center;
  padding: 0 20px;
  pointer-events: none; /* Para que no interfiera con los clics en el sello o botón */
}

.envelope-main-title {
  color: var(--color-texto);
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  letter-spacing: 1px;
}

.envelope-subtitle {
  color: var(--color-primario);
  font-size: 30px;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

/* Nombre Abajoo sobre */
.envelope-name-below {
  position: absolute;
  bottom: 140px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.envelope-name-title {
  color: var(--color-texto);
  font-size: 30px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

/* --- Sección: El Gran Día --- */
.calendar-section {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  background: transparent;
}

.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--color-primario);
  margin-bottom: 1.5rem;
  text-align: center;
}

.calendar-container {
  max-width: 360px;
  margin: 0 auto;
  background: transparent;
  border-bottom: 4px solid var(--color-primario); /* ✅ Borde inferior al contenedor */
  padding: 0;
}

.calendar-header {
  padding: 16px 0;
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--color-primario);
  background: transparent;
}

/* Contenedor de días: sin fondo, sin bordes internos */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  background: transparent;
  padding: 0;
}

/* Encabezados de día (Dom, Lun, etc.) */
.day-header,
.calendar-day {
  padding: 12px 4px;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: transparent;
  border: none;
  color: var(--color-texto);
}

.day-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-primario);
}

.calendar-day.empty {
  background: transparent;
  visibility: hidden;
}

/* --- Día especial: 15 --- */
.special-day {
  position: relative;
  color: var(--color-primario);
  font-weight: bold;
}

/* Corazón centrado */
.heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  font-size: 2rem;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;

  animation: latido 1.4s infinite ease-in-out;
}

/* Animación de latido */
@keyframes latido {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.20; }
  25%  { transform: translate(-50%, -50%) scale(1.15); opacity: 0.35; }
  40%  { transform: translate(-50%, -50%) scale(1); }
  60%  { transform: translate(-50%, -50%) scale(1.12); opacity: 0.32; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.20; }
}

.special-day span:first-of-type {
  position: relative;
  z-index: 1;
}

/* ✅ Solo borde superior e inferior en las filas de días */
.calendar-days > .day-header,
.calendar-days > .calendar-day {
  border-top: 1px solid var(--color-primario);
}

/* Ajuste: no repetir bordes internos duplicados */
.calendar-days > .day-header:not(:nth-child(n+1):nth-child(-n+7)),
.calendar-days > .calendar-day {
  border-top: none;
}
.calendar-days > .day-header:nth-child(n+1):nth-child(-n+7) {
  border-top: 2px solid var(--color-primario);
  border-bottom: 2px solid var(--color-primario);
}

/* Responsive */
@media (max-width: 360px) {
  .calendar-section {
    padding: 2rem 1rem;
  }
  .day-header,
  .calendar-day {
    padding: 10px 2px;
    font-size: 0.8rem;
  }
  .heart {
    font-size: 1.6rem;
  }
  .final-waiting-image {
  top: 0%;
  }
}

/* Animación suave de aparición del contenido principal */
#mainContent {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease-out, transform 2s ease-out;
  pointer-events: none; /* Evita interacción mientras está invisible */
}

#mainContent.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.seccion-logo{
  top: 75px;
  position: relative;
  z-index: 20;
  text-align: center;
}

/* GALERIA FOTO CARRUSEL STACK*/
.seccion-carrusel-stack{
    position: relative;
    width: 100%;
    margin: 40px auto;
    height: 550px;
    padding: 20px 0;
    text-align: center;
    z-index: 20;
    }
    .seccion-carrusel-stack h2 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--color-primario);
    margin-bottom: 20px;
}
.image-container {
  width: 280px;
  position: absolute;
  top: 10em;
  right: 10em;
}
.image {
  border-radius: 2em;
  width: 100%;
  height: 100%;
  border: 8px solid white;
  cursor: pointer;
}
.image-container:first-child {
  transform: rotate(23deg);
}
.image-container:nth-child(2) {
  transform: rotate(-15deg);
}
.image-container:nth-child(3) {
  transform: rotate(3deg);
}
/* Responsive */
@media (max-width: 360px) {
  .image-container {
  width: 235px;
  position: absolute;
  top: 10em;
  left: 17%;
  }
  .final-waiting-image-container {
    top: 85px;
}
}
@media (max-width: 480px) {
  .image-container {
    width: 250px;
    position: absolute;
    top: 10em;
    left: 16%;
  }
}

/* CALENDARIO CORTO */
        .container-calendario-corto {
            width: 100%;
            border-radius: 20px;
            padding: 30px;
            position: relative;
        }
        
        .calendar-header-calendario-corto {
            text-align: center;
            margin-bottom: 20px;
            font-size: 24px;
            font-weight: bold;
            letter-spacing: 2px;
            color: #333;
        }
        
        .dates-row-calendario-corto {
            display: flex;
            justify-content: space-between;
            padding: 0 10px;
            position: relative;
        }

        .date-font-calendario-corto{
            font-size: 18px;
        }
        
        .save-the-date-calendario-corto {
            text-align: center;
            margin: 30px 0 20px;
            font-size: 28px;
            font-family: 'Times New Roman', Times, serif;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .save-the-date-calendario-corto:hover {
            transform: scale(1.05);
        }
        
        .countdown-container-calendario-corto {
            text-align: center;
            margin-top: 20px;
        }
        
        .countdown-calendario-corto {
            display: flex;
            justify-content: center;
            gap:30px;
            margin-bottom: 10px;
        }
        
        .countdown-item-calendario-corto {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .countdown-number-calendario-corto {
            font-size: 36px;
            font-weight: bold;
            color: var(--color-texto);
            line-height: 1;
        }
        
        .countdown-label-calendario-corto {
            font-size: 12px;
            color: var(--envelope-color);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-family: 'Times New Roman', Times, serif;
        }
        
        .svg-container {
          text-align: center;
        }
        .color-svg-lineacurva {
        stroke: var(--color-acento);
        }

        @media (max-width: 600px) {
            .container-calendario-corto {
                padding: 20px;
            }
            
            .calendar-header-calendario-corto {
                font-size: 20px;
            }
            
            .dates-row-calendario-corto {
                padding: 0 5px;
            }
            
            .date-item-calendario-corto {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }
            
            .save-the-date-calendario-corto {
                font-size: 24px;
            }
            
            .countdown-number-calendario-corto {
                font-size: 30px;
            }
        }
        
        @media (max-width: 400px) {
            .container-calendario-corto {
                padding: 15px;
            }
            
            .calendar-header-calendario-corto {
                font-size: 18px;
            }
            
            .week-days-calendario-corto {
                gap: 5px;
            }
            
            .date-item-calendario-corto {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
            
            .save-the-date-calendario-corto {
                font-size: 20px;
            }
            
            .countdown-calendario-corto {
                gap: 10px;
            }
            
            .countdown-number-calendario-corto {
                font-size: 24px;
            }
        }
/*mesa de regalos*/
  .lista-regalos {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.tarjeta-regalo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  /*background: #fff;*/
  padding: 16px;
  /*border-radius: 14px;*/
  /*box-shadow: 0 6px 18px rgba(0,0,0,0.08);*/
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 140px;
}

.tarjeta-regalo:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.tarjeta-regalo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.tarjeta-regalo span {
  font-weight: 600;
  color: #444;
  text-align: center;
}
/*preloader*/
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-box {
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.loader-gif {
  width: 180px;
  max-width: 60vw;
  user-select: none;
  pointer-events: none;
}

.loader-text {
  margin-top: 18px;
  font-size: 20px;
  letter-spacing: 1px;
  color: #777;
  font-family: serif;
}

/* Animación entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ocultado suave */
.preloader-hide {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* qr */
@keyframes fadeIn{
from{opacity:0;transform:scale(.95);}
to{opacity:1;transform:scale(1);}
}

/*Clima*/
.weather-wrapper{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px;
  padding:10px 20px;
}

.weather-side{
  width:120px;
  min-height:180px;
  background:#fff;
  border-radius:20px;
  padding:15px;
  box-shadow:0 8px 25px rgba(0,0,0,.08);

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  transform:scale(.90);
  opacity:.9;
}

.weather-main{
  width:190px;
  min-height:250px;
  background:#fff;
  border:2px solid var(--color-acento);
  border-radius:28px;
  padding:20px;

  box-shadow:0 15px 40px rgba(212,175,55,.18);

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

.weather-icon{
  width:70px;
  margin:10px 0;
}

.weather-main .weather-icon{
  width:95px;
}

.weather-temp{
  font-size:30px;
  font-weight:bold;
}

.weather-side .weather-temp{
  font-size:22px;
}

.weather-day{
  font-weight:700;
  text-transform:capitalize;
  margin-bottom:8px;
}

.weather-label{
  color:var(--color-acento);
  font-size:14px;
  margin-top:5px;
}
.weather-place{
  font-size:12px;
  color: var(--color-acento);
  margin-bottom:8px;
  font-weight:600;
}
.weather-tip{
      margin-top: -40px;
}
/*Cofigo QR flotante*/
.btn-pase-gif{
  position: fixed;
  bottom: 89px;
  right: 10px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,.20);
  animation: flotar 2s infinite ease-in-out;
}

.btn-pase-gif img{
  width:100%;
  height:100%;
  object-fit:cover;
}

@keyframes flotar{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
}

.popup-pase{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.popup-pase-box{
  background:#fff;
  width:100%;
  max-width:420px;
  border-radius:22px;
  padding:25px;
  text-align:center;
  position:relative;
}

.cerrar-pase{
  position:absolute;
  top:10px;
  right:15px;
  font-size:24px;
  cursor:pointer;
}

.popup-pase-box img{
  width:220px;
  border-radius:14px;
}

.popup-pase-box h3{
  margin-bottom:15px;
}


/* ===================================== */
/* MARKETPLACE */
/* ===================================== */

.marketplace-section{
  width:100%;
  padding:20px 20px;
}

.marketplace-header{
  text-align:center;
  margin-bottom:18px;
}

.marketplace-wrapper{
  width:100%;
  min-width:0;
}

.market-slider{
  width:100%;
  display:flex;
  gap:14px;

  justify-content:center;

  overflow-x:auto;
  scroll-behavior:smooth;

  padding:10px 6px;

  scrollbar-width:none;
}

.market-slider::-webkit-scrollbar{
  display:none;
}

/* ===================================== */
/* TARJETAS */
/* reutilizamos diseño anterior */
/* ===================================== */

.tarjeta-regalo{
  min-width:140px;
  max-width:140px;
  flex-shrink:0;
  border-radius:18px;
  padding:18px 14px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  text-decoration:none;

  box-shadow:
    0 2px 2px rgba(0,0,0,.06);

  transition:.25s;
}

.tarjeta-regalo:hover{
  transform:translateY(-4px);
  border-color:var(--color-acento);
}

.tarjeta-regalo img{
  width:70px;
  height:70px;
  object-fit:contain;
  margin-bottom:12px;
}

.tarjeta-regalo span{
  font-size:.92rem;
  font-weight:600;
  color:var(--color-texto);
  text-align:center;
}

/* ===================================== */
/* BOTONES */
/* ===================================== */

.market-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;

  width:42px;
  height:42px;

  border:none;
  border-radius:50%;

  background:var(--color-primario);
  color:#fff;

  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:0 4px 10px rgba(0,0,0,.15);
}

#marketPrev{
  left:-8px;
}

#marketNext{
  right:-8px;
}

.market-btn.hidden{
  display:none;
}
/* ===================================== */
/* LAYOUT */
/* ===================================== */

.regalos-layout{

  width:100%;
  max-width:1000px;

  margin:0 auto;

  display:grid;
  grid-template-columns:280px 1fr;

  align-items:center;
  justify-content:center;

  gap:26px;
}

/* ===================================== */
/* TARJETA */
/* ===================================== */

.gift-card{

  width:100%;
  max-width:280px;

  min-height:165px;

  border-radius:22px;

  padding:16px 18px;

  position:relative;

  background:
    linear-gradient(
      135deg,
      var(--color-primario),
      #ea6f82
    );

  box-shadow:
    0 10px 30px rgba(0,0,0,.10);

  color:white;

  overflow:hidden;

  margin:0 auto;
}

/* brillo */

.gift-card::before{

  content:"";

  position:absolute;

  width:180px;
  height:180px;

  background:
    rgba(255,255,255,.08);

  border-radius:50%;

  top:-90px;
  right:-70px;
}

/* ===================================== */
/* CHIP */
/* ===================================== */

.gift-chip{

  width:38px;
  height:28px;

  border-radius:7px;

  background:
    linear-gradient(
      135deg,
      #f7d774,
      #d4af37
    );

  margin-bottom:14px;
}

/* ===================================== */
/* BANCO */
/* ===================================== */

.gift-bank{

  font-size:.78rem;

  letter-spacing:1px;

  opacity:.92;

  margin-bottom:10px;
}

/* ===================================== */
/* NUMERO */
/* ===================================== */

.gift-number{

  font-size:1rem;
  font-weight:600;

  letter-spacing:2px;

  line-height:1.3;

  margin-bottom:16px;
}

/* ===================================== */
/* FOOTER */
/* ===================================== */

.gift-footer{

  display:flex;
  align-items:flex-end;
  justify-content:space-between;

  gap:12px;
}

.gift-name span{

  display:block;

  font-size:.65rem;

  opacity:.85;

  margin-bottom:2px;
}

.gift-name strong{

  font-size:.82rem;
  font-weight:600;

  line-height:1.2;
}

/* ===================================== */
/* BOTON COPIAR */
/* ===================================== */

.gift-copy-btn{

  width:34px;
  height:34px;

  min-width:34px;

  border:none;
  border-radius:10px;

  background:
    rgba(255,255,255,.18);

  color:white;

  cursor:pointer;

  transition:.25s;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:.82rem;
}

.gift-copy-btn:hover{

  transform:scale(1.05);

  background:
    rgba(255,255,255,.28);
}

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */

@media(max-width:900px){

  .regalos-layout{

    grid-template-columns:1fr;

    justify-items:center;
  }

  .gift-card{

    max-width:320px;
  }

}

//ESTILO SITIO EN CONSTRUCCION
/* ==========================================
   INVITACIÓN EN CONSTRUCCIÓN
========================================== */

#seccionEnConstruccion {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;

  z-index: 9000;

  overflow-y: auto;
  overflow-x: hidden;

  display: flex;
  justify-content: center;

  background: rgba(255, 246, 250, 0.78);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  padding: 30px 15px 50px;
}


/* CONTENIDO */

.construccion-contenido {
  width: 100%;
  max-width: 720px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  padding: 25px 15px 45px;

  position: relative;
}


/* FOTO */

.construccion-foto {
  width: min(100%, 430px);

  margin: 5px auto 25px;

  position: relative;

  border-radius: 18px;

  overflow: hidden;

  box-shadow:
    0 12px 30px rgba(122, 44, 69, 0.18);
}

.construccion-foto img {
  width: 100%;
  height: auto;

  display: block;

  object-fit: cover;
}


/* MENSAJE */

.construccion-mensaje {
  width: 100%;
  max-width: 580px;

  margin: 0 auto 15px;
}

.construccion-mensaje h1 {
  font-family: 'Dancing Script', cursive;

  font-size: clamp(
    2rem,
    7vw,
    3.4rem
  );

  line-height: 1.15;

  color: var(--color-acento);

  margin: 0 0 15px;
}

.construccion-mensaje p {
  font-family:
    'Segoe UI',
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;

  font-size: clamp(
    0.95rem,
    3.5vw,
    1.15rem
  );

  line-height: 1.6;

  color: var(--color-texto);

  margin: 0 auto;

  max-width: 500px;
}


/* CALENDARIO */

.construccion-calendario {
  width: 100%;

  margin: 10px auto 5px;

  padding: 0;
}

.construccion-calendario
.calendar-container {
  margin-left: auto;
  margin-right: auto;
}


/* APARTAR FECHA */

.construccion-agendar {
  width: 100%;
  max-width: 500px;

  margin: 10px auto 0;

  padding: 10px 10px 0;

  text-align: center;
}

.construccion-agendar h2 {
  font-family: 'Dancing Script', cursive;

  font-size: clamp(
    2rem,
    6vw,
    3rem
  );

  color: var(--color-primario);

  margin: 0 0 5px;
}

.construccion-agendar p {
  font-family:
    'Segoe UI',
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;

  font-size: 0.95rem;

  color: var(--color-texto);

  margin: 0 0 20px;
}


/* BOTONES */

.construccion-botones {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 12px;

  align-items: center;
}


.construccion-boton {
  width: 100%;
  max-width: 360px;

  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 12px 20px;

  border: 1px solid var(--color-primario);

  border-radius: 30px;

  background: rgba(255,255,255,0.82);

  color: var(--color-texto);

  font-family:
    'Segoe UI',
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;

  font-size: 0.95rem;

  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 5px 15px rgba(122,44,69,0.12);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


.construccion-boton:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(122,44,69,0.18);

  background: white;
}


.construccion-boton:active {
  transform: translateY(0);
}


.construccion-boton-icono {
  width: 34px;
  height: 34px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--color-secundario);

  color: var(--color-primario);

  font-size: 18px;
}


/* MÓVIL */

@media (max-width: 480px) {

  #seccionEnConstruccion {
    padding: 20px 10px 40px;
  }

  .construccion-contenido {
    padding: 15px 8px 35px;
  }

  .construccion-foto {
    width: 94%;
    margin-bottom: 20px;
  }

  .construccion-mensaje h1 {
    font-size: 2.15rem;
  }

  .construccion-mensaje p {
    font-size: 0.95rem;
  }

  .construccion-boton {
    max-width: 330px;
  }

}