/* ── ESTILOS DEL BANNER Y PREFERENCIAS LEY 21.719 ── */
:root {
    --l21-dark: #0A1628;
    --l21-accent: #F26822;
    --l21-accent-hover: #d95314;
    --l21-white: #ffffff;
    --l21-text: #e2e8f0;
    --l21-text-muted: #94a3b8;
    --l21-border: rgba(255, 255, 255, 0.12);
}

/* 1. BANNER WRAPPER */
.ley21719-banner-wrap {
    position: fixed;
    z-index: 999999;
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--l21-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.35);
    border-top: 1px solid var(--l21-border);
    animation: ley21-slide-up 0.4s ease-out;
}

@keyframes ley21-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ley21719-banner-wrap.pos-bottom-bar {
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2rem;
}

.ley21719-banner-wrap.pos-bottom-right {
    bottom: 20px;
    right: 20px;
    max-width: 480px;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--l21-border);
}

.ley21719-banner-wrap.pos-bottom-left {
    bottom: 20px;
    left: 20px;
    max-width: 480px;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--l21-border);
}

.ley21719-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.pos-bottom-right .ley21719-banner-container,
.pos-bottom-left .ley21719-banner-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.ley21719-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.ley21719-dot {
    width: 6px;
    height: 6px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 8px #06b6d4;
}

.ley21719-banner-title {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.ley21719-banner-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.ley21719-policy-link {
    color: var(--l21-accent);
    text-decoration: underline;
    margin-left: 6px;
    font-weight: 600;
}

.ley21719-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.pos-bottom-right .ley21719-banner-actions,
.pos-bottom-left .ley21719-banner-actions {
    width: 100%;
    flex-wrap: wrap;
}

/* BOTONES */
.ley21719-btn-prim {
    background: var(--l21-accent);
    color: #ffffff !important;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(242, 104, 34, 0.3);
}

.ley21719-btn-prim:hover {
    background: var(--l21-accent-hover);
    transform: translateY(-2px);
}

.ley21719-btn-sec {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ley21719-btn-sec:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.ley21719-btn-ghost {
    background: none;
    color: #94a3b8 !important;
    border: none;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ley21719-btn-ghost:hover {
    color: #ffffff !important;
}

/* 2. MODAL DE PREFERENCIAS */
.ley21719-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.ley21719-modal-box {
    background: #0d1e36;
    border: 1px solid var(--l21-border);
    border-radius: 24px;
    max-width: 580px;
    width: 100%;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: ley21-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes ley21-pop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ley21719-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--l21-border);
}

.ley21719-modal-header h3,
.ley21719-modal-header .ley21719-modal-title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.ley21719-company-highlight {
    color: #67e8f9 !important;
    font-weight: 800 !important;
}

.ley21719-close-btn {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.ley21719-close-btn:hover { color: #ffffff !important; }

.ley21719-modal-body {
    padding: 1.75rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.ley21719-modal-intro {
    font-size: 0.9rem !important;
    color: #cbd5e1 !important;
    line-height: 1.5 !important;
    margin: 0 0 1.5rem 0 !important;
}

.ley21719-cat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.15rem;
    margin-bottom: 1rem;
}

.ley21719-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.ley21719-cat-head strong { 
    font-size: 0.98rem !important;
    color: #ffffff !important;
}

.ley21719-pill-req {
    font-size: 10px !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    margin-left: 8px !important;
    font-weight: 700 !important;
}

.ley21719-cat-item p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    line-height: 1.45 !important;
}

/* SWITCHES */
.ley21719-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ley21719-switch input { opacity: 0; width: 0; height: 0; }

.ley21719-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 24px;
}

.ley21719-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.ley21719-switch input:checked + .ley21719-slider {
    background-color: var(--l21-accent);
}

.ley21719-switch input:checked + .ley21719-slider:before {
    transform: translateX(20px);
}

.ley21719-modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--l21-border);
    display: flex;
    justify-content: flex-end;
}

/* 3. BOTÓN FLOTANTE DISCRETO */
.ley21719-floating-reopen {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    background: #0A1628;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.ley21719-floating-reopen:hover {
    background: #0d1e36;
    color: #ffffff;
    border-color: var(--l21-accent);
    transform: translateY(-2px);
}

/* 4. FORMULARIO DE DERECHOS ARCO */
.ley21719-arco-wrapper {
    max-width: 780px;
    margin: 2rem auto;
    font-family: inherit;
}

.ley21719-arco-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.ley21719-arco-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.ley21719-arco-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 800;
}

.ley21719-arco-header p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.ley21719-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.ley21719-field-col, .ley21719-field-full {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.ley21719-field-col label, .ley21719-field-full label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.ley21719-field-col input,
.ley21719-field-full select,
.ley21719-field-full textarea {
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ley21719-field-col input:focus,
.ley21719-field-full select:focus,
.ley21719-field-full textarea:focus {
    border-color: #F26822;
}

.ley21719-arco-legal-note {
    background: #f8fafc;
    border-left: 4px solid #0891b2;
    padding: 1rem 1.25rem;
    border-radius: 0 10px 10px 0;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.ley21719-arco-success-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.ley21719-success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 1.5rem auto;
}

.ley21719-code-highlight {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.4rem;
    color: #F26822;
    background: #fff7ed;
    padding: 0.35rem 1.25rem;
    border-radius: 8px;
    border: 1px dashed #fdba74;
}

@media (max-width: 768px) {
    .ley21719-banner-container { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .ley21719-banner-actions { width: 100%; flex-wrap: wrap; }
    .ley21719-form-row { grid-template-columns: 1fr; }
}
