:root {
    --color-1:#FFD700;
    --color-2:#B22222;
    --color-3:#003366;
    --color-4:#F5F5F5;
    --font-title:"Great Vibes", serif;
    --font-text:"Playfair", serif;
    --scroll-animation-duration: 0.5s;
}
/* Siempre reserva el espacio del scroll para evitar saltos horizontales */
html { overflow-y: scroll; }
body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    /* Fondo */
    background: url('/imagenes/fondo-beige.png') center / cover no-repeat;
    background-color: #eee7cb; /* fallback */
    font-family: 'cormorant garamond';
    font-style: italic;
}
#envelope {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    perspective: 1000px;
    z-index: 10;
}
#envelope:hover {
    transform: scale(1.05);
}
/* Parte superior del sobre (solapa) */
#envelope-top {
    top: 0;
    border-bottom: none;
}
/* Parte inferior del sobre (cuerpo) */
#envelope-bottom {
    bottom: 0;
    border-top: none;
}
#envelope-top, #envelope-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    background-image: url(/imagenes/sobre.png);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.216);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Sello del sobre */
#seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background-color: var(--color-2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.216);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 1s ease-in-out;
    z-index: 11; /* El círculo rosa encima de la rosa */
}
/* Texto dentro del sello */
#seal h2 {
    margin: 0;
    background: linear-gradient(to right, #b29a68, #d4af37, #ffd700, #d4af37, #b29a68);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
    font-family: var(--font-title);
    font-weight: 400;
    font-style: italic;
    z-index: 12; /* Texto encima de todo */
    position: relative;
}
#invitacion {
    display: none;
    background: transparent;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}
.section-main {
    position: relative;
}
/* Imagen sintillo */
/* Textos sobre la foto */
.section-main .texto-sobre-foto h1,
.section-main .texto-sobre-foto h2,
.section-main .texto-sobre-foto h3 {
    background: linear-gradient(to right,  #7a1212,#B22222, #d43c3c ,#B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
    font-family: var(--font-title);
    margin: 5px 0;
    white-space: nowrap; /* evita saltos de línea */
    overflow: hidden; /* evita que desborde */
    text-overflow: ellipsis; /* opcional: puntos suspensivos si fuera muy largo */
}
.section-main .texto-sobre-foto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0 16px; /* aire lateral en móvil */
  }
/* Tamaños grandes que se adaptan */
.section-main .texto-sobre-foto h1 {
    font-size: 40px;
    margin-top: -315px;
}
.section-main .texto-sobre-foto h2 {
    white-space: nowrap;      /* 1 sola línea */
    font-size: 50px;
}
.section-main .texto-sobre-foto h3 {
    font-size:50px;
}
.section-main .texto-sobre-foto {
    position: absolute;
    top: 50%; /* ajusta si quieres más arriba o más abajo */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    max-width: 95%; /* evita que el texto se salga de la foto */
}
/*secciones generales*/
.section , .section-playlist, .section-filter, .section-quote{
    padding: 0;
    transform: translateY(20px);
    animation: fadeIn var(--scroll-animation-duration) ease-in forwards;
}
/*sección countdown*/
.section-countdown {
    position: relative;
    background-image: url('/imagenes/vela-2.png'); /* cambia por tu imagen */
    background-size: cover; /* cubre toda el área */
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px; /* da aire al contenido */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -30px;
}
.section-countdown::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); /* capa translúcida para legibilidad */
    z-index: 0;
}
.section-countdown * {
    position: relative; /* mantiene el texto sobre el fondo */
    z-index: 1;
}
/*dorado*/
.section-countdown h1, p, .countdown-circle span, .section-music h2, .section-quote h1{
    background: linear-gradient(to right,  #7a1212,#B22222, #d43c3c ,#B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
}
.section-countdown h1 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-family: var(--font-text);
    font-size: 42px;
    font-weight: 400;
    font-style: italic;
    padding: 10px;
    margin-top: -70px;
    margin-bottom: 0;
}
.section-countdown p {
    margin: 0;
    font-family: var(--font-text);
    font-weight: 400;
    font-style: italic;
    font-size: 24px;
    padding: 7px;
}
.section-countdown h2 {
    color: var(--color-2);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-family: var(--font-text);
    font-size: 1.5em;
    font-weight: 400;
    font-style: italic;
    padding: 5px;
    margin: 0;
}
#contador{
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding: 0;
}
.countdown-circle {
    width: 75px;
    height: 75px;
    background:#ffffff91;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.countdown-circle span {
    font-size: 18px;
    font-weight: 400;
    padding: 0;
    font-family: var(--font-text);
    font-style: italic;
}
.section-calendar {
    padding: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    width: 180px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #ffffff91;
    cursor: pointer;
}
.section-calendar a {
    text-decoration: none;
    font-family: var(--font-text);
    color: var(--color-2);
    font-style: italic;
    font-size: 1.2em;
}
.section-calendar:hover {
    background-color: var(--color-2);
}
.section-calendar a:hover {
    color: white;
}
/*section music*/
.section-music {
    background-image: url('/imagenes/play.png'); /* cambia por tu imagen */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 300px;
    z-index: -2;
    box-sizing: border-box;
    margin-top: -100px;
    margin-bottom: -50px;
}
.section-music * {
    position: relative;
    z-index: 1; /* mantiene texto y audio encima */
}
.section-music h2{
    font-family: var(--font-text);
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
}
/*section blessed*/
.section-b {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/reloj-2.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.section-b p{
    font-family: var(--font-text);
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    margin-top: -60px;
    background: linear-gradient(to right,  #7a1212,#B22222, #d43c3c ,#B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
}
.section-b h1, .section-b h2, .section-b h3{
    font-family: var(--font-title);
    padding: 15px;
    font-weight: 400;
    font-style: italic;
    font-size: 50px;
    margin-top: -10px;
    margin-bottom: -10px;
    background: linear-gradient(to right,  #7a1212,#B22222, #d43c3c ,#B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
}
.section-invi {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/fondo-pringas.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -50px;
    z-index: -2;
}
.section-invi h1{
    font-family: var(--font-text);
    padding: 15px;
    font-weight: 400;
    font-style: italic;
    font-size: 40px;
    margin-top: -10px;
    margin-bottom: -10px;
    background: linear-gradient(to right,  #7a1212,#B22222, #d43c3c ,#B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
.section-invi h3{
    font-family: var(--font-title);
    padding: 15px;
    font-weight: 400;
    font-style: italic;
    font-size: 35px;
    margin-top: -10px;
    margin-bottom: -10px;
    background: linear-gradient(to right,  #7a1212,#B22222, #d43c3c ,#B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
/*section div3*/
.section-cerezo1{
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: -50px;
    margin-bottom: -45px;
}
.section-cerezo1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/imagenes/separador.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.section-rsvp, .section-gifts, .section-dresscode{
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/fondo-pringas.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.section-iti{
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/fondo-bella.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.section-playlist{
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/fondo-rosa.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.section-filter{
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/fondo-bella-bestia.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -100px;
}
/* Sección Álbum Digital */
.album-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/fondo-pringas.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0; /* consistente con tus section */
  }
.album-section .album-qr {
    width: 260px;
    max-width: 70vw;
    height: auto;
    display: block;
    margin: 0 auto 16px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
    border-radius: 8px; /* opcional si el QR tiene fondo blanco */
  }
  /* Botón de subir (usa tu misma estética de botones) */
.album-section .upload-btn {
    background-color:var(--color-2);
    color: #fff;
    border-radius: 5px;
    font-family: var(--font-text);
    padding: 10px;
    transition: background-color 0.3s;
    border: none;
    font-size: 1em;
    text-transform: none;
    margin-bottom: 20px;
    font-style: italic;
    font-size: 1.2em;
    text-decoration: none;
}
.album-section .upload-btn:hover {
    background-color: #d4af37;
    color: white;
}
.icono-section {
    width: 200px;       /* mismo “width” que usabas en lord-icon */
    height: auto;
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}
.section-quote{
    position: relative;
    width: 100%;
    height: 510px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/fondo-castillo.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.section-quote h1 {
    font-family: var(--font-title);
    font-weight: 400;
    font-style: italic;
    font-size: 35px;
    padding: 15px;
    margin: 0;
}
.section-main h2 {
    top: 18%;
    font-size: 50px;
}
.section-invi h2, .section-playlist h2, .section-gifts h2, .section h3, .section-filter h3, .section h2, .section-rsvp h3,.section-iti h2, .section-dresscode h2, .album-section h3{
    font-family: var(--font-title);
    padding: 10px;
    font-weight: 400;
    font-style: italic;
    font-size: 40px;
    margin-top: 20px;
    margin-bottom: 10px;
    background: linear-gradient(to right,  #7a1212,#B22222, #d43c3c ,#B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
}
.section-invi p, .section-gifts p, .section-filter p, .section p, .section-rsvp p, .section-iti p, .section-dresscode p, .section-playlist p, .album-section p{
    font-family: var(--font-text);
    font-style: italic;
    font-weight: 400;
    font-size: 24px;
    padding: 5px;
    margin: 0;
    background: linear-gradient(to right,  #7a1212,#B22222, #d43c3c ,#B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
}
/* Buenos deseos: que no se corte el contenido */
.section-wishes{
    height: auto !important;     /* deja que crezca */
    min-height: 600px;           /* altura base opcional */
    overflow: visible !important;
}  
.section-wishes {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('/imagenes/fondo-pringas.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0; /* consistente con tus section */
    padding: 10px 10px 10px 10px;
    max-width: 2000px;
}
  .section-wishes h2 {
    font-family: var(--font-title);
    font-weight: 400;
    font-style: italic;
    font-size: 40px;
    margin: 0 0 16px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    background: linear-gradient(to right, #7a1212, #B22222, #d43c3c, #B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
    padding: 10px 10px 10px 10px;
  }
  .section-wishes input,
  .section-wishes textarea {
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
    padding: 10px 12px;
    margin: 8px auto;
    font-family: var(--font-text);
    font-style: italic;
    font-size: 1em;
    border: 1px solid rgba(178,34,34,0.35);
    border-radius: 8px;
    outline: none;
    background-color: #eee7cb;
  }
  .section-wishes textarea {
    min-height: 100px;
    resize: vertical;
  }
  .wish-card {
    background: #eee7cb;
    border-radius: 4px;                 /* menos redondeo */
    padding: 10px 20px;                 /* menos alto, más ancho visual */
    margin: 12px auto;
    width: 100%;
    max-width: 820px;                   /* más ancha */
    min-height: 72px;                   /* da forma rectangular */
    text-align: left;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(178,34,34,0.35);
  }
  .wish-card strong { display: block; margin-bottom: 4px; }
  
  .wish-card strong {
    font-family: var(--font-text);
    background: linear-gradient(to right, #7a1212, #B22222, #d43c3c, #B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
    font-size: 18px;
  }
  .wish-card em {
    background: linear-gradient(to right, #7a1212, #B22222, #d43c3c, #B22222, #7a1212);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
    font-style: italic;
  }
  /* Sparkles (opcional) */
  #magicEffect {
    position: relative;
    pointer-events: none;
  }
  .sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffd700 0%, #d4af37 60%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    opacity: 0.9;
    animation: sparkleFade 1s ease-out forwards;
  }
  @keyframes sparkleFade {
    0%   { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
  }
  
.section-iti span{
    font-family: var(--font-text);
    font-style: normal;
    font-weight: 400;
    font-size: 1.2em;
    color: var(--color-2);
    padding: 0;
    margin: 0;
}
.icon {
    padding: 0;
    margin: 0;
}
.icon img {
    width: 50%;
    margin-top: -20px;
    margin-bottom: -20px;
}
/*botones*/
button {
    background-color:var(--color-2);
    color: #fff;
    border-radius: 5px;
    font-family: var(--font-text);
    padding: 10px;
    transition: background-color 0.3s;
    border: none;
    font-size: 1em;
    text-transform: none;
    margin-bottom: 20px;
    font-style: italic;
    font-size: 1.2em;
}
button:hover {
    background-color: #d4af37;
    color: white;
}
/*footer*/
footer {
    padding: 20px;
    background:var(--color-2);
    color: white;
    font-size: var(--footer-font-size);
    width: 100%;
    box-sizing: border-box;
}
.section-social-icons {
    padding: 20px;
}
.section-social-icons a {
    color: white;
    margin: 0 10px;
    text-decoration:none;
}
.section-social-icons i{
    font-size: 35px;
}
.section-logo img{
    margin-top: 0px;
}
/* Media Queries */
@media (min-width: 768px) and (max-width: 1024px) {
    /* iPad Styles */
    .seal{
        width: 200px;
        height: 200px;
        }
    .sealh h2{
            font-size: 60px;
        }
    .section-music{
        margin-top: -90px;
        height: 500px;
    }
    .section-main h1, .section-main h2 {
        font-size: 3em;
    }

    .section-countdown h1,
    .section-countdown h2,
    .section-b h1,
    h1,
    .section h2,
    .section h3 {
        font-size: 2.5em;
    }

    .section p,
    .section-countdown p,
    .section-calendar a {
        font-size: 1.5em;
    }
}
@media (min-width: 1025px) {
    /* Laptop Styles */
    .seal{
    width: 200px;
    height: 200px;
    }
    .sealh h2{
        font-size: 60px;
    }
    .sintillo{
        height: 500px;
        margin-bottom: -80px;
    }
    .sintillo h1{
        font-size: 120px;
        margin-top: 10px;
    }
    .sintillo h2{
        font-size: 150px;
        margin-top: 280px;
    }
    .section-music{
        margin-top: -90px;
        height: 500px;
    }
    .section-music h2{
        font-size: 50px;
    }
    .section-countdown h1,
    .section-countdown h2,
    .section-b h1,
    h1,
    .section h2,
    .section h3 {
        font-size: 3em;
    }
    .section p,
    .section-countdown p,
    .section-calendar a, .section-b p{
        font-size: 1.8em;
    }
    .countdown-circle{
        height: 180px;
        width: 180px;
    }
    .countdown-circle span{
        font-size: 50px;
    }
    .section-quote{
        padding: 10px;
    }
    .section-social-icons i{
        font-size: 55px;
        margin-top: 10px;
    }
    .section-logo img{
        margin-top: 0px;
    }
}
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-in-out;
}
.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Bloquea el scroll horizontal en toda la página */
html, body {
    overflow-x: hidden;
    touch-action: pan-y; /* en móvil: solo desplazamiento vertical */
  }
  
  /* Asegura que nada se “salga” por tamaños o paddings */
  * { box-sizing: border-box; }
  /* Contenedor principal centrado y sin desbordes */
  #invitacion {
    margin-inline: auto;
    overflow-x: hidden;
  }
  /* Overlays fijos ocupando exactamente el viewport sin desbordar */
  #envelope,
  .photo-modal {
    left: 0;
    right: 0;
    overflow-x: hidden;
  }
  /* Evita que transform/hover cause desbordes laterales */
  #envelope:hover { transform: none !important; }
  

