/* ============================================================================
   ACE THEME  —  custom_css package for "Plantilla - Web" CMS
   Target: site_settings → appearance.custom_css   (design_template = "moderno")
   ----------------------------------------------------------------------------
   This single self-contained sheet is injected (raw) right AFTER the CMS's
   inline :root{} block (head.php L146), so it LAYERS on top of assets/css/main.css
   ("moderno" template) and re-skins it to look like ACE-WEB (assets/css/ace-modern.css).
   It does NOT require ace-modern.css to be loaded: the ACE section components
   (.service-card / .channel-card / .form-card / flip cards / stats-glass) are
   fully re-declared here in section 9.

   STRUCTURE
     1. Palette re-map      – overrides the destination --color-* (+ *-rgb) vars
                              to the ACE palette, and defines the --ace-* token set.
     2. Fonts               – body → Segoe UI stack (reproduces head.php:61),
                              headings → Poppins / deep-navy.
     3. Base typography     – ACE heading scale + link colour.
     4. Header (moderno)    – #515964 pinned bar + backdrop blur, white identity
                              row, ACE "double-hover" nav, logo heights 84/72/120.
     5. Gov strip           – recoloured to the ACE slate (#515964).
     6. Footer (moderno)    – #515964 footer, gov logo 54px + brightness(0)invert(1),
                              GAP-10: hides the non-existent legal links.
     7. Page hero           – slim ACE gradient hero.
     8. Cards               – .card top gradient bar + 3D hover + content sections.
     9. Ported components   – service / channel / form / flip / stats-glass + dark
                              section wrappers + .stat-number modifiers.
    10. Responsive          – 768 / 480 breakpoints.

   NOTE ON SEMANTIC COMPENSATION
     The destination binds  --color-accent → links + gov-strip   and
     --color-secondary → underlines.  ACE uses --color-primary(#515964) for the
     header, white for nav underlines, and navy(--secondary) only for headings.
     We therefore (a) set the ACE hex into every --color-* var so the destination's
     accent/secondary usages already resolve to ACE colours, and (b) hard-override
     the specific header/nav selectors below so underlines go WHITE on the dark bar.

   Most overrides are scoped under [data-design="moderno"] so they reliably win
   over main.css (higher specificity) regardless of stylesheet source order.
   ========================================================================== */


/* ============================================================================
   1. PALETTE RE-MAP  +  ACE DESIGN TOKENS
   ========================================================================== */
:root {
    /* --- Destination brand vars re-pointed to the ACE palette --------------
       (also override the *-rgb triplets head.php derives from settings, so
        every rgba(var(--color-*-rgb)) usage in main.css resolves to ACE) ---- */
    --color-primary:        #515964;   /* ACE slate — header / footer / hero */
    --color-primary-rgb:    81, 89, 100;
    --color-secondary:      #1b263b;   /* deep navy — headings, markers      */
    --color-secondary-rgb:  27, 38, 59;
    --color-accent:         #415a77;   /* mid blue — links, gradient end     */
    --color-accent-rgb:     65, 90, 119;
    --color-text:           #2c3e50;   /* ACE body text                      */
    --color-muted:          #6c757d;   /* ACE muted text                     */
    --color-surface:        #eef0f2;   /* light chrome (chips / dropdown)    */
    --color-bg:             #ffffff;

    /* --- Fonts ------------------------------------------------------------- */
    /* Body = Segoe UI (reproduces components/head.php:61 inline override).    */
    --font-body:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    /* Headings = Poppins (see integration note: Poppins must be loaded).      */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* --- ACE design token set (mirrors ace-modern.css :root) --------------- */
    --ace-primary:   #515964;
    --ace-secondary: #1b263b;
    --ace-accent:    #415a77;
    --ace-light:     #e0e1dd;
    --ace-dark:      #0d1b2a;
    --ace-hair:      #778da9;   /* used by --gradient-hero + chatbot           */

    --ace-grad-primary: linear-gradient(135deg, #515964 0%, #415a77 100%);
    --ace-grad-light:   linear-gradient(135deg, #f8f9fa 0%, #e0e1dd 100%);
    --ace-grad-dark:    linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%);
    --ace-grad-hero:    linear-gradient(135deg, rgba(119,141,169,0.95) 0%, rgba(27,38,59,0.95) 100%);

    /* Radii — 8 / 16 / 24 / 32.  (md=12 fixes ace-modern's undefined var.)   */
    --ace-radius-sm: 8px;
    --ace-radius-md: 12px;
    --ace-radius:    16px;
    --ace-radius-lg: 24px;
    --ace-radius-xl: 32px;

    /* Shadows — 5 levels */
    --ace-shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
    --ace-shadow-md:  0 4px 16px rgba(0,0,0,0.08);
    --ace-shadow-lg:  0 12px 32px rgba(0,0,0,0.12);
    --ace-shadow-xl:  0 20px 40px rgba(0,0,0,0.15);
    --ace-shadow-2xl: 0 32px 64px rgba(0,0,0,0.2);

    /* Transition */
    --ace-transition:      all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --ace-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --ace-space-xs:  0.5rem;
    --ace-space-sm:  1rem;
    --ace-space-md:  2rem;
    --ace-space-lg:  4rem;
    --ace-space-xl:  6rem;
    --ace-space-2xl: 8rem;

    --ace-container: 1200px;
}

/* Mobile spacing collapse (ace-modern.css L885-890) */
@media (max-width: 768px) {
    :root {
        --ace-space-lg:  2rem;
        --ace-space-xl:  3rem;
        --ace-space-2xl: 4rem;
    }
}


/* ============================================================================
   2. FONTS  —  body = Segoe UI (verbatim head.php:61), headings = Poppins
   ========================================================================== */
body {
    /* Reproduce el override inline de components/head.php: body -> stack Segoe UI. */
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
}


/* ============================================================================
   3. BASE TYPOGRAPHY  (ACE heading scale + navy colour)
   ========================================================================== */
[data-design="moderno"] h1,
[data-design="moderno"] h2,
[data-design="moderno"] h3,
[data-design="moderno"] h4,
[data-design="moderno"] h5,
[data-design="moderno"] h6 {
    font-family: var(--font-heading);
    color: var(--ace-secondary);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
[data-design="moderno"] h1 { font-size: clamp(2.5rem, 5vw, 4rem);   font-weight: 700; letter-spacing: -0.02em; }
[data-design="moderno"] h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
[data-design="moderno"] h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
[data-design="moderno"] h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 500; }

/* ACE container width */
[data-design="moderno"] .container { max-width: var(--ace-container); }


/* ============================================================================
   4. HEADER  (design_template = moderno)
   DOM:  .gov-strip--slim  +  header.main-header.header-moderno
            └ .hm-identity (brand + .hm-meta chips + .hm-social)
            └ .hm-navbar-wrap > nav.navbar.hm-navbar > ul.nav-list
   Goal: one cohesive ACE slate (#515964) pinned bar, blur, white nav, double hover.
   ========================================================================== */

/* --- The pinned bar ------------------------------------------------------- */
[data-design="moderno"] .header-moderno.main-header {
    position: sticky;              /* keeps ACE "always at top" feel; see note */
    top: 0;
    background: var(--ace-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
    z-index: 1000;
}
[data-design="moderno"] .header-moderno.main-header.scrolled {
    background: var(--ace-primary);
    box-shadow: var(--ace-shadow-md);
    border-bottom-color: rgba(255,255,255,0.2);
}

/* --- Identity row: white brand text over the slate bar -------------------- */
[data-design="moderno"] .hm-identity { padding: 0.5rem 0; }
[data-design="moderno"] .header-moderno .navbar-brand,
[data-design="moderno"] .header-moderno .navbar-brand-text { color: #fff; }
[data-design="moderno"] .header-moderno .navbar-brand-acronym { color: rgba(255,255,255,0.6); }

/* Logo heights — más grande para que el emblema+texto se lea (100 desktop) */
[data-design="moderno"] .header-moderno .navbar-logo,
[data-design="moderno"] .navbar-brand--moderno .navbar-logo { height: 100px !important; width: auto; }

/* Menú CENTRADO y con más presencia (antes pegado a la izquierda con hueco a la derecha) */
[data-design="moderno"] .hm-navbar .nav-list { justify-content: center; gap: 0.5rem; }
[data-design="moderno"] .hm-navbar .nav-link { font-size: 1.02rem; }
[data-design="moderno"] .hm-identity { padding: 0.35rem 0; align-items: center; }

/* --- Contact chips on the dark bar ---------------------------------------- */
[data-design="moderno"] .header-moderno .hm-contact-chip { color: rgba(255,255,255,0.9); }
[data-design="moderno"] .header-moderno .hm-chip-icon { background: rgba(255,255,255,0.10); color: #fff; }
[data-design="moderno"] .header-moderno .hm-chip-body small  { color: rgba(255,255,255,0.6); }
[data-design="moderno"] .header-moderno .hm-chip-body strong { color: #fff; }
[data-design="moderno"] .header-moderno a.hm-contact-chip:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.15);
}
[data-design="moderno"] .header-moderno a.hm-contact-chip:hover .hm-chip-icon { background: rgba(255,255,255,0.20); color: #fff; transform: scale(1.05); }
[data-design="moderno"] .header-moderno a.hm-contact-chip:hover .hm-chip-body strong { color: #fff; }

/* --- Social pills on the dark bar ----------------------------------------- */
[data-design="moderno"] .header-moderno .hm-social { border-left-color: rgba(255,255,255,0.15); }
[data-design="moderno"] .header-moderno .hm-social-btn { color: rgba(255,255,255,0.75); }
[data-design="moderno"] .header-moderno .hm-social-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- Navigation bar: same slate, faint white edge ------------------------- */
[data-design="moderno"] .hm-navbar-wrap {
    background: var(--ace-primary);
}
[data-design="moderno"] .hm-navbar-wrap::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.25), transparent 70%);
    height: 1px;
}

/* --- ACE "double hover" nav links (::before pill + ::after white underline) */
[data-design="moderno"] .hm-navbar .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--ace-radius-sm);
    transition: all 0.3s ease;
    position: relative;
}
[data-design="moderno"] .hm-navbar .nav-link::before {          /* background pill */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: var(--ace-radius-sm);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
[data-design="moderno"] .hm-navbar .nav-link::after {           /* white underline */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    border-radius: 1px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}
[data-design="moderno"] .hm-navbar .nav-link:hover {
    color: #fff;
    background: transparent;                                     /* pill replaces main.css tint */
    transform: translateY(-1px);
}
[data-design="moderno"] .hm-navbar .nav-link:hover::before,
[data-design="moderno"] .hm-navbar .nav-link.active::before { opacity: 1; transform: scale(1); }
[data-design="moderno"] .hm-navbar .nav-link:hover::after,
[data-design="moderno"] .hm-navbar .nav-link.active::after  { transform: translateX(-50%) scaleX(1); }
[data-design="moderno"] .hm-navbar .nav-link.active {
    color: #fff;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* keep the text/underline above the pill */
[data-design="moderno"] .hm-navbar .nav-link > * { position: relative; z-index: 1; }


/* ============================================================================
   5. GOV STRIP  —  recolour from --color-accent to the ACE slate so the whole
   top region reads as one #515964 unit (semantic compensation for gov-strip).
   ========================================================================== */
[data-design="moderno"] .gov-strip,
[data-design="moderno"] .gov-strip--slim { background: #3d434c; }   /* slate oscuro de la MISMA familia que el header (#515964): la franja de gobierno se distingue por ser más oscura, sin chocar de tono con el header */
[data-design="moderno"] .gov-strip--slim { border-bottom: 1px solid rgba(255,255,255,0.10); padding: 4px 0; }
[data-design="moderno"] .gov-strip-label {
    font-size: .72rem; letter-spacing: .04em; font-weight: 500;
    text-transform: uppercase; color: rgba(255,255,255,.72);
}
[data-design="moderno"] .gov-strip-logo { height: 18px; width: auto; opacity: .9; }
[data-design="moderno"] .gov-strip-link { font-size: .72rem; color: rgba(255,255,255,.65); }
[data-design="moderno"] .gov-strip-link:hover { color: #fff; }


/* ============================================================================
   6. FOOTER  (design_template = moderno)  →  #515964
   <footer class="site-footer footer-moderno"> (both classes same element)
   ========================================================================== */
[data-design="moderno"] .footer-moderno,
[data-design="moderno"] .site-footer {
    background: linear-gradient(160deg, #1b263b 0%, #0d1b2a 100%);  /* navy ACE rico (no el slate plano) */
    border-top: 3px solid #778da9;                                   /* acento superior */
    color: rgba(255,255,255,.82);
}
[data-design="moderno"] .site-footer::before { display: none; }  /* kill animated top bar */

/* Logos MÁS GRANDES (el logo ACE ya es blanco → resalta sobre el navy) */
[data-design="moderno"] .site-footer .footer-logo { height: 66px; width: auto; }
[data-design="moderno"] .footer-gov-logo {
    height: 74px; width: auto;
    filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 0.5rem;
}
[data-design="moderno"] .footer-gov-logo:hover { opacity: 1; }
[data-design="moderno"] .footer-extra-logo { filter: brightness(0) invert(1); opacity: 0.85; }
[data-design="moderno"] .footer-extra-logo:hover { opacity: 1; }

/* Encabezados de columna: blancos + subrayado VISIBLE (antes azul apagado) */
[data-design="moderno"] .site-footer .footer-heading {
    color: #fff; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600;
    position: relative; padding-bottom: .55rem; margin-bottom: 1.1rem; letter-spacing: .2px;
}
[data-design="moderno"] .site-footer .footer-heading::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px;
    border-radius: 2px; background: linear-gradient(90deg, #778da9 0%, #a9bcd6 100%);
}
/* Texto y enlaces legibles sobre navy */
[data-design="moderno"] .site-footer .footer-desc { color: rgba(255,255,255,.72); }
[data-design="moderno"] .site-footer .footer-contact,
[data-design="moderno"] .site-footer .footer-contact a { color: rgba(255,255,255,.82); }
[data-design="moderno"] .site-footer .footer-contact i { color: #8ea3bf; }
[data-design="moderno"] .site-footer .footer-links a { color: rgba(255,255,255,.72); transition: color .2s ease, padding-left .2s ease; }
[data-design="moderno"] .site-footer .footer-links a:hover { color: #fff; padding-left: 5px; }
/* Redes del footer: círculos visibles con hover ACE */
[data-design="moderno"] .site-footer .footer-social-link {
    border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.85); transition: all .25s ease;
}
[data-design="moderno"] .site-footer .footer-social-link:hover {
    background: #778da9; border-color: #778da9; color: #fff; transform: translateY(-3px);
}
[data-design="moderno"] .site-footer .footer-bottom { border-top-color: rgba(255,255,255,.1); }
[data-design="moderno"] .site-footer .footer-bottom p { color: rgba(255,255,255,.55); }

/* CTA banner + copyright tuned to slate */
[data-design="moderno"] .footer-cta {
    background: var(--ace-grad-primary);
}
/* Texto del banner en BLANCO (antes heredaba navy → se perdía sobre el slate) */
[data-design="moderno"] .footer-cta .footer-cta-body h3 { color: #fff; }
[data-design="moderno"] .footer-cta .footer-cta-body p  { color: rgba(255,255,255,.9); }
[data-design="moderno"] .footer-cta .footer-cta-icon    { color: #fff; }
[data-design="moderno"] .footer-cta .cta-btn { color: #fff; border-color: rgba(255,255,255,.6); }
[data-design="moderno"] .footer-cta .cta-btn--whatsapp { background: #25d366; border-color: #25d366; color: #fff; }

/* Header: los iconos de redes sociales NO van en el header (son contenido de footer,
   donde ya se muestran). Ocultarlos aquí. */
[data-design="moderno"] .header-moderno .hm-social,
[data-design="moderno"] .gov-strip .hm-social { display: none !important; }

/* GAP-10 — the moderno footer hard-codes two legal links that do NOT exist in
   ACE (page/politica-web, page/carta-derechos). Hide them (and their <li>).
   [href$=] tolerates the BASE_PATH prefix produced by base_path().            */
[data-design="moderno"] .footer-links a[href$="page/politica-web"],
[data-design="moderno"] .footer-links a[href$="page/carta-derechos"] { display: none !important; }
[data-design="moderno"] .footer-links li:has(> a[href$="page/politica-web"]),
[data-design="moderno"] .footer-links li:has(> a[href$="page/carta-derechos"]) { display: none !important; }


/* ============================================================================
   7. PAGE HERO  —  slim ACE gradient (ace-modern.css L1002-1035)
   ========================================================================== */
[data-design="moderno"] .page-hero {
    background: var(--ace-grad-primary);
    padding: 1rem 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
[data-design="moderno"] .page-hero::before,
[data-design="moderno"] .page-hero::after { content: none; }     /* drop main.css blur orbs */
[data-design="moderno"] .page-hero .container { text-align: center; }
[data-design="moderno"] .page-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    text-shadow: none;
}
[data-design="moderno"] .page-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.92);
    max-width: 640px;
    margin: 0 auto;
    text-shadow: none;
}
[data-design="moderno"] .page-hero .breadcrumb a { color: rgba(255,255,255,0.9); }


/* ============================================================================
   8. CARDS  —  .card top gradient bar + 3D hover  (ace-modern L1745-1783)
   ========================================================================== */
[data-design="moderno"] .card {
    background: #fff;
    border-radius: var(--ace-radius-lg);
    box-shadow: var(--ace-shadow-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: var(--ace-transition);
}
[data-design="moderno"] .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ace-primary), var(--ace-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--ace-transition);
    z-index: 2;
}
[data-design="moderno"] .card:hover::before { transform: scaleX(1); }
[data-design="moderno"] .card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(2deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(var(--color-primary-rgb), 0.3);
}
/* Card icon (64px gradient tile → flips on hover) */
[data-design="moderno"] .card-icon {
    width: 64px;
    height: 64px;
    background: var(--ace-grad-primary);
    border-radius: var(--ace-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ace-space-md);
    font-size: 1.5rem;
    color: #fff;
    transition: var(--ace-transition);
    overflow: hidden;
}
[data-design="moderno"] .card:hover .card-icon {
    transform: scale(1.2) rotateY(180deg);
    background: linear-gradient(135deg, var(--ace-primary), var(--ace-secondary));
}

/* Content sections with a 2px gradient top accent (ace-modern L1041-1061) */
.policies-section,
.about-section,
.contact-section,
.forms-section {
    padding: var(--ace-space-lg) 0;
    background: #fff;
    position: relative;
}
.policies-section::before,
.about-section::before,
.contact-section::before,
.forms-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--ace-grad-primary);
}
/* Section title with centred underline (ace-modern L1063-1082) */
.section-title-large { font-size: 2.25rem; font-weight: 700; text-align: center; color: var(--color-text); position: relative; margin-bottom: var(--ace-space-md); }
.section-title-large::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 3px;
    background: var(--ace-grad-primary);
    border-radius: 2px;
}


/* ============================================================================
   9. PORTED ACE SECTION COMPONENTS
   Self-contained so migrated ACE sections render without ace-modern.css.
   The .form-card / flip / stats-glass components are GLASS on DARK — they need
   a dark section background (helpers provided at the end of this block).
   ========================================================================== */

/* --- 9a. Service cards (ace-modern L2009-2196) ---------------------------- */
.service-card {
    background: #fff;
    border-radius: var(--ace-radius-lg);
    padding: var(--ace-space-md);
    box-shadow: var(--ace-shadow-md);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: var(--ace-transition);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--ace-grad-primary);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ace-shadow-xl);
    border-color: var(--ace-primary);
}
.service-card.priority-high::before   { background: linear-gradient(135deg, #ef4444, #dc2626); }
.service-card.priority-medium::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
.service-card.priority-low::before    { background: linear-gradient(135deg, #10b981, #059669); }

.service-icon-wrapper { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--ace-space-sm); }
.service-icon { font-size: 2.5rem; color: var(--ace-primary); margin-bottom: var(--ace-space-xs); }
.service-title { font-size: 1.25rem; font-weight: 600; color: var(--ace-secondary); margin: 0; }
.service-description { color: var(--color-text); line-height: 1.6; margin-bottom: var(--ace-space-md); }
.service-features { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-item { font-size: 0.9rem; color: var(--color-muted); display: flex; align-items: center; gap: 0.5rem; }

.service-badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.service-badge.urgent    { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.service-badge.popular   { background: #fef3c7; color: #d97706; border: 1px solid #fed7aa; }
.service-badge.new       { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.service-badge.essential { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

.service-action { display: flex; flex-direction: column; gap: var(--ace-space-sm); }
.btn-service {
    display: flex; align-items: center; justify-content: center; gap: var(--ace-space-sm);
    padding: var(--ace-space-sm) var(--ace-space-md);
    border-radius: var(--ace-radius);
    text-decoration: none; font-weight: 600;
    border: 2px solid transparent;
    transition: var(--ace-transition);
}
.btn-service.primary   { background: var(--ace-grad-primary); color: #fff; box-shadow: var(--ace-shadow-sm); }
.btn-service.primary:hover { transform: translateY(-2px); box-shadow: var(--ace-shadow-md); }
.btn-service.secondary { background: #fff; color: var(--ace-primary); border-color: var(--ace-primary); }
.btn-service.secondary:hover { background: var(--ace-primary); color: #fff; }
.btn-service.tertiary  { background: var(--ace-light); color: var(--color-text); }
.btn-service.tertiary:hover { background: var(--ace-primary); color: #fff; }
.btn-service .arrow { transition: var(--ace-transition); }
.btn-service:hover .arrow { transform: translateX(4px); }
.service-time { font-size: 0.8rem; color: var(--color-muted); text-align: center; }

/* Quick services (ace-modern L2203-2250) */
.quick-service { text-align: center; padding: var(--ace-space-lg); background: var(--ace-grad-light); border-radius: var(--ace-radius); transition: var(--ace-transition); }
.quick-service:hover { transform: translateY(-4px); box-shadow: var(--ace-shadow-md); }
.quick-icon { font-size: 2.5rem; margin-bottom: var(--ace-space-sm); }
.quick-service h4 { font-size: 1.2rem; font-weight: 600; color: var(--ace-secondary); margin-bottom: var(--ace-space-sm); }
.quick-service p { color: var(--color-muted); font-size: 0.9rem; margin-bottom: var(--ace-space-md); }
.quick-link { color: var(--ace-primary); text-decoration: none; font-weight: 600; transition: var(--ace-transition); }
.quick-link:hover { color: var(--ace-secondary); }

/* --- 9b. Channel cards (contacto.php L270-338) ---------------------------- */
.channel-card {
    padding: 1.5rem;
    border-radius: var(--ace-radius-md);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.channel-card.emergency { background: #fef2f2; border-color: #fecaca; }
.channel-card.general   { background: #f0f9ff; border-color: #bae6fd; }
.channel-card.technical { background: #f7fee7; border-color: #bbf7d0; }
.channel-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.channel-icon { font-size: 2rem; margin-bottom: 1rem; }
.channel-content h3 { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 1rem; }
.channel-card .detail-item { display: flex; justify-content: space-between; margin-bottom: 0.5rem; padding: 0.25rem 0; }
.channel-card .detail-item .label { font-weight: 600; color: #374151; }
.channel-card .detail-item .value { color: var(--ace-primary); font-family: monospace; font-size: 0.9rem; }
.channel-card .availability,
.channel-card .response-time { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #065f46; }

/* --- 9c. Form cards — glass on dark (forms-section.php L327-496) ----------- */
.form-card { height: 320px; cursor: pointer; transition: transform 0.3s ease; }
.form-card:hover { transform: translateY(-4px); }
.form-card .card-content {
    position: relative;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
}
.form-icon-3d { width: 70px; height: 70px; margin: 0 auto 20px; position: relative; }
.form-icon-3d .icon-svg { width: 100%; height: 100%; color: var(--ace-primary); filter: drop-shadow(0 0 20px rgba(81,89,100,0.5)); animation: aceFloat 3s ease-in-out infinite; }
.form-title { font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.form-description { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.5; margin: 0 0 16px; }
.form-status { margin-top: auto; }
.status-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.available { background: linear-gradient(45deg, #4CAF50, #45a049); color: #fff; }
.status-badge.info      { background: linear-gradient(45deg, #415a77, #1b263b); color: #fff; }
.form-actions { display: flex; gap: 10px; justify-content: center; margin-top: auto; }
.btn-form {
    display: inline-flex; align-items: center;
    padding: 12px 20px; border-radius: 25px;
    text-decoration: none; font-weight: 600; font-size: 0.85rem;
    position: relative; overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-form::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; }
.btn-form:hover::before { left: 100%; }
.btn-form.primary   { background: linear-gradient(45deg, #515964, #415a77); color: #fff; box-shadow: 0 4px 15px rgba(81,89,100,0.3); }
.btn-form.primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(81,89,100,0.5); }
.btn-form.secondary { background: linear-gradient(45deg, #415a77, #1b263b); color: #fff; box-shadow: 0 4px 15px rgba(65,90,119,0.3); }
.btn-form.secondary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(65,90,119,0.5); }

/* --- 9d. Flip cards (policies-section.php L401-464) ------------------------ */
.policy-card-3d { perspective: 1000px; height: 300px; cursor: pointer; }
.policy-card-3d .card-inner {
    position: relative; width: 100%; height: 100%; text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.policy-card-3d:hover .card-inner { transform: rotateY(180deg); }
.policy-card-3d .card-front,
.policy-card-3d .card-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: 20px; padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.policy-card-3d .card-front {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.policy-card-3d .card-back {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    transform: rotateY(180deg);
    display: flex; flex-direction: column; justify-content: space-between;
}
.policy-card-3d .policy-glow {
    position: absolute; inset: -2px;
    background: linear-gradient(45deg, #515964, #415a77, #1b263b, #515964);
    border-radius: 20px; opacity: 0; z-index: -1;
    animation: aceRotate 4s linear infinite;
    transition: opacity 0.3s ease;
}
.policy-card-3d:hover .policy-glow { opacity: 0.7; }

/* --- 9e. Stats glass (stats-3d-section.php L156-228) ----------------------- */
.stat-card-3d {
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 2rem; text-align: center;
    transform-style: preserve-3d; cursor: pointer;
    transition: all 0.3s ease;
}
.stat-card-3d:hover { transform: translateY(-10px) rotateX(5deg); background: rgba(15,23,42,0.7); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.stat-card-3d .stat-icon { font-size: 2.2rem; margin-bottom: 1rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.stat-card-3d .stat-label { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 0.5rem; }
.stat-card-3d .stat-detail { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.real-time-indicators { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.indicator {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem; border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff; font-size: 0.9rem; font-weight: 500;
}
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; animation: acePulse 2s infinite; }
.pulse-dot.green  { background: #10b981; }
.pulse-dot.blue   { background: #3b82f6; }
.pulse-dot.orange { background: #f59e0b; }

/* --- 9f. Scalable stat numbers (ace-modern L790-822) ---------------------- */
.stat-number {
    --stat-f-size: 3rem; --stat-f-weight: 700; --stat-color: #fff; --stat-mb: var(--ace-space-xs);
    font-size: var(--stat-f-size); font-weight: var(--stat-f-weight); color: var(--stat-color);
    margin-bottom: var(--stat-mb); line-height: 1.05; display: inline-block;
}
.stat-number--sm     { --stat-f-size: 1.1rem; --stat-f-weight: 600; }
.stat-number--md     { --stat-f-size: 1.6rem; }
.stat-number--lg     { --stat-f-size: 2.2rem; --stat-f-weight: 700; }
.stat-number--xl     { --stat-f-size: 3rem;   --stat-f-weight: 800; }
.stat-number--hero   { --stat-f-size: clamp(2.2rem, 5vw, 3.2rem); --stat-f-weight: 900; }
.stat-number--panel  { --stat-f-size: 1.8rem; --stat-f-weight: 700; --stat-color: #515964; }
.stat-number--compact{ --stat-f-size: 1.2rem; --stat-f-weight: 400; --stat-color: var(--ace-secondary); }
.stat-number--accent { --stat-color: #00ff88; --stat-f-weight: 900; font-family: 'Courier New', monospace; }
[data-tone="inverse"] > .stat-number, .stat-number[data-tone="inverse"] { --stat-color: var(--ace-secondary); }
[data-tone="success"] > .stat-number, .stat-number[data-tone="success"] { --stat-color: #10b981; }
[data-tone="danger"]  > .stat-number, .stat-number[data-tone="danger"]  { --stat-color: #ef4444; }
/* El bloque «Estadísticas» del gestor va sobre fondo claro. El blanco de arriba
   es para el banner 3D (fondo oscuro); sin esto las cifras del bloque salían
   blancas sobre blanco en el sitio. Mismo color que le da main.css. */
.section-stats .stat-number { --stat-color: var(--color-secondary); }

/* --- 9g. Dark section wrappers (so the glass/flip cards have context) ------ */
.forms-section-3d    { position: relative; padding: 100px 0; color: #fff; overflow: hidden; background: linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #2d3748 100%); }
.stats-hero-3d       { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); }
.policies-section-3d { position: relative; padding: 100px 0; color: #fff; overflow: hidden; background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%); }
.forms-grid     { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1400px; margin: 0 auto; }
.policies-3d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.stats-grid-3d  { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }


/* ============================================================================
   Keyframes (ACE-prefixed to avoid clashing with main.css)
   ========================================================================== */
@keyframes aceFloat  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes aceRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes acePulse  { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.75; } }


/* ============================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    /* Logo — tablet */
    [data-design="moderno"] .header-moderno .navbar-logo,
    [data-design="moderno"] .navbar-brand--moderno .navbar-logo { height: 72px !important; }

    /* Slim hero */
    [data-design="moderno"] .page-hero { padding: 1.25rem 0; min-height: 90px; }
    [data-design="moderno"] .page-hero h1 { font-size: 1.4rem; }
    [data-design="moderno"] .page-hero p  { font-size: 0.95rem; }

    .section-title-large { font-size: 2rem; }
    .forms-grid       { grid-template-columns: 1fr; gap: 25px; }
    .form-card        { height: 280px; }
    .policies-3d-grid { grid-template-columns: 1fr; }
    .stats-grid-3d    { grid-template-columns: repeat(2, 1fr); }
    .real-time-indicators { gap: 1rem; }
}

@media (max-width: 480px) {
    /* Logo — phone (ACE intentionally enlarges the mark) */
    [data-design="moderno"] .header-moderno .navbar-logo,
    [data-design="moderno"] .navbar-brand--moderno .navbar-logo { height: 120px !important; }

    .form-card     { height: 260px; }
    .stats-grid-3d { grid-template-columns: 1fr; }
}

/* ═══════════════ Pulido ACE (footer + chatbot) — migración ═══════════════ */
/* Footer moderno: ocultar columna "Legal" (política-web / carta-derechos no existen en ACE) */
.footer-moderno .footer-grid-4 { grid-template-columns: repeat(3, 1fr); }
.footer-moderno .footer-grid-4 > .footer-col:nth-child(4) { display: none; }
@media (max-width: 900px) { .footer-moderno .footer-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-moderno .footer-grid-4 { grid-template-columns: 1fr; } }
/* Chatbot: pill/header con degradado ACE (#515964 → #778da9) como el origen */
.chatbot-toggle { background: linear-gradient(135deg, #515964 0%, #778da9 100%) !important; }
.chatbot-header { background: linear-gradient(135deg, #515964 0%, #415a77 100%) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACE — estilos de secciones de CONTENIDO mapeados a las clases del CMS destino
   (el tema base apunta a clases del ORIGEN .page-hero/.policy-card que el CMS
   no emite; aquí se re-apunta el look ACE a .section-hero/.card-item/etc.)
   ═══════════════════════════════════════════════════════════════════════════ */

/* HERO slim con degradado slate + texto blanco (equivale a .page-hero del origen) */
[data-design="moderno"] .page-section.section-hero {
    background: linear-gradient(135deg, #515964 0%, #415a77 100%);
    padding: 2.25rem 0; min-height: 0;
}
[data-design="moderno"] .section-hero .hero-content { text-align: center; }
[data-design="moderno"] .section-hero .hero-heading {
    color: #fff; font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; margin: 0 0 .35rem; text-shadow: none;
}
[data-design="moderno"] .section-hero .hero-subheading {
    color: rgba(255,255,255,.9); font-weight: 400;
    font-size: clamp(.95rem, 1.6vw, 1.08rem); max-width: 760px; margin: 0 auto;
}

/* SECTION TITLE: navy + subrayado degradado (como "Nuestro Propósito" del origen) */
[data-design="moderno"] .page-section .section-title {
    /* Token con respaldo: sin tema visual activo queda exactamente el mismo
       color de antes; con un tema oscuro adopta su tinta, que es lo que
       faltaba (el título se perdía sobre el fondo, contraste 1.3:1). */
    color: var(--te-_ink, #1b263b); font-family: 'Poppins', system-ui, sans-serif; font-weight: 700;
    text-align: center; position: relative; padding-bottom: .6rem; margin-bottom: 2rem;
}
[data-design="moderno"] .page-section .section-title::after {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #515964, #415a77);
}
[data-design="moderno"] .page-section .section-subtitle { text-align: center; color: var(--te-_ink-dim, #55606b); }

/* CARDS: blancas, borde sutil, barra superior degradada en hover, hover 3D (.policy-card) */
[data-design="moderno"] .section-cards .card-item {
    background: #fff; border: 1px solid rgba(81,89,100,.12); border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05); padding: 1.75rem; text-align: center;
    position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
[data-design="moderno"] .section-cards .card-item::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #515964, #415a77); transform: scaleX(0);
    transform-origin: left; transition: transform .4s ease;
}
[data-design="moderno"] .section-cards .card-item:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.10); }
[data-design="moderno"] .section-cards .card-item:hover::before { transform: scaleX(1); }
[data-design="moderno"] .section-cards .card-title { color: #1b263b; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; }
[data-design="moderno"] .section-cards .card-desc { color: #55606b; line-height: 1.6; }
[data-design="moderno"] .section-cards .card-icon i { color: #515964; }

/* TWO COLUMNS (Misión / Visión) en tarjetas */
[data-design="moderno"] .section-two_columns .column-left,
[data-design="moderno"] .section-two_columns .column-right {
    background: #fff; border: 1px solid rgba(81,89,100,.12); border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05); padding: 1.75rem;
}
[data-design="moderno"] .section-two_columns .rich-text h3 { color: var(--te-_ink, #515964); font-family: 'Poppins', system-ui, sans-serif; margin-top: 0; }
[data-design="moderno"] .section-two_columns .rich-text ul { list-style: none; padding: 0; margin-top: 1rem; }
[data-design="moderno"] .section-two_columns .rich-text li { padding: .35rem 0 .35rem 1.5rem; position: relative; color: var(--te-_ink-dim, #55606b); }
[data-design="moderno"] .section-two_columns .rich-text li::before { content: "▸"; position: absolute; left: 0; color: #415a77; }

/* CTA — banda navy oscura con texto BLANCO (contraste correcto; antes navy sobre oscuro = ilegible) */
[data-design="moderno"] .page-section.section-cta {
    background: linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%);
}
[data-design="moderno"] .section-cta .section-title,
[data-design="moderno"] .section-cta .cta-heading { color: #fff; font-family: 'Poppins', system-ui, sans-serif; }
[data-design="moderno"] .section-cta .section-title::after { background: linear-gradient(90deg, #778da9, #ffffff); }
[data-design="moderno"] .section-cta .cta-desc { color: rgba(255,255,255,.85); }
[data-design="moderno"] .section-cta .btn-cta {
    background: #ffffff; color: #1b263b !important; border: none;
    padding: .8rem 1.9rem; border-radius: 8px; font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .25s ease, box-shadow .25s ease;
}
[data-design="moderno"] .section-cta .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.32); }

/* HEADER: bajar el "muy bold" — el logo ya trae el nombre; ocultar el brand-text duplicado */
[data-design="moderno"] .header-moderno .navbar-brand-text,
[data-design="moderno"] .header-moderno .navbar-brand-acronym { display: none; }

/* ═══════════════ Ajuste header (chips) + espaciado + tipografía — feedback ═══════════════ */

/* Chips de contacto: icono + texto SIEMPRE visibles. Antes se colapsaban a solo-icono
   en desktop (max-width:0, expandir-al-hover), lo que se veía como 3 botones vacíos
   "misteriosos". Ahora el valor (tel/correo/horario) es legible de entrada. */
[data-design="moderno"] .header-moderno .hm-contact-chip .hm-chip-body {
    max-width: none; opacity: 1; overflow: visible; white-space: nowrap; margin-left: .55rem;
}
[data-design="moderno"] .header-moderno .hm-contact-chip { transition: background .25s ease; }

/* Espaciado: secciones genéricas con más aire (el CMS pone py-4 = 2rem, algo justo) */
[data-design="moderno"] .page-section.section-cards,
[data-design="moderno"] .page-section.section-two_columns,
[data-design="moderno"] .page-section.section-cta {
    padding-top: 3.5rem; padding-bottom: 3.5rem;
}
[data-design="moderno"] .section-cards .cards-grid { gap: 1.5rem; }

/* Tipografía: tamaños más mesurados (menos "bold/grande") */
[data-design="moderno"] .page-section .section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
[data-design="moderno"] .section-cards .card-title { font-size: 1.3rem; }
[data-design="moderno"] .section-two_columns .rich-text h3 { font-size: 1.35rem; }

/* ═══════════════ Móvil (≤768px) — ajustes header + gov-strip ═══════════════ */
@media (max-width: 768px) {
    /* Chips en fila compacta: sublabel oculto */
    [data-design="moderno"] .header-moderno .hm-chip-body small { display: none; }

    /* GOV-STRIP: en móvil main.css oculta el texto de identidad y deja una
       "barra de nada" (solo un logo diminuto + gob.sv sin contexto). Aquí la
       hacemos ÚTIL: mostramos "Sitio Oficial del Gobierno de El Salvador" y
       agrandamos el logo. */
    [data-design="moderno"] .gov-strip--slim .gov-strip-inner { height: auto; min-height: 34px; }
    [data-design="moderno"] .gov-strip--slim .gov-strip-left {
        min-width: 0; flex: 1 1 auto; gap: .5rem;
    }
    [data-design="moderno"] .gov-strip--slim .gov-strip-label {
        display: inline-block;
        text-transform: none;            /* más legible y angosto que mayúsculas */
        font-size: .62rem; letter-spacing: .01em; font-weight: 500;
        opacity: .82; line-height: 1.15;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 100%;
    }
    [data-design="moderno"] .gov-strip--slim .gov-strip-logo { height: 22px; opacity: 1; }
    [data-design="moderno"] .gov-strip--slim .gov-strip-right { flex: 0 0 auto; }
    [data-design="moderno"] .gov-strip--slim .gov-strip-link { font-size: .68rem; }
}

/* ═══════════ Botones flotantes: posición estable ═══════════
   El chat va SIEMPRE en la esquina inferior derecha; "volver arriba" se apila
   encima. Antes el chat iba desplazado (right:5.5rem) junto al otro botón. */
[data-design="moderno"] .chatbot-widget { right: 2rem; bottom: 2rem; }
[data-design="moderno"] .back-to-top    { right: 2rem; bottom: 6.5rem; }

/* ═══════════ Formato del editor (Quill) visible en el sitio público ═══════════
   El editor guarda clases ql-*; sin estas reglas el centrado/tamaño no se veria. */
.rich-text .ql-align-center,  .page-section .ql-align-center  { text-align: center; }
.rich-text .ql-align-right,   .page-section .ql-align-right   { text-align: right; }
.rich-text .ql-align-justify, .page-section .ql-align-justify { text-align: justify; }
.rich-text .ql-size-small,    .page-section .ql-size-small    { font-size: .85em; }
.rich-text .ql-size-large,    .page-section .ql-size-large    { font-size: 1.4em; }
.rich-text .ql-size-huge,     .page-section .ql-size-huge     { font-size: 2em; }
.page-section .ql-indent-1 { padding-left: 3em; }
.page-section .ql-indent-2 { padding-left: 6em; }
.page-section .ql-indent-3 { padding-left: 9em; }
.page-section .ql-indent-4 { padding-left: 12em; }
.page-section blockquote {
    border-left: 4px solid #778da9; margin: 1rem 0; padding: .5rem 0 .5rem 1rem; color: #55606b;
}
