#agp-overlay-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.agp-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 35px 30px;
    box-sizing: border-box;
    text-align: left;
    animation: agpFadeIn 0.3s ease-out forwards;
}

@keyframes agpFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.agp-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.agp-shield-icon {
    width: 56px;
    height: 56px;
    background: rgba(158, 111, 83, 0.1); /* Fondo sutil basado en el color del icono */
    color: #9e6f53;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.agp-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.agp-subtitle {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.agp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.agp-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agp-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.agp-field-group input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.agp-field-group input[type="text"]:focus {
    border-color: #9e6f53;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(158, 111, 83, 0.15);
}

.agp-terms-group {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.agp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.agp-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #9e6f53;
}

.agp-checkbox-label a {
    color: #935555;
    text-decoration: underline;
}

.agp-actions {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.agp-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.agp-btn-primary {
    background: #000000;
    color: #ffffff;
}

.agp-btn-primary:hover {
    background: #222222;
    color: #ffffff;
}

.agp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.agp-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}