/* ==================== VARIABLES ====================
   Los tokens replican los de la plataforma (app/globals.css en
   codecontract-platform). Mismos valores y mismos nombres semánticos, para que
   una pantalla de producto y la página que la vende no se vean de dos marcas
   distintas. Si allí cambia un color, aquí se cambia el mismo token.

   Lo importante del alineado: en la plataforma el color primario es el ROSA
   (#E91E63) — es --primary, --ring y --sidebar-primary. El rojo (#DC2747) es
   --accent, y aparece sobre todo como primera parada del degradado de marca.
   La web hacía lo contrario: el rojo mandaba en enlaces y textos. Ya no.
   ==================================================================== */
:root {
    /* Paleta oficial de marca — idéntica a la de la plataforma */
    --brand-red: #DC2747;
    --brand-pink: #E91E63;
    /* Bajado desde #F472B6. En el degradado del titular, `.grad` termina en
       este tono; sobre blanco #F472B6 daba 2,66:1 y el mínimo para texto
       grande es 3:1. #F0509E da 3,31:1 y a simple vista es el mismo rosa. */
    --brand-light-pink: #F0509E;
    --brand-green: #10b981;
    --brand-ink: #1a1a1a;
    --brand-border: #e2e8f0;

    /* Tokens semánticos. Son los que hay que usar en componentes nuevos:
       --brand-* nombra un color, --primary nombra un papel. */
    --background: #ffffff;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --primary: #E91E63;
    --primary-foreground: #ffffff;
    --secondary: #f7f7f7;
    --secondary-foreground: #1a1a1a;
    --muted: #f7f7f7;
    --muted-foreground: #6b6b6b;
    --accent: #DC2747;
    --accent-foreground: #ffffff;
    --ring: #E91E63;
    /* El rosa de marca da 4,35:1 sobre blanco: vale para texto grande (mínimo
       3:1) y para fondos, pero se queda corto para texto pequeño, que necesita
       4,5:1. Esta variante oscura (5,87:1) es solo para eso — etiquetas,
       enlaces de pie de tarjeta, texto de 0,7-0,9rem. El color de marca no se
       toca: sigue siendo #E91E63 en botones, iconos y titulares. */
    --primary-text: #C2185B;

    /* El degradado de marca: rojo → rosa → rosa claro. Es el del logo y el de
       la rampa de gráficas de la plataforma (--chart-1..3). No se toca. */
    --brand-gradient: linear-gradient(135deg, var(--brand-red), var(--brand-pink), var(--brand-light-pink));
    /* El mismo degradado, para superficies que llevan texto blanco encima. Las
       tres paradas dan 4,75:1 o más sobre blanco; el claro no llegaba a 3:1 y
       la portada de un ebook o el botón de la newsletter se quedaban ilegibles
       justo en la esquina donde el degradado aclara. */
    --brand-gradient-oscuro: linear-gradient(135deg, #9E1140, #C2185B, var(--brand-red));

    /* Escala de radios de la plataforma (--radius: 0.625rem y sus múltiplos) */
    --radius: 0.625rem;
    --radius-sm: calc(var(--radius) * 0.6);
    --radius-md: calc(var(--radius) * 0.8);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) * 1.4);
    --radius-2xl: calc(var(--radius) * 1.8);
    --radius-3xl: calc(var(--radius) * 2.2);

    /* Alias heredados. Los usan las ~130 páginas antiguas; se mantienen
       apuntando al token semántico para no reescribirlas todas de golpe. */
    --bg: var(--background);
    --bg-2: #f8f9fa;
    --bg-card: var(--card);
    --text: var(--foreground);
    --text-2: #4a5568;
    /* Era #a0aec0, que sobre blanco da 2,26:1 — muy por debajo del 4,5:1 que
       pide WCAG AA para texto normal. Lo usan las metadatos de las tarjetas,
       la miga de pan y los pies, o sea casi todo el texto secundario del sitio.
       #64748b da 4,76:1 y se sigue leyendo como secundario. */
    --text-3: #64748b;
    --border: var(--brand-border);

    --font-inter: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-inter);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== NAVBAR ==================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink), var(--brand-light-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1100px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-2);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
}

.dropdown-toggle .chevron {
    transition: transform 0.2s ease;
}

.dropdown:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f1f1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--text);
}

.dropdown-item strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dropdown-item p {
    line-height: 1.4;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.125rem;
}

.dropdown-item-desc {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: white;
    /* Terminaba en --brand-pink (#E91E63): blanco encima da 4,35:1 y este
       texto necesita 4,5. Con --primary-text (#C2185B) el peor punto sube a
       5,87 y el botón se ve casi igual — el mismo rosa, un punto más
       oscuro. Para volver al brillo, basta esta línea. */
    background: linear-gradient(135deg, var(--brand-red), var(--primary-text));
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(220, 39, 71, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--text);
    background: white;
    text-decoration: none;
    border: 2px solid var(--border);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--brand-pink);
    color: var(--brand-pink);
}

.btn-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--brand-red), var(--primary-text));
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 39, 71, 0.2);
    position: relative;
}

.btn-bubble:hover {
    box-shadow: 0 8px 24px rgba(220, 39, 71, 0.35);
    transform: translateY(-2px);
}

.btn-bubble:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (min-width: 1100px) {
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 1099px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: block;
    padding: 0;
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.mobile-menu.active {
    max-height: 100vh;
    overflow-y: auto;
    padding: 1rem 0;
}

@media (min-width: 1100px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-section {
    margin-bottom: 1rem;
}

.mobile-menu-label {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-3);
}

.mobile-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-2);
    border-radius: 0.5rem;
    transition: background 0.2s ease;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.mobile-menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text);
}

.chevron-mobile {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active .chevron-mobile {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    margin: 0.25rem 0;
}

.mobile-submenu.active {
    max-height: min(70vh, 760px);
    overflow-y: auto;
}

.submenu-item {
    padding-left: 2rem !important;
    font-size: 0.9rem !important;
}

.mobile-menu-item-title {
    font-weight: 500;
    color: var(--text);
}

.mobile-menu-item-desc {
    font-size: 0.75rem;
    color: var(--text-3);
}

.mobile-demo-btn {
    margin: 1rem 0 0;
}

.mobile-submenu-wrapper {
    margin-bottom: 0.25rem;
}

/* Portada de roles: jerarquía por responsabilidad, no una parrilla plana. */
.roles-group { overflow: hidden; }
.roles-group-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}
.roles-group-number {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid rgba(233, 30, 99, 0.22);
    border-radius: 1rem;
    color: var(--primary);
    background: rgba(233, 30, 99, 0.07);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}
.roles-group-head h2 { margin: 0.25rem 0 0.6rem; }
.roles-group-head .lede-xl { margin: 0; max-width: 760px; }
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.role-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 1.5rem;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-radius: 1.1rem;
    box-shadow: 0 14px 38px -28px rgba(17, 24, 39, 0.45);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.role-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand-red), var(--brand-pink));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.role-card:hover {
    transform: translateY(-3px);
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 20px 45px -28px rgba(220, 39, 71, 0.45);
}
.role-card:hover::before { opacity: 1; }
.role-card-label {
    color: var(--text-3);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.065em;
    line-height: 1.4;
    text-transform: uppercase;
}
.role-card h3 {
    margin: 0.7rem 0 0.55rem;
    color: var(--foreground);
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.role-card > p {
    margin: 0 0 1rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
}
.role-card-result {
    display: grid;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--brand-border);
}
.role-card-result b { color: var(--primary); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.role-card-result span { color: var(--text-2); font-size: 0.82rem; line-height: 1.45; }
.role-card-link { margin-top: 1rem; color: var(--primary); font-size: 0.82rem; font-weight: 650; }

@media (max-width: 1000px) {
    .roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .roles-group-head { grid-template-columns: 1fr; gap: 1rem; }
    .roles-grid { grid-template-columns: 1fr; }
    .role-card { min-height: 0; }
}


.mobile-submenu-heading {
    display: block;
    margin: 0.75rem 1rem 0.25rem;
    padding: 0.35rem 1rem;
    color: var(--text-3);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.35;
    text-decoration: none;
    text-transform: uppercase;
}
a.mobile-submenu-heading:hover { color: var(--primary); }

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    top: -20%;
    right: -15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--brand-light-pink), #FB7185);
    bottom: -15%;
    left: -10%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(25px, -15px) scale(1.03);
    }
    66% {
        transform: translate(-15px, 20px) scale(0.97);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 39, 71, 0.08);
    border: 1px solid rgba(220, 39, 71, 0.2);
    border-radius: 999px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink), var(--brand-light-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-2);
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-2);
}

.hero-feature svg {
    color: #10b981;
}

/* Product Cards */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 0;
}

.product-card {
    padding: 3rem 2.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(220, 39, 71, 0.3);
    box-shadow: 0 12px 32px rgba(220, 39, 71, 0.15);
    transform: translateY(-4px);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
}

.product-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text);
}

.product-card p {
    color: var(--text-2);
    font-size: 1.125rem;
    line-height: 2;
    letter-spacing: 0.015em;
}

/* ==================== DEMO SECTION ==================== */
.demo-section {
    padding: 6rem 0;
    background: var(--bg-2);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-2);
    margin-top: 0;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .demo-content {
        grid-template-columns: 1fr 1fr;
    }
}

.demo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.demo-subtitle {
    color: var(--text-2);
    margin-bottom: 2rem;
}

.demo-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-2);
}

.demo-benefit svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.demo-note {
    padding: 1rem;
    background: rgba(220, 39, 71, 0.05);
    border-left: 3px solid var(--brand-pink);
    border-radius: 0.5rem;
    color: var(--text-2);
}

/* Form */
.demo-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-pink);
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-3);
}

.demo-contact {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.demo-contact p {
    margin-bottom: 1rem;
    color: var(--text-2);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.contact-links a {
    color: var(--brand-pink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: var(--primary);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-brand .logo-text {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-tagline {
    color: var(--text-3);
    margin-top: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: var(--text-3);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--brand-light-pink);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-3);
    font-size: 0.875rem;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works-section {
    padding: 6rem 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bg-2);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(220, 39, 71, 0.08);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.step-card p {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.7;
}

.workflow-note {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(220, 39, 71, 0.05), rgba(233, 30, 99, 0.05));
    border-radius: 1rem;
    border: 2px solid rgba(220, 39, 71, 0.1);
}

.workflow-note strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.workflow-note p {
    color: var(--text-2);
    font-size: 1.125rem;
}

/* ==================== PRICING SECTION ==================== */
.pricing-section {
    padding: 6rem 0;
    background: var(--bg-2);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--brand-pink);
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.02), white);
}

.pricing-card.featured:hover {
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.2);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.pricing-subtitle {
    color: var(--text-2);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pricing-details {
    margin-bottom: 2rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-highlight {
    background: rgba(220, 39, 71, 0.03);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.pricing-highlight div {
    padding: 0.5rem 0;
    color: var(--text);
    font-weight: 500;
}

.pricing-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .problem-scenarios-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .key-differentiators-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .problem-scenarios-grid {
        grid-template-columns: 1fr !important;
    }

    .key-differentiators-grid {
        grid-template-columns: 1fr !important;
    }

    /* Fix text overflow on mobile */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ==================== HERO STATS ==================== */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 100%;
    margin: 3rem auto 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.hero-stat span {
    font-size: 0.875rem;
    color: var(--text-2);
}

/* ==================== TRUST SECTION ==================== */
.trust-section {
    padding: 3rem 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-text {
    text-align: center;
    color: var(--text-3);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.trust-badges span {
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--border);
}

/* ==================== FEATURES GRID ==================== */
.features-section {
    padding: 6rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(220, 39, 71, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-item p {
    color: var(--text-2);
    line-height: 1.8;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--bg-2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
}

.testimonial-info h4 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-3);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ==================== BLOG ==================== */
.blog-page {
    padding-top: 64px;
}

/* Blog index hero */
.blog-index-hero {
    padding: 5rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(220, 39, 71, 0.04), transparent);
}

.blog-index-hero .hero-eyebrow {
    margin-bottom: 1.5rem;
}

.blog-index-hero h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.blog-index-hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-2);
    max-width: 44rem;
    margin: 0 auto;
}

/* Blog filters */
.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.5rem 0 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.filter-group-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    margin-right: 0.5rem;
    min-width: 64px;
}

.filter-chip {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-2);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--brand-pink);
    color: var(--brand-pink);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    border-color: transparent;
    color: white;
}

.blog-count {
    font-size: 0.9rem;
    color: var(--text-3);
    padding: 0.5rem 0 0;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-3);
}

/* Blog card grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 3rem 0 5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(220, 39, 71, 0.3);
    box-shadow: 0 16px 40px rgba(220, 39, 71, 0.12);
    transform: translateY(-4px);
}

.blog-card.is-soon {
    pointer-events: none;
    opacity: 0.65;
}

.blog-card-cover {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, rgba(220, 39, 71, 0.1), rgba(233, 30, 99, 0.08), rgba(244, 114, 182, 0.1));
}

.blog-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(220, 39, 71, 0.08);
    margin-bottom: 1rem;
}

.blog-card-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.blog-card-body p {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-3);
}

.blog-card-meta .read-more {
    margin-left: auto;
    font-weight: 600;
    color: var(--brand-pink);
}

/* Article */
.article-header {
    padding: 3.5rem 0 2rem;
    background: linear-gradient(180deg, rgba(220, 39, 71, 0.04), transparent);
}

.article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-2);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--brand-pink);
}

.article-header h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: var(--text-3);
    font-size: 0.9rem;
}

.article-meta .author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-2);
    font-weight: 500;
}

.article-meta .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.article-lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
    margin: 2.5rem 0;
}

.article-body {
    padding-bottom: 4rem;
}

.article-body p,
.article-body ul,
.article-body ol {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.85rem;
    line-height: 1.3;
    color: var(--text);
    margin: 3rem 0 1.25rem;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text);
    margin: 2rem 0 1rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.6rem;
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}

.article-body a {
    color: var(--brand-pink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: var(--primary);
}

.article-callout {
    background: rgba(220, 39, 71, 0.04);
    border-left: 4px solid var(--brand-pink);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
}

.article-callout p {
    margin: 0;
    color: var(--text);
}

.article-callout .callout-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.article-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.article-stat {
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--bg-2);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.article-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.article-stat span {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.4;
}

blockquote.article-quote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text);
    border: none;
    padding: 0;
    margin: 2.5rem 0;
}

/* FAQ */
.article-faq {
    margin: 2.5rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-item h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}

.faq-item p {
    margin: 0;
}

/* Article CTA */
.article-cta {
    margin: 3rem 0 0;
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(220, 39, 71, 0.06), rgba(233, 30, 99, 0.06));
    border-radius: 1.25rem;
    border: 1px solid rgba(220, 39, 71, 0.15);
}

.article-cta h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.article-cta p {
    color: var(--text-2);
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
}

/* Related posts */
.related-section {
    padding: 4rem 0;
    background: var(--bg-2);
}

@media (max-width: 767px) {
    .article-lead {
        font-size: 1.15rem;
    }
    .article-body p,
    .article-body ul,
    .article-body ol {
        font-size: 1.05rem;
    }
}

/* ==================== ARTICLE FIGURES & DIAGRAMS ==================== */
.article-figure {
    margin: 2.75rem 0;
}

.article-figure svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-2);
}

.article-figure figcaption {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: var(--text-3);
    text-align: center;
    line-height: 1.5;
}

.article-figure figcaption strong {
    color: var(--text-2);
}

/* "How it works" numbered steps inside articles */
.article-steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    counter-reset: art-step;
}

.article-steps li {
    position: relative;
    padding: 0 0 1.5rem 3.5rem;
    margin: 0;
    line-height: 1.7;
    counter-increment: art-step;
}

.article-steps li::before {
    content: counter(art-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-pink));
    border-radius: 0.7rem;
}

.article-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 2.6rem;
    bottom: 0.3rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.4), rgba(233, 30, 99, 0.08));
}

.article-steps li strong {
    color: var(--text);
}

/* Definition / key-term box */
.article-def {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin: 2.25rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.article-def .def-term {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.article-def p {
    margin: 0;
    font-size: 1.05rem;
}

/* Simple comparison table */
.article-table-wrap {
    overflow-x: auto;
    margin: 2.25rem 0;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    min-width: 460px;
}

.article-table th,
.article-table td {
    text-align: left;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text-2);
}

.article-table th {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    background: var(--bg-2);
}

.article-table td:first-child {
    font-weight: 600;
    color: var(--text);
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVEGACIÓN AMPLIADA
   El menú pasó de tres columnas sueltas a menús agrupados. Un desplegable de
   cuatro grupos no cabe en el ancho del disparador, así que los anchos se
   centran respecto a la barra en vez de colgar del enlace.
   ══════════════════════════════════════════════════════════════════════════ */
.dropdown-menu-wide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.25rem 1.5rem;
    min-width: min(920px, calc(100vw - 3rem));
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding: 1.5rem;
}
.dropdown-menu-recursos {
    display: block;
    width: min(1040px, calc(100vw - 3rem));
    min-width: min(1040px, calc(100vw - 3rem));
    max-height: min(78vh, 680px);
    overflow-y: auto;
}
.dropdown-menu-recursos .dropdown-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem 1rem;
}
.dropdown-menu-recursos .dropdown-item { padding: .7rem .8rem; }
.dropdown-menu-recursos .dropdown-item p { margin-top: .25rem; font-size: .78rem; line-height: 1.45; }
.dropdown:hover .dropdown-menu-wide,
.dropdown:focus-within .dropdown-menu-wide { transform: translateX(-50%) translateY(0); }

.dropdown-menu-sectores {
    display: block;
    left: calc(50% - 2rem);
    width: 270px;
    min-width: 270px;
    padding: 0.65rem;
    overflow: visible;
}
.dropdown-sector-entry { position: relative; }
.dropdown-sector-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
    border-radius: 0.7rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.dropdown-sector-trigger:hover,
.dropdown-sector-entry:focus-within > .dropdown-sector-trigger,
.dropdown-sector-entry:hover > .dropdown-sector-trigger {
    color: var(--primary);
    background: var(--bg-2);
}
.dropdown-sector-panel {
    position: absolute;
    top: -0.65rem;
    left: calc(100% + 0.65rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 0.05rem 0.5rem;
    width: min(500px, calc(100vw - 330px));
    max-height: min(72vh, 620px);
    padding: 1rem;
    overflow-y: auto;
    background: white;
    border: 1px solid #f1f1f1;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.dropdown-sector-panel .dropdown-group-title { grid-column: 1 / -1; }
.dropdown-sector-entry:hover > .dropdown-sector-panel,
.dropdown-sector-entry:focus-within > .dropdown-sector-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.dropdown-menu-roles {
    display: block;
    left: calc(50% - 2rem);
    width: 315px;
    min-width: 315px;
    padding: 0.65rem;
    overflow: visible;
}
.dropdown-role-panel { width: min(390px, calc(100vw - 375px)); }
.dropdown-progressive-footer {
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--brand-border);
}
.dropdown-progressive-footer .dropdown-item { margin: 0; }

.dropdown-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin: 0 0 0.5rem 0.75rem;
}
.dropdown-group-title-link {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    color: var(--primary);
    text-decoration: none;
}
.dropdown-group-title-link:hover { background: var(--bg-2); }
.dropdown-item-compact {
    margin-bottom: 0.05rem;
    padding: 0.42rem 0.65rem;
}
.dropdown-item-compact strong {
    font-size: 0.82rem;
    line-height: 1.25;
    margin: 0;
}
.dropdown-item-highlight strong { color: var(--primary); }
.dropdown-item p {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin: 0.25rem 0 0 0;
    line-height: 1.5;
}
.nav-link-quiet { color: var(--muted-foreground) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   MIGA DE PAN
   ══════════════════════════════════════════════════════════════════════════ */
.miga {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}
.miga a { color: var(--muted-foreground); text-decoration: none; }
.miga a:hover { color: var(--foreground); text-decoration: underline; }
.miga [aria-current] { color: var(--foreground); }
.miga-sep { color: var(--text-3); }

/* ══════════════════════════════════════════════════════════════════════════
   PANTALLAZOS DE LA PLATAFORMA
   Reconstruidos en HTML a partir del código real (ver build/mockups.js).
   Al ser texto y no imagen: pesan nada, se leen en cualquier tamaño, los
   indexa Google y no se quedan viejos cuando la plataforma cambia de CSS.
   ══════════════════════════════════════════════════════════════════════════ */
.shot {
    margin: 2.5rem 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--brand-border);
    background: var(--card);
    box-shadow: 0 24px 60px -20px rgba(26, 26, 26, 0.18);
}
.shot-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: #f7f7f8;
    border-bottom: 1px solid var(--brand-border);
}
.shot-dot { width: 10px; height: 10px; border-radius: 50%; background: #d8dade; }
.shot-url {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
}
.shot-body { background: #fbfbfc; overflow-x: auto; }
.shot-caption {
    padding: 0.9rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    border-top: 1px solid var(--brand-border);
    background: var(--card);
}
.shot-app { display: grid; grid-template-columns: 190px 1fr; min-width: 720px; }

.shot-side {
    background: #fff;
    border-right: 1px solid var(--brand-border);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.shot-side-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    padding: 0 0.5rem;
}
.shot-side nav { display: flex; flex-direction: column; gap: 0.1rem; }
.shot-side-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: #52525b;
}
.shot-side-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shot-side-item.is-active { background: rgba(233, 30, 99, 0.08); color: var(--primary); font-weight: 600; }
.shot-side-foot {
    margin-top: auto;
    font-size: 0.72rem;
    color: var(--muted-foreground);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    line-height: 1.5;
}
.shot-side-foot b { color: var(--foreground); font-size: 0.85rem; }

.shot-main { padding: 0; min-width: 0; }
.shot-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--brand-border);
    background: #fff;
}
.shot-bar b { font-family: var(--font-display); font-size: 0.98rem; }
.shot-crumbs { font-size: 0.78rem; color: var(--muted-foreground); }
.shot-btn {
    margin-left: auto;
    font-size: 0.76rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.8rem;
}
.shot-chip {
    margin-left: auto;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}
.shot-chip-ok { background: rgba(16, 185, 129, 0.12); color: #047857; }
.shot-chip-warn { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.shot-note {
    margin: 0;
    padding: 0.9rem 1.25rem;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--muted-foreground);
    background: #fff;
    border-top: 1px solid var(--brand-border);
}

/* Puntos de estado. Los colores siguen la semántica de la plataforma:
   gris sin enviar, azul en tránsito, ámbar necesita atención, violeta hay
   algo que revisar, verde cerrado. */
.kb-pip { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.45rem; vertical-align: middle; }
.kb-gris { background: #a1a1aa; }
.kb-azul { background: #3b82f6; }
.kb-ambar { background: #f59e0b; }
.kb-violeta { background: #8b5cf6; }
.kb-verde { background: var(--brand-green); }

.kb { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 0.75rem; padding: 1rem; }
.kb-col { background: #f4f4f5; border-radius: var(--radius-lg); padding: 0.6rem; }
.kb-col-head {
    display: flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: #3f3f46;
    margin-bottom: 0.6rem;
}
.kb-col-head b { margin-left: auto; color: var(--muted-foreground); font-weight: 600; }
.kb-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    margin-bottom: 0.5rem;
}
.kb-card-alert { border-color: rgba(245, 158, 11, 0.5); background: #fffbeb; }
.kb-card-t { font-size: 0.78rem; font-weight: 600; margin: 0 0 0.3rem; line-height: 1.35; }
.kb-card-m { font-size: 0.7rem; color: var(--muted-foreground); margin: 0 0 0.45rem; }
.kb-ia {
    display: inline-block;
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.6rem;
    border-radius: 4px;
    padding: 0.05rem 0.25rem;
    margin-right: 0.3rem;
}
.kb-tag { font-size: 0.65rem; background: #f4f4f5; border-radius: 999px; padding: 0.12rem 0.5rem; color: #52525b; }
.kb-more { font-size: 0.7rem; color: var(--muted-foreground); text-align: center; margin: 0.3rem 0 0; }

.exp-progress { height: 4px; background: #f1f1f3; }
.exp-progress span { display: block; height: 100%; background: var(--brand-green); }
.exp { width: 100%; border-collapse: collapse; font-size: 0.82rem; background: #fff; }
.exp th {
    text-align: left;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--brand-border);
    font-weight: 700;
}
.exp td { padding: 0.7rem 1.25rem; border-bottom: 1px solid #f1f1f3; }
.exp-dim { color: var(--muted-foreground); }

.chat { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; background: #fbfbfc; }
.chat-msg { max-width: 82%; border-radius: var(--radius-xl); padding: 0.75rem 1rem; font-size: 0.85rem; line-height: 1.65; }
.chat-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.chat-marta { align-self: flex-start; background: #fff; border: 1px solid var(--brand-border); border-bottom-left-radius: 6px; }
.chat-marta p { margin: 0 0 0.55rem; }
.chat-marta p:last-child { margin-bottom: 0; }
.chat-marta ul { margin: 0 0 0.55rem; padding-left: 1.1rem; }
.chat-marta li { margin-bottom: 0.25rem; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.chat-act {
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    color: #3f3f46;
}
.chat-act-main { background: var(--primary); border-color: var(--primary); color: #fff; }
.chat-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1.25rem 1.25rem;
    border: 1px solid var(--brand-border);
    background: #fff;
    border-radius: 999px;
    padding: 0.6rem 0.7rem 0.6rem 1rem;
    font-size: 0.82rem;
    color: var(--text-3);
}
.chat-send {
    margin-left: auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
}

.lectura { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 1rem 1.25rem; background: #fff; }
.lectura-pdf {
    border: 1px dashed var(--brand-border);
    border-radius: var(--radius-lg);
    display: grid;
    place-content: center;
    text-align: center;
    padding: 1.25rem 0.5rem;
    color: var(--muted-foreground);
}
.lectura-pdf span { font-weight: 700; color: var(--primary); font-size: 0.8rem; }
.lectura-pdf p { font-size: 0.72rem; margin: 0.4rem 0 0; line-height: 1.4; }
.lectura-campos { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.lectura-campos th {
    text-align: left;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    padding: 0 0 0.5rem;
    font-weight: 700;
}
.lectura-campos td { padding: 0.42rem 0; border-bottom: 1px solid #f4f4f5; }
.conf { font-size: 0.68rem; font-weight: 700; border-radius: 999px; padding: 0.12rem 0.55rem; }
.conf-alta { background: rgba(16, 185, 129, 0.12); color: #047857; }
.conf-media { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.conf-baja { background: #f4f4f5; color: #52525b; }

.firmas { padding: 0.5rem 1.25rem 1rem; background: #fff; }
.firma { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid #f4f4f5; }
.firma-av {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.firma-txt { display: flex; flex-direction: column; }
.firma-txt b { font-size: 0.83rem; }
.firma-txt span { font-size: 0.72rem; color: var(--muted-foreground); }
.firma-nivel { margin-left: auto; font-size: 0.72rem; color: var(--muted-foreground); }
.firma-est { font-size: 0.76rem; font-weight: 600; min-width: 92px; text-align: right; }

.ev { padding: 0.5rem 1.25rem 1rem; background: #fff; }
.ev-row { display: flex; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #f4f4f5; font-size: 0.83rem; }
.ev-row span { color: var(--muted-foreground); min-width: 170px; }
.ev-row code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; }

.agente { list-style: none; margin: 0; padding: 1rem 1.25rem; background: #fff; display: flex; flex-direction: column; gap: 0.6rem; }
.agente li { display: flex; gap: 0.75rem; align-items: flex-start; }
.agente-n {
    width: 22px; height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: grid; place-items: center;
}
.agente b { font-size: 0.85rem; }
.agente p { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--muted-foreground); line-height: 1.5; }

.bi { padding: 1.1rem 1.25rem; background: #fff; display: flex; flex-direction: column; gap: 0.65rem; }
.bi-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; }
.bi-lab { min-width: 110px; color: #3f3f46; }
.bi-bar { flex: 1; height: 8px; background: #f1f1f3; border-radius: 999px; overflow: hidden; }
.bi-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-red), var(--brand-pink)); }
.bi-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0 1.25rem 1.25rem; background: #fff; }
.bi-kpis div { border: 1px solid var(--brand-border); border-radius: var(--radius-lg); padding: 0.8rem; }
.bi-kpis b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--primary); }
.bi-kpis span { font-size: 0.74rem; color: var(--muted-foreground); }

@media (max-width: 768px) {
    .shot-body { -webkit-overflow-scrolling: touch; }
    .shot-caption { font-size: 0.82rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ESPACIO DE RECURSOS
   Cuatro colecciones (blog, ebooks, novedades, casos de éxito) que comparten
   rejilla y tarjeta. Lo que cambia entre ellas es el distintivo de tipo y lo
   que se promete al hacer clic: leer, descargar, ver qué cambió, o la cifra
   que consiguió un cliente.
   ══════════════════════════════════════════════════════════════════════════ */
.rec-hero { padding: 8rem 0 3rem; background: linear-gradient(180deg, #fdf2f6 0%, #ffffff 100%); }
.rec-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.rec-hero p.lede { font-size: 1.15rem; line-height: 1.75; color: var(--muted-foreground); max-width: 62ch; }

.rec-seccion { padding: 3.5rem 0; }
.rec-seccion + .rec-seccion { border-top: 1px solid var(--brand-border); }
.rec-seccion-head { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.rec-seccion-head h2 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.015em; margin: 0; }
.rec-seccion-head p { color: var(--muted-foreground); margin: 0.35rem 0 0; font-size: 0.95rem; max-width: 58ch; }
.rec-seccion-head a { margin-left: auto; color: var(--primary-text); font-weight: 600; text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.rec-seccion-head a:hover { text-decoration: underline; }

.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.rec-grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

.rec-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-2xl);
    padding: 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rec-card:hover { transform: translateY(-2px); border-color: #d4d4d8; box-shadow: 0 14px 34px -14px rgba(26,26,26,.22); }
.rec-card h3 { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.35; letter-spacing: -0.01em; margin: 0.7rem 0 0.5rem; }
.rec-card p { font-size: 0.88rem; line-height: 1.65; color: var(--muted-foreground); margin: 0; }
.rec-card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.76rem; color: var(--text-3); }
.rec-card-cta { margin-left: auto; color: var(--primary-text); font-weight: 600; }

/* El distintivo de tipo. Cada colección tiene su color para que en la portada
   —donde se mezclan las cuatro— se distinga de un vistazo qué es cada cosa. */
.rec-tipo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    width: fit-content;
}
.rec-tipo-blog { background: rgba(233, 30, 99, .1); color: var(--primary); }
.rec-tipo-ebook { background: rgba(139, 92, 246, .12); color: #6d28d9; }
.rec-tipo-novedad { background: rgba(59, 130, 246, .12); color: #1d4ed8; }
.rec-tipo-caso { background: rgba(16, 185, 129, .12); color: #047857; }

/* Filtros. Reutilizan el patrón que ya usaba blog.html, pero como componente
   con nombre en vez de estilos inline repetidos en cada página. */
.rec-filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.rec-filtro {
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--brand-border);
    background: var(--card);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    cursor: pointer;
    color: #52525b;
    transition: all .15s ease;
}
.rec-filtro:hover { border-color: var(--primary); color: var(--primary); }
.rec-filtro.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Ficha de caso de éxito: la cifra manda. */
.caso-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.caso-cifra { border-left: 3px solid var(--primary); padding-left: 0.85rem; }
.caso-cifra b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--primary); }
.caso-cifra span { font-size: 0.76rem; color: var(--muted-foreground); line-height: 1.45; display: block; margin-top: 0.2rem; }

.caso-quote {
    border-left: 3px solid var(--brand-border);
    padding: 0.4rem 0 0.4rem 1.25rem;
    margin: 2rem 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #3f3f46;
}
.caso-quote footer { margin-top: 0.7rem; font-size: 0.85rem; color: var(--muted-foreground); font-style: normal; }

/* Antes / después. Es la tabla que más se mira de un caso de éxito. */
.antes-despues { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.antes-despues > div { border: 1px solid var(--brand-border); border-radius: var(--radius-xl); padding: 1.25rem; }
.antes-despues h4 { font-family: var(--font-display); font-size: 0.95rem; margin: 0 0 0.75rem; }
.antes-despues ul { margin: 0; padding-left: 1.1rem; }
.antes-despues li { font-size: 0.88rem; line-height: 1.7; color: var(--muted-foreground); margin-bottom: 0.35rem; }
.ad-antes { background: #fafafa; }
.ad-antes h4 { color: #71717a; }
.ad-despues { background: rgba(16, 185, 129, .04); border-color: rgba(16, 185, 129, .3); }
.ad-despues h4 { color: #047857; }

/* Ebook: la portada falsa. Un ebook sin portada no se descarga. */
.ebook-portada {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    background: var(--brand-gradient-oscuro);
    color: #fff;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.ebook-portada b { font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.ebook-portada span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: .85; }

/* Novedades: la línea de tiempo del producto. */
.novedad { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--brand-border); }
.novedad-meta { font-size: 0.8rem; color: var(--muted-foreground); }
.novedad-meta b { display: block; font-family: var(--font-display); color: var(--foreground); font-size: 0.95rem; }
.novedad h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.novedad-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.85rem; }
.novedad-tag { font-size: 0.68rem; background: #f4f4f5; border-radius: 999px; padding: 0.15rem 0.6rem; color: #52525b; }

/* ══════════════════════════════════════════════════════════════════════════
   NEWSLETTER
   Dos formatos: la franja ancha (portada de recursos, fin de artículo) y el
   bloque lateral. Mismo formulario, mismo Web3Forms que el de demo.
   ══════════════════════════════════════════════════════════════════════════ */
.news {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1520 100%);
    color: #fff;
    border-radius: var(--radius-3xl);
    padding: 2.75rem;
    margin: 3rem 0;
}
.news-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.news h2 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.75rem; color: #fff; }
.news p { color: rgba(255,255,255,.72); line-height: 1.7; margin: 0; font-size: 0.95rem; }
.news-prueba { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.news-prueba div { font-size: 0.78rem; color: rgba(255,255,255,.55); line-height: 1.4; }
.news-prueba b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--brand-light-pink); }

.news-form { display: flex; flex-direction: column; gap: 0.7rem; }
.news-form input[type="email"], .news-form input[type="text"], .news-form select {
    width: 100%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-lg);
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-inter);
    font-size: 0.92rem;
}
.news-form input::placeholder { color: rgba(255,255,255,.4); }
.news-form select option { background: #1a1a1a; }
.news-form input:focus, .news-form select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.news-form button {
    background: var(--brand-gradient-oscuro);
    color: #fff;
    border: 0;
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}
.news-form button:disabled { opacity: .7; cursor: default; }
.news-legal { font-size: 0.72rem; color: rgba(255,255,255,.45); line-height: 1.55; }
.news-legal a { color: rgba(255,255,255,.7); }
.news-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.news-consent input { margin-top: 0.2rem; accent-color: var(--primary); }
/* Sin esto el enlace hereda el azul por defecto del navegador, que sobre el
   fondo oscuro de la franja no se lee. */
.news-consent a { color: rgba(255,255,255,.82); text-decoration: underline; text-underline-offset: 2px; }
.news-consent a:hover { color: var(--brand-light-pink); }

.news-inline { background: #fdf2f6; border: 1px solid rgba(233,30,99,.18); border-radius: var(--radius-2xl); padding: 1.75rem; margin: 2.5rem 0; }
.news-inline h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.4rem; }
.news-inline p { font-size: 0.9rem; color: var(--muted-foreground); margin: 0 0 1rem; line-height: 1.65; }
.news-inline form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.news-inline input[type="email"] {
    flex: 1 1 240px;
    border: 1px solid var(--brand-border);
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 0.7rem 0.95rem;
    font-family: var(--font-inter);
    font-size: 0.92rem;
}
.news-inline button {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius-lg);
    padding: 0.7rem 1.4rem;
    font-weight: 700;
    font-family: var(--font-inter);
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════
   ARTÍCULO LARGO (blog, caso de éxito, ebook)
   ══════════════════════════════════════════════════════════════════════════ */
.art { max-width: 720px; margin: 0 auto; }
.art h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.015em; margin: 2.75rem 0 0.9rem; }
.art h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 2rem 0 0.7rem; }
.art p { font-size: 1.02rem; line-height: 1.85; color: #3f3f46; margin: 0 0 1.15rem; }
.art ul, .art ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.art li { font-size: 1.02rem; line-height: 1.8; color: #3f3f46; margin-bottom: 0.5rem; }
/* `:not([class*="btn-"])` no es cosmético: `.art a` tiene especificidad (0,0,1,1)
   y `.btn-primary` (0,0,1,0), así que sin la exclusión esta regla le gana al
   botón y le pinta el texto de rosa sobre un fondo rosa. Invisible. */
.art a:not([class*="btn-"]) { color: var(--primary-text); }

/* Las claves: lo esencial arriba del todo, antes de explicar nada. Copiado del
   bloque `claves` del centro de ayuda, que existe por la misma razón: quien
   llega de una búsqueda quiere la respuesta, no la introducción. */
.art-claves { background: #fafafa; border: 1px solid var(--brand-border); border-radius: var(--radius-2xl); padding: 1.4rem 1.6rem; margin: 0 0 2.25rem; }
.art-claves p { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); margin: 0 0 0.7rem; }
.art-claves ul { margin: 0; padding-left: 1.1rem; }
.art-claves li { font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.4rem; }

/* Aviso. Tres niveles, igual que en el centro de ayuda. */
.art-aviso { border-radius: var(--radius-xl); padding: 1.1rem 1.35rem; margin: 1.75rem 0; font-size: 0.95rem; line-height: 1.7; border-left: 4px solid; }
.art-aviso b { display: block; margin-bottom: 0.25rem; }
.aviso-nota { background: #f4f7fb; border-color: #3b82f6; color: #1e3a5f; }
.aviso-atencion { background: #fffbeb; border-color: #f59e0b; color: #713f12; }
.aviso-peligro { background: #fef2f2; border-color: #dc2626; color: #7f1d1d; }

/* Ejemplo trabajado: situación → qué haces → qué obtienes. Es la estructura
   `ejemplo` del centro de ayuda; se repite aquí para que un caso práctico se
   lea igual esté donde esté. */
.ejemplo { border: 1px solid var(--brand-border); border-radius: var(--radius-2xl); overflow: hidden; margin: 2rem 0; }
.ejemplo-head { background: #fafafa; padding: 0.85rem 1.35rem; border-bottom: 1px solid var(--brand-border); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); }
.ejemplo-cuerpo { padding: 1.35rem; }
.ejemplo-bloque + .ejemplo-bloque { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid #f4f4f5; }
.ejemplo-bloque > b { display: block; font-size: 0.78rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.ejemplo-bloque p, .ejemplo-bloque li { font-size: 0.94rem; line-height: 1.75; color: #3f3f46; margin: 0 0 0.4rem; }
.ejemplo-bloque ol { margin: 0; padding-left: 1.2rem; }

.art-tabla { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.92rem; }
.art-tabla th { text-align: left; background: #fafafa; padding: 0.7rem 0.9rem; border: 1px solid var(--brand-border); font-weight: 700; font-size: 0.8rem; }
.art-tabla td { padding: 0.7rem 0.9rem; border: 1px solid var(--brand-border); line-height: 1.6; color: #3f3f46; }

.art-faq { margin: 2.5rem 0; }
.art-faq details { border: 1px solid var(--brand-border); border-radius: var(--radius-lg); margin-bottom: 0.6rem; }
.art-faq summary { padding: 0.9rem 1.1rem; font-weight: 600; cursor: pointer; font-size: 0.95rem; }
.art-faq summary::marker { color: var(--primary); }
.art-faq div { padding: 0 1.1rem 1rem; font-size: 0.94rem; line-height: 1.75; color: var(--muted-foreground); }

.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.82rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.art-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Relacionados: el enlazado interno que hace que una visita de búsqueda no
   termine en un callejón sin salida. */
.relacionados { border-top: 1px solid var(--brand-border); margin-top: 3.5rem; padding-top: 2rem; }
.relacionados h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 1.1rem; }
.relacionados ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.relacionados a { color: var(--primary-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.relacionados a:hover { text-decoration: underline; }
.relacionados span { display: block; color: var(--muted-foreground); font-weight: 400; font-size: 0.85rem; margin-top: 0.15rem; }

/* ══════════════════════════════════════════════════════════════════════════
   PIE AMPLIADO
   ══════════════════════════════════════════════════════════════════════════ */
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-col h2 { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 0.9rem; color: var(--foreground); }
.footer-col a { display: block; color: var(--muted-foreground); text-decoration: none; font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.55rem; }
.footer-col a:hover { color: var(--primary); }
.footer-col-brand p { font-size: 0.88rem; line-height: 1.7; color: var(--muted-foreground); margin: 1rem 0 0; max-width: 34ch; }
.footer-badge { font-size: 0.78rem !important; color: var(--text-3) !important; }
.footer-bottom { border-top: 1px solid var(--brand-border); padding: 1.5rem 0; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-3); margin: 0; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .news-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .antes-despues { grid-template-columns: 1fr; }
    .dropdown-menu-wide { min-width: min(680px, calc(100vw - 3rem)); }
    .dropdown-menu-recursos { width: min(680px, calc(100vw - 3rem)); }
    .dropdown-menu-recursos .dropdown-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .news { padding: 1.75rem; }
    .novedad { grid-template-columns: 1fr; gap: 0.6rem; }
    .rec-seccion-head a { margin-left: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PORTADA v2
   La portada anterior tenía un problema de altitud: contaba tres módulos de
   los once que hay, y lo hacía con un lenguaje («terceros», «trazabilidad
   documental») que entiende quien ya sabe lo que compra. Estos componentes
   son para contar lo mismo de forma que lo entienda quien llega de cero.
   ══════════════════════════════════════════════════════════════════════════ */

/* La etiqueta que va encima de cada H2. Orienta antes de que se lea el
   titular: dice de qué va el bloque en tres palabras. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-text);
    margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--primary); border-radius: 2px; }

.h-xl { font-family: var(--font-display); font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; }
.h-lg { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.14; letter-spacing: -0.025em; }
.h-md { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25; letter-spacing: -0.018em; }
.lede-xl { font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.72; color: var(--muted-foreground); max-width: 60ch; }

/* Texto con el degradado de marca. Solo para 2-4 palabras del titular: en un
   párrafo entero baja el contraste por debajo de lo legible. */
.grad {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-pink); /* respaldo si background-clip no aplica */
}

.sec { padding: clamp(4rem, 8vw, 7rem) 0; }
.sec-alt { background: #fafafa; }
.sec-ink { background: #101010; color: #fff; }
.sec-ink .lede-xl, .sec-ink p { color: rgba(255,255,255,.7); }
.sec-ink .h-lg, .sec-ink .h-md { color: #fff; }

.sec-head { max-width: 66ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.sec-head.centrado { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.centrado .eyebrow { justify-content: center; }
.sec-head .lede-xl { margin-top: 1rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero2 {
    position: relative;
    padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(1100px 480px at 78% -12%, rgba(233, 30, 99, .13), transparent 62%),
        radial-gradient(760px 380px at 6% 8%, rgba(220, 39, 71, .075), transparent 60%),
        #fff;
    overflow: hidden;
}
.hero2-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
/* `min-width: 0` es obligatorio aquí. Un ítem de grid tiene `min-width: auto`,
   así que la columna no puede encoger por debajo del ancho mínimo de su
   contenido — y el pantallazo lleva `.shot-app { min-width: 720px }`. Sin esto,
   en móvil la columna del texto se estiraba también a 722 px y los botones del
   hero salían cortados por la derecha. El scroll del pantallazo lo resuelve
   `.shot-body { overflow-x: auto }`, pero solo si se le permite encoger. */
.hero2-grid > * { min-width: 0; }
.shot { max-width: 100%; }
.hero2 .lede-xl { margin: 1.35rem 0 2rem; }
.hero2-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero2-nota { margin-top: 1.15rem; font-size: 0.84rem; color: var(--text-3); }

/* La franja de cifras. Sin iconos: el número es el mensaje. */
.hero2-cifras { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.75rem; }
.hero2-cifras div { border-left: 2px solid rgba(233,30,99,.28); padding-left: 1rem; }
.hero2-cifras b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1; color: var(--primary); letter-spacing: -0.02em; }
.hero2-cifras span { display: block; font-size: 0.8rem; line-height: 1.45; color: var(--muted-foreground); margin-top: 0.4rem; max-width: 17ch; }

/* Cinta de confianza justo bajo el hero: lo que un evaluador busca primero. */
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2rem; }
.trust-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.76rem; font-weight: 600; color: #3f3f46;
    background: #fff; border: 1px solid var(--brand-border);
    border-radius: 999px; padding: 0.35rem 0.8rem;
}
.trust-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }

/* ── Tarjetas genéricas ───────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
/* Dos y tres columnas fijas en escritorio: con `auto-fit` una fila de dos
   tarjetas se estira hasta ocupar el ancho entero y el texto queda en una
   línea larguísima. Por debajo de 860px vuelven a apilarse solas. */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 940px; margin-inline: auto; }
@media (max-width: 860px) {
    .cards-3, .cards-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:hover { transform: translateY(-3px); border-color: rgba(233,30,99,.35); box-shadow: 0 18px 42px -18px rgba(233,30,99,.28); }
.card h3 { font-family: var(--font-display); font-size: 1.06rem; letter-spacing: -0.012em; margin: 0 0 0.5rem; line-height: 1.35; }
.card p { font-size: 0.9rem; line-height: 1.7; color: var(--muted-foreground); margin: 0; }
.card-cta { margin-top: auto; padding-top: 1.1rem; font-size: 0.82rem; font-weight: 700; color: var(--primary-text); }

/* El número que encabeza una tarjeta de paso. */
.card-num {
    width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center;
    /* El rosa de marca sobre su propio 10% da 3,73:1, y esto es texto
       pequeño: necesita 4,5. `--primary-text` es el mismo rosa oscurecido
       para leerse, y sube a 5,02:1 sin cambiar el aspecto de la ficha. */
    background: rgba(233,30,99,.1); color: var(--primary-text);
    font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
    margin-bottom: 0.9rem;
}

/* ── Escenas del problema ─────────────────────────────────────────────── */
.escenas { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.escena {
    background: #fff; border: 1px solid var(--brand-border);
    border-left: 3px solid #e4e4e7;
    border-radius: var(--radius-xl); padding: 1.4rem;
}
.escena b { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.5rem; }
.escena p { font-size: 0.89rem; line-height: 1.72; color: var(--muted-foreground); margin: 0; }
.escena-hora { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.5rem; display: block; }

/* ── Comparativa ──────────────────────────────────────────────────────── */
.comparativa { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; }
.comparativa th, .comparativa td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--brand-border); vertical-align: top; }
.comparativa thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 700; }
.comparativa tbody td:first-child { font-weight: 600; width: 26%; }
.comparativa .col-cc { background: rgba(233,30,99,.035); }
.comparativa thead .col-cc { color: var(--primary); }
.comparativa td.col-cc { border-left: 1px solid rgba(233,30,99,.14); border-right: 1px solid rgba(233,30,99,.14); }
.comparativa tbody tr:last-child td { border-bottom: 0; }
.comparativa-wrap { overflow-x: auto; border: 1px solid var(--brand-border); border-radius: var(--radius-2xl); background: #fff; }

/* ── Pestañas de ejemplos por sector ──────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.tab {
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    border: 1px solid var(--brand-border); background: #fff;
    border-radius: 999px; padding: 0.45rem 1.05rem; color: #52525b;
    transition: all .15s ease;
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ── Testimonio ───────────────────────────────────────────────────────── */
.testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.testimonio { background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-2xl); padding: 1.6rem; }
.testimonio blockquote { margin: 0 0 1.1rem; font-size: 1rem; line-height: 1.75; color: #27272a; }
.testimonio footer { font-size: 0.8rem; color: var(--muted-foreground); line-height: 1.5; }
.testimonio footer b { display: block; color: var(--foreground); }

/* ── Franja de métricas sobre fondo oscuro ────────────────────────────── */
.metricas { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.metricas div b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--brand-light-pink); }
.metricas div span { display: block; font-size: 0.86rem; line-height: 1.6; color: rgba(255,255,255,.62); margin-top: 0.6rem; }

/* El tamaño de arriba está pensado para etiquetas de dos palabras («Tasa de
   respuesta»). Cuando el rótulo es una frase —«Quién no contesta»— a 2,9rem
   ocupa dos líneas y las cuatro columnas dejan de leerse como una rejilla.
   Esta variante baja el cuerpo y sube el peso: mismo golpe, una sola línea. */
.metricas-frase div b { font-size: clamp(1.15rem, 1.7vw, 1.42rem); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
.metricas-frase div span { margin-top: 0.5rem; }

/* ── CTA final ────────────────────────────────────────────────────────── */
.cta-final { text-align: center; max-width: 62ch; margin: 0 auto; }
.cta-final .h-lg { margin-bottom: 1rem; }
.cta-final .hero2-ctas { justify-content: center; margin-top: 1.75rem; }

@media (max-width: 900px) {
    .hero2-grid { grid-template-columns: 1fr; }
    .hero2-cifras { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .comparativa tbody td:first-child { width: auto; }
}
@media (max-width: 560px) {
    .hero2-cifras { grid-template-columns: 1fr; }
    .hero2-ctas .btn-primary, .hero2-ctas .btn-secondary { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   CARRUSEL DE CLIENTES
   Estos estilos vivían inline dentro de index.html, inyectados por
   add-clientes.js. Se traen aquí porque la portada ya no se edita a mano: la
   genera build-home.js, y un <style> incrustado en el generador es un sitio
   peor para buscarlos que la hoja de estilos.
   ══════════════════════════════════════════════════════════════════════════ */
.cc-carousel { display: flex; align-items: center; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.cc-viewport { flex: 1; overflow: hidden; }
.cc-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.cc-logo {
    flex: 0 0 25%;
    text-align: center;
    font-family: var(--font-display), 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #b4b4bb;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 0 1rem;
    transition: color .3s, transform .3s;
}
.cc-logo:hover { color: var(--primary); transform: scale(1.05); }
.cc-arrow {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--brand-border);
    background: #fff;
    color: var(--muted-foreground);
    font-size: 1.6rem; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: all .25s ease;
}
.cc-arrow:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.08); }

@media (max-width: 768px) {
    .cc-logo { flex: 0 0 100%; font-size: 1.4rem; }
    .cc-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
    .cc-carousel { gap: .5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   VISTA DE CARPETAS
   Es la pantalla de entrada de Trackline, no el kanban. Modelada sobre
   components/layout/FolderGrid.tsx: rejilla de 4, icono coloreable por carpeta,
   contador en monoespaciada, y expedientes debajo que se arrastran a carpetas.
   ══════════════════════════════════════════════════════════════════════════ */
.carp { padding: 1rem 1.25rem 1.25rem; background: #fff; }
.carp-tit { font-family: var(--font-display); font-size: .95rem; font-weight: 600; margin: 0 0 .7rem; }
.carp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.carp-card {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: .8rem;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.carp-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px -6px rgba(233,30,99,.3); }
.carp-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .6rem; }
.carp-top svg { width: 22px; height: 22px; fill: currentColor; }
.carp-n { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; color: var(--muted-foreground); }
.carp-nombre { font-size: .8rem; font-weight: 600; margin: 0; line-height: 1.3; }
.carp-sub { font-size: .68rem; color: var(--muted-foreground); margin: .2rem 0 0; line-height: 1.35; }

.carp-exp {
    display: flex; align-items: center; gap: .7rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: .55rem .75rem; margin-bottom: .4rem; background: #fff;
}
/* El asa de arrastre. Está porque mover un expediente de carpeta es
   literalmente arrastrarlo encima: sin el asa el pantallazo no lo cuenta. */
.carp-exp-drag { color: #d4d4d8; font-size: .85rem; cursor: grab; }
.carp-exp-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.carp-exp-txt b { font-size: .8rem; }
.carp-exp-txt span { font-size: .68rem; color: var(--muted-foreground); }
.carp-exp-barra { width: 90px; height: 5px; background: #f1f1f3; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.carp-exp-barra span { display: block; height: 100%; background: var(--brand-green); }
.carp-exp-pct { font-size: .72rem; font-weight: 700; color: #047857; min-width: 34px; text-align: right; }
.carp-exp-pct.es-pausado { color: #b45309; }

/* ══════════════════════════════════════════════════════════════════════════
   CONEXIONES CON SISTEMAS EXTERNOS
   ══════════════════════════════════════════════════════════════════════════ */
.integ { padding: 1rem 1.25rem; background: #fff; }
.integ-tit {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--font-display); font-size: .85rem; font-weight: 600;
    margin: 0 0 .7rem;
}
.integ-tit:not(:first-child) { margin-top: 1.2rem; }
.integ-badge { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .12rem .5rem; }
.integ-ok { background: rgba(16,185,129,.13); color: #047857; }
.integ-pronto { background: #f4f4f5; color: #71717a; }
.integ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.integ-grid-mini { grid-template-columns: repeat(4, 1fr); }
.integ-card {
    display: flex; align-items: center; gap: .6rem;
    border: 1px solid var(--brand-border); border-radius: var(--radius-md);
    padding: .6rem .7rem; background: #fff;
}
.integ-card.es-pronto { opacity: .62; border-style: dashed; }
.integ-ic {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 7px; display: grid; place-items: center;
    color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .02em;
}
.integ-card b { display: block; font-size: .78rem; line-height: 1.25; }
.integ-card span { display: block; font-size: .66rem; color: var(--muted-foreground); line-height: 1.4; margin-top: .12rem; }

@media (max-width: 768px) {
    .carp-grid { grid-template-columns: repeat(2, 1fr); }
    .integ-grid, .integ-grid-mini { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   GUÍAS
   Se leen enteras en la web. El PDF sale de esta misma página, así que lo que
   se corrige aquí se corrige también en la descarga.
   ══════════════════════════════════════════════════════════════════════════ */
.guia-hero { background: linear-gradient(180deg, #f6f1fb 0%, #ffffff 100%); }
.guia-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: start; }
.guia-layout .art { margin: 0; max-width: 720px; }

.sumario {
    position: sticky; top: 90px;
    border-left: 2px solid var(--brand-border);
    padding-left: 1.1rem;
}
.sumario p { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin: 0 0 .8rem; }
.sumario ol { margin: 0; padding-left: 1.1rem; }
.sumario li { margin-bottom: .55rem; }
.sumario a { font-size: .84rem; line-height: 1.5; color: var(--muted-foreground); text-decoration: none; }
.sumario a:hover { color: var(--primary-text); }

.checklist {
    border: 1px solid rgba(16,185,129,.3);
    background: rgba(16,185,129,.04);
    border-radius: var(--radius-2xl);
    padding: 1.3rem 1.5rem;
    margin: 1.9rem 0;
}
.checklist-tit { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: #047857; margin: 0 0 .75rem !important; }
/* Marca de verificación en vez de viñeta: un checklist con bolitas no se lee
   como algo que se va tachando. */
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.75; margin-bottom: .5rem; color: #3f3f46; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-green); font-weight: 700; }

.tabla-scroll { overflow-x: auto; margin: 1.75rem 0; }
.tabla-scroll .art-tabla { margin: 0; min-width: 520px; }

.guia-cta {
    background: #101010; color: #fff;
    border-radius: var(--radius-3xl);
    padding: 2rem;
    margin: 2.5rem 0;
}
.guia-cta h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 .7rem; color: #fff; letter-spacing: -.015em; }
.guia-cta p { color: rgba(255,255,255,.72) !important; font-size: .95rem; line-height: 1.75; margin: 0 0 1.4rem !important; }

@media (max-width: 1024px) {
    .guia-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .sumario { position: static; border-left: 0; border-top: 1px solid var(--brand-border); padding: 1.1rem 0 0; }
}

/* ── Impresión: es lo que se convierte en el PDF descargable ──────────── */
@media print {
    #navbar, footer, .news-inline, .guia-cta, .relacionados, .sumario,
    .miga, .btn-primary, .btn-secondary, .rec-hero .rec-tipo { display: none !important; }
    body { font-size: 11pt; }
    .rec-hero { padding: 0 0 1rem !important; background: #fff !important; }
    .rec-seccion { padding: 0 !important; }
    .guia-layout { display: block; }
    .container { max-width: 100%; padding: 0; }
    .art h2 { break-after: avoid; page-break-after: avoid; margin-top: 1.6rem; }
    .ejemplo, .checklist, .art-aviso, .art-claves, .art-tabla { break-inside: avoid; page-break-inside: avoid; }
    .tabla-scroll { overflow: visible; }
    .tabla-scroll .art-tabla { min-width: 0; }
    a { color: inherit !important; text-decoration: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   CANALES DE ENTRADA
   ══════════════════════════════════════════════════════════════════════════ */
.canales { padding: 1.1rem 1.25rem 1.25rem; background: #fff; }
.canal {
    display: flex; gap: .75rem; align-items: flex-start;
    border: 1px solid var(--brand-border); border-radius: var(--radius-lg);
    padding: .8rem .9rem; margin-bottom: .5rem;
}
.canal:first-child { border-color: rgba(233,30,99,.4); background: rgba(233,30,99,.035); }
.canal-n {
    width: 22px; height: 22px; flex-shrink: 0;
    border-radius: 50%; background: var(--primary); color: #fff;
    font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.canal b { font-size: .84rem; }
.canal p { margin: .18rem 0 0; font-size: .76rem; line-height: 1.55; color: var(--muted-foreground); }
.canal-flecha { text-align: center; color: #d4d4d8; font-size: 1.2rem; margin: .3rem 0; }
.canal-destino {
    border: 1px solid var(--brand-border); border-radius: var(--radius-lg);
    padding: .9rem; background: #fafafa;
}
.canal-destino b { font-size: .84rem; }
.canal-destino p { margin: .35rem 0 0; font-size: .76rem; line-height: 1.6; color: var(--muted-foreground); }
.canal-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.canal-tags span { font-size: .65rem; background: #fff; border: 1px solid var(--brand-border); border-radius: 999px; padding: .12rem .55rem; color: #52525b; }

/* ══════════════════════════════════════════════════════════════════════════
   COMPARATIVA CON LAS ALTERNATIVAS
   ══════════════════════════════════════════════════════════════════════════ */
.pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; margin: 2rem 0; }
.pilar { border-top: 3px solid var(--primary); padding-top: 1rem; }
.pilar b { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: .45rem; letter-spacing: -.01em; }
.pilar p { font-size: .9rem; line-height: 1.7; color: var(--muted-foreground); margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   ANCLAS Y BARRA FIJA
   El navbar es `position: fixed`, así que al saltar a un ancla el navegador
   deja el destino justo debajo del borde superior — y la barra lo tapa. Pasa
   con los enlaces de la portada (#comparativa, #plataforma, #pricing) y con el
   sumario de cada guía. `scroll-margin-top` reserva ese espacio.
   ══════════════════════════════════════════════════════════════════════════ */
:target,
[id]:not(body):not(html) { scroll-margin-top: 88px; }

/* Respeta a quien haya pedido menos movimiento en su sistema. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .rec-card, .shot, .carp-card { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PLANES
   ══════════════════════════════════════════════════════════════════════════ */
.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-2xl);
    padding: 1.6rem 1.4rem;
}
.plan-destacado {
    border-color: var(--primary);
    box-shadow: 0 20px 50px -22px rgba(233,30,99,.4);
}
.plan-cinta {
    position: absolute; top: -11px; left: 1.4rem;
    background: var(--primary); color: #fff;
    font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    border-radius: 999px; padding: .2rem .7rem;
}
.plan-label { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin: 0 0 .4rem; }
.plan-precio { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; letter-spacing: -.03em; margin: 0; }
.plan-precio span { font-size: .85rem; font-weight: 400; color: var(--muted-foreground); letter-spacing: 0; }
.plan-creditos { font-size: .78rem; color: var(--primary-text); font-weight: 600; margin: .5rem 0 0; }
.plan-para { font-size: .84rem; line-height: 1.6; color: var(--muted-foreground); margin: .75rem 0 1rem; }
.plan-lista { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.plan-lista li { position: relative; padding-left: 1.4rem; font-size: .84rem; line-height: 1.6; margin-bottom: .5rem; color: #3f3f46; }
.plan-lista li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-green); font-weight: 700; }
/* Lo que NO incluye se dice, no se esconde: descubrirlo después es peor. */
.plan-lista .plan-no { color: var(--text-3); }
.plan-lista .plan-no::before { content: "—"; color: var(--text-3); }
.plan-cta { margin-top: auto; text-align: center; display: block; }
.planes-nota { text-align: center; font-size: .85rem; color: var(--muted-foreground); margin: 1.5rem auto 0; max-width: 62ch; line-height: 1.7; }

@media (max-width: 1024px) { .planes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .planes { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════════════
   CASOS DE ÉXITO
   La estructura es narrativa, no de folleto: escena → quiebre → capítulos →
   dónde están hoy. El quiebre va sobre fondo oscuro porque es el momento que
   engancha, y conviene que se lea como un corte en la página.
   ══════════════════════════════════════════════════════════════════════════ */
.caso-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(180deg, #eefaf4 0%, #ffffff 100%);
}
.caso-perfil { font-size: .92rem; color: var(--muted-foreground); margin: 0; }
.caso-perfil span { color: var(--text-3); font-size: .84rem; }

.caso-cifras-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.25rem; }
.caso-cifras-hero div { border-top: 3px solid var(--brand-green); padding-top: .9rem; }
.caso-cifras-hero b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1; letter-spacing: -.03em;
    color: #047857;
}
.caso-cifras-hero span { display: block; font-size: .84rem; line-height: 1.5; color: var(--muted-foreground); margin-top: .5rem; }

/* La apertura: una escena, en grande y sin adornos. */
.caso-apertura {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.7;
    color: #27272a;
    margin: 0;
    max-width: 46ch;
}
.caso-apertura::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 3.2em;
    line-height: .82;
    padding: .06em .12em 0 0;
    color: var(--primary);
}

.caso-quiebre { font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,.86) !important; margin: 0; }
.caso-quiebre-cita {
    margin: 1.75rem 0 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--brand-light-pink);
    font-size: 1.15rem;
    line-height: 1.7;
    color: #fff;
    font-style: italic;
}

/* La línea de tiempo de capítulos. */
.linea { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.linea-item { display: grid; grid-template-columns: 92px 1fr; gap: 1.5rem; position: relative; padding-bottom: 2rem; }
/* El hilo que une los capítulos. Se corta en el último para que la línea no
   quede colgando en el aire. */
.linea-item::before {
    content: "";
    position: absolute;
    left: 45px; top: 1.9rem; bottom: 0;
    width: 1px; background: var(--brand-border);
}
.linea-item:last-child { padding-bottom: 0; }
.linea-item:last-child::before { display: none; }
.linea-n {
    position: relative; z-index: 1;
    align-self: start;
    background: var(--primary); color: #fff;
    font-size: .7rem; font-weight: 700;
    border-radius: 999px; padding: .3rem .7rem;
    text-align: center; white-space: nowrap;
}
.linea-cuerpo h3 { font-family: var(--font-display); font-size: 1.12rem; margin: .1rem 0 .5rem; letter-spacing: -.012em; }
.linea-cuerpo p { font-size: 1rem; line-height: 1.8; color: #3f3f46; margin: 0 0 .6rem; }
/* El coste real de cada paso. Va en gris y más pequeño porque es el matiz, no
   el titular — pero es lo que hace creíble el caso. */
.linea-detalle {
    font-size: .9rem !important;
    line-height: 1.7 !important;
    color: var(--muted-foreground) !important;
    border-left: 2px solid var(--brand-border);
    padding-left: .9rem;
    margin: 0 !important;
}

.caso-hoy { font-size: 1.02rem; line-height: 1.85; color: #3f3f46; margin: 0 0 1rem; }

.caso-quote footer b { display: block; color: var(--foreground); }

/* Tarjeta del índice: la apertura hace de gancho, las cifras rematan. */
.casos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.25rem; }
.caso-card {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-2xl);
    padding: 1.6rem;
    text-decoration: none; color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.caso-card:hover { transform: translateY(-3px); border-color: rgba(16,185,129,.45); box-shadow: 0 18px 42px -18px rgba(16,185,129,.3); }
.caso-card h3 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.32; letter-spacing: -.015em; margin: .75rem 0 .4rem; }
.caso-card-perfil { font-size: .8rem; color: var(--text-3); margin: 0 0 .8rem; }
.caso-card-apertura { font-size: .92rem; line-height: 1.7; color: var(--muted-foreground); margin: 0; }
.caso-card-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 1.25rem 0 0; }
.caso-card-cifras b { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1; color: #047857; }
.caso-card-cifras span { display: block; font-size: .7rem; line-height: 1.4; color: var(--muted-foreground); margin-top: .3rem; }

@media (max-width: 640px) {
    .caso-cifras-hero, .caso-card-cifras { grid-template-columns: 1fr; gap: 1rem; }
    .linea-item { grid-template-columns: 1fr; gap: .6rem; }
    .linea-item::before { display: none; }
    .linea-n { justify-self: start; }
    .casos-grid { grid-template-columns: 1fr; }
}

/* Precios sin importe publicado: dos vías en vez de cuatro planes. */
.planes-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.plan-etiqueta { font-size: .7rem; font-weight: 600; color: var(--muted-foreground); background: #f4f4f5; border-radius: 999px; padding: .12rem .55rem; margin-left: .35rem; }
.plan-precio-txt { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em; margin: .6rem 0 0; color: var(--primary-text); }
.plan-nota { font-size: .8rem; line-height: 1.6; color: var(--muted-foreground); margin: 0 0 1.25rem; padding-top: .9rem; border-top: 1px solid var(--brand-border); }
@media (max-width: 800px) { .planes-2 { grid-template-columns: 1fr; } }

/* Lista numerada de situaciones (sectores y roles). Dos columnas para que diez
   entradas no se lean como una lista interminable. */
.situaciones {
    list-style: none;
    counter-reset: sit;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: .6rem 2rem;
    margin: 0; padding: 0;
}
.situaciones li {
    counter-increment: sit;
    position: relative;
    padding: .75rem 0 .75rem 2.4rem;
    border-bottom: 1px solid var(--brand-border);
    font-size: .96rem;
    line-height: 1.6;
    color: #3f3f46;
}
.situaciones li::before {
    content: counter(sit, decimal-leading-zero);
    position: absolute; left: 0; top: .78rem;
    font-family: var(--font-display);
    font-size: .8rem; font-weight: 700;
    color: var(--primary);
}
.comparativa a { color: var(--primary-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.comparativa a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   LO QUE NO HACE NADIE
   Fila ancha por bloque, no rejilla de tarjetas: cada uno necesita espacio
   para la frase corta, el detalle y el impacto. Seis tarjetas apretadas se
   leerían como una lista de características más.
   ══════════════════════════════════════════════════════════════════════════ */
.unicos { display: flex; flex-direction: column; gap: 1rem; }
.unico {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) minmax(0, 260px);
    gap: 1.5rem;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.unico:hover { border-color: rgba(233,30,99,.35); box-shadow: 0 14px 36px -18px rgba(233,30,99,.25); }
.unico-n {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    /* El degradado de marca acaba en #F0509E, y blanco encima da 3,31:1 con
       texto de .9rem, que necesita 4,5. Un degradado entre las dos paradas
       oscuras se mantiene entre 8,05 y 5,87 en todo su recorrido y se sigue
       leyendo como marca. */
    background: linear-gradient(135deg, #9E1140, var(--primary-text)); color: #fff;
    font-family: var(--font-display); font-size: .9rem; font-weight: 700;
}
.unico h3 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.015em; margin: 0 0 .35rem; }
.unico-frase { font-size: 1rem; font-weight: 600; color: var(--primary-text); margin: 0 0 .6rem; line-height: 1.5; }
.unico-detalle { font-size: .92rem; line-height: 1.75; color: var(--muted-foreground); margin: 0; }
/* El impacto va aparte y a la derecha: es la respuesta a «¿y esto qué me
   ahorra?», que es lo que de verdad se quiere saber. */
.unico-impacto {
    border-left: 3px solid var(--brand-green);
    padding: .1rem 0 .1rem 1rem;
    font-size: .88rem;
    line-height: 1.65;
    color: #3f3f46;
}
.unico-impacto b { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: #047857; margin-bottom: .3rem; }

@media (max-width: 900px) {
    .unico { grid-template-columns: 38px minmax(0, 1fr); }
    .unico-impacto { grid-column: 2; margin-top: .5rem; }
}
@media (max-width: 560px) {
    .unico { grid-template-columns: 1fr; gap: .9rem; }
    .unico-impacto { grid-column: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LANDINGS DE CAMPAÑA (lp/)
   Sin navegación a propósito: se ha pagado por esa visita y cada enlace del
   menú es una salida. Solo hay dos destinos posibles — el formulario o la
   página orgánica al final.
   ══════════════════════════════════════════════════════════════════════════ */
.lp-cab { border-bottom: 1px solid var(--brand-border); padding: 1rem 0; background: #fff; }
.lp-cab .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-hero {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: radial-gradient(900px 420px at 80% -10%, rgba(233,30,99,.12), transparent 60%), #fff;
}
.lp-grid { display: grid; grid-template-columns: 1.15fr minmax(0, 400px); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lp-grid > * { min-width: 0; }
.lp-hero .lede-xl { margin: 1.25rem 0 1.75rem; }

.lp-puntos { list-style: none; margin: 0 0 2rem; padding: 0; }
.lp-puntos li {
    position: relative; padding-left: 1.9rem; margin-bottom: .75rem;
    font-size: 1rem; line-height: 1.7; color: #3f3f46;
}
.lp-puntos li::before {
    content: "✓"; position: absolute; left: 0; top: -.05rem;
    width: 1.3rem; height: 1.3rem; border-radius: 50%;
    background: rgba(16,185,129,.13); color: #047857;
    font-size: .72rem; font-weight: 700;
    display: grid; place-items: center;
}
.lp-prueba { border-left: 3px solid var(--primary); padding-left: 1.1rem; }
.lp-prueba b { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; color: var(--primary); }
.lp-prueba span { display: block; font-size: .88rem; color: var(--muted-foreground); margin-top: .4rem; }

.lp-form {
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-3xl);
    padding: 1.75rem;
    box-shadow: 0 24px 60px -26px rgba(26,26,26,.28);
    position: sticky; top: 100px;
}
.lp-form h2 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.lp-form > p { font-size: .9rem; line-height: 1.65; color: var(--muted-foreground); margin: 0 0 1.25rem; }
.lp-form form { display: flex; flex-direction: column; gap: .65rem; }
.lp-form input[type="text"], .lp-form input[type="email"], .lp-form input[type="tel"] {
    width: 100%;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: .8rem 1rem;
    font-family: var(--font-inter);
    font-size: .95rem;
}
.lp-form input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.lp-form button {
    background: var(--brand-gradient); color: #fff; border: 0;
    border-radius: var(--radius-lg); padding: .9rem 1rem;
    font-family: var(--font-inter); font-weight: 700; font-size: 1rem;
    cursor: pointer; margin-top: .3rem;
}
.lp-consent { display: flex; align-items: flex-start; gap: .5rem; font-size: .78rem; line-height: 1.5; color: var(--muted-foreground); }
.lp-consent input { margin-top: .18rem; accent-color: var(--primary); }
.lp-consent a { color: var(--primary-text); }
.lp-legal { font-size: .78rem; color: var(--text-3); text-align: center; margin: .9rem 0 0; }

@media (max-width: 900px) {
    .lp-grid { grid-template-columns: 1fr; }
    .lp-form { position: static; }
}

/* Glosario: <dl> con el término destacado. Va marcado como DefinedTermSet en
   JSON-LD, así que un asistente puede citar la definición atribuyéndola. */
.glosario { margin: 1.5rem 0 2rem; }
.glosario dt {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 600;
    color: var(--foreground);
    margin-top: 1.4rem;
}
.glosario dt:first-child { margin-top: 0; }
.glosario dd {
    margin: .4rem 0 0;
    padding-left: 1rem;
    border-left: 2px solid var(--brand-border);
    font-size: .96rem; line-height: 1.8; color: #3f3f46;
}

/* Selector de idioma. Los idiomas sin traducir para esa página se muestran
   apagados en vez de desaparecer: así se ve que el idioma existe y no parece
   que la web esté rota. Es el mismo criterio del centro de ayuda. */
.lang { display: inline-flex; align-items: center; gap: 2px; margin: 0 .35rem; }
.lang-item {
    font-size: .74rem; font-weight: 600;
    padding: .25rem .42rem; border-radius: 6px;
    color: var(--muted-foreground); text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
a.lang-item:hover { background: #f4f4f5; color: var(--foreground); }
.lang-item.is-active { color: var(--primary-text); font-weight: 700; }
.lang-item.is-off { color: #d4d4d8; cursor: default; }
@media (max-width: 1100px) { .lang { display: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   SUELO DE TAMAÑO DE TEXTO EN MÓVIL
   Varias etiquetas del sitio están en 0,65–0,70rem, que en escritorio se leen
   bien pero en un móvil de 320px quedan por debajo de 11px. Es el umbral por
   debajo del cual iOS empieza a proponer zoom y donde el texto deja de ser
   cómodo. Se sube el suelo solo en móvil, sin tocar el escritorio.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .rec-tipo, .novedad-tag, .kb-tag, .canal-tags span, .integ-badge,
    .rec-card-foot, .art-meta, .footer-badge, .footer-bottom p,
    .plan-etiqueta, .unico-impacto b, .art-claves p, .ejemplo-head,
    .caso-card-perfil, .caso-card-cifras span, .lp-consent, .lp-legal,
    .news-legal, .news-consent, .shot-caption, .miga { font-size: 0.78rem; }

    .caso-cifras-hero span, .hero2-cifras span, .metricas div span,
    .bi-kpis span, .plan-nota, .sumario p, .eyebrow { font-size: 0.75rem; }

    /* Objetivos táctiles: 40px es el mínimo cómodo con el pulgar. */
    .rec-filtro, .tab, .lang-item { min-height: 40px; display: inline-flex; align-items: center; }
    .footer-col a { padding: 0.3rem 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SELECTOR DE IDIOMA
   Desplegable con bandera y nombre del idioma escrito en ese idioma. La
   bandera sola sería ambigua —un idioma no es un país— pero acompañada del
   nombre se reconoce mucho más rápido que dos letras sueltas.
   ══════════════════════════════════════════════════════════════════════════ */
.lang-sel { position: relative; margin: 0 .2rem; }
.lang-boton {
    display: inline-flex; align-items: center; gap: .35rem;
    background: transparent; border: 1px solid transparent;
    border-radius: 999px; padding: .35rem .6rem;
    font-family: var(--font-inter); font-size: .82rem; font-weight: 500;
    color: var(--muted-foreground); cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.lang-boton:hover, .lang-sel:hover .lang-boton { background: #f7f7f8; border-color: var(--brand-border); color: var(--foreground); }
.lang-bandera { font-size: 1.05rem; line-height: 1; }
.lang-chevron { font-size: .6rem; color: var(--text-3); }

.lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 44px -18px rgba(26,26,26,.28);
    padding: .35rem;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 1100;
}
.lang-menu-titulo {
    margin: 0; padding: .45rem .65rem .35rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .08em;
    line-height: 1.25; text-transform: uppercase; color: var(--text-3);
}
/* Se abre al pasar por encima y también al enfocar con teclado, para que se
   pueda llegar tabulando. */
.lang-sel:hover .lang-menu,
.lang-sel:focus-within .lang-menu,
.lang-sel.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-op {
    display: flex; align-items: center; gap: .55rem;
    padding: .5rem .65rem; border-radius: var(--radius-md);
    font-size: .88rem; color: #3f3f46; text-decoration: none;
    white-space: nowrap;
}
a.lang-op:hover { background: #f7f7f8; color: var(--primary-text); }
.lang-op.is-active { font-weight: 700; color: var(--primary-text); background: rgba(233,30,99,.06); }
.lang-op.is-off { color: var(--text-3); cursor: default; }
.lang-op small { margin-left: auto; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }

@media (max-width: 1100px) { .lang-sel { display: none; } }

.lang-sel-cabecera { margin-left: .35rem; }
.lang-sel-cabecera .lang-boton {
    width: 42px; height: 42px; justify-content: center; padding: 0;
    border-color: var(--brand-border); background: #fff;
}
.lang-sel-cabecera .lang-corto,
.lang-sel-movil .lang-corto {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lang-sel-movil { display: none; margin: .65rem 1rem; width: max-content; }
.lang-sel-movil .lang-boton { min-width: 48px; min-height: 44px; border-color: var(--brand-border); background: #fff; }
.lang-sel-movil .lang-menu { left: 0; right: auto; }
@media (max-width: 1100px) {
    .lang-sel-cabecera { display: none; }
    .lang-sel-movil { display: block !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   A QUIÉN SE LE PIDE
   Filas y no tarjetas: cada grupo necesita tres cosas —quiénes son, qué se les
   pide y por qué es distinto— y en una tarjeta estrecha eso se lee mal.
   ══════════════════════════════════════════════════════════════════════════ */
.aquien { border-top: 1px solid var(--brand-border); }
.aquien-fila {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 280px);
    gap: 1.75rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--brand-border);
    align-items: start;
}
.aquien-grupo b { display: block; font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.012em; margin-bottom: .3rem; }
.aquien-grupo span { display: block; font-size: .84rem; line-height: 1.6; color: var(--primary-text); }
.aquien-ej { font-size: .94rem; line-height: 1.75; color: #3f3f46; }
.aquien-det { font-size: .86rem; line-height: 1.7; color: var(--muted-foreground); border-left: 2px solid var(--brand-border); padding-left: 1rem; }

@media (max-width: 900px) {
    .aquien-fila { grid-template-columns: 1fr; gap: .6rem; }
    .aquien-det { border-left: 0; border-top: 1px solid var(--brand-border); padding: .6rem 0 0; }
}

/* El selector vive en el pie, abajo a la derecha. Al estar al final de la
   página, el desplegable tiene que abrirse hacia arriba o se saldría. */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lang-sel-pie .lang-menu { top: auto; bottom: calc(100% + 6px); transform: translateY(6px); }
.lang-sel-pie:hover .lang-menu,
.lang-sel-pie:focus-within .lang-menu { transform: translateY(0); }
.lang-sel-pie { display: block !important; margin: 0; }
@media (max-width: 640px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════════════════
   AVISO DE IDIOMA
   Abajo a la izquierda, discreto y descartable. No tapa el contenido ni el
   selector del pie, y la decisión se recuerda para no volver a preguntar.
   ══════════════════════════════════════════════════════════════════════════ */
.idioma-aviso {
    position: fixed;
    left: 1rem; bottom: 1rem;
    z-index: 1200;
    display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
    max-width: min(460px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 48px -20px rgba(26,26,26,.32);
    padding: .8rem 1rem;
    font-size: .88rem;
    opacity: 0; transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
}
.idioma-aviso.is-visible { opacity: 1; transform: translateY(0); }
.idioma-aviso-bandera { font-size: 1.2rem; line-height: 1; }
.idioma-aviso-txt { color: #3f3f46; }
.idioma-aviso-si {
    background: var(--primary); color: #fff;
    border-radius: 999px; padding: .35rem .9rem;
    font-weight: 600; font-size: .82rem; text-decoration: none;
}
.idioma-aviso-no {
    background: transparent; border: 0;
    color: var(--muted-foreground); font-family: var(--font-inter);
    font-size: .82rem; cursor: pointer; text-decoration: underline;
    padding: .35rem 0;
}
@media (prefers-reduced-motion: reduce) { .idioma-aviso { transition: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   CUÁNDO NO ENCAJAMOS
   Sin adornos de marca ni degradados: esta página tiene que leerse como un
   documento honesto, no como una pieza de marketing. El único color es el
   ámbar del veredicto, que es lo que se escanea.
   ══════════════════════════════════════════════════════════════════════════ */
.noencaja-item { padding: 1.75rem 0; border-bottom: 1px solid var(--brand-border); }
.noencaja-item:first-child { padding-top: 0; }
.noencaja-item h2 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.018em; margin: 0 0 .5rem; }
.noencaja-veredicto {
    display: inline-block;
    font-size: .88rem; font-weight: 700;
    color: #b45309; background: #fffbeb;
    border: 1px solid rgba(245,158,11,.35);
    border-radius: 999px; padding: .25rem .8rem;
    margin: 0 0 .9rem;
}
.noencaja-porque { font-size: 1rem; line-height: 1.8; color: #3f3f46; margin: 0 0 1rem; }
.noencaja-donde {
    font-size: .94rem; line-height: 1.7; color: var(--muted-foreground);
    border-left: 3px solid var(--brand-green); padding-left: 1rem; margin: 0;
}
.noencaja-donde b { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #047857; margin-bottom: .25rem; }

.matiz { background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-2xl); padding: 1.75rem; margin-bottom: 1.25rem; }
.matiz h3 { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.018em; margin: 0 0 1rem; }
.matiz-obj {
    margin: 0 0 1.1rem; padding-left: 1.1rem;
    border-left: 3px solid var(--brand-border);
    font-size: 1rem; line-height: 1.75; color: #52525b; font-style: italic;
}
.matiz-resp { font-size: 1rem; line-height: 1.8; color: #3f3f46; margin: 0 0 1.25rem; }
.matiz-hechos { margin: 0 0 1.25rem; }
.matiz-hechos dt { font-weight: 600; font-size: .95rem; color: var(--foreground); margin-top: 1rem; }
.matiz-hechos dt:first-child { margin-top: 0; }
.matiz-hechos dd { margin: .3rem 0 0; font-size: .94rem; line-height: 1.75; color: var(--muted-foreground); }
/* Lo que no tenemos, en rojo y sin suavizar. Es la parte que da credibilidad
   a todo lo anterior; esconderla la anularía. */
.matiz-honesto {
    background: #fef2f2; border-left: 3px solid #dc2626;
    border-radius: var(--radius-md);
    padding: .9rem 1.1rem; margin: 0;
    font-size: .94rem; line-height: 1.75; color: #7f1d1d;
}
.matiz-honesto b { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .3rem; }

/* Las tres pruebas de categoría. Numeradas porque es un argumento en tres
   pasos —el problema existe, las grandes lo pagan, por eso el diseño es el
   contrario— y el orden importa. */
.pruebas { display: flex; flex-direction: column; gap: 1.75rem; }
.prueba { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.prueba-n {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    color: var(--primary); line-height: 1; letter-spacing: -.02em; padding-top: .15rem;
}
.prueba h2 { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: -.018em; margin: 0 0 .5rem; line-height: 1.3; }
.prueba p { font-size: 1.02rem; line-height: 1.8; color: #3f3f46; margin: 0; }
@media (max-width: 640px) { .prueba { grid-template-columns: 1fr; gap: .5rem; } }

/* ══════════════════════════════════════════════════════════════════════════
   CÓMO SE HACE
   Formato de procedimiento: se lee con el sistema oficial abierto en otra
   pestaña, así que los pasos tienen que ser escaneables y el número visible
   para no perder el sitio al volver.
   ══════════════════════════════════════════════════════════════════════════ */
.como-hero { background: linear-gradient(180deg, #eef4fb 0%, #ffffff 100%); }
.rec-tipo-como { background: rgba(29,79,145,.1); color: #1d4f91; }

.antes-empezar {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-2xl);
    background: #fafafa;
    padding: 1.35rem 1.6rem;
    margin: 0 0 2.25rem;
}
.antes-tit {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .09em; color: var(--text-3); margin: 0 0 .7rem;
}
.antes-empezar ul { margin: 0; padding-left: 1.1rem; }
.antes-empezar li { font-size: .95rem; line-height: 1.7; margin-bottom: .4rem; color: #3f3f46; }

.pasos { list-style: none; counter-reset: paso; margin: 0 0 2.25rem; padding: 0; }
.pasos > li {
    counter-increment: paso;
    position: relative;
    padding: 0 0 1.5rem 3.2rem;
    border-left: 2px solid var(--brand-border);
    margin-left: 1rem;
}
.pasos > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.pasos > li::before {
    content: counter(paso);
    position: absolute; left: -1.05rem; top: 0;
    width: 2.1rem; height: 2.1rem;
    background: #1d4f91; color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display); font-size: .88rem; font-weight: 700;
}
.pasos h2 {
    font-family: var(--font-display); font-size: 1.12rem;
    letter-spacing: -.015em; margin: .15rem 0 .5rem !important; line-height: 1.35;
}
.pasos p { font-size: 1rem; line-height: 1.8; color: #3f3f46; margin: 0; }

.errores { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0 2.25rem; }
.error-item {
    border: 1px solid rgba(220,38,38,.28);
    background: #fef7f7;
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
}
.error-item b { display: block; font-family: var(--font-display); font-size: .98rem; color: #991b1b; margin-bottom: .3rem; }
.error-item p { margin: 0; font-size: .94rem; line-height: 1.7; color: #7f1d1d; }

@media (max-width: 640px) {
    .pasos > li { padding-left: 2.6rem; margin-left: .8rem; }
    .pasos > li::before { width: 1.8rem; height: 1.8rem; left: -.9rem; font-size: .78rem; }
}

/* Compromisos de la página de confianza. */
.compromisos { display: flex; flex-direction: column; gap: 1.15rem; }
.compromiso { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.compromiso-n {
    font-family: var(--font-display); font-size: .95rem; font-weight: 700;
    color: #047857; background: rgba(16,185,129,.11);
    border-radius: 8px; width: 2.6rem; height: 2.6rem;
    display: grid; place-items: center;
}
.compromiso b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.012em; margin-bottom: .3rem; line-height: 1.35; }
.compromiso p { margin: 0; font-size: .96rem; line-height: 1.75; color: var(--muted-foreground); }
@media (max-width: 560px) { .compromiso { grid-template-columns: 1fr; gap: .5rem; } }

/* Índice de procedimientos: dos ejes de filtrado. */
.filtro-etq { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin: 0 0 .6rem; }
.rec-filtros + .filtro-etq { margin-top: 1.25rem; }
.rec-filtro-sec.is-active { background: #1d4f91; border-color: #1d4f91; }
.cuenta-comos { font-size: .82rem; color: var(--muted-foreground); margin: 1.5rem 0 1rem; }
.vacio-comos { text-align: center; padding: 2.5rem 0; color: var(--muted-foreground); }

/* ══════════════════════════════════════════════════════════════════════════
   TARJETAS DE PROCEDIMIENTO
   Con doscientas tarjetas en la misma rejilla, el filtro no basta: hace falta
   poder escanear visualmente. La barra de color y el icono dicen de qué eje es
   cada una sin tener que leer nada, que es la diferencia entre una rejilla
   navegable y un muro.
   ══════════════════════════════════════════════════════════════════════════ */
.como-card { position: relative; padding-left: 1.65rem; overflow: hidden; }
.como-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--eje-color);
}
.como-marca {
    position: absolute; top: 1.1rem; right: 1.1rem;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 7px;
    background: color-mix(in srgb, var(--eje-color) 12%, transparent);
    color: var(--eje-color);
}
.como-marca svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.como-card .rec-tipo { max-width: calc(100% - 2.4rem); }

.como-sector        { --eje-color: #1d4f91; }
.como-segmento      { --eje-color: #7c3aed; }
.como-funcionalidad { --eje-color: #E91E63; }
.como-rol           { --eje-color: #047857; }

/* Los chips de eje toman el color del eje que representan: así el filtro
   activo y las tarjetas visibles hablan el mismo idioma visual. */
#filtros-eje .rec-filtro[data-eje="sector"].is-active        { background: #1d4f91; border-color: #1d4f91; }
#filtros-eje .rec-filtro[data-eje="segmento"].is-active      { background: #7c3aed; border-color: #7c3aed; }
#filtros-eje .rec-filtro[data-eje="funcionalidad"].is-active { background: #E91E63; border-color: #E91E63; }
#filtros-eje .rec-filtro[data-eje="rol"].is-active           { background: #047857; border-color: #047857; }

/* ══════════════════════════════════════════════════════════════════════════
   MAPA DE COBERTURA
   Cuatro puertas de entrada a los mismos 200 procedimientos, una por forma de
   buscar. La cifra grande es el mensaje: la profundidad se demuestra con el
   número, no diciendo que se es profundo.
   ══════════════════════════════════════════════════════════════════════════ */
.mapa { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.mapa-eje {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-top: 4px solid var(--eje-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    text-decoration: none; color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}
.mapa-eje:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--eje-color) 40%, transparent); }
.mapa-n {
    font-family: var(--font-display);
    font-size: 2.6rem; font-weight: 700; line-height: 1;
    letter-spacing: -.04em; color: var(--eje-color);
    font-variant-numeric: tabular-nums;
}
.mapa-eje b { font-family: var(--font-display); font-size: 1.05rem; margin: .6rem 0 .2rem; letter-spacing: -.012em; }
.mapa-cuando { font-size: .84rem; color: var(--muted-foreground); margin-bottom: .8rem; }
.mapa-ej { font-size: .8rem; line-height: 1.6; color: var(--text-3); margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--brand-border); }
.mapa-pie { text-align: center; margin: 1.75rem 0 0; font-size: .92rem; color: var(--muted-foreground); }
.mapa-pie a { color: var(--primary-text); font-weight: 600; text-decoration: none; }

.mapa-sector        { --eje-color: #1d4f91; }
.mapa-segmento      { --eje-color: #7c3aed; }
.mapa-funcionalidad { --eje-color: #E91E63; }
.mapa-rol           { --eje-color: #047857; }

/* ── Cómo se hace: portada de la colección ───────────────────────────────── */
.como-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; }
.como-hero-grid > * { min-width: 0; }
.como-hero-cifras { display: flex; gap: 2.25rem; margin-top: 2rem; flex-wrap: wrap; }
.como-hero-cifras b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.como-hero-cifras span { font-size: .875rem; color: var(--text-3); }

.como-leyenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.como-leyenda li { display: grid; grid-template-columns: 2rem auto 1fr; gap: .25rem .75rem; align-items: center;
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--eje-color);
  border-radius: var(--r-md); padding: .8rem 1rem; }
.como-leyenda .como-marca { position: static; grid-row: span 2; }
.como-leyenda b { font-size: 1.35rem; font-weight: 800; color: var(--eje-color); font-variant-numeric: tabular-nums; }
.como-leyenda-t { font-weight: 700; font-size: .9375rem; color: var(--text-1); }
.como-leyenda-d { grid-column: 3 / -1; font-size: .8125rem; color: var(--text-3); line-height: 1.45; }

.como-buscador { display: flex; align-items: center; gap: .65rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: .2rem .3rem .2rem 1rem;
  margin: 0 0 1.75rem; transition: border-color .15s, box-shadow .15s; }
.como-buscador:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(233, 30, 99, .12); }
.como-buscador svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 1.9; stroke-linecap: round; }
.como-buscador input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; padding: .85rem .5rem; color: var(--text-1); }
.como-buscador input::placeholder { color: var(--text-3); }

@media (max-width: 860px) {
  .como-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .como-hero-cifras { gap: 1.5rem; }
  .como-buscador input { font-size: 16px; }
}

/* ── El pantallazo dentro del hero ───────────────────────────────────────────
   `.shot-app` pide 720 px porque a menos que eso la interfaz simulada deja de
   parecerse a la real. Pero la columna del hero mide unos 570 px en pantalla
   grande, así que la mitad derecha se cortaba. Aquí, y solo aquí, la maqueta
   encoge de verdad: barra lateral más estrecha, tipografía un punto menor y
   los bloques internos con permiso para envolver. */
.hero2 .shot { margin: 0; }
.hero2 .shot-app { min-width: 0; grid-template-columns: 150px 1fr; font-size: 0.94em; }
.hero2 .shot-side { padding: 0.85rem 0.55rem; }
.hero2 .shot-body { overflow-x: visible; }
.hero2 .firma { grid-template-columns: auto 1fr; row-gap: 0.35rem; }
.hero2 .firma-nivel { grid-column: 2 / -1; }
.hero2 .firma-est { grid-column: 2 / -1; }
.hero2 .shot-bar { flex-wrap: wrap; row-gap: 0.4rem; }
/* En el hero, la rejilla de carpetas pasa de cuatro a dos columnas: con cuatro
   a 570 px cada tarjeta se queda en 120 px y el nombre de la carpeta no cabe. */
.hero2 .carp-grid { grid-template-columns: repeat(2, 1fr); }
.hero2 .carp-exp-barra { width: 60px; }

/* ── Franja de clientes ──────────────────────────────────────────────────────
   Antes se pintaba por JavaScript y el HTML servía un contenedor vacío. Los 25
   nombres son la prueba social más fuerte que hay en la web; ahora están en el
   marcado. El movimiento es decorativo: si el sistema pide menos animación,
   la cinta se queda quieta y se puede arrastrar. */
.clientes { padding: 3.25rem 0; border-block: 1px solid var(--brand-border); background: #fff; overflow: hidden; }
.clientes-t { text-align: center; font-size: .72rem; font-weight: 700; color: var(--text-3);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2rem; }
.clientes-cinta { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.clientes-tira { display: flex; width: max-content; gap: 3rem; animation: cli-desliza 60s linear infinite; }
.clientes-cinta:hover .clientes-tira { animation-play-state: paused; }
.cli { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.45rem; font-weight: 700;
  color: #6b7280; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  transition: color .25s; }
.cli:hover { color: var(--primary-text); }
/* La tira lleva la lista dos veces; -50 % la deja exactamente donde empezó. */
@keyframes cli-desliza { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .clientes-tira { animation: none; }
  .clientes-cinta { overflow-x: auto; }
}
@media (max-width: 640px) {
  .clientes { padding: 2.5rem 0; }
  .clientes-tira { gap: 2rem; }
  .cli { font-size: 1.15rem; }
}

/* ── Marcas de la comparativa ────────────────────────────────────────────────
   La tabla era diez filas de texto corrido: había que leerla entera para saber
   quién resuelve qué. Cada celda lleva ahora su marca —resuelve, a medias, no—
   para que la forma de la tabla se vea antes de leer una sola palabra. El
   símbolo es decorativo; el lector de pantalla oye la palabra en `.cmp-sr`. */
.comparativa td { --cmp-color: var(--text-3); }
.comparativa td.cmp-si { --cmp-color: #047857; }
.comparativa td.cmp-medio { --cmp-color: #b45309; }
.comparativa td.cmp-no { --cmp-color: #b91c1c; }

.comparativa tbody td { display: table-cell; }
.cmp-marca { display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; margin-right: .5rem; vertical-align: -.2rem;
  border-radius: 50%; background: color-mix(in srgb, var(--cmp-color) 12%, transparent); }
.cmp-marca svg { width: 11px; height: 11px; fill: none; stroke: var(--cmp-color); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp-txt { color: var(--text-2, #3f3f46); }
.comparativa td.cmp-no .cmp-txt { color: var(--text-3); }
/* Solo para lectores de pantalla: fuera de la vista pero dentro del árbol. */
.cmp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.comparativa tbody th[scope="row"] { font-weight: 600; width: 26%; text-align: left;
  font-size: .92rem; color: var(--text-1); }
/* La marca ocupa 1,65 rem (1,15 de círculo + 0,5 de hueco). Sangrando la
   primera línea esa misma medida en negativo, las líneas siguientes caen
   alineadas con el texto y no bajo el icono. */
.comparativa tbody td { padding-left: calc(1.1rem + 1.65rem); text-indent: -1.65rem; }
.comparativa tbody td .cmp-txt { text-indent: 0; }

/* ── Mapa de la biblioteca, en la portada de Recursos ────────────────────────
   La portada abría con dos frases y bajaba directa al primer bloque: no se
   veía en ningún sitio cuánto hay. Las cinco cifras dicen el tamaño de lo que
   hay detrás y, de paso, hacen de índice: cada una salta a su sección. */
.rec-mapa { list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.rec-mapa a { display: block; height: 100%; text-decoration: none; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.1rem;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.rec-mapa a:hover { border-color: var(--primary); transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(233, 30, 99, .45); }
.rec-mapa b { display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1;
  letter-spacing: -.03em; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.rec-mapa-q { display: block; margin-top: .3rem; font-size: .875rem; font-weight: 700; color: var(--text-1); }
.rec-mapa-d { display: block; margin-top: .15rem; font-size: .78rem; color: var(--text-3); line-height: 1.4; }

/* ── Los ocho límites, en rejilla ────────────────────────────────────────────
   Eran ocho bloques a todo lo ancho, uno debajo de otro: había que bajar mucho
   para ver que la lista era larga, y lo que hace fuerte a esta página es
   precisamente que sea larga. En dos columnas se ve entera de un vistazo.
   Los títulos pasan de <h2> a <h3>: colgaban del mismo nivel que el titular de
   la sección, lo que dejaba el esquema del documento con nueve h2 seguidos. */
.noencaja { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.noencaja-item { position: relative; padding: 1.5rem 1.6rem 1.4rem; border: 1px solid var(--border);
  border-bottom: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.noencaja-item:first-child { padding-top: 1.5rem; }
.noencaja-n { position: absolute; top: 1.5rem; right: 1.4rem; font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; color: #d4d4d8; font-variant-numeric: tabular-nums; }
.noencaja-item h3 { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: -.018em;
  margin: 0 0 .5rem; padding-right: 2rem; }
.noencaja-porque { font-size: .95rem; }
.noencaja-donde { margin-bottom: 0; }
/* «La diferencia» de cada categoría de la comparativa. Era un `style=` en
   línea repetido siete veces; con clase se traduce sin arrastrar el color. */
.cmp-dif { color: var(--primary-text); }

/* ── El hero en pantallas bajas ──────────────────────────────────────────────
   La maqueta mide bastante más que la columna de texto, y con `align-items:
   center` el texto se centraba contra ella: en un portátil de 768 px de alto
   los botones caían por debajo del pliegue en los cinco idiomas —incluido el
   chino, que es el titular más corto—, así que no era cuestión de acortar
   copia. Aquí el texto se alinea arriba y el hueco superior se recorta. */
@media (min-width: 861px) and (max-height: 940px) {
  .hero2 { padding-top: clamp(5rem, 8vh, 7rem); padding-bottom: 2.5rem; }
  .hero2-grid { align-items: start; }
  .hero2-cifras { margin-top: 2rem; }
}
/* Fecha de revisión de un procedimiento. Discreta pero presente: una página
   sobre normativa sin fecha se lee como una página que puede estar obsoleta. */
.art-revisado { font-size: .84rem; color: var(--text-3); margin: 2rem 0 1rem;
  padding-top: 1rem; border-top: 1px solid var(--line-soft, var(--border)); }
/* Etiqueta de escenario modelado en la tarjeta de caso. Va junto al sector,
   no en su lugar: el sector sigue siendo el filtro y esto es una advertencia. */
.rec-tipo-modelo { background: var(--tuyo-soft, #FBEDDF); color: #9A4A05; margin-left: .4rem; }
/* La frase de categoría bajo el hero. Es lo que le dice a un buscador y a un
   modelo «qué es esto» con las palabras del mercado; el titular es el gancho
   y no puede hacer las dos cosas a la vez. */
.hero2-categoria { max-width: 68ch; margin: 2.5rem 0 0; font-size: 1rem;
  line-height: 1.75; color: var(--text-2); padding-left: 1rem;
  border-left: 3px solid var(--primary); }
.hero2-categoria b { color: var(--text-1); }

/* ═══ El recorrido del hero ══════════════════════════════════════════════════
   Un documento de punta a punta, sin cromo de ventana: no es una pantalla del
   producto, es lo que ocurre entre que lo pides y lo tienes. La línea vertical
   la dibuja el ::before de la lista, no un borde por paso, para que no se
   parta entre las tarjetas. */
.flujo { margin: 0; display: flex; flex-direction: column; gap: .55rem; }

.flujo-pide, .flujo-final {
    background: var(--card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 1.1rem 1.25rem;
}
.flujo-pide { border-color: var(--brand-pink); }
.flujo-pide b, .flujo-final b { display: block; font-size: 1.02rem; line-height: 1.35; margin-bottom: .2rem; }
.flujo-pide p, .flujo-final p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--muted-foreground); }
.flujo-final {
    /* Tinte claro, no `--brand-light-pink`: ese token es #F0509E, un rosa
       fuerte, y el texto secundario encima se quedaba en 1,61:1. */
    background: #fdf2f6;
    border-color: var(--brand-pink);
}
.flujo-final b { color: var(--primary-text); }

.flujo-etiq {
    display: inline-block;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted-foreground);
    border: 1px solid var(--brand-border); border-radius: 999px;
    padding: .12rem .5rem; margin-bottom: .5rem;
}
.flujo-etiq-tuyo { color: var(--primary-text); border-color: var(--brand-pink); }

.flujo-pasos { position: relative; list-style: none; margin: 0; padding: .15rem 0 .15rem 1.6rem; }
.flujo-pasos::before {
    content: ""; position: absolute; left: .34rem; top: .9rem; bottom: .9rem;
    width: 2px; background: var(--brand-border);
}
.flujo-paso { position: relative; display: flex; align-items: baseline; gap: .7rem; padding: .42rem 0; }
.flujo-paso::before {
    content: ""; position: absolute; left: -1.5rem; top: .82rem;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--background); border: 2px solid var(--brand-pink);
}
.flujo-cuando {
    flex: 0 0 5.4rem;
    font-size: .72rem; font-variant-numeric: tabular-nums;
    color: var(--muted-foreground); padding-top: .16rem;
}
.flujo-txt b { display: block; font-size: .93rem; line-height: 1.4; }
.flujo-txt p { margin: .1rem 0 0; font-size: .84rem; line-height: 1.55; color: var(--muted-foreground); }
.flujo-paso .flujo-etiq { margin: 0 0 0 auto; align-self: center; flex: none; }

@media (max-width: 560px) {
    .flujo-paso { flex-wrap: wrap; gap: .15rem .7rem; }
    .flujo-cuando { flex-basis: auto; }
    .flujo-paso .flujo-etiq { margin-left: 0; }
}

/* ═══ La cuenta de lo que cuesta hoy ════════════════════════════════════════
   Una multiplicación en vertical, no una calculadora. Los signos van con
   aria-hidden porque un lector de pantalla que anuncia «por, por, igual»
   entre tres tarjetas no aporta nada: el texto de cada fila ya lo dice. */
.cuenta { display: flex; flex-direction: column; align-items: stretch; gap: .35rem; max-width: 760px; margin-inline: auto; }

.cuenta-fila {
    display: flex; align-items: baseline; gap: .9rem;
    background: var(--card); border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl); padding: 1rem 1.25rem;
}
.cuenta-n {
    flex: 0 0 3.6rem;
    font-family: var(--font-display); font-size: 1.6rem; line-height: 1;
    font-variant-numeric: tabular-nums; color: var(--primary-text);
}
.cuenta-fila b { flex: 0 0 auto; font-size: .98rem; }
.cuenta-fila > span:last-child { font-size: .86rem; line-height: 1.5; color: var(--muted-foreground); }

.cuenta-op, .cuenta-igual {
    text-align: center; font-size: 1.05rem; color: var(--muted-foreground);
    line-height: 1; padding: .1rem 0;
}
.cuenta-igual { font-size: 1.3rem; }

.cuenta-total {
    background: #fdf2f6; border: 1px solid var(--brand-pink);
    border-radius: var(--radius-xl); padding: 1.25rem 1.4rem; margin-top: .35rem;
}
.cuenta-total b { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; color: var(--primary-text); margin-bottom: .4rem; }
.cuenta-total p { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--muted-foreground); }
.cuenta-total p b { display: inline; font-family: inherit; font-size: inherit; color: var(--foreground); }

@media (max-width: 620px) {
    .cuenta-fila { flex-wrap: wrap; gap: .2rem .8rem; }
    .cuenta-n { flex-basis: auto; }
    .cuenta-fila > span:last-child { flex: 1 0 100%; }
}

/* ═══ Lo que dejas de hacer ═════════════════════════════════════════════════
   Va debajo de la cuenta de horas a propósito: la cuenta dice lo que cuesta
   hoy y esta lista dice qué parte desaparece. Las tachaduras son decorativas
   —el «No» ya está en el texto—, así que el color no carga significado. */
.yano {
    list-style: none; margin: 2rem auto 0; padding: 0; max-width: 760px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem .9rem;
}
.yano li {
    position: relative; padding-left: 1.6rem;
    font-size: .95rem; line-height: 1.5; color: var(--muted-foreground);
}
.yano li::before {
    content: "×"; position: absolute; left: .35rem; top: -.02rem;
    font-size: 1.05rem; font-weight: 700; color: var(--primary-text);
}
.yano-pie {
    max-width: 760px; margin: 1.1rem auto 0;
    font-size: 1rem; font-weight: 600; color: var(--foreground);
}
@media (max-width: 620px) { .yano { grid-template-columns: 1fr; } }

/* La respuesta que decide una compra no puede ir de tarjeta entre otras. */
.respuesta-clave {
    max-width: 900px; margin: 0 0 1.6rem;
    font-size: 1.05rem; line-height: 1.7; color: var(--muted-foreground);
    border-left: 3px solid var(--brand-pink); padding-left: 1.1rem;
}
.respuesta-clave b { color: var(--foreground); }

/* ═══ La historia protagonista ══════════════════════════════════════════════
   Dos columnas de antes y después. La de la derecha no se pinta en verde de
   «resuelto»: lo que cambia son mecánicas, no un marcador. Y el párrafo de
   abajo dice lo que el escenario NO demuestra, que es lo que separa un
   escenario modelado de un caso de éxito inventado. */
.historia { max-width: 980px; margin-inline: auto; }

.historia-quien {
    background: var(--card); border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl); padding: 1.15rem 1.35rem; margin-bottom: 1rem;
}
.historia-etiq {
    display: inline-block; margin-bottom: .5rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--primary-text);
}
.historia-quien p { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--muted-foreground); }
.historia-quien b { color: var(--foreground); }

.historia-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.historia-col {
    background: var(--card); border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl); padding: 1.35rem;
}
.historia-col-b { background: #fdf2f6; border-color: var(--brand-pink); }
.historia-col h3 { font-size: 1.02rem; margin: 0 0 .85rem; }
.historia-col ul { margin: 0; padding-left: 1.1rem; }
.historia-col li { font-size: .89rem; line-height: 1.65; color: var(--muted-foreground); margin-bottom: .5rem; }
.historia-col li b { color: var(--foreground); }

.historia-honesto {
    margin: 1rem 0 0; padding: 1rem 1.2rem;
    border-left: 3px solid var(--brand-border);
    font-size: .89rem; line-height: 1.7; color: var(--muted-foreground);
}
.historia-honesto b { color: var(--foreground); }

@media (max-width: 780px) { .historia-cols { grid-template-columns: 1fr; } }

/* La matriz del Trust Center. El rojo no es decoración: marca las filas que
   hoy no podemos marcar, y están en la misma tabla que las demás a propósito.
   El color no va solo: cada celda dice «Todavía no» con todas las letras,
   para quien no distingue el rojo del verde. */
.matriz-seg td:first-child { font-weight: 600; }
.matriz-seg .mz-si { color: var(--muted-foreground); }
.matriz-seg .mz-no { color: var(--primary-text); font-weight: 600; }

/* ═══ La bifurcación de acceso ══════════════════════════════════════════════
   Las dos tarjetas pesan lo mismo a propósito. Marcar cuál se recomienda es
   legítimo; encoger la que alguien necesita hoy para entrar a trabajar, no.
   Lo que las distingue es el borde y la etiqueta, no el tamaño. */
.entrar-sec { padding-top: 7rem; }

.entrar-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
    max-width: 940px; margin: 0 auto;
}

.entrar-card {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl); padding: 1.75rem;
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.entrar-card[type="button"] {
    width: 100%; text-align: left; font: inherit; cursor: pointer;
}
.entrar-card:hover { border-color: var(--brand-pink); transform: translateY(-2px); }
.entrar-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.entrar-card-nueva { border-color: var(--brand-pink); background: #fdf2f6; }

.entrar-etiq {
    align-self: flex-start;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--primary-foreground); background: var(--primary-text);
    border-radius: 999px; padding: .22rem .6rem; margin-bottom: .9rem;
}
.entrar-etiq-fin { color: var(--foreground); background: transparent; border: 1px solid var(--brand-border); }

.entrar-card h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; margin: 0 0 .2rem; }
.entrar-dom {
    margin: 0 0 .9rem; font-size: .84rem; font-variant-numeric: tabular-nums;
    color: var(--muted-foreground); word-break: break-all;
}
.entrar-desc { margin: 0 0 1rem; font-size: .95rem; line-height: 1.65; color: var(--muted-foreground); }
.entrar-desc b { color: var(--foreground); }

.entrar-lista { margin: 0 0 1.5rem; padding-left: 1.05rem; }
.entrar-lista li { font-size: .88rem; line-height: 1.7; color: var(--muted-foreground); }

.entrar-btn {
    margin-top: auto; align-self: flex-start;
    background: linear-gradient(135deg, #9E1140, var(--primary-text)); color: var(--primary-foreground);
    font-weight: 600; font-size: .95rem;
    border-radius: 999px; padding: .7rem 1.3rem;
}
.entrar-btn-quiet {
    background: transparent; color: var(--primary-text);
    border: 1px solid var(--brand-border);
}

.entrar-aviso {
    max-width: 940px; margin: 2rem auto 0; padding: 1.1rem 1.3rem;
    border-left: 3px solid var(--brand-pink); background: var(--muted);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: .92rem; line-height: 1.7; color: var(--muted-foreground);
}
.entrar-aviso b { color: var(--foreground); }

.entrar-ayuda {
    max-width: 940px; margin: 1.25rem auto 0;
    font-size: .9rem; color: var(--muted-foreground);
}
.entrar-ayuda a { color: var(--primary-text); font-weight: 600; text-decoration: none; }
.entrar-ayuda a:hover { text-decoration: underline; }

.entrar-modal {
    position: fixed;
    inset: 0;
    width: min(640px, calc(100% - 2rem));
    max-height: min(760px, calc(100dvh - 2rem));
    margin: auto;
    padding: 2.25rem;
    overflow: auto;
    border: 1px solid rgba(220, 39, 71, .16);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fff 74%, #fff8fa 100%);
    color: var(--foreground);
    box-shadow: 0 32px 100px rgba(17, 24, 39, .32), 0 8px 24px rgba(17, 24, 39, .12);
}
.entrar-modal::backdrop { background: rgba(15, 23, 42, .68); backdrop-filter: blur(7px); }
.entrar-modal-icono {
    display: grid; place-items: center;
    width: 3.25rem; height: 3.25rem; margin: 0 auto 1.15rem;
    border-radius: 16px; color: #a50f3d;
    background: linear-gradient(145deg, #fff0f4, #fbd5df);
    box-shadow: inset 0 0 0 1px rgba(220, 39, 71, .12);
}
.entrar-modal-icono svg { width: 1.65rem; height: 1.65rem; }
.entrar-modal-cabecera { text-align: center; }
.entrar-modal-kicker {
    display: block; margin-bottom: .5rem;
    color: var(--primary-text); font-size: .72rem; font-weight: 800;
    letter-spacing: .09em; text-transform: uppercase;
}
.entrar-modal h2 { max-width: 510px; margin: 0 auto .9rem; font-family: var(--font-display); font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.12; letter-spacing: -.025em; }
.entrar-modal p { color: var(--muted-foreground); line-height: 1.65; }
.entrar-modal-cabecera > p { max-width: 520px; margin: .9rem auto 0; }
.entrar-modal-fecha {
    display: inline-flex; align-items: center; gap: .7rem;
    margin: .15rem auto 0; padding: .55rem .8rem;
    border: 1px solid #f1c2cf; border-radius: 999px; background: #fff4f7;
}
.entrar-modal-fecha span { color: #8f3150; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.entrar-modal-fecha strong { color: #7f1237; font-size: .88rem; }
.entrar-modal-cerrar {
    position: absolute; top: .85rem; right: .9rem;
    width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px;
    background: #f4f4f5; color: #52525b; font-size: 1.45rem; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.entrar-modal-cerrar:hover { background: #e4e4e7; transform: rotate(3deg); }
.entrar-modal-cerrar:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.entrar-modal-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.65rem; }
.entrar-modal-opcion {
    display: flex; align-items: center; gap: .75rem;
    min-height: 86px; padding: 1rem;
    border: 1px solid var(--brand-border); border-radius: 16px;
    color: var(--foreground); background: #fff; text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.entrar-modal-opcion:hover { transform: translateY(-2px); border-color: #d8879f; box-shadow: 0 10px 24px rgba(17, 24, 39, .08); }
.entrar-modal-opcion:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.entrar-modal-opcion-principal { color: #fff; border-color: transparent; background: linear-gradient(135deg, #9e1140, #dc2747); }
.entrar-modal-opcion-principal:hover { border-color: transparent; box-shadow: 0 12px 28px rgba(158, 17, 64, .25); }
.entrar-modal-opcion-icono { display: grid; place-items: center; flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 999px; background: rgba(127, 18, 55, .08); font-weight: 800; }
.entrar-modal-opcion-principal .entrar-modal-opcion-icono { background: rgba(255, 255, 255, .18); }
.entrar-modal-opcion strong, .entrar-modal-opcion small { display: block; }
.entrar-modal-opcion strong { font-size: .92rem; line-height: 1.3; }
.entrar-modal-opcion small { margin-top: .2rem; color: var(--muted-foreground); font-size: .74rem; line-height: 1.35; }
.entrar-modal-opcion-principal small { color: rgba(255, 255, 255, .78); }
.entrar-modal-nota { display: flex; justify-content: center; gap: .45rem; margin: 1.2rem 0 0; font-size: .78rem; text-align: center; }
.entrar-modal-nota span { color: #dc2747; font-size: .55rem; padding-top: .25rem; }

@media (max-width: 780px) {
    .entrar-grid { grid-template-columns: 1fr; }
    .entrar-sec { padding-top: 5.5rem; }
    .entrar-modal { width: min(100% - 1rem, 640px); max-height: calc(100dvh - 1rem); padding: 1.5rem 1.15rem; border-radius: 20px; }
    .entrar-modal-acciones { grid-template-columns: 1fr; }
    .entrar-modal-fecha { flex-direction: column; gap: .1rem; border-radius: 14px; }
}

/* La fuente oficial de cada procedimiento. Va discreta y debajo del resumen:
   quien lo necesita la busca, y quien no, no tropieza con ella. */
.como-fuente { margin: 1rem 0 0; font-size: .86rem; line-height: 1.6; color: var(--muted-foreground); }
.como-fuente a { color: var(--primary-text); font-weight: 600; text-decoration: none; }
.como-fuente a:hover { text-decoration: underline; }

/* La única cifra medida de toda la web. Va destacada porque es lo que no
   puede publicar nadie más, y con su periodo y su tamaño de muestra debajo:
   sin esas dos cosas, un número medido no se distingue de uno inventado. */
.como-dato {
    margin: 1.5rem 0 0; padding: 1.15rem 1.35rem;
    background: #fdf2f6; border: 1px solid var(--brand-pink);
    border-radius: var(--radius-xl);
}
.como-dato > b { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-text); margin-bottom: .5rem; }
.como-dato p { margin: 0; font-size: .95rem; line-height: 1.7; color: var(--muted-foreground); }
.como-dato p b { color: var(--foreground); }
.como-dato-pie { margin-top: .7rem !important; font-size: .82rem !important; }

/* ═══ El índice regulatorio ═════════════════════════════════════════════════
   Una lista, no una rejilla de tarjetas: son 110 normas y lo que hace el
   lector es buscar la suya, no pasearse. Cuatro columnas en escritorio —
   nombre, referencia, fecha y cobertura— que en móvil se apilan. */
.norma-bloque { margin-bottom: 3rem; }
.norma-bloque-head { border-bottom: 2px solid var(--foreground); padding-bottom: .6rem; margin-bottom: .3rem; }
.norma-bloque-head h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 .2rem; }
.norma-bloque-head p { margin: 0; font-size: .88rem; color: var(--muted-foreground); }
.norma-bloque-head b { color: var(--foreground); }

.norma-lista { list-style: none; margin: 0; padding: 0; }
.norma-item {
    display: grid; align-items: baseline;
    grid-template-columns: minmax(0, 1fr) 8.5rem 11rem 10rem;
    gap: .3rem 1rem;
    padding: .68rem 0; border-bottom: 1px solid var(--brand-border);
}
.norma-nombre { font-weight: 600; font-size: .97rem; color: var(--foreground); text-decoration: none; }
a.norma-nombre:hover { color: var(--primary-text); text-decoration: underline; }
.norma-celex { font-size: .8rem; font-variant-numeric: tabular-nums; }
.norma-celex a { color: var(--muted-foreground); text-decoration: none; }
.norma-celex a:hover { color: var(--primary-text); text-decoration: underline; }
.norma-fecha, .norma-cuenta { font-size: .8rem; color: var(--muted-foreground); }
.norma-item-vacia .norma-cuenta { font-style: italic; }

.norma-fuente {
    max-width: 62ch; margin-top: 1.2rem;
    font-size: .87rem; line-height: 1.7; color: var(--muted-foreground);
}
.norma-fuente b { color: var(--foreground); }

/* Los datos de la norma en su página: definiciones, no tarjetas. */
.norma-datos {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem 1.5rem; margin: 1.6rem 0 0; padding: 1.1rem 0;
    border-top: 1px solid var(--brand-border); border-bottom: 1px solid var(--brand-border);
}
.norma-datos div { margin: 0; }
.norma-datos dt {
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted-foreground); margin-bottom: .25rem;
}
.norma-datos dd { margin: 0; font-size: .93rem; font-variant-numeric: tabular-nums; }
.norma-datos a { color: var(--primary-text); font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
    .norma-item { grid-template-columns: 1fr; gap: .15rem; }
    .norma-celex, .norma-fecha, .norma-cuenta { font-size: .78rem; }
}
/* Enlace de salto visible al recibir foco por teclado. */
.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 10000;
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: #111827;
    color: #fff;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

/* Consentimiento: la analítica no se carga hasta una elección afirmativa. */
.cc-consent { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: end center; padding: 1rem; background: rgba(17,24,39,.42); backdrop-filter: blur(3px); }
.cc-consent-card { width: min(940px, 100%); padding: 1.35rem; border: 1px solid #e5e7eb; border-radius: 1.25rem; background: #fff; box-shadow: 0 24px 70px rgba(17,24,39,.22); display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem 1.5rem; }
.cc-consent-copy h2 { margin: .15rem 0 .45rem; font: 700 1.35rem/1.2 var(--font-display); }
.cc-consent-copy p { margin: 0 0 .55rem; color: var(--muted-foreground); line-height: 1.55; font-size: .92rem; }
.cc-consent-copy a { color: var(--primary-text); font-size: .87rem; font-weight: 650; }
.cc-consent-kicker { color: var(--primary-text); font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.cc-consent-options { display: grid; gap: .55rem; }
.cc-consent-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 1px solid #e5e7eb; border-radius: .75rem; color: var(--foreground); }
.cc-consent-row span { display: grid; }
.cc-consent-row small { color: var(--muted-foreground); }
.cc-consent-row input { width: 1.25rem; height: 1.25rem; accent-color: var(--primary); }
.cc-always { color: #047857; font-size: .78rem; font-weight: 700; }
.cc-consent-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.cc-btn { border: 1px solid #d1d5db; border-radius: .65rem; padding: .72rem 1rem; font: 650 .87rem/1 var(--font-body); cursor: pointer; background: #fff; color: var(--foreground); }
.cc-btn-primary { background: var(--foreground); color: #fff; border-color: var(--foreground); }
.cc-btn-save { border-color: var(--primary); color: var(--primary-text); }
.cc-cookie-settings { position: static; margin: .75rem; min-height: 44px; border: 1px solid #d1d5db; border-radius: 999px; padding: .45rem .7rem; background: #fff; color: #4b5563; box-shadow: 0 4px 18px rgba(17,24,39,.1); font: 600 .72rem/1 var(--font-body); cursor: pointer; }
@media (max-width: 720px) { .cc-consent-card { grid-template-columns: 1fr; max-height: calc(100vh - 2rem); overflow: auto; } .cc-consent-actions { justify-content: stretch; } .cc-btn { flex: 1 1 100%; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.form-consent { display: flex; align-items: flex-start; gap: .55rem; width: 100%; margin: .65rem 0; color: var(--muted-foreground); font-size: .76rem; line-height: 1.45; text-align: left; }
.form-consent input { flex: 0 0 auto; width: 1rem; height: 1rem; margin-top: .1rem; accent-color: var(--primary); }
.form-consent a { color: inherit; text-decoration: underline; }
.blog-platform-shot { margin: 0 0 2rem; border: 1px solid var(--brand-border); border-radius: var(--radius-xl); overflow: hidden; background: var(--card); box-shadow: 0 14px 38px rgba(17,24,39,.07); }
.blog-platform-shot img { display: block; width: 100%; height: auto; }
.blog-platform-shot figcaption { padding: .75rem 1rem; color: var(--muted-foreground); font-size: .82rem; line-height: 1.5; }

/* Biblioteca de plantillas: el contenido útil queda visible, copiable y
   descargable. El bloque de código conserva las columnas CSV sin ensanchar la página. */
.template-library { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.template-copy-card {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    background: var(--card);
    box-shadow: 0 14px 38px rgba(17, 24, 39, .06);
}
.template-copy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.template-copy-head h3 { margin: .35rem 0 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.65rem); }
.template-number { color: var(--brand-pink); font: 700 1.2rem/1 var(--font-display); letter-spacing: .05em; }
.template-copy-card > p { max-width: 72ch; }
.template-use { margin-top: .35rem; color: var(--muted-foreground); }
.template-use b { color: var(--foreground); }
.template-code-wrap { min-width: 0; margin-top: 1.25rem; overflow: hidden; border: 1px solid #334155; border-radius: .9rem; background: #111827; }
.template-platform-shot { margin: 1.1rem 0 0; border: 1px solid var(--brand-border); border-radius: .85rem; overflow: hidden; background: var(--card); }
.template-platform-shot img { display: block; width: 100%; height: auto; }
.template-platform-shot figcaption { padding: .55rem .8rem; color: var(--muted-foreground); font-size: .78rem; }
.template-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .8rem .65rem 1rem; background: #1f2937; color: #d1d5db; font-size: .78rem; font-weight: 650; }
.template-code-bar .copy-template-btn { border: 1px solid #4b5563; border-radius: .55rem; padding: .52rem .7rem; background: #fff; color: #111827; font: 700 .75rem/1 var(--font-body); cursor: pointer; }
.template-code { display: block; width: 100%; max-width: 100%; max-height: 19rem; margin: 0; padding: 1rem; overflow: auto; background: #111827; color: #e5e7eb; font: .78rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; tab-size: 2; }
.template-code code { font: inherit; }
.template-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.template-actions .copy-template-btn { font: inherit; cursor: pointer; }
.copy-template-btn.is-copied { border-color: #047857 !important; background: #ecfdf5 !important; color: #047857 !important; }

@media (max-width: 640px) {
    .template-copy-card { padding: 1.1rem; }
    .template-code-bar { align-items: flex-start; flex-direction: column; }
    .template-code-bar .copy-template-btn { width: 100%; }
    .template-actions { display: grid; grid-template-columns: 1fr; }
    .template-actions > * { width: 100%; justify-content: center; text-align: center; }
}

/* ═══════════════════ Páginas legales traducidas ══════════════════════════
   La versión española de estas páginas lleva sus estilos en línea, heredados
   de cuando se escribieron a mano. Las traducciones salen del generador y se
   apoyan en estas cuatro reglas, que usan los mismos tokens que el resto. */
.legal-sec h2 {
    font-size: 1.35rem;
    margin: 2.5rem 0 .75rem;
    line-height: 1.3;
}
.legal-sec p,
.legal-sec li {
    color: var(--text-2);
    line-height: 1.8;
}
.legal-sec ul {
    margin: .75rem 0 0 1.1rem;
    display: grid;
    gap: .6rem;
}
.legal-datos {
    display: grid;
    grid-template-columns: minmax(9rem, auto) 1fr;
    gap: .5rem 1.25rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--radio, 14px);
}
.legal-datos dt { font-weight: 600; }
.legal-datos dd { margin: 0; color: var(--text-2); }
/* El aviso de que la versión española es la que rige. Va arriba y se lee. */
.legal-aviso {
    margin: 1.25rem 0 0;
    padding: .9rem 1.15rem;
    border-left: 3px solid var(--primary, #C2185B);
    background: var(--surface-2, rgba(233, 30, 99, .05));
    border-radius: 0 10px 10px 0;
    font-size: .93rem;
    line-height: 1.7;
}
@media (max-width: 560px) {
    .legal-datos { grid-template-columns: 1fr; gap: .15rem; }
    .legal-datos dd { margin-bottom: .6rem; }
}

/* La marca de idioma en una tarjeta cuyo destino está en otra lengua.
   El título se traduce para que se sepa qué hay al otro lado; este distintivo
   avisa de que la ficha en sí sigue en español, antes de pinchar. */
.rec-idioma {
    display: inline-block;
    margin-left: .5rem;
    padding: .05rem .38rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: .68em;
    font-weight: 700;
    letter-spacing: .06em;
    opacity: .75;
    vertical-align: .08em;
}
