/* (Mismo CSS que en la versión anterior - lo mantengo igual) */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #ffffff;
            color: #333333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header profesional - fondo azul claro para destacar logo */
        header {
            background: linear-gradient(160deg, #dce9f7 0%, #b8d4f0 40%, #c8dff5 100%);
            color: #1E3A5F;
            padding: 50px 0 40px;
            text-align: center;
            border-bottom: 3px solid #1E3A5F;
            position: relative;
            overflow: hidden;
        }
        header::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 4px;
            background: linear-gradient(90deg, transparent 0%, #1E3A5F 30%, #2563a8 50%, #1E3A5F 70%, transparent 100%);
        }
        header::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle at 15% 60%, rgba(255,255,255,0.35) 0%, transparent 50%),
                              radial-gradient(circle at 85% 25%, rgba(30,58,95,0.06) 0%, transparent 40%);
            pointer-events: none;
        }
        header .container {
            position: relative;
            z-index: 1;
        }
        
        .logo-text {
            font-size: 4.2em;
            font-weight: 800;
            margin-bottom: 10px;
            letter-spacing: 2px;
            text-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 2px 6px rgba(30,58,95,0.15);
        }
        
        .notario-part {
            color: #1E3A5F; /* Azul sólido que destaca sobre el fondo claro */
        }
        
        .hours-part {
            color: #DC2626; /* Rojo sólido */
        }
        
        .subtitle {
            font-size: 1.35em;
            color: #1E3A5F;
            margin-bottom: 0;
            font-weight: 500;
            letter-spacing: 4px;
            text-transform: uppercase;
            opacity: 0.85;
        }

        .subtitle-divider {
            width: 90px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #1E3A5F, transparent);
            margin: 12px auto 14px;
            opacity: 0.5;
        }
        
        .country {
            font-size: 1.0em;
            color: #2563a8;
            margin-bottom: 22px;
            letter-spacing: 1px;
            font-weight: 500;
        }
        
        .address {
            background: rgba(30,58,95,0.08);
            color: #1E3A5F;
            padding: 16px 20px;
            border-radius: 10px;
            margin: 20px auto;
            max-width: 600px;
            font-size: 1.05em;
            line-height: 1.7;
            border: 1px solid rgba(30,58,95,0.2);
        }
        
        .address i {
            color: #DC2626;
            margin-right: 10px;
        }

        /* Botones en header sobre fondo claro */
        .btn-call {
            background-color: #1E3A5F;
            color: white;
        }
        .btn-wa {
            background-color: #25D366;
            color: white;
        }
        .btn-calendar {
            background-color: #DC2626;
            color: white;
        }
        
        /* Botones contacto */
        .contact-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 15px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: transform 0.3s;
            cursor: pointer;
            border: none;
            font-size: 1em;
        }
        
        .btn:hover {
            transform: translateY(-3px);
        }
        
        .btn-wa {
            background-color: #25D366;
            color: white;
        }
        
        .btn-call {
            background-color: #1E3A5F;
            color: white;
        }

        .btn-calendar {
            background-color: #FFD700;
            color: #1E3A5F;
        }
        
        /* Secciones */
        section {
            padding: 60px 0;
            background-color: #ffffff;
        }
        
        section:nth-child(even) {
            background-color: #f0f5fb;
        }
        
        h2 {
            color: #0d1f3c;
            font-size: 2.2em;
            margin-bottom: 40px;
            text-align: center;
        }
        
        /* Grid servicios */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .service-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: all 0.3s;
            border: 1px solid #d0e4f7;
            border-left: 4px solid #1E3A5F;
        }
        
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(30, 58, 95, 0.15);
            border-color: #a8c4e8;
            border-left-color: #1E3A5F;
        }
        
        .service-card h3 {
            color: #1E3A5F;
            margin-bottom: 20px;
            font-size: 1.3em;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .service-card ul {
            list-style: none;
        }
        
        .service-card li {
            margin-bottom: 12px;
            padding-left: 25px;
            position: relative;
            color: #555;
        }
        
        .service-card li:before {
            content: "✓";
            color: #25D366;
            position: absolute;
            left: 0;
            font-weight: bold;
        }
        
        /* FORMULARIO DE CITAS */
        .appointment-section {
            background: linear-gradient(135deg, #1E3A5F 0%, #2B4C7C 100%);
            color: white;
            padding: 60px 0;
        }
        
        .appointment-form {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            border: 1px solid rgba(168, 196, 232, 0.5);
        }
        
        .form-title {
            color: #1E3A5F;
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.8em;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 500;
        }
        
        .required::after {
            content: " *";
            color: #DC2626;
            font-weight: bold;
        }
        
        .optional-badge {
            font-size: 0.8em;
            color: #666;
            font-weight: normal;
            margin-left: 10px;
            background: #f0f0f0;
            padding: 2px 8px;
            border-radius: 12px;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1.5px solid #a8c4e8;
            border-radius: 10px;
            font-size: 1em;
            transition: border-color 0.3s, box-shadow 0.3s;
            background-color: #fafcff;
            box-shadow: inset 0 1px 3px rgba(30, 58, 95, 0.05);
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #2563a8;
            box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.12), inset 0 1px 3px rgba(30, 58, 95, 0.05);
        }

        .form-group input:hover:not(:focus),
        .form-group select:hover:not(:focus),
        .form-group textarea:hover:not(:focus) {
            border-color: #6ea8d8;
        }
        
        .checkbox-group {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 10px;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #333;
        }
        
        .checkbox-item input[type="checkbox"] {
            width: auto;
            margin-right: 5px;
        }
        
        .time-slots {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }
        
        .time-slot {
            background: #f5f9ff;
            padding: 10px;
            text-align: center;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1.5px solid #c0d9f0;
            color: #333;
            font-size: 0.9em;
        }
        
        .time-slot:hover {
            background: #FFD700;
            color: #1E3A5F;
            border-color: #d4a800;
        }
        
        .time-slot.selected {
            background: #1E3A5F;
            color: white;
            border-color: #FFD700;
        }
        
        .time-slot.disabled {
            background: #f0f0f0;
            color: #999;
            cursor: not-allowed;
            text-decoration: line-through;
            position: relative;
            border-color: #dde8f0;
        }
        
        .time-slot.disabled:hover {
            background: #f0f0f0;
            color: #999;
            border-color: #dde8f0;
        }
        
        .time-slot.disabled::after {
            content: "🔴";
            margin-left: 5px;
            font-size: 0.8em;
        }
        
        .btn-submit {
            background: #25D366;
            color: white;
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 10px;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
            margin-top: 20px;
        }
        
        .btn-submit:hover {
            background: #128C7E;
        }
        
        .urgent-tag {
            background: #DC2626;
            color: white;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.8em;
            margin-left: 10px;
        }
        
        .availability-note {
            text-align: center;
            margin: 20px 0;
            padding: 15px;
            background: #e8f5e9;
            border-radius: 10px;
            color: #1E3A5F;
        }
        
        /* Ventajas */
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .feature {
            text-align: center;
            padding: 30px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(30,58,95,0.07), 0 10px 25px rgba(30,58,95,0.1), 0 1px 2px rgba(30,58,95,0.06);
            border: 1px solid #d0e4f7;
            transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
        }

        .feature:hover {
            border-color: #a8c4e8;
            box-shadow: 0 8px 12px rgba(30,58,95,0.1), 0 20px 40px rgba(30,58,95,0.15), 0 2px 4px rgba(30,58,95,0.08);
            transform: translateY(-4px);
        }
        
        .feature h3 {
            color: #1E3A5F;
            margin-bottom: 10px;
        }
        
        /* Mapa */
        .map-container {
            margin-top: 30px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border: 1.5px solid #c0d9f0;
        }
        
        /* Footer */
        footer {
            background: linear-gradient(160deg, #0d1f3c 0%, #1a3256 100%);
            color: white;
            padding: 40px 0;
            text-align: center;
            border-top: 4px solid #1E3A5F;
        }
        
        .contact-info {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            margin: 20px 0 30px;
        }
        
        /* Mensaje de éxito */
        .success-message {
            background: #4CAF50;
            color: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 20px;
            display: none;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .logo-text { font-size: 2.5em; }
            .subtitle { font-size: 1.2em; }
            .contact-buttons { flex-direction: column; }
            .btn { width: 100%; justify-content: center; }
            .contact-info { flex-direction: column; gap: 10px; }
            .appointment-form { padding: 20px; }
        }

        /* ===== NAVEGACIÓN MULTIPÁGINA ===== */
        nav {
            background: #0d1f3c;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        .nav-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .nav-brand {
            color: white;
            font-weight: 800;
            font-size: 1.2em;
            padding: 14px 0;
            text-decoration: none;
            cursor: pointer;
        }
        .nav-brand span { color: #DC2626; }
        .nav-links {
            display: flex;
            gap: 0;
            list-style: none;
        }
        .nav-links a {
            display: block;
            padding: 16px 18px;
            color: rgba(255,255,255,0.78);
            text-decoration: none;
            font-size: 0.9em;
            font-weight: 500;
            letter-spacing: 0.5px;
            transition: color 0.2s, background 0.2s;
            cursor: pointer;
        }
        .nav-links a:hover,
        .nav-links a.active {
            color: #ffffff;
            background: rgba(255,255,255,0.08);
        }
        .nav-links a.active {
            border-bottom: 3px solid #DC2626;
        }
        .nav-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5em;
            cursor: pointer;
            padding: 10px;
        }

        /* ===== PÁGINAS ===== */
        .page { display: none; }
        .page.active { display: block; }

        /* ===== BLOG ===== */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        .blog-card {
            background: white;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid #d0e4f7;
            box-shadow: 0 4px 15px rgba(30,58,95,0.08);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(30,58,95,0.14);
        }
        .blog-card-img {
            height: 160px;
            background: linear-gradient(135deg, #1E3A5F 0%, #2563a8 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3.5em;
        }
        .blog-card-body {
            padding: 22px;
        }
        .blog-tag {
            display: inline-block;
            background: #dce9f7;
            color: #1E3A5F;
            font-size: 0.75em;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 20px;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .blog-card-body h3 {
            color: #0d1f3c;
            font-size: 1.1em;
            margin-bottom: 10px;
            line-height: 1.4;
        }
        .blog-card-body p {
            color: #666;
            font-size: 0.92em;
            line-height: 1.6;
            margin-bottom: 14px;
        }
        .blog-date {
            font-size: 0.8em;
            color: #999;
        }
        .btn-read {
            display: inline-block;
            padding: 8px 18px;
            background: #1E3A5F;
            color: white;
            border-radius: 6px;
            text-decoration: none;
            font-size: 0.85em;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }
        .btn-read:hover { background: #2563a8; }

        /* ===== ARTÍCULO BLOG ===== */
        .article-container {
            max-width: 780px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        .article-container h1 {
            color: #0d1f3c;
            font-size: 2em;
            margin-bottom: 10px;
            line-height: 1.3;
        }
        .article-meta {
            color: #888;
            font-size: 0.88em;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e0eaf5;
        }
        .article-container h2 {
            font-size: 1.4em;
            text-align: left;
            margin: 30px 0 12px;
        }
        .article-container p { color: #444; line-height: 1.8; margin-bottom: 16px; }
        .article-container ul { margin: 12px 0 18px 24px; }
        .article-container li { color: #444; line-height: 1.8; margin-bottom: 6px; }
        .btn-back {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 30px;
            color: #1E3A5F;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            font-size: 0.92em;
        }
        .btn-back:hover { color: #DC2626; }

        /* ===== QUIÉNES SOMOS ===== */
        .about-hero {
            background: linear-gradient(160deg, #0d1f3c 0%, #1E3A5F 100%);
            color: white;
            padding: 70px 0;
            text-align: center;
        }
        .about-hero h1 { color: white; font-size: 2.4em; margin-bottom: 15px; }
        .about-hero p { color: rgba(255,255,255,0.82); font-size: 1.15em; max-width: 600px; margin: 0 auto; }
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        .team-card {
            background: white;
            border-radius: 14px;
            padding: 30px 24px;
            text-align: center;
            border: 1px solid #d0e4f7;
            box-shadow: 0 4px 18px rgba(30,58,95,0.09);
        }
        .team-avatar {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #1E3A5F, #2563a8);
            border-radius: 50%;
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2em;
        }
        .team-card h3 { color: #0d1f3c; margin-bottom: 5px; }
        .team-card .role { color: #2563a8; font-size: 0.88em; font-weight: 600; margin-bottom: 12px; }
        .team-card p { color: #666; font-size: 0.9em; line-height: 1.6; }
        .valores-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 25px;
        }
        .valor-item {
            background: #f0f5fb;
            border-radius: 10px;
            padding: 22px;
            border-left: 4px solid #1E3A5F;
        }
        .valor-item h4 { color: #0d1f3c; margin-bottom: 6px; }
        .valor-item p { color: #555; font-size: 0.9em; }

        /* ===== PÁGINA CONTACTO ===== */
        .contact-page-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: start;
            margin-top: 30px;
        }
        @media (max-width: 768px) {
            .contact-page-grid { grid-template-columns: 1fr; }
            .nav-links { display: none; flex-direction: column; width: 100%; background: #0d1f3c; }
            .nav-links.open { display: flex; }
            .nav-toggle { display: block; }
            .nav-inner { flex-wrap: wrap; }
        }
        .contact-info-card {
            background: white;
            border-radius: 14px;
            padding: 30px;
            border: 1px solid #d0e4f7;
            box-shadow: 0 4px 18px rgba(30,58,95,0.09);
        }
        .contact-info-card h3 { color: #0d1f3c; margin-bottom: 20px; font-size: 1.3em; }
        .contact-row {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 14px 0;
            border-bottom: 1px solid #eef3fa;
        }
        .contact-row:last-child { border-bottom: none; }
        .contact-icon {
            width: 42px;
            height: 42px;
            background: #dce9f7;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2em;
            flex-shrink: 0;
        }
        .contact-row-text strong { display: block; color: #0d1f3c; font-size: 0.9em; }
        .contact-row-text span, .contact-row-text a { color: #444; font-size: 0.95em; text-decoration: none; }
        .contact-row-text a:hover { color: #DC2626; }

        /* WhatsApp FAB - ahora ocupa posición izquierda para no chocar con chatbot */
        .chatbot-toggle {
            position: fixed;
            bottom: 22px;
            left: 22px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: #25D366;
            color: white;
            border: none;
            font-size: 1.7em;
            cursor: pointer;
            box-shadow: 0 5px 20px rgba(37,211,102,0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s;
            z-index: 999;
        }
        .chatbot-toggle:hover { transform: scale(1.1); }

        /* ===== ADMIN BLOG PANEL ===== */
        .admin-fab {
            position: fixed;
            bottom: 90px;
            right: 22px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #1E3A5F;
            color: white;
            border: 2px solid rgba(255,255,255,0.2);
            font-size: 1.2em;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(30,58,95,0.4);
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.2s, background 0.2s;
            z-index: 998;
        }
        .admin-fab:hover { background: #DC2626; transform: scale(1.1); }

        /* Modal overlay */
        .modal-overlay {
            display: none;
            position: fixed; inset: 0;
            background: rgba(13,31,60,0.75);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal-overlay.open { display: flex; }

        /* Login modal */
        .admin-login-box {
            background: white;
            border-radius: 18px;
            padding: 40px 36px;
            width: 100%;
            max-width: 380px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            text-align: center;
        }
        .admin-login-box h2 { color: #0d1f3c; margin-bottom: 8px; font-size: 1.5em; }
        .admin-login-box p { color: #777; font-size: 0.9em; margin-bottom: 24px; }
        .admin-login-box input {
            width: 100%; padding: 12px 16px;
            border: 1.5px solid #a8c4e8; border-radius: 10px;
            font-size: 1em; margin-bottom: 16px;
            transition: border-color 0.2s;
        }
        .admin-login-box input:focus { outline: none; border-color: #1E3A5F; }
        .btn-admin-login {
            width: 100%; padding: 13px;
            background: #1E3A5F; color: white;
            border: none; border-radius: 10px;
            font-size: 1em; font-weight: 700;
            cursor: pointer; transition: background 0.2s;
        }
        .btn-admin-login:hover { background: #2563a8; }
        .login-error { color: #DC2626; font-size: 0.88em; margin-top: 10px; display: none; }

        /* Admin Panel */
        .admin-panel {
            background: white;
            border-radius: 18px;
            width: 100%;
            max-width: 900px;
            max-height: 92vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            display: flex;
            flex-direction: column;
        }
        .admin-panel-header {
            background: linear-gradient(135deg, #0d1f3c, #1E3A5F);
            color: white;
            padding: 20px 28px;
            border-radius: 18px 18px 0 0;
            display: flex; align-items: center; justify-content: space-between;
            position: sticky; top: 0; z-index: 10;
        }
        .admin-panel-header h2 { color: white; font-size: 1.2em; margin: 0; }
        .admin-panel-header span { color: #a8c4e8; font-size: 0.85em; }
        .admin-close {
            background: rgba(255,255,255,0.12); border: none; color: white;
            width: 34px; height: 34px; border-radius: 50%;
            font-size: 1.1em; cursor: pointer; transition: background 0.2s;
        }
        .admin-close:hover { background: #DC2626; }

        .admin-tabs {
            display: flex; gap: 0;
            border-bottom: 2px solid #e8f0fa;
            padding: 0 24px;
            background: #f8fbff;
        }
        .admin-tab {
            padding: 14px 20px; font-size: 0.9em; font-weight: 600;
            color: #777; cursor: pointer; border-bottom: 3px solid transparent;
            margin-bottom: -2px; transition: color 0.2s;
        }
        .admin-tab.active { color: #1E3A5F; border-bottom-color: #1E3A5F; }
        .admin-tab-content { padding: 28px; display: none; }
        .admin-tab-content.active { display: block; }

        /* Article list in admin */
        .admin-article-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 16px;
            background: #f8fbff;
            border: 1px solid #d0e4f7;
            border-radius: 10px;
            margin-bottom: 10px;
            gap: 12px;
        }
        .admin-article-item .art-info { flex: 1; min-width: 0; }
        .admin-article-item .art-title { font-weight: 600; color: #0d1f3c; font-size: 0.95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .admin-article-item .art-meta { font-size: 0.78em; color: #888; margin-top: 3px; }
        .admin-article-item .art-badge { font-size: 0.7em; background: #dce9f7; color: #1E3A5F; padding: 2px 8px; border-radius: 10px; font-weight: 600; flex-shrink: 0; }
        .admin-article-item .art-built-in { background: #fef3c7; color: #92400e; }
        .admin-art-btns { display: flex; gap: 6px; flex-shrink: 0; }
        .btn-art-edit {
            padding: 6px 14px; background: #1E3A5F; color: white;
            border: none; border-radius: 6px; font-size: 0.8em;
            cursor: pointer; font-weight: 600; transition: background 0.2s;
        }
        .btn-art-edit:hover { background: #2563a8; }
        .btn-art-del {
            padding: 6px 12px; background: #fef2f2; color: #DC2626;
            border: 1px solid #fecaca; border-radius: 6px; font-size: 0.8em;
            cursor: pointer; font-weight: 600; transition: all 0.2s;
        }
        .btn-art-del:hover { background: #DC2626; color: white; }

        /* Editor form */
        .editor-form label { display: block; font-weight: 600; color: #0d1f3c; margin-bottom: 6px; font-size: 0.9em; }
        .editor-form input, .editor-form select, .editor-form textarea {
            width: 100%; padding: 11px 14px;
            border: 1.5px solid #a8c4e8; border-radius: 9px;
            font-size: 0.95em; margin-bottom: 18px;
            transition: border-color 0.2s, box-shadow 0.2s;
            font-family: inherit;
        }
        .editor-form input:focus, .editor-form select:focus, .editor-form textarea:focus {
            outline: none; border-color: #1E3A5F;
            box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
        }
        .editor-form textarea { min-height: 140px; resize: vertical; }
        .editor-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
        @media(max-width:600px){ .editor-form .form-row { grid-template-columns: 1fr; } }

        /* Rich editor toolbar */
        .editor-toolbar {
            display: flex; flex-wrap: wrap; gap: 4px;
            padding: 8px 10px;
            background: #f0f5fb;
            border: 1.5px solid #a8c4e8;
            border-radius: 9px 9px 0 0;
            border-bottom: none;
        }
        .tb-btn {
            padding: 5px 10px; background: white; border: 1px solid #c0d9f0;
            border-radius: 5px; font-size: 0.82em; cursor: pointer;
            color: #1E3A5F; font-weight: 600; transition: all 0.15s;
        }
        .tb-btn:hover { background: #1E3A5F; color: white; border-color: #1E3A5F; }
        .tb-sep { width: 1px; background: #c0d9f0; margin: 2px 4px; }
        .rich-editor {
            min-height: 200px; padding: 14px 16px;
            border: 1.5px solid #a8c4e8; border-radius: 0 0 9px 9px;
            font-size: 0.95em; line-height: 1.7;
            outline: none; overflow-y: auto;
            background: white; color: #333;
            margin-bottom: 18px;
        }
        .rich-editor:focus { border-color: #1E3A5F; box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
        .rich-editor h2 { color: #0d1f3c; font-size: 1.2em; margin: 14px 0 8px; }
        .rich-editor ul { margin: 8px 0 8px 22px; }
        .rich-editor li { margin-bottom: 4px; }
        .rich-editor p { margin-bottom: 10px; }

        /* Preview */
        .preview-box {
            background: #f8fbff;
            border: 1.5px solid #d0e4f7;
            border-radius: 10px;
            padding: 22px;
            margin-top: 6px;
        }
        .preview-box h2 { text-align: left; margin: 14px 0 8px; font-size: 1.15em; }
        .preview-box p { color: #444; line-height: 1.7; margin-bottom: 10px; }
        .preview-box ul { margin: 8px 0 12px 22px; }
        .preview-box li { color: #444; line-height: 1.7; }

        .btn-save-art {
            padding: 13px 32px; background: #25D366; color: white;
            border: none; border-radius: 10px; font-size: 1em;
            font-weight: 700; cursor: pointer; transition: background 0.2s;
        }
        .btn-save-art:hover { background: #128C7E; }
        .btn-cancel-edit {
            padding: 13px 22px; background: #f0f0f0; color: #555;
            border: none; border-radius: 10px; font-size: 1em;
            cursor: pointer; margin-right: 10px;
        }
        .btn-cancel-edit:hover { background: #e0e0e0; }
        .save-confirm {
            display: none; color: #25D366; font-weight: 600;
            font-size: 0.9em; margin-top: 10px;
        }

        /* Admin article read badge */
        .article-edit-bar {
            background: #fff8f0;
            border: 1px solid #fde68a;
            border-radius: 8px;
            padding: 10px 16px;
            margin-bottom: 16px;
            display: flex; align-items: center; justify-content: space-between; gap: 10px;
            font-size: 0.88em; color: #92400e;
        }
        .article-edit-bar button {
            padding: 6px 16px; background: #1E3A5F; color: white;
            border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.85em;
        }

        /* ===== LANGUAGE SWITCHER ===== */
        .lang-btn {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.25);
            color: rgba(255,255,255,0.65);
            padding: 5px 11px;
            border-radius: 20px;
            font-size: 0.8em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            letter-spacing: 0.5px;
        }
        .lang-btn:hover { background: rgba(255,255,255,0.18); color: white; }
        .lang-btn.active { background: #DC2626; border-color: #DC2626; color: white; }
        /* ===== CHATBOT IA ===== */
        .ai-fab {
            position: fixed;
            bottom: 22px;
            right: 22px;
            width: 62px;
            height: 62px;
            border-radius: 50%;
            background: linear-gradient(135deg, #1E3A5F, #2563a8);
            color: white;
            border: none;
            font-size: 1.6em;
            cursor: pointer;
            box-shadow: 0 5px 22px rgba(30,58,95,0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.25s, box-shadow 0.25s;
            z-index: 1000;
        }
        .ai-fab:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(30,58,95,0.55); }
        .ai-fab .ai-badge {
            position: absolute;
            top: -3px; right: -3px;
            width: 18px; height: 18px;
            background: #DC2626;
            border-radius: 50%;
            font-size: 0.45em;
            display: flex; align-items: center; justify-content: center;
            font-weight: 800; letter-spacing: -0.5px;
            border: 2px solid white;
        }

        /* Chat window */
        .chat-window {
            position: fixed;
            bottom: 96px;
            right: 22px;
            width: 380px;
            max-height: 560px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(30,58,95,0.25), 0 4px 16px rgba(30,58,95,0.12);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 1000;
            transform: scale(0.85) translateY(20px);
            opacity: 0;
            pointer-events: none;
            transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s ease;
            border: 1px solid #d0e4f7;
        }
        .chat-window.open {
            transform: scale(1) translateY(0);
            opacity: 1;
            pointer-events: all;
        }
        @media(max-width: 440px) {
            .chat-window { width: calc(100vw - 24px); right: 12px; bottom: 90px; }
        }

        /* Header del chat */
        .chat-header {
            background: linear-gradient(135deg, #0d1f3c 0%, #1E3A5F 100%);
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .chat-avatar {
            width: 40px; height: 40px;
            background: rgba(255,255,255,0.12);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.3em;
            flex-shrink: 0;
            border: 1.5px solid rgba(255,255,255,0.2);
        }
        .chat-header-info { flex: 1; }
        .chat-header-info strong { display: block; color: white; font-size: 0.95em; }
        .chat-header-info span { color: rgba(255,255,255,0.65); font-size: 0.75em; }
        .chat-online {
            width: 8px; height: 8px;
            background: #25D366;
            border-radius: 50%;
            margin-right: 4px;
            display: inline-block;
            box-shadow: 0 0 0 2px rgba(37,211,102,0.3);
        }
        .chat-close {
            background: rgba(255,255,255,0.1);
            border: none; color: white;
            width: 30px; height: 30px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1em;
            transition: background 0.2s;
            flex-shrink: 0;
        }
        .chat-close:hover { background: #DC2626; }

        /* Mensajes */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px 14px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: #f8fbff;
            min-height: 0;
            max-height: 340px;
        }
        .chat-messages::-webkit-scrollbar { width: 4px; }
        .chat-messages::-webkit-scrollbar-thumb { background: #c0d9f0; border-radius: 4px; }

        .msg {
            display: flex;
            gap: 8px;
            align-items: flex-end;
            animation: msgIn 0.2s ease;
        }
        @keyframes msgIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

        .msg.user { flex-direction: row-reverse; }
        .msg-bubble {
            max-width: 78%;
            padding: 10px 14px;
            border-radius: 16px;
            font-size: 0.875em;
            line-height: 1.55;
            word-break: break-word;
        }
        .msg.bot .msg-bubble {
            background: white;
            color: #1a1a2e;
            border: 1px solid #d0e4f7;
            border-bottom-left-radius: 4px;
            box-shadow: 0 1px 4px rgba(30,58,95,0.07);
        }
        .msg.user .msg-bubble {
            background: linear-gradient(135deg, #1E3A5F, #2563a8);
            color: white;
            border-bottom-right-radius: 4px;
        }
        .msg-icon {
            width: 28px; height: 28px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.9em;
            flex-shrink: 0;
        }
        .msg.bot .msg-icon { background: #dce9f7; }
        .msg.user .msg-icon { background: #c8dff5; }

        /* Typing indicator */
        .typing-dots {
            display: flex;
            gap: 4px;
            padding: 12px 14px;
            background: white;
            border: 1px solid #d0e4f7;
            border-radius: 16px;
            border-bottom-left-radius: 4px;
            width: fit-content;
        }
        .typing-dots span {
            width: 7px; height: 7px;
            background: #a8c4e8;
            border-radius: 50%;
            animation: bounce 1.2s infinite;
        }
        .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
        .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes bounce {
            0%,60%,100% { transform: translateY(0); }
            30% { transform: translateY(-6px); }
        }

        /* Sugerencias rápidas */
        .chat-suggestions {
            padding: 8px 14px 4px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            background: #f8fbff;
            border-top: 1px solid #e8f0fa;
        }
        .suggestion-chip {
            padding: 5px 12px;
            background: white;
            border: 1.5px solid #a8c4e8;
            border-radius: 20px;
            font-size: 0.75em;
            color: #1E3A5F;
            cursor: pointer;
            transition: all 0.18s;
            font-weight: 500;
            white-space: nowrap;
        }
        .suggestion-chip:hover { background: #1E3A5F; color: white; border-color: #1E3A5F; }

        /* Input área */
        .chat-input-area {
            padding: 10px 12px;
            background: white;
            border-top: 1px solid #e8f0fa;
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }
        .chat-input {
            flex: 1;
            border: 1.5px solid #a8c4e8;
            border-radius: 22px;
            padding: 9px 16px;
            font-size: 0.88em;
            outline: none;
            resize: none;
            max-height: 90px;
            line-height: 1.4;
            font-family: inherit;
            transition: border-color 0.2s;
            background: #fafcff;
        }
        .chat-input:focus { border-color: #1E3A5F; }
        .chat-send {
            width: 38px; height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, #1E3A5F, #2563a8);
            color: white;
            border: none;
            cursor: pointer;
            font-size: 1em;
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.15s, background 0.2s;
            flex-shrink: 0;
        }
        .chat-send:hover { transform: scale(1.1); }
        .chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .chat-wa-btn {
            width: 100%;
            padding: 9px;
            background: #25D366;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 0.82em;
            font-weight: 600;
            cursor: pointer;
            margin-top: 4px;
            transition: background 0.2s;
        }
        .chat-wa-btn:hover { background: #128C7E; }