/* Mensajes de resultado */
.mensaje-resultado {
    margin-top: var(--espaciado-md);
    padding: 1.2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    font-weight: 600;
    display: none;
}

.mensaje-resultado.exito {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1) 0%, 
        rgba(16, 185, 129, 0.05) 100%);
    color: var(--exito);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.mensaje-resultado.error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(239, 68, 68, 0.05) 100%);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 42, 78, 0.55);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #fff 80%, #eafcff 100%);
    margin: 0 auto;
    padding: 0;
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 420px;
    border: 2px solid var(--turquesa-acento);
    box-shadow: 0 8px 32px rgba(34,162,184,0.18), 0 1.5px 8px rgba(10,42,78,0.10);
    animation: modalSlideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(34, 162, 184, 0.02) 0%, 
        transparent 50%, 
        rgba(10, 42, 78, 0.02) 100%);
    z-index: 1;
}

.modal-content > * {
    position: relative;
    z-index: 2;
}

.modal-header {
    background: var(--gradiente-principal);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.close {
    position: absolute;
    right: var(--espaciado-lg);
    top: var(--espaciado-lg);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: var(--transition-base);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2.5rem;
    color: var(--texto-principal);
}

.modal-body p {
    margin: 0 0 var(--espaciado-lg) 0;
    color: var(--texto-secundario);
    line-height: 1.6;
    font-size: 1.1rem;
}
