/* =====================================================================
   ARMONÍA LAB — USAGE GATE & LEAD CAPTURE (ABLETON EDITORIAL THEME)
   ===================================================================== */

/* Píldora Flotante de Cuota */
#armonia-quota-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000000;
    color: #ffffff;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99990;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    user-select: none;
}

#armonia-quota-badge:hover {
    transform: translateY(-2px);
    background: #111111;
}

#armonia-quota-badge .quota-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0000ff;
    display: inline-block;
    animation: quotaPulse 1.8s infinite;
}

@keyframes quotaPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #0000ff; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes badgeTick {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); background: #0000ff; color: #ffffff; }
    100% { transform: scale(1); background: #000000; }
}

#armonia-quota-badge.badge-tick {
    animation: badgeTick 0.25s ease-out;
}

#armonia-quota-badge.hidden {
    display: none !important;
}

/* Modal Overlay (Backdrop) */
#armonia-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

#armonia-gate-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Tarjeta Central del Modal */
.armonia-gate-card {
    background: #ffffff;
    color: #111111;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0000ff;
    width: 100%;
    max-width: 520px;
    padding: 36px 32px 28px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(16px);
    transition: transform 0.25s ease;
    position: relative;
    box-sizing: border-box;
}

#armonia-gate-modal.is-active .armonia-gate-card {
    transform: translateY(0);
}

.armonia-gate-header {
    margin-bottom: 20px;
}

.armonia-gate-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0000ff;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.armonia-gate-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
}

.armonia-gate-desc {
    color: #4a5568;
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
}

/* Formulario */
.armonia-gate-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.armonia-gate-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.armonia-gate-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
    letter-spacing: 0.03em;
}

.armonia-gate-input {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #000000;
    background: #f8f9fa;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    box-sizing: border-box;
    transition: all 0.15s ease;
    outline: none;
}

.armonia-gate-input:focus {
    background: #ffffff;
    border-color: #0000ff;
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.15);
}

.armonia-gate-btn {
    background: #000000;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 20px;
    border: 1px solid #000000;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.armonia-gate-btn:hover {
    background: #0000ff;
    border-color: #0000ff;
}

.armonia-gate-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Cláusula Legal RGPD (Primera capa) */
.armonia-gate-rgpd {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.armonia-gate-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #4a5568;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.armonia-gate-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #0000ff;
    cursor: pointer;
}

.armonia-gate-legal-box {
    background: #f8f9fa;
    border-left: 2px solid #cbd5e1;
    padding: 8px 10px;
    font-size: 10.5px;
    color: #718096;
    line-height: 1.45;
}

.armonia-gate-legal-box strong {
    color: #334155;
}

.armonia-gate-legal-box a {
    color: #0000ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Mensajes de feedback */
.armonia-gate-feedback {
    display: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: 2px;
}

.armonia-gate-feedback.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.armonia-gate-feedback.success {
    display: block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Responsivo */
@media (max-width: 600px) {
    .armonia-gate-card {
        padding: 24px 20px;
    }
    .armonia-gate-title {
        font-size: 20px;
    }
    #armonia-quota-badge {
        bottom: 14px;
        right: 14px;
        font-size: 11px;
        padding: 6px 10px;
    }
}
