/* Estilos para el popup de registro */
.popup-registro {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}
button.cerrar-popup {
    background: none !important;

}
textarea#nombres_confirmados::placeholder,textarea#datos_adicionales::placeholder{
text-align: center;
  color: #b89324ff !important; /* Dorado con transparencia */
}

input#nombre_invitado_1::placeholder,input#nombre_invitado_2::placeholder,input#nombre_invitado_3::placeholder{
	  color: #b89324ff !important; /* Dorado con transparencia */

}
.popup-contenido {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.cerrar-popup {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar-popup:hover {
    color: #000;
}

h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

.campo-formulario {
    margin-bottom: 20px;
}

.campo-formulario label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.campo-formulario input[type="text"],
.campo-formulario input[type="email"],
.campo-formulario input[type="tel"],
.campo-formulario input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.campo-formulario input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.boton-enviar, .boton-registro {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}

.boton-enviar:hover, .boton-registro:hover {
    background-color: #005177;
}

.boton-enviar:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.mensaje-error {
    color: #dc3232;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

.mensaje-exito {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

/* Estilos responsivos */
@media (max-width: 600px) {
    .popup-contenido {
        width: 95%;
        padding: 20px 15px;
        margin: 10% auto;
    }
    
    .campo-formulario input[type="text"],
    .campo-formulario input[type="email"],
    .campo-formulario input[type="tel"] {
        font-size: 14px;
    }
}

/* Estilos para el botón de abrir popup */
.boton-registro {
    display: inline-block;
    width: auto;
    padding: 12px 25px;
    margin: 20px 0;
}

/* Estilos para el input de código */
#codigo-acceso {
    text-align: center;
    letter-spacing: 5px;
    font-size: 24px;
    font-weight: bold;
    padding: 15px;
    text-transform: uppercase;
}

/* Estilos para el mensaje de error */
#mensaje-error {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}



        .popup {
            align-items: center;
            justify-content: center;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 1000;
        }

        .contenido-popup {
            background: #69cbadff;
            border-radius: 25px;
            padding: 40px 30px;
            max-width: 380px;
            width: 90%;
            position: relative;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            transform: scale(0.9);
            animation: popupEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        @keyframes popupEnter {
            to {
                transform: scale(1);
            }
        }

        .cerrar-popup {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 28px;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .cerrar-popup:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            transform: rotate(90deg);
        }

       
.decoracion-superior {
    display: flex;
    align-items: center;
    justify-content: center;
}
        .flor-sera {
            width: 40px;
            height: 40px;
            position: relative;
            margin: 0 5px;
        }

        .petalo {
            position: absolute;
            background: white;
            border-radius: 50% 20% 50% 20%;
            width: 18px;
            height: 18px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .petalo:nth-child(1) { transform: rotate(0deg) translateY(-8px); }
        .petalo:nth-child(2) { transform: rotate(72deg) translateY(-8px); }
        .petalo:nth-child(3) { transform: rotate(144deg) translateY(-8px); }
        .petalo:nth-child(4) { transform: rotate(216deg) translateY(-8px); }
        .petalo:nth-child(5) { transform: rotate(288deg) translateY(-8px); }

        .centro-flor-sera {
            position: absolute;
                top: 27%;
    left: 25%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            background: #ffd700;
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .contenido-principal {
            background: #d3efd6ff;
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 35px 25px;
            text-align: center;
        }
.contenido-principal h3 {
    color: #c8a629ff;
    font-family: Georgia;
    font-size: 20px;
    margin-bottom: 1em;
}
.flor-sera{
	  left: 0% !important;
}

        .campo-formulario {
            margin-bottom: 25px;
        }

        #codigo-acceso {
            width: 100%;
            padding: 18px 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 15px;
            font-size: 18px;
            text-align: center;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            font-weight: 600;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            outline: none;
        }

        #codigo-acceso::placeholder {
            color: #999;
            font-weight: 400;
            letter-spacing: 1px;
        }

        #codigo-acceso:focus {
            border-color: white;
            background: white;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .boton-enviar {
            width: 100%;
            padding: 18px;
            background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
            border: none;
            border-radius: 15px;
            color: white;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
            position: relative;
            overflow: hidden;
        }

        .boton-enviar:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(25, 118, 210, 0.4);
            background: linear-gradient(135deg, #2196f3 0%, #1e88e5 100%);
        }

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

        .boton-enviar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .boton-enviar:hover::before {
            left: 100%;
        }

        .decoracion-inferior {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .mensaje-error {
            background: rgba(244, 67, 54, 0.1);
            border: 1px solid rgba(244, 67, 54, 0.3);
            color: #d32f2f;
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 15px;
            font-size: 14px;
            backdrop-filter: blur(5px);
        }

        /* Responsive */
        @media (max-width: 480px) {
            .contenido-popup {
                padding: 30px 20px;
                margin: 15px;
            }

            .contenido-principal {
                padding: 30px 20px;
            }

            h3 {
                font-size: 20px;
            }

            #codigo-acceso {
                font-size: 16px;
                padding: 16px 18px;
            }

            .boton-enviar {
                font-size: 16px;
                padding: 16px;
            }
        }

        /* Animación de las flor-seraes */
        .flor-sera {
            animation: flotar 3s ease-in-out infinite;
        }

        .flor-sera:nth-child(2) {
            animation-delay: 0.5s;
        }

        .flor-sera:nth-child(3) {
            animation-delay: 1s;
        }

        @keyframes flotar {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
            }
            50% {
                transform: translateY(-5px) rotate(2deg);
            }
        }

        /* Demo button para mostrar el popup */
        .demo-button {
            display: none;
        }


 
     

        .flower-decoration {
            position: absolute;
            font-size: 32px;
            opacity: 0.95;
            animation: floatAndGlow 4s ease-in-out infinite;
            filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
            transition: transform 0.3s ease;
            z-index: 10;
        }

        .flower-decoration:hover {
            transform: scale(1.2) rotate(180deg);
            animation-duration: 1.5s;
        }

        /* Guirnalda superior */
        .flower-garland-top {
            top: 10px;
            color: white;
        }

        .flower-garland-top.center {
            left: 50%;
            transform: translateX(-50%);
            font-size: 36px;
            animation-delay: 0s;
        }

        .flower-garland-top.left {
            left: 25%;
            animation-delay: 0.5s;
        }

        .flower-garland-top.right {
            right: 25%;
            animation-delay: 1s;
        }

        .flower-garland-top.far-left {
            left: 10%;
            font-size: 22px;
            animation-delay: 1.5s;
        }

        .flower-garland-top.far-right {
            right: 10%;
            font-size: 22px;
            animation-delay: 2s;
        }

        /* Guirnalda inferior */
        .flower-garland-bottom {
            bottom: 10px;
            color: white;
        }

        .flower-garland-bottom.center {
            left: 50%;
            transform: translateX(-50%);
            font-size: 36px;
            animation-delay: 2.5s;
        }

        .flower-garland-bottom.left {
            left: 25%;
            animation-delay: 3s;
        }

        .flower-garland-bottom.right {
            right: 25%;
            animation-delay: 3.5s;
        }

        .flower-garland-bottom.far-left {
            left: 10%;
            font-size: 22px;
            animation-delay: 4s;
        }

        .flower-garland-bottom.far-right {
            right: 10%;
            font-size: 22px;
            animation-delay: 0.2s;
        }

        /* Líneas decorativas onduladas */
        .decorative-line {
            position: absolute;
            width: 80%;
            height: 2px;
            left: 10%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
            opacity: 0.8;
        }

        .decorative-line.top {
            top: 5px;
            animation: shimmer 3s ease-in-out infinite;
        }

        .decorative-line.bottom {
            bottom: 5px;
            animation: shimmer 3s ease-in-out infinite reverse;
        }

        @keyframes shimmer {
            0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
            50% { opacity: 0.8; transform: scaleX(1.1); }
        }

        @keyframes floatAndGlow {
            0%, 100% { 
                transform: translateY(0) scale(1) rotate(var(--initial-rotation, 0deg));
                opacity: 0.8;
                filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
            }
            25% { 
                transform: translateY(-8px) scale(1.1) rotate(calc(var(--initial-rotation, 0deg) + 10deg));
                opacity: 1;
                filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
            }
            50% { 
                transform: translateY(-3px) scale(1.05) rotate(var(--initial-rotation, 0deg));
                opacity: 0.9;
                filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
            }
            75% { 
                transform: translateY(-6px) scale(1.08) rotate(calc(var(--initial-rotation, 0deg) - 8deg));
                opacity: 1;
                filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.8));
            }
        }

        .flower-petals {
            position: absolute;
            pointer-events: none;
            z-index: -1;
        }

        .petal {
            position: absolute;
            width: 6px;
            height: 12px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
            animation: petalFall 6s linear infinite;
        }

        @keyframes petalFall {
            0% {
                transform: translateY(-20px) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(calc(100vh + 50px)) rotate(360deg);
                opacity: 0;
            }
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.3);
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            font-size: 18px;
            font-weight: bold;
            transition: background 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .form-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px 25px;
            margin: 25px 0;
            border: 2px dashed #82d8c6;
            position: relative;
        }

        h2 {
            color: #d4af37;
            text-align: center;
            margin-bottom: 25px;
            font-size: 22px;
            font-weight: bold;
        }

        .confirmation-section {
            margin-bottom: 25px;
        }

        .confirmation-section label {
            display: block;
            color: #2c3e50;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 16px;
        }

        .radio-group {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .radio-option {
            display: flex;
            align-items: center;
            cursor: pointer;
            position: relative;
        }

        .radio-option input[type="radio"] {
            margin-right: 8px;
            transform: scale(1.2);
            accent-color: #d4af37;
			    margin-bottom: 0.6em;
        }

        .radio-option span {
            color: #2c3e50;
            font-weight: 500;
        }

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

        .form-group label {
            display: block;
            color: #2c3e50;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-family: inherit;
            font-size: 14px;
            resize: vertical;
            min-height: 80px;
            transition: border-color 0.3s ease;
        }

  textarea#nombres_confirmados,textarea#datos_adicionales,input#nombre_invitado_1,input#nombre_invitado_2,input#nombre_invitado_3 {
    border: none;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #b89324ff;
}

       .submit-btn {
    width: 100%;
    background: #c5ab30ff !important;
    color: black !important;
    border: none;
    font-weight: 400 !important;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
        }

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

        #attendee-fields {
            transition: all 0.3s ease;
        }

        .fade-in {
            animation: fadeIn 0.3s ease-in;
        }

        .fade-out {
            animation: fadeOut 0.3s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeOut {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(-10px); }
        }

        .message {
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 15px;
            display: none;
        }

        .message.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .message.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .small-squares {
            position: absolute;
            width: 8px;
            height: 8px;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 2px;
        }

        .square-1 { top: 30px; left: 40px; }
        .square-2 { top: 50px; right: 45px; }
        .square-3 { bottom: 60px; left: 35px; }
        .square-4 { bottom: 40px; right: 40px; }

        @media (max-width: 480px) {
            .popup {
                padding: 25px;
                margin: 10px;
            }
            
            .form-container {
                padding: 20px 15px;
            }
            
            .radio-group {
                flex-direction: column;
                gap: 10px;
            }
        }
div#popup-registro {
    max-width: 497px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 999;
    left: 50%;
    transform: translateX(-50%);
}


   /* Fondo oscuro para el popup-registro-usuario */
        .popup-registro-usuario-overlay-registro-usuario {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #69cbadff;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
 .popup-registro-usuario-overlay-registro-usuario-2 {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #69cbadff;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        /* popup-registro-usuario principal */
        .popup-registro-usuario {
            display: block;
            position: relative;
            max-width: 500px;
            animation: popup-registro-usuario-appear 0.3s ease-out;
        }

        @keyframes popup-registro-usuario-appear {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .contenido-popup-registro-usuario {
            background: #d3efd6ff;
            padding: 80px 25px 80px 25px;
            border-radius: 20px;
            position: relative;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

    .contenido-popup-registro-usuario-2 {
            background: #d3efd6ff;
            padding: 30px 25px 30px 25px;
            border-radius: 20px;
            position: relative;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }


        /* Decoraciones florales superiores e inferiores con imágenes */
        .decoracion-superior-usuario {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-44%);
    width: 250px;
    height: 60px;
    z-index: -1;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
}

        /* Decoraciones florales superiores e inferiores con imágenes */
        .decoracion-inferior-usuario {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 60px;
    z-index: -2;
}

        /* Estilos para las imágenes de flores */
        .decoracion-superior-usuario img, .decoracion-inferior-usuario img {
    width: 100%;
    height: auto;
    max-width: 230px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    transition: transform 0.3s 
ease;
}

        .decoracion-superior-usuario img:hover, .decoracion-inferior-usuario img:hover {
            transform: scale(1.05);
        }

        /* Contenido del popup-registro-usuario */
        .contenido-principal-usuario {
            padding: 10px 0;
            z-index: 1;
        }

        .contenido-principal-usuario h3 {
            color: #c8a629ff;
            font-family: 'Georgia', serif;
            font-size: 22px;
            margin-bottom: 25px;
            font-weight: normal;
            line-height: 1.3;
        }

        /* Campo de formulario */
        .campo-formulario-usuario {
            margin: 20px 0;
        }

        .campo-formulario-usuario input {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            text-align: center;
            background: #ffffff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
        }

        .campo-formulario-usuario input:focus {
            outline: none;
            box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
        }

        /* Botón */
        .boton-enviar-usuario {
            background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 14px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
        }

        .boton-enviar-usuario:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
        }

        /* Botón cerrar */
        .cerrar-popup-registro-usuario {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #7fd3c5ff !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d3efd6ff !important;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1001;
}

        .cerrar-popup-registro-usuario:hover {
            background: #7fd3c5ff;
            transform: scale(1.1);
        }

        /* Mensaje de error */
        .mensaje-error-usuario {
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid #ff6b6b;
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 15px;
            color: #d32f2f;
            font-size: 14px;
            display: none;
        }

        /* Responsive */
        @media (max-width: 360px) {
            .contenido-popup-registro-usuario {
                width: 260px;
                padding: 40px 20px 40px 20px;
            }

            .decoracion-superior-usuario, .decoracion-inferior-usuario {
                width: 200px;
            }

            .decoracion-superior-usuario img, .decoracion-inferior-usuario img {
                max-width: 180px;
            }

            .cerrar-popup-registro-usuario {
                width: 35px;
                height: 35px;
                font-size: 20px;
                right: 15px;
                top: 15px;
            }
        }