/* -------------------------------------------------------------
   SISTEMA DE DISEÑO & CONFIGURACIÓN GENERAL
   ------------------------------------------------------------- */
:root {
    /* Paleta de colores Premium */
    --color-bg-body: #eff3f6;
    /* Fondo fuera del contenedor en Desktop */
    --color-bg-paper: #f8fafc;
    /* Fondo tipo papel de la invitación */
    --color-primary: #4a6b82;
    /* Azul grisáceo elegante */
    --color-primary-dark: #375062;
    /* Azul oscuro para hover/títulos */
    --color-primary-light: #e6eef3;
    /* Azul muy pálido para contenedores */
    --color-gold: #c5a059;
    /* Dorado elegante */
    --color-gold-light: #dfcaa0;
    /* Dorado suave para brillos y marcos */
    --color-text-main: #2e3e4c;
    /* Gris azulado oscuro para legibilidad */
    --color-text-light: #5f7485;
    /* Gris azulado medio */
    --color-white: #ffffff;

    /* Sombras finas */
    --shadow-soft: 0 8px 30px rgba(74, 107, 130, 0.08);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 48px rgba(74, 107, 130, 0.15);

    /* Fuentes */
    --font-script: 'Alex Brush', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    /* Transiciones */
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-quick: all 0.2s ease-out;
}

/* Restablecimiento básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-image: url('assets/images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--color-bg-body);
    font-family: var(--font-sans);
    color: var(--color-text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Tipografía Utility */
.font-script {
    font-family: var(--font-script);
}

.font-serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

.font-sans {
    font-family: var(--font-sans);
}

.font-accent {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* -------------------------------------------------------------
   CONTENEDOR MOBILE-FIRST (Límite en Desktop)
   ------------------------------------------------------------- */
.invitation-container {
    width: 100%;
    max-width: 800px;
    /* Ancho elegante para simular celular/tarjeta en desktop */
    background-color: rgba(248, 250, 252, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------
   COMPONENTES Y DECORACIONES REUTILIZABLES
   ------------------------------------------------------------- */

/* Flores en las esquinas */
.corner-flower {
    position: absolute;
    margin-top: 0px;
    width: 280px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.corner-flower img {
    width: 100%;
    height: 100%;
}

.corner-flower.top-left {
    top: 0;
    left: 0;
}

.corner-flower.top-right {
    top: 0;
    right: 0;
}

.corner-flower.bottom-left {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.corner-flower.bottom-right {
    bottom: 0;
    right: 0;
    transform: scale(-1);
}

/* Mariposas flotando */
.butterfly {
    position: absolute;
    width: 32px;
    height: 32px;
    z-index: 12;
    pointer-events: none;
}

.butterfly img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Animación continua de mariposa flotante */
.butterfly.b1 {
    top: 15%;
    right: 8%;
    animation: floatButterfly1 8s infinite ease-in-out;
}

.butterfly.b2 {
    top: 48%;
    left: 6%;
    animation: floatButterfly2 10s infinite ease-in-out;
}

@keyframes floatButterfly1 {

    0%,
    100% {
        transform: translateY(0) rotate(5deg) scale(1);
    }

    50% {
        transform: translateY(-15px) translateX(-5px) rotate(-10deg) scale(0.9);
    }
}

@keyframes floatButterfly2 {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg) scale(0.9);
    }

    50% {
        transform: translateY(-20px) translateX(8px) rotate(15deg) scale(1.05);
    }
}

/* Tarjetas de papel físico */
.paper-card {
    background: var(--color-white);
    border-radius: 4px;
    padding: 35px 25px;
    margin: 20px auto;
    width: 90%;
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.2);
    /* Borde dorado muy sutil */
    text-align: center;
    transition: var(--transition-smooth);
}

.paper-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1.5px dashed rgba(74, 107, 130, 0.15);
    /* Pespunte elegante */
    border-radius: 2px;
    pointer-events: none;
}

/* Cabecera dorada en tarjetas */
.card-gold-header {
    width: 50px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

/* Divisor floral horizontal */
.floral-divider {
    width: 150px;
    height: 25px;
    margin: 15px auto;
    opacity: 0.85;
}

.floral-divider img {
    width: 100%;
    height: 100%;
}

/* -------------------------------------------------------------
   SECCIÓN 1: PORTADA (90vh - 100vh)
   ------------------------------------------------------------- */
.section-portada {
    position: relative;
    height: 100vh;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background-color: transparent;
    overflow: hidden;
}

.portada-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    z-index: 5;
}

/* Arco dorado superior */
.portada-header-arch {
    border: 1.5px solid rgba(197, 160, 89, 0.45);
    border-bottom: none;
    border-radius: 120px 120px 0 0;
    padding: 35px 25px 15px 25px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 280px;
    transition: var(--transition-smooth);
}

.portada-arch-ribbon {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    z-index: 3;
}

.portada-arch-ribbon img {
    width: 100%;
    height: auto;
}

.portada-tagline {
    font-size: 0.95rem;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    margin-bottom: 2px;
    font-weight: 500;
}

.quinceanera-name {
    font-size: 6.2rem;
    color: #436d88;
    line-height: 1;
    margin: 5px 0;
    text-shadow: 1px 1px 2px rgba(74, 107, 130, 0.05);
}

.gold-arch-ornament {
    width: 90px;
    height: auto;
    margin-top: 5px;
    opacity: 0.7;
    filter: sepia(1) saturate(5) hue-rotate(5deg);
}

.gold-arch-ornament img {
    width: 100%;
    height: auto;
}

/* Composición de fotografía y sobre */
.photo-composition {
    position: relative;
    width: 700px;
    height: 500px;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sobre azul detrás de la foto */
.envelope-background {
    position: absolute;
    width: 390px;
    height: 390px;
    bottom: -60px;
    left: -100px;
    z-index: 1;
    transform: rotate(-16deg);
    pointer-events: none;
}

.envelope-background .envelope-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Marco blanco y retrato */
.photo-frame {
    position: relative;
    width: 700px;
    height: 500px;
    background-color: var(--color-white);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 2;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.photo-frame .main-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.main-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.05);
}

/* Listón / moño en la parte superior */
.ribbon-ornament {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 80px;
    height: 32px;
    z-index: 3;
}

.ribbon-ornament img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12));
}

.portada-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.event-date {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* -------------------------------------------------------------
   BOTONES E INTERACCIONES
   ------------------------------------------------------------- */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 28px;
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 107, 130, 0.15);
    transition: var(--transition-quick);
    outline: none;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 107, 130, 0.25);
}

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

.btn-capsule {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 25px;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    transition: var(--transition-quick);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(74, 107, 130, 0.1);
}

.btn-capsule:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-gold-border {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-gold-border:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

/* Botón Flotante de Música */
.music-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--color-white);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-quick);
}

.music-floating-btn:hover {
    transform: scale(1.1);
}

.music-icon {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: var(--transition-quick);
}

.music-floating-btn.paused .music-icon {
    opacity: 0.5;
}

.music-floating-btn.playing {
    animation: rotateMusic 4s infinite linear;
}

@keyframes rotateMusic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------------------
   INVITATION BODY (Desbloqueado tras Abrir)
   ------------------------------------------------------------- */
.invitation-body {
    opacity: 1;
    transition: opacity 0.8s ease-in;
}

.invitation-body.hidden {
    display: none;
    opacity: 0;
}

/* Sección 2: Mensaje */
.section-mensaje {
    padding: 20px 20px;
    display: flex;
    justify-content: center;
    background-color: var(--color-bg-paper);
}

.mensaje-card {
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.mensaje-text {
    font-size: 1.7rem;
    line-height: 1.5;
    color: var(--color-primary-dark);
    font-style: italic;
}

.monogram {
    font-size: 2.5rem;
    color: var(--color-gold);
    display: block;
    margin-top: 10px;
}

/* Sección 3: Recepción */
.section-recepcion {
    padding: 20px 0 10px 0;
    background-color: var(--color-bg-paper);
}

.card-illustration {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px auto;
}

.card-illustration img {
    width: 100%;
    height: 100%;
}

.section-title {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.location-name {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.location-time {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.card-floral-footer {
    width: 100px;
    height: 15px;
    margin: 20px auto 0 auto;
    opacity: 0.5;
}

.card-floral-footer img {
    width: 100%;
    height: 100%;
}

/* Sección 4: Código de Vestir */
.section-vestimenta {
    padding: 20px 0 10px 0;
    background-color: var(--color-bg-paper);
}

.dress-illustrations {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.dress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dress-icon {
    width: 50px;
    height: 80px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.dress-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.dress-code-value {
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.dress-code-restriction {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 15px;
    font-style: italic;
    padding: 0 10px;
}

.highlight-text {
    color: var(--color-primary);
    font-weight: 500;
}

/* Sección 5: Mesa de Regalos */
.section-regalos {
    padding: 20px 0;
    background-color: var(--color-bg-paper);
}

.envelope-composition {
    position: relative;
    width: 90%;
    margin: 0 auto;
}

.gift-envelope {
    position: absolute;
    top: 15px;
    left: -5px;
    right: 5px;
    bottom: -15px;
    background-color: var(--color-primary);
    border-radius: 4px;
    opacity: 0.9;
    z-index: 1;
}

.gift-card {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
}

.gift-tagline {
    font-size: 0.9rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

.gift-options {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.gift-opt-box {
    flex: 1;
    background-color: var(--color-bg-body);
    border-radius: 4px;
    padding: 20px 10px;
    border: 1px solid rgba(74, 107, 130, 0.1);
    transition: var(--transition-quick);
}

.gift-opt-box:hover {
    transform: translateY(-2px);
    border-color: var(--color-gold);
}

.opt-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.opt-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.opt-desc {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Sección 6: Confirmación (Sobre y Corazón/Sello) */
.section-confirmacion {
    padding: 20px 0 80px 0;
    background-color: var(--color-bg-paper);
}

.rsvp-envelope-wrapper {
    width: 90%;
    margin: 0 auto;
}

.rsvp-envelope {
    position: relative;
    background-color: var(--color-white);
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 50px 30px 40px 30px;
    text-align: center;
    overflow: hidden;
}

.rsvp-envelope::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1.5px dashed rgba(74, 107, 130, 0.15);
    border-radius: 2px;
    pointer-events: none;
}

.rsvp-decorative-paper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-color: var(--color-primary-light);
}

/* Sello de cera en la confirmación */
.paper-heart-element {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 2;
    animation: pulseSeal 3s infinite ease-in-out;
}

@keyframes pulseSeal {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.paper-heart-element img {
    width: 100%;
    height: 100%;
}

.rsvp-invitation-text {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* -------------------------------------------------------------
   MODAL DE CONFIRMACIÓN (RSVP)
   ------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(74, 107, 130, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-card {
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideUpModal 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    margin: 0;
    /* Anular margen por defecto de paper-card */
}

@keyframes slideUpModal {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--color-gold);
}

.rsvp-form {
    text-align: left;
    margin-top: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label,
.group-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(74, 107, 130, 0.25);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-main);
    background-color: var(--color-bg-paper);
    outline: none;
    transition: var(--transition-quick);
}

.form-group input[type="text"]:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
}

/* Radio buttons estilizados */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--color-text-main);
    user-select: none;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--color-white);
    border: 1px solid rgba(74, 107, 130, 0.3);
    border-radius: 50%;
}

.radio-container:hover input~.checkmark {
    border-color: var(--color-gold);
}

.radio-container input:checked~.checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.checkmark:after {
    display: block;
}

.radio-container .checkmark:after {
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-white);
}

/* Contador de acompañantes */
.counter-input {
    display: flex;
    align-items: center;
    width: 140px;
    border: 1px solid rgba(74, 107, 130, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

.counter-btn {
    width: 40px;
    height: 36px;
    background-color: rgba(74, 107, 130, 0.05);
    border: none;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: var(--transition-quick);
}

.counter-btn:hover {
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--color-gold);
}

.counter-input input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    background-color: transparent;
    color: var(--color-text-main);
    outline: none;
}

/* Quitar flechas del input number */
.counter-input input::-webkit-outer-spin-button,
.counter-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.full-width {
    width: 100%;
}

/* -------------------------------------------------------------
   SCROLL REVEAL Y EFECTOS
   ------------------------------------------------------------- */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
   EFECTO RIPPLE PARA BOTONES
   ------------------------------------------------------------- */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Estilos para los Items PNG subidos por el usuario */

.ribbon-png {
    width: 95px !important;
    height: auto !important;
    top: -22px !important;
}

.ribbon-png img {
    width: 100%;
    height: auto;
}

.item-mariposas-floating {
    position: absolute;
    top: 55%;
    right: 5%;
    width: 140px;
    z-index: 4;
    pointer-events: none;
    animation: floatButterfly1 12s infinite ease-in-out;
}

.item-mariposas-floating img {
    width: 100%;
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
}

.section-png-divider-unique {
    text-align: center;
    margin: -20px auto 10px auto;
    /* Margen negativo mayor para compensar la transparencia de la imagen y lograr superposición */
    width: 100%;
    max-width: 260px;
    position: relative;
    z-index: 10;
    /* Asegurar que quede por encima de los bordes y sombras de la tarjeta */
    pointer-events: none;
    /* Evitar bloquear clics en la tarjeta */
}

.section-png-divider {
    text-align: center;
    margin: -120px auto 10px auto;
    /* Margen negativo mayor para compensar la transparencia de la imagen y lograr superposición */
    width: 100%;
    max-width: 260px;
    position: relative;
    z-index: 10;
    /* Asegurar que quede por encima de los bordes y sombras de la tarjeta */
    pointer-events: none;
    /* Evitar bloquear clics en la tarjeta */
}

.png-flower-divider {
    width: 100%;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(74, 107, 130, 0.08));
}

.cartel-btn-container {
    position: relative;
    width: 260px;
    height: 120px;
    margin: 5px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cartel-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    opacity: 0.95;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.cartel-btn-container .btn-capsule {
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    border-color: var(--color-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: -15px;
    /* Centrar con respecto al cartel */
}

.cartel-btn-container .btn-capsule:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.gift-icon-png {
    width: 44px;
    height: 44px;
    object-fit: contain;
    opacity: 0.85;
}

.envelope-with-png-bg {
    position: relative;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1.25;
}

.envelope-with-png-bg::before {
    display: none !important;
}

.rsvp-sobre-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 1;
    filter: drop-shadow(0 12px 30px rgba(74, 107, 130, 0.15));
}

.rsvp-envelope-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px 40px 30px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Estilos de Botón Abrir Invitación (Banner Azul y Dorado) */
.abrir-btn-container {
    margin: 25px auto 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-quick);
}

.btn-abrir-invitacion {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #4d6e85 0%, #3a5467 100%);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.15rem;
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.08em;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.7);
    box-shadow: 0 4px 15px rgba(74, 107, 130, 0.2), inset 0 0 0 2px rgba(197, 160, 89, 0.25);
    transition: var(--transition-quick);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-abrir-invitacion::before {
    content: "❧ ";
    color: var(--color-gold-light);
    font-size: 1.1rem;
    opacity: 0.95;
}

.btn-abrir-invitacion::after {
    content: " ❧";
    color: var(--color-gold-light);
    font-size: 1.1rem;
    opacity: 0.95;
}

.btn-abrir-invitacion:hover {
    background: linear-gradient(135deg, #3a5467 0%, #2e4352 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 107, 130, 0.3), inset 0 0 0 2px rgba(197, 160, 89, 0.4);
    color: var(--color-gold-light);
}

.gold-bottom-ornament {
    width: 90px;
    height: auto;
    margin-top: 10px;
    opacity: 0.75;
    filter: sepia(1) saturate(5) hue-rotate(5deg);
}

.gold-bottom-ornament img {
    width: 100%;
    height: auto;
}

/* Soporte para preferencias del sistema de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {

    .reveal-item,
    .reveal-section,
    .butterfly,
    .paper-heart-element,
    .item-mariposas-floating,
    .music-floating-btn.playing {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}