/**
 * Language Suggestion Modal - Estilos
 * Modal elegante y moderno para sugerencia de idioma
 */

/* Base + theme variables */
.ai-seo-lang-modal,
.ai-seo-lang-preview-card {
    --ai-seo-modal-bg: #ffffff;
    --ai-seo-modal-text: #1f2937;
    --ai-seo-modal-muted: #6b7280;
    --ai-seo-modal-strong: #111827;
    --ai-seo-modal-overlay: rgba(0, 0, 0, 0.6);
    --ai-seo-modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --ai-seo-modal-close: #6b7280;
    --ai-seo-modal-close-hover: #1f2937;
    --ai-seo-modal-close-bg: #f3f4f6;
    --ai-seo-modal-accent: #3b82f6;
    --ai-seo-modal-primary-bg: #3b82f6;
    --ai-seo-modal-primary-bg-strong: #2563eb;
    --ai-seo-modal-primary-bg-hover: #2563eb;
    --ai-seo-modal-primary-bg-hover-strong: #1d4ed8;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(59, 130, 246, 0.3);
    --ai-seo-modal-primary-shadow-strong: rgba(59, 130, 246, 0.4);
    --ai-seo-modal-secondary-bg: #f3f4f6;
    --ai-seo-modal-secondary-text: #6b7280;
    --ai-seo-modal-secondary-bg-hover: #e5e7eb;
    --ai-seo-modal-secondary-text-hover: #374151;
}

.ai-seo-lang-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme variants */
.ai-seo-lang-modal.ai-seo-theme--slate,
.ai-seo-lang-preview-card.ai-seo-theme--slate {
    --ai-seo-modal-bg: #ffffff;
    --ai-seo-modal-text: #1f2937;
    --ai-seo-modal-muted: #6b7280;
    --ai-seo-modal-strong: #111827;
    --ai-seo-modal-overlay: rgba(0, 0, 0, 0.6);
    --ai-seo-modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --ai-seo-modal-close: #6b7280;
    --ai-seo-modal-close-hover: #1f2937;
    --ai-seo-modal-close-bg: #f3f4f6;
    --ai-seo-modal-accent: #3b82f6;
    --ai-seo-modal-primary-bg: #3b82f6;
    --ai-seo-modal-primary-bg-strong: #2563eb;
    --ai-seo-modal-primary-bg-hover: #2563eb;
    --ai-seo-modal-primary-bg-hover-strong: #1d4ed8;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(59, 130, 246, 0.3);
    --ai-seo-modal-primary-shadow-strong: rgba(59, 130, 246, 0.4);
    --ai-seo-modal-secondary-bg: #f3f4f6;
    --ai-seo-modal-secondary-text: #6b7280;
    --ai-seo-modal-secondary-bg-hover: #e5e7eb;
    --ai-seo-modal-secondary-text-hover: #374151;
}

.ai-seo-lang-modal.ai-seo-theme--pearl,
.ai-seo-lang-preview-card.ai-seo-theme--pearl {
    --ai-seo-modal-bg: #fdfdfb;
    --ai-seo-modal-text: #1f2937;
    --ai-seo-modal-muted: #6b7280;
    --ai-seo-modal-strong: #111827;
    --ai-seo-modal-overlay: rgba(15, 23, 42, 0.55);
    --ai-seo-modal-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    --ai-seo-modal-close: #6b7280;
    --ai-seo-modal-close-hover: #111827;
    --ai-seo-modal-close-bg: #f2f2ef;
    --ai-seo-modal-accent: #334155;
    --ai-seo-modal-primary-bg: #334155;
    --ai-seo-modal-primary-bg-strong: #1f2937;
    --ai-seo-modal-primary-bg-hover: #1f2937;
    --ai-seo-modal-primary-bg-hover-strong: #111827;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(15, 23, 42, 0.25);
    --ai-seo-modal-primary-shadow-strong: rgba(15, 23, 42, 0.35);
    --ai-seo-modal-secondary-bg: #f2f2ef;
    --ai-seo-modal-secondary-text: #6b7280;
    --ai-seo-modal-secondary-bg-hover: #e7e5e4;
    --ai-seo-modal-secondary-text-hover: #374151;
}

.ai-seo-lang-modal.ai-seo-theme--sand,
.ai-seo-lang-preview-card.ai-seo-theme--sand {
    --ai-seo-modal-bg: #fcfaf7;
    --ai-seo-modal-text: #2f2a25;
    --ai-seo-modal-muted: #7a746b;
    --ai-seo-modal-strong: #1f1b16;
    --ai-seo-modal-overlay: rgba(40, 30, 20, 0.45);
    --ai-seo-modal-shadow: 0 20px 60px rgba(50, 40, 30, 0.2);
    --ai-seo-modal-close: #7a746b;
    --ai-seo-modal-close-hover: #2f2a25;
    --ai-seo-modal-close-bg: #f1ebe4;
    --ai-seo-modal-accent: #8a6f4d;
    --ai-seo-modal-primary-bg: #8a6f4d;
    --ai-seo-modal-primary-bg-strong: #70563a;
    --ai-seo-modal-primary-bg-hover: #70563a;
    --ai-seo-modal-primary-bg-hover-strong: #5c4630;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(138, 111, 77, 0.25);
    --ai-seo-modal-primary-shadow-strong: rgba(138, 111, 77, 0.35);
    --ai-seo-modal-secondary-bg: #f1ebe4;
    --ai-seo-modal-secondary-text: #7a746b;
    --ai-seo-modal-secondary-bg-hover: #e7dfd4;
    --ai-seo-modal-secondary-text-hover: #4b3f33;
}

.ai-seo-lang-modal.ai-seo-theme--stone,
.ai-seo-lang-preview-card.ai-seo-theme--stone {
    --ai-seo-modal-bg: #f7f8f8;
    --ai-seo-modal-text: #1f2937;
    --ai-seo-modal-muted: #6b7280;
    --ai-seo-modal-strong: #111827;
    --ai-seo-modal-overlay: rgba(17, 24, 39, 0.5);
    --ai-seo-modal-shadow: 0 20px 60px rgba(17, 24, 39, 0.2);
    --ai-seo-modal-close: #6b7280;
    --ai-seo-modal-close-hover: #111827;
    --ai-seo-modal-close-bg: #eef0f2;
    --ai-seo-modal-accent: #5f6b63;
    --ai-seo-modal-primary-bg: #5f6b63;
    --ai-seo-modal-primary-bg-strong: #49544d;
    --ai-seo-modal-primary-bg-hover: #49544d;
    --ai-seo-modal-primary-bg-hover-strong: #3e473f;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(95, 107, 99, 0.25);
    --ai-seo-modal-primary-shadow-strong: rgba(95, 107, 99, 0.35);
    --ai-seo-modal-secondary-bg: #eef0f2;
    --ai-seo-modal-secondary-text: #6b7280;
    --ai-seo-modal-secondary-bg-hover: #e0e4e7;
    --ai-seo-modal-secondary-text-hover: #374151;
}

.ai-seo-lang-modal.ai-seo-theme--mist,
.ai-seo-lang-preview-card.ai-seo-theme--mist {
    --ai-seo-modal-bg: #f6f8fb;
    --ai-seo-modal-text: #1f2937;
    --ai-seo-modal-muted: #64748b;
    --ai-seo-modal-strong: #0f172a;
    --ai-seo-modal-overlay: rgba(15, 23, 42, 0.5);
    --ai-seo-modal-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    --ai-seo-modal-close: #64748b;
    --ai-seo-modal-close-hover: #0f172a;
    --ai-seo-modal-close-bg: #e7edf3;
    --ai-seo-modal-accent: #64748b;
    --ai-seo-modal-primary-bg: #64748b;
    --ai-seo-modal-primary-bg-strong: #475569;
    --ai-seo-modal-primary-bg-hover: #475569;
    --ai-seo-modal-primary-bg-hover-strong: #334155;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(100, 116, 139, 0.25);
    --ai-seo-modal-primary-shadow-strong: rgba(100, 116, 139, 0.35);
    --ai-seo-modal-secondary-bg: #e7edf3;
    --ai-seo-modal-secondary-text: #64748b;
    --ai-seo-modal-secondary-bg-hover: #dbe3ec;
    --ai-seo-modal-secondary-text-hover: #334155;
}

.ai-seo-lang-modal.ai-seo-theme--ink,
.ai-seo-lang-preview-card.ai-seo-theme--ink {
    --ai-seo-modal-bg: #f8fafc;
    --ai-seo-modal-text: #0f172a;
    --ai-seo-modal-muted: #64748b;
    --ai-seo-modal-strong: #020617;
    --ai-seo-modal-overlay: rgba(2, 6, 23, 0.55);
    --ai-seo-modal-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
    --ai-seo-modal-close: #64748b;
    --ai-seo-modal-close-hover: #0f172a;
    --ai-seo-modal-close-bg: #eef2f7;
    --ai-seo-modal-accent: #1e3a8a;
    --ai-seo-modal-primary-bg: #1e3a8a;
    --ai-seo-modal-primary-bg-strong: #1e2f66;
    --ai-seo-modal-primary-bg-hover: #1e2f66;
    --ai-seo-modal-primary-bg-hover-strong: #1b2550;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(30, 58, 138, 0.25);
    --ai-seo-modal-primary-shadow-strong: rgba(30, 58, 138, 0.35);
    --ai-seo-modal-secondary-bg: #eef2f7;
    --ai-seo-modal-secondary-text: #64748b;
    --ai-seo-modal-secondary-bg-hover: #dde4ee;
    --ai-seo-modal-secondary-text-hover: #334155;
}

.ai-seo-lang-modal.ai-seo-theme--linen,
.ai-seo-lang-preview-card.ai-seo-theme--linen {
    --ai-seo-modal-bg: #fbf8f2;
    --ai-seo-modal-text: #2a2520;
    --ai-seo-modal-muted: #7a6f62;
    --ai-seo-modal-strong: #1f1b16;
    --ai-seo-modal-overlay: rgba(34, 24, 16, 0.45);
    --ai-seo-modal-shadow: 0 20px 60px rgba(34, 24, 16, 0.2);
    --ai-seo-modal-close: #7a6f62;
    --ai-seo-modal-close-hover: #2a2520;
    --ai-seo-modal-close-bg: #f1e9df;
    --ai-seo-modal-accent: #7c6f64;
    --ai-seo-modal-primary-bg: #7c6f64;
    --ai-seo-modal-primary-bg-strong: #665b52;
    --ai-seo-modal-primary-bg-hover: #665b52;
    --ai-seo-modal-primary-bg-hover-strong: #524a43;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(124, 111, 100, 0.25);
    --ai-seo-modal-primary-shadow-strong: rgba(124, 111, 100, 0.35);
    --ai-seo-modal-secondary-bg: #f1e9df;
    --ai-seo-modal-secondary-text: #7a6f62;
    --ai-seo-modal-secondary-bg-hover: #e7ddd0;
    --ai-seo-modal-secondary-text-hover: #4b3f33;
}

.ai-seo-lang-modal.ai-seo-theme--smoke,
.ai-seo-lang-preview-card.ai-seo-theme--smoke {
    --ai-seo-modal-bg: #f2f4f5;
    --ai-seo-modal-text: #1f2937;
    --ai-seo-modal-muted: #6b7280;
    --ai-seo-modal-strong: #111827;
    --ai-seo-modal-overlay: rgba(17, 24, 39, 0.5);
    --ai-seo-modal-shadow: 0 20px 60px rgba(17, 24, 39, 0.18);
    --ai-seo-modal-close: #6b7280;
    --ai-seo-modal-close-hover: #111827;
    --ai-seo-modal-close-bg: #e5e7eb;
    --ai-seo-modal-accent: #4b5563;
    --ai-seo-modal-primary-bg: #4b5563;
    --ai-seo-modal-primary-bg-strong: #374151;
    --ai-seo-modal-primary-bg-hover: #374151;
    --ai-seo-modal-primary-bg-hover-strong: #1f2937;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(75, 85, 99, 0.25);
    --ai-seo-modal-primary-shadow-strong: rgba(75, 85, 99, 0.35);
    --ai-seo-modal-secondary-bg: #e5e7eb;
    --ai-seo-modal-secondary-text: #6b7280;
    --ai-seo-modal-secondary-bg-hover: #d7dbe0;
    --ai-seo-modal-secondary-text-hover: #374151;
}

.ai-seo-lang-modal.ai-seo-theme--ivory,
.ai-seo-lang-preview-card.ai-seo-theme--ivory {
    --ai-seo-modal-bg: #fffdf7;
    --ai-seo-modal-text: #2a2520;
    --ai-seo-modal-muted: #736b62;
    --ai-seo-modal-strong: #1f1b16;
    --ai-seo-modal-overlay: rgba(34, 24, 16, 0.45);
    --ai-seo-modal-shadow: 0 20px 60px rgba(34, 24, 16, 0.2);
    --ai-seo-modal-close: #736b62;
    --ai-seo-modal-close-hover: #2a2520;
    --ai-seo-modal-close-bg: #f4eee4;
    --ai-seo-modal-accent: #9a8c7a;
    --ai-seo-modal-primary-bg: #9a8c7a;
    --ai-seo-modal-primary-bg-strong: #7e7162;
    --ai-seo-modal-primary-bg-hover: #7e7162;
    --ai-seo-modal-primary-bg-hover-strong: #675b4f;
    --ai-seo-modal-primary-text: #ffffff;
    --ai-seo-modal-primary-shadow: rgba(154, 140, 122, 0.25);
    --ai-seo-modal-primary-shadow-strong: rgba(154, 140, 122, 0.35);
    --ai-seo-modal-secondary-bg: #f4eee4;
    --ai-seo-modal-secondary-text: #736b62;
    --ai-seo-modal-secondary-bg-hover: #e9e0d2;
    --ai-seo-modal-secondary-text-hover: #4b3f33;
}

.ai-seo-lang-modal.ai-seo-theme--graphite,
.ai-seo-lang-preview-card.ai-seo-theme--graphite {
    --ai-seo-modal-bg: #111827;
    --ai-seo-modal-text: #f9fafb;
    --ai-seo-modal-muted: #9ca3af;
    --ai-seo-modal-strong: #f9fafb;
    --ai-seo-modal-overlay: rgba(0, 0, 0, 0.75);
    --ai-seo-modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --ai-seo-modal-close: #9ca3af;
    --ai-seo-modal-close-hover: #f9fafb;
    --ai-seo-modal-close-bg: #1f2937;
    --ai-seo-modal-accent: #94a3b8;
    --ai-seo-modal-primary-bg: #94a3b8;
    --ai-seo-modal-primary-bg-strong: #64748b;
    --ai-seo-modal-primary-bg-hover: #64748b;
    --ai-seo-modal-primary-bg-hover-strong: #475569;
    --ai-seo-modal-primary-text: #0f172a;
    --ai-seo-modal-primary-shadow: rgba(148, 163, 184, 0.2);
    --ai-seo-modal-primary-shadow-strong: rgba(148, 163, 184, 0.3);
    --ai-seo-modal-secondary-bg: #1f2937;
    --ai-seo-modal-secondary-text: #9ca3af;
    --ai-seo-modal-secondary-bg-hover: #374151;
    --ai-seo-modal-secondary-text-hover: #e5e7eb;
}

/* ─────────────────────────────────────────────────────────────────────────
   RIPLAY · el tema de la propuesta B
   El mismo modal, vestido como la web: el gris de Notion (#191919 de sala,
   #202020 de panel), la tinta a #EDEDED y el naranja #FFA344 como único
   color de estado. Es el tema por defecto de esta instalación.
   Además de las variables, más abajo hay unas pocas reglas propias —letra,
   filete, radio y grano— para que el aviso no parezca de otra web.
   ───────────────────────────────────────────────────────────────────────── */
.ai-seo-lang-modal.ai-seo-theme--riplay,
.ai-seo-lang-preview-card.ai-seo-theme--riplay {
    --ai-seo-modal-bg: #202020;
    --ai-seo-modal-text: #ededed;
    --ai-seo-modal-muted: #b4b4b4;
    --ai-seo-modal-strong: #ffffff;
    --ai-seo-modal-overlay: rgba(15, 15, 15, 0.74);
    --ai-seo-modal-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 34px 70px -24px rgba(0, 0, 0, 0.96);
    --ai-seo-modal-close: #949494;
    --ai-seo-modal-close-hover: #ededed;
    --ai-seo-modal-close-bg: #2c2c2c;
    --ai-seo-modal-accent: #ffa344;
    --ai-seo-modal-primary-bg: #ffa344;
    --ai-seo-modal-primary-bg-strong: #ffa344;
    --ai-seo-modal-primary-bg-hover: #ffc183;
    --ai-seo-modal-primary-bg-hover-strong: #ffc183;
    --ai-seo-modal-primary-text: #1c1002;
    --ai-seo-modal-primary-shadow: rgba(255, 163, 68, 0.22);
    --ai-seo-modal-primary-shadow-strong: rgba(255, 163, 68, 0.34);
    --ai-seo-modal-secondary-bg: #252525;
    --ai-seo-modal-secondary-text: #b4b4b4;
    --ai-seo-modal-secondary-bg-hover: #2c2c2c;
    --ai-seo-modal-secondary-text-hover: #ededed;
}

.ai-seo-lang-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ai-seo-modal-overlay);
    backdrop-filter: blur(4px);
    animation: ai-seo-fade-in 0.3s ease;
}

/* Modal content */
.ai-seo-lang-modal-content {
    position: relative;
    background: var(--ai-seo-modal-bg);
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--ai-seo-modal-shadow);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.ai-seo-lang-modal-content.ai-seo-modal-show {
    transform: scale(1);
    opacity: 1;
}

/* Close button */
.ai-seo-lang-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ai-seo-modal-close);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.ai-seo-lang-modal-close:hover {
    background: var(--ai-seo-modal-close-bg);
    color: var(--ai-seo-modal-close-hover);
}

/* Icon */
.ai-seo-lang-modal-icon {
    margin-bottom: 20px;
    color: var(--ai-seo-modal-accent);
}

.ai-seo-lang-modal-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

/* Title */
.ai-seo-lang-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ai-seo-modal-text);
    margin: 0 0 12px;
    line-height: 1.3;
}

/* Message */
.ai-seo-lang-modal-message {
    font-size: 16px;
    color: var(--ai-seo-modal-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.ai-seo-lang-modal-message strong {
    color: var(--ai-seo-modal-strong);
    font-weight: 600;
}

/* Buttons */
.ai-seo-lang-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-seo-lang-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Primary button */
.ai-seo-lang-btn-primary {
    background: linear-gradient(135deg, var(--ai-seo-modal-primary-bg) 0%, var(--ai-seo-modal-primary-bg-strong) 100%);
    color: var(--ai-seo-modal-primary-text);
    box-shadow: 0 4px 14px var(--ai-seo-modal-primary-shadow);
}

.ai-seo-lang-btn-primary:hover {
    background: linear-gradient(135deg, var(--ai-seo-modal-primary-bg-hover) 0%, var(--ai-seo-modal-primary-bg-hover-strong) 100%);
    box-shadow: 0 6px 20px var(--ai-seo-modal-primary-shadow-strong);
    transform: translateY(-2px);
}

.ai-seo-lang-btn-primary:active {
    transform: translateY(0);
}

.ai-seo-lang-btn-primary svg {
    width: 20px;
    height: 20px;
}

/* Secondary button */
.ai-seo-lang-btn-secondary {
    background: var(--ai-seo-modal-secondary-bg);
    color: var(--ai-seo-modal-secondary-text);
}

.ai-seo-lang-btn-secondary:hover {
    background: var(--ai-seo-modal-secondary-bg-hover);
    color: var(--ai-seo-modal-secondary-text-hover);
}

/* Animations */
@keyframes ai-seo-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .ai-seo-lang-modal-content {
        padding: 32px 24px 24px;
        width: 95%;
    }

    .ai-seo-lang-modal-title {
        font-size: 20px;
    }

    .ai-seo-lang-modal-message {
        font-size: 15px;
    }

    .ai-seo-lang-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Admin preview */
.ai-seo-lang-preview-wrap {
    margin-top: 12px;
    max-width: 520px;
}

.ai-seo-lang-preview-card {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    pointer-events: none;
}

.ai-seo-lang-preview-card .ai-seo-lang-modal-overlay {
    display: none;
}

.ai-seo-lang-preview-card .ai-seo-lang-modal-content {
    position: relative;
    max-width: none;
    width: 100%;
    transform: none;
    opacity: 1;
}

.ai-seo-lang-preview-card .ai-seo-lang-modal-actions {
    flex-direction: row;
}

.ai-seo-lang-preview-card .ai-seo-lang-btn {
    flex: 1 1 0;
}

@media (max-width: 640px) {
    .ai-seo-lang-preview-card .ai-seo-lang-modal-actions {
        flex-direction: column;
    }
}

body.settings_page_ai-seo-translator .ai-seo-lang-modal {
    position: static !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    z-index: auto !important;
}

body.settings_page_ai-seo-translator .ai-seo-lang-modal-overlay {
    display: none !important;
}

body.settings_page_ai-seo-translator .ai-seo-lang-modal-content {
    transform: none !important;
    opacity: 1 !important;
}

@media (prefers-color-scheme: dark) {
    .ai-seo-lang-modal.ai-seo-theme--slate,
    .ai-seo-lang-preview-card.ai-seo-theme--slate {
        --ai-seo-modal-bg: #1f2937;
        --ai-seo-modal-text: #f9fafb;
        --ai-seo-modal-muted: #d1d5db;
        --ai-seo-modal-strong: #f3f4f6;
        --ai-seo-modal-overlay: rgba(0, 0, 0, 0.7);
        --ai-seo-modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
        --ai-seo-modal-close: #9ca3af;
        --ai-seo-modal-close-hover: #f3f4f6;
        --ai-seo-modal-close-bg: #374151;
        --ai-seo-modal-secondary-bg: #374151;
        --ai-seo-modal-secondary-text: #d1d5db;
        --ai-seo-modal-secondary-bg-hover: #4b5563;
        --ai-seo-modal-secondary-text-hover: #f3f4f6;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   RIPLAY · lo que no son colores
   El tema de la propuesta B no es solo una paleta: es un panel de cristal
   con filete, la letra de la web (Schibsted Grotesk para el titular, Public
   Sans para leer), el radio corto de los botones y el mismo grano de
   película que la sala. Sin estas reglas el aviso se vería gris, pero
   seguiria pareciendo de otra web.
   ───────────────────────────────────────────────────────────────────────── */
.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-modal-content,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-modal-content {
    border: 1px solid #2f2f2f;
    border-radius: 14px;
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow: hidden;
}

/* El grano: el mismo del tema, al 4,5 %, para que el panel no quede plano. */
.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-modal-content::before,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
    background-size: 140px 140px;
}

.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-modal-content > *,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-modal-content > * {
    position: relative;
    z-index: 1;
}

.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-modal-title,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-modal-title {
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.022em;
}

.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-btn,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-btn {
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 7px;
    padding: 12px 20px;
}

/* Un solo color de estado y sin degradado: el acento es plano, como en la
   web. La elevacion la da el propio panel, no un halo bajo el boton. */
.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-btn-primary,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-btn-primary {
    background: var(--ai-seo-modal-primary-bg);
    box-shadow: none;
}

.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-btn-primary:hover,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-btn-primary:hover {
    background: var(--ai-seo-modal-primary-bg-hover);
    box-shadow: none;
    transform: none;
}

.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-btn-secondary,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-btn-secondary {
    box-shadow: inset 0 0 0 1px #3a3a3a;
}

.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-btn-secondary:hover,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-btn-secondary:hover {
    box-shadow: inset 0 0 0 1px #4a4a4a;
}

.ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-modal-close,
.ai-seo-lang-preview-card.ai-seo-theme--riplay .ai-seo-lang-modal-close {
    border-radius: 6px;
}

.ai-seo-lang-modal.ai-seo-theme--riplay :focus-visible,
.ai-seo-lang-preview-card.ai-seo-theme--riplay :focus-visible {
    outline: 2px solid var(--ai-seo-modal-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .ai-seo-lang-modal.ai-seo-theme--riplay .ai-seo-lang-btn {
        transition: none;
    }
}
