
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Montserrat:wght@300;400;600;700&display=swap');



@font-face {
  font-family: 'AnthonyHunter';
  src: url('../fonts/AnthonyHunter.woff2') format('woff2'),
       url('../fonts/AnthonyHunter.woff') format('woff');
       
       
       
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BachelorettePERSONALUSEONLY-Regular';
  src: url('../fonts/BachelorettePERSONALUSEONLY-Regular.woff2') format('woff2'),
       url('../fonts/BachelorettePERSONALUSEONLY-Regular.woff') format('woff');
       
       
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'elegant_handwriting-webfont';
  src: url('../fonts/elegant_handwriting-webfont.woff2') format('woff2'),
       url('../fonts/elegant_handwriting-webfont.woff') format('woff');
       
       
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'greatvibes-regular-webfont';
  src: url('../fonts/greatvibes-regular-webfont.woff2') format('woff2'),
       url('../fonts/greatvibes-regular-webfont.woff') format('woff');
       
       
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    width: 100%;
    height: 100vh;
    position: fixed;
    background: #000;
}

/*---------------------------------------------------------*/



/* Pantalla de Carga */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url("../img/fondo-sobre.jpg") center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease;
}

.loading-screen::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="800" cy="300" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="400" cy="600" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="900" cy="700" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="300" cy="900" r="2" fill="rgba(255,255,255,0.2)"/></svg>');
    opacity: 0.4;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.envelope-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.envelope-container:active {
    transform: scale(0.98);
}



/*.envelope {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f5ef 0%, #ebe4d8 100%);
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(212,175,55,0.3);
}
*/
.envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(212,175,55,0.08) 50%, transparent 60%);
}

/*.envelope-flap {
    width: 0;
    height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 110px solid #d4af37;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top center;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}
*/

.envelope-flap::after {
    content: '';
    position: absolute;
    top: -110px;
    left: -160px;
    width: 320px;
    height: 110px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
}

.envelope-container.opening .envelope-flap {
    transform: rotateX(180deg);
}

/*.envelope-seal {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #d4af37, #b8941f);
    border-radius: 50%;
    border: 2px solid #f8f5ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(212,175,55,0.4);
}
    */

/*.envelope-text {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    color: #2d5016;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    letter-spacing: 3px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}
    */

.tap-instruction {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Partículas mágicas */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    filter: blur(0.5px);
}

/* Pantalla Principal */
.main-screen {
    display: none;
    width: 100%;
    height: 100vh;
    background: #000;
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.main-screen.active {
    display: block;
}

/* Secciones del carrusel */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    scroll-snap-align: start;
    position: relative;
    /*background: url("../img/fondo_1.svg") center center / cover no-repeat;*/
}

.section2 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    scroll-snap-align: start;
    position: relative;
    background: url("../img/fondo2.jpg") center center / cover no-repeat;
}

.section3 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    scroll-snap-align: start;
    position: relative;
    background: url("../img/fondo3.jpg") center center / cover no-repeat;
}

.section4 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    scroll-snap-align: start;
    position: relative;
    background: url("../img/fondo4.jpg") center center / cover no-repeat;
}

.section5 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    scroll-snap-align: start;
    position: relative;
    background: url("../img/fondo5.jpg") center center / cover no-repeat;
}

.section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(212,175,55,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(74,157,111,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #1a5c3f 0%, #2d7a4f 50%, #0a4d2e 100%);
}

.card {
    background: #257048b6;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    /*color: #bd5b00;*/
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'elegant_handwriting-webfont';
}

.secc3 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Playfair+Display', serif;

}

.secc2 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Playfair+Display', serif;

}

.secc4 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Playfair+Display', serif;

}

.secc5 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'BachelorettePERSONALUSEONLY-Regular';

}

.secc6 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'BachelorettePERSONALUSEONLY-Regular';

}

.quinceañera-name {
    font-size: 3em;
    background: linear-gradient(135deg, #3c8b07 0%, #e9c577 50%, #3c8b07 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    font-family: 'greatvibes-regular-webfont';
    font-weight: 900;
    letter-spacing: 2px;
    filter: drop-shadow(0 5px 10px rgba(212,175,55,0.5));
}

p {
    color: rgba(255, 255, 255, 0.897);
    font-size: 2em;
    line-height: 1.7;
    margin: 12px 0;
    font-weight: 300;
    font-family: 'Playfair+Display', serif;
}

.titulo2 {
    color: rgba(255, 255, 255, 0.897);
    font-size: 3em;
    line-height: 1.7;
    margin: 12px 0;
    font-weight: 300;
    font-family: 'BachelorettePERSONALUSEONLY-Regular';
}

.titulo3 {
    color: rgba(255, 255, 255, 0.897);
    font-size: 3em;
    line-height: 1.7;
    margin: 12px 0;
    font-weight: 300;
    font-family: 'BachelorettePERSONALUSEONLY-Regular';
}



.titulo4 {
    color: rgba(255, 255, 255, 0.897);
    font-size: 1.5em;
    line-height: 1.7;
    margin: 12px 0;
    font-weight: 300;
    font-family: 'BachelorettePERSONALUSEONLY-Regular';
}

.titulos {
    color: rgba(255, 255, 255, 0.897);
    font-size: 2em;
    line-height: 1;
    margin: 12px 0;
    font-weight: 300;
    font-family: 'Playfair+Display', serif;
}

.recep {
    color: rgba(255, 255, 255, 0.897);
    font-size: 1em;
    line-height: 1;
    margin: 12px 0;
    font-weight: 300;
    font-family: 'Playfair+Display', serif;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.countdown-number {
    font-size: 2.5em;
    font-weight: 700;
    display: block;
    background: linear-gradient(135deg, #d4af37, #f4e4c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button {
    display: block;
    width: 100%;
    padding: 18px 20px;
    margin: 12px 0;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4c1 100%);
    color: #1a5c3f;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(212,175,55,0.4);
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button:active::before {
    width: 300px;
    height: 300px;
}

.button:active {
    transform: scale(0.95);
}

.frog-icon {
    font-size: 4em;
    margin: 20px 0;
    filter: drop-shadow(0 5px 15px rgba(212,175,55,0.3));
    animation: hop 2s ease-in-out infinite;
}

@keyframes hop {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.info-box {
    background: #257048b6;
    backdrop-filter: blur(10px);
    padding: 18px;
    border-radius: 20px;
    margin: 12px 0;
    border-left: 3px solid #d4af37;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.info-box strong {
    color: #d4af37;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5em;
    animation: bounce 2s infinite;
    z-index: 10;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

.icon-large {
    font-size: 2.0em;
    margin: 20px 0;
    filter: drop-shadow(0 5px 15px rgba(212,175,55,0.3));
    
}


.pretitle {
  font-family: 'AnthonyHunter';
  font-size: 2rem;
  text-align: center;
  white-space: nowrap;       /* ⬅ fuerza un solo renglón */
  margin-top: -20px;         /* ⬅ súbelo */
  margin-bottom: 5px;        /* separa de “MIS XV AÑOS” */
  color: #d4af37;
}





.dress-code, .gift-info {
    background: rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    margin: 20px 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.subtitle {
    font-family: 'AnthonyHunter';
    color: #ffffffd3;
    font-size: 1.7em;
    letter-spacing: 1px;
    margin: 15px 0;
    line-height: 1.2;
    
}

.subtitle1 {
    font-family: 'AnthonyHunter';
    color: #ffffffd3;
    font-size: 1.8em;
    letter-spacing: -1px;
    margin: 15px 0;
    line-height: 1.2;
    
}



.highlight {
    color: #ffffff;
    font-weight: 600;
}



/* Decoración de lirios modernos */
.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(212,175,55,0.2), transparent);
    border-radius: 50%;
    filter: blur(20px);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* CONTENEDOR GENERAL */
.envelope-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope-container:active {
  transform: scale(0.98);
}


.envelope-open-svg {
  position: absolute;
  top: -10px;              /*sube un poco la imagen para compensar el exceso de altura*/ 
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 110%;             /*dale un poco más de ancho para compensar su altura */
  height: auto;           /* deja que escale proporcionalmente */
  opacity: 1;
  z-index: 2;
  pointer-events: none; 
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.envelope-open-svg {
  position: absolute !important;
  left: 50% !important;
  top: -70px !important;                         /* sube el SVG para centrar visualmente */
  transform: translateX(-50%) translateY(6px);  /* ajuste visual inicial */
  width: auto !important;
  height: calc(100% * 1.64) !important;         /* 360.5 / 220 ≈ 1.64 */
  max-width: none !important;
  max-height: none !important;
  opacity: 1;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s ease;
  transform-origin: center top;
}

/*.envelope-flap-svg { z-index: 3; transform-origin: top center; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 1s cubic-bezier(0.22,1,0.36,1), opacity .25s ease; }*/
/* Tapa del sobre (ya animada por rotación) */

/* Estado al abrir - animación de la tapa y muestra el sobre abierto */
.envelope-container.opening .envelope-flap-svg {
  transform: rotateX(-180deg) translateZ(0);
  opacity: 1;
  transition-delay: 0s, .85s;
}
.envelope-container.opening .envelope-open-svg {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .95s;
}

/* pequeño feedback táctil */
.envelope-container:active { transform: scale(.98); }

/*---------------------------------------------------------------------------------*/


/* SVG que reemplaza el sobre */
.envelope-svg {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

/* efecto clic */
.envelope-container:active .envelope-svg {
  transform: scale(0.97);
}

/* Texto de instrucción */
.tap-instruction {
  position: relative;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}


/*--------------------------------------------------------------------*/


/* Específico: sobre abierto — hacemos que sobresalga y mantenga proporción */


/* Al abrir, se muestra (mantén los delays que ya tienes) */
.envelope-container.opening .envelope-open-svg {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  transition-delay: 0.95s;
}


 /*Aseguramos que la tapa siga encima */


.envelope-wrapper {
  position: relative;
  width: 320px;
  height: 220px;       /* mantener este valor para que la tapa rote desde la posición correcta */
  overflow: visible;   /* permitir que el sobre abierto sobresalga */
  perspective: 1200px;
}

.envelope-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.envelope-body { z-index: 1; }



.envelope-flap-svg {
  z-index: 3;
  transform-origin: 50% 6px; /* eje desde un poco debajo del borde superior para mejor realismo */
  transform: rotateX(0deg);
  transition: transform 1s cubic-bezier(.2,.9,.3,1), opacity 0.4s;
  pointer-events: none; /* deja el clic en el contenedor */
  width: 100%;
  height: 100%;
}

.envelope-open-svg {
 
  position: absolute;
  left: 50%;
  top: -70px;                       /* ajusta este valor hasta que la parte importante quede centrada */
  transform: translateX(-50%) translateY(0);
  width: auto;
  height: calc(100% * 1.64);        /* 360.5 / 220 ≈ 1.64 — ajustado a tu viewBox */
  max-width: none;
  max-height: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s ease;
  pointer-events: none;
  transform-origin: center top;
}






