/*
Theme Name: VeriCheck Blog
Theme URI: https://vericheck.pe/blog
Author: VeriCheck
Author URI: https://vericheck.pe
Description: Child theme de Twenty Twenty-Four (theme de bloques oficial de WordPress.org, pinneado en docker/Dockerfile) con la identidad de marca de VeriCheck: paleta, tipografías DM Sans + Lato self-hosted, templates/parts/patterns propios. Todo lo que este child no sobreescribe (archive/category/tag/author/comments, soporte de bloques, accesibilidad) lo hereda del padre.
Template: twentytwentyfour
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.2
Version: 2.2.0
License: Propietario
Text Domain: vericheck-blog
*/

/* La propuesta asume box-sizing:border-box globalmente (*{box-sizing:border-box} en su CSS) —
   sin este reset, cada regla de acá que combina max-width/width con padding (igual que la
   propuesta) termina midiendo distinto: el padding se suma AFUERA del ancho declarado en vez
   de quedar incluido, agrandando la caja real (ver .vc-cta-in: max-width:560px con padding
   56px por lado terminaba midiendo 672px de ancho total en vez de 560px). */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* theme.json fija elements.button.typography.fontSize:15px, pero WP también genera su propio
   clamp() fluido para el mismo selector (:where(.wp-element-button, .wp-block-button__link))
   — ambas reglas tienen especificidad cero y la de WP se imprime después en el stylesheet
   global, así que gana aunque no sea la intención. Con especificidad real (0,1,0) ganamos
   siempre, igual que ya se resolvió antes para .vc-header-cta vs. body .is-layout-flex. */
.wp-element-button,
.wp-block-button__link {
    font-size: 15px;
    line-height: normal;
}

/* Tarjetas de post (home.html): hover sutil + recorte de excerpt a 3 líneas para que todas
   las tarjetas de una misma fila queden a la misma altura aunque el texto varíe de largo. */
.vc-post-card {
    overflow: hidden;
    box-shadow: var(--wp--preset--shadow--card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* El lift al hover es solo para las tarjetas del grid, no para la destacada (ahí solo
   cambia el color del título y hace zoom la imagen — ver regla más abajo). */
.vc-post-card:not(.vc-featured-card):hover {
    box-shadow: 0 14px 40px rgba(29, 106, 176, 0.18);
    transform: translateY(-3px);
}

.vc-featured-card {
    align-items: stretch;
}

.vc-featured-card > .wp-block-post-featured-image {
    flex: 1 1 360px;
    margin: 0;
}

.vc-featured-card > .wp-block-group {
    flex: 1 1 320px;
}

.vc-post-card .wp-block-post-featured-image img {
    transition: transform 0.3s ease;
}

.vc-post-card:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
}

.vc-post-card .wp-block-post-excerpt__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Títulos de tarjeta: navy por defecto, azul solo al pasar el mouse sobre la tarjeta
   (igual que la propuesta — el color de link global es azul, así que hay que pisarlo). */
.vc-post-card .wp-block-post-title a,
.vc-featured-card .wp-block-post-title a {
    color: var(--wp--preset--color--boatswain);
    transition: color 0.2s ease;
}

.vc-post-card:hover .wp-block-post-title a,
.vc-featured-card:hover .wp-block-post-title a {
    color: var(--wp--preset--color--blue-ribbon);
}

/* Link "Leer guía →" de la guía destacada. */
.vc-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--blue-ribbon);
}

/* Encabezado de sección con subtítulo a la izquierda y link "Ver todas" a la derecha. */
.vc-sec-head {
    align-items: flex-end !important;
    margin-bottom: 28px;
}

.vc-link-more {
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--blue-ribbon);
    text-decoration: none;
    white-space: nowrap;
}

.vc-link-more:hover {
    text-decoration: underline;
}

/* Pills de categoría/tag (home.html intro, tarjetas de post, archivos) — no se aplica
   globalmente a wp:post-terms/wp:categories para no "empildorar" menciones de categoría
   dentro del contenido de un post (wp:post-content). */
.vc-post-card .wp-block-post-terms a,
.vc-intro-categories .wp-block-categories a,
.vc-pill-terms a {
    display: inline-block;
    border-radius: var(--wp--custom--radius--button);
    padding: 4px 12px;
    background-color: #E6F0FF;
    transition: filter 0.2s ease;
}

.vc-post-card .wp-block-post-terms a:hover,
.vc-intro-categories .wp-block-categories a:hover,
.vc-pill-terms a:hover {
    filter: brightness(0.95);
    text-decoration: none;
}

.vc-icon {
    flex-shrink: 0;
    vertical-align: -4px;
}

/* Fila de metadata del post (patterns/post-meta.php): fecha + autor + tiempo de lectura. */
.vc-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 20px;
    row-gap: 8px;
}

.vc-post-meta .vc-post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Breadcrumbs (patterns/breadcrumbs.php, generados por Rank Math) */
.vc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.vc-breadcrumbs p {
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.vc-breadcrumbs a {
    text-decoration: none;
}

/* Compartir (patterns/share-links.php) */
.vc-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vc-share-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border-radius: var(--wp--custom--radius--button);
    padding: 6px 14px;
    background-color: var(--wp--preset--color--heart-of-ice);
    transition: filter 0.2s ease;
}

.vc-share-links a:hover {
    filter: brightness(0.95);
}

/* 404 */
.vc-404-icon {
    display: flex;
    justify-content: center;
    color: var(--wp--preset--color--droplet);
    margin-bottom: 8px;
}

.vc-404-icon .vc-icon {
    width: 56px;
    height: 56px;
}

/* Header sticky + buscador en disclosure nativo (sin JS, CSP no permite <script> inline) */
/* El sticky va en el <header class="wp-block-template-part"> que WordPress genera
   automáticamente alrededor del template part, no en .vc-site-header directamente: ese
   wrapper mide exactamente lo mismo que el header, así que .vc-site-header se quedaba sin
   "recorrido" para pegarse apenas el wrapper (su propio containing block) salía del
   viewport — a los ~80px de scroll dejaba de estar fijo. El wrapper sí es hijo directo de
   .wp-site-blocks, que mide el alto completo de la página. */
.wp-site-blocks > header {
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Vidrio esmerilado (igual que la propuesta) en vez de fondo blanco sólido + sombra. */
.vc-site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid #E3EAF5;
}

.vc-header-search {
    position: relative;
}

.vc-header-search summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--wp--preset--color--heart-of-ice);
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--boatswain);
}

.vc-header-search summary::-webkit-details-marker {
    display: none;
}

.vc-header-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    overflow: hidden;
    max-height: 0;
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--radius--card);
    box-shadow: var(--wp--preset--shadow--card);
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.vc-header-search[open] .vc-header-search-panel {
    max-height: 120px;
    padding: 16px;
}

/* Encabezados de columna del footer ("Contáctanos", "Dirección", etc.) */
.vc-footer h4 {
    color: var(--wp--preset--color--droplet);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Links sociales del footer (icono + texto) */
.vc-social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vc-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wp--preset--color--light-periwinkle);
    text-decoration: none;
    transition: filter 0.2s ease;
}

.vc-social-links a:hover {
    filter: brightness(1.3);
}

/* Barra promo (parts/header.html), encima del header sticky — no es sticky ella misma,
   igual que en web/ el banner de descuento vive aparte del header. */
/* El wrapper del header es hermano de nivel superior (ver nota del sticky más abajo), así
   que hereda el blockGap de raíz de WordPress como margen entre ambos — se quita para que
   quede pegado justo debajo de la barra promo. */
.wp-site-blocks > header {
    margin-top: 0 !important;
}

.vc-promo-bar {
    background-color: var(--wp--preset--color--boatswain);
    color: var(--wp--preset--color--white);
    text-align: center;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 10px 16px;
}

.vc-promo-bar b {
    color: var(--wp--preset--color--sky);
}

/* Nav del header: estado activo fijo en "Blog" (todo este theme child es el blog). */
.vc-site-header .wp-block-navigation-item.is-active > .wp-block-navigation-item__content {
    color: var(--wp--preset--color--blue-ribbon);
    border-bottom: 2px solid var(--wp--preset--color--blue-ribbon);
}

/* ---------- Hero (home.html) ---------- */
/* El hero es un bloque de nivel superior (hermano de <main>), no un hijo de un grupo
   "constrained" — la regla nativa de WP ".is-layout-constrained > .alignwide" no lo alcanza,
   así que el ancho se fija acá directamente para que coincida con el resto de secciones
   (todas usan el mismo contentSize de theme.json). */
.vc-hero {
    position: relative;
    overflow: hidden;
    color: var(--wp--preset--color--white);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(70, 182, 255, 0.45), transparent 60%),
        linear-gradient(135deg, var(--wp--preset--color--blue-ribbon) 0%, var(--wp--preset--color--iridescent-blue) 100%);
}

.vc-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.vc-hero .vc-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    padding: 6px 14px;
    border-radius: var(--wp--custom--radius--button);
}

.vc-hero h1 {
    position: relative;
    z-index: 1;
    color: var(--wp--preset--color--white);
    max-width: 780px;
    font-weight: 800;
}

/* Títulos de sección ("Guía destacada", "Últimas guías", etc.) y de la guía destacada/CTA:
   la propuesta usa 800 (extra-bold) puntualmente acá, no el 700 global de los headings. */
.vc-section-title,
.vc-cta h2,
.vc-featured-card h3 {
    font-weight: 800;
}

.vc-section-title {
    font-size: clamp(26px, 3vw, 34px);
}

.vc-cta h2 {
    font-size: clamp(28px, 3.4vw, 42px);
}

.vc-hero h1 .vc-accent {
    position: relative;
    display: inline-block;
    color: var(--wp--preset--color--droplet);
    white-space: nowrap;
}

.vc-hero h1 .vc-accent svg {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 14px;
}

.vc-hero p.vc-lead {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
}

.vc-hero-search {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--radius--button);
    padding: 6px 6px 6px 48px;
    max-width: 560px;
    box-shadow: 0 12px 30px rgba(0, 30, 90, 0.25);
    overflow: hidden;
}

.vc-hero-search::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23818CA4' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.vc-hero-search .wp-block-search__label {
    display: none;
}

.vc-hero-search .wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
}

.vc-hero-search .wp-block-search__input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 1rem;
    color: var(--wp--preset--color--boatswain);
    min-width: 0;
    background: transparent;
}

.vc-hero-search .wp-block-search__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--wp--custom--radius--button);
    padding: 11px 20px;
}

.vc-hero-search .wp-block-search__button::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.vc-pills-label {
    position: relative;
    z-index: 1;
    margin: 22px 0 10px;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.vc-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vc-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: var(--wp--custom--radius--button);
    background: rgba(255, 255, 255, 0.14);
    color: var(--wp--preset--color--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.vc-pills a:hover {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--blue-ribbon);
}

/* Variante clara de las pills (wp:categories), para la lista real de categorías
   ("Explora por tema") — no reusa .vc-pills porque wp:categories trae su propio
   wrapper/clases nativas. */
.vc-pills-light {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vc-pills-light li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vc-pills-light li > a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: var(--wp--custom--radius--button);
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--boatswain);
    border: 1px solid var(--wp--preset--color--heart-of-ice);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.vc-pills-light li > a:hover {
    border-color: var(--wp--preset--color--blue-ribbon);
    color: var(--wp--preset--color--blue-ribbon);
}

.vc-pills-light .wp-block-categories-list__post-count {
    font-size: 0.75rem;
    color: var(--wp--preset--color--perseverance);
}

/* ---------- Imagen de respaldo (functions.php::vericheck_fallback_thumb) ---------- */
.thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--wp--custom--radius--thumb);
    position: relative;
    background: linear-gradient(135deg, var(--wp--preset--color--blue-ribbon), var(--wp--preset--color--sky));
}

.ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--wp--preset--color--white);
    position: relative;
}

.ph .vc-icon {
    width: 30%;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.ph::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
        radial-gradient(circle at 10% 100%, rgba(0, 0, 0, 0.12), transparent 50%);
}

.ph.c-contratos,
.ph.c-default {
    background: linear-gradient(135deg, #006AFF, #46B6FF);
}

.ph.c-gestion {
    background: linear-gradient(135deg, #273653, #2382F2);
}

.ph.c-legis {
    background: linear-gradient(135deg, #0052C5, #818CA4);
}

.ph.c-verif {
    background: linear-gradient(135deg, #2382F2, #ACDEFF);
}

/* Badge "Destacado" en la guía destacada (home.html). */
.vc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp--preset--color--white);
    background: var(--wp--preset--color--orange-happy);
    padding: 5px 12px;
    border-radius: var(--wp--custom--radius--button);
}

/* La tarjeta del grid (no la destacada) se estira a la altura de la celda del grid
   (CSS Grid ya hace align-items:stretch por defecto) y la metadata se fija abajo sin
   importar cuántas líneas ocupe el excerpt. */
.vc-post-card:not(.vc-featured-card) {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vc-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fila de metadata compacta en las tarjetas del grid (patterns/post-card.php). */
.vc-card-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #E3EAF5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Banner CTA (patterns/cta-banner.php) ---------- */
.vc-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--wp--custom--radius--hero);
    min-height: 360px;
    display: flex;
    align-items: center;
    color: var(--wp--preset--color--white);
    background-color: #004CB4;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.vc-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #006AFF 0%, #0058d6 35%, #004CB4 52%, rgba(0, 76, 180, 0) 66%);
}

.vc-cta .vc-cta-in {
    position: relative;
    padding: 48px 56px;
    max-width: 560px;
}

.vc-cta h2 {
    margin: 0;
    line-height: 1.15;
    color: var(--wp--preset--color--white);
}

.vc-cta h2 .vc-accent {
    color: var(--wp--preset--color--droplet);
}

.vc-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    margin: 14px 0 26px;
}

.vc-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vc-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: normal;
    text-decoration: none;
    border-radius: var(--wp--custom--radius--button);
    padding: 12px 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: var(--wp--preset--color--white);
    transition: transform 0.15s, background 0.15s;
}

.vc-btn-ghost:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
}

/* .vc-cta p (0,1,1) gana por especificidad sobre .vc-stamp (0,1,0) aunque .vc-stamp
   venga después — por eso el selector de acá necesita ir calificado con p también. */
p.vc-stamp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Explora por tema (patterns/audience-topics.php) ---------- */
.vc-topics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vc-topic {
    background: var(--wp--preset--color--white);
    border: 1px solid #E3EAF5;
    border-radius: var(--wp--custom--radius--card-lg);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.vc-topic:hover {
    border-color: var(--wp--preset--color--blue-ribbon);
    transform: translateY(-2px);
}

.vc-topic .vc-topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #E6F0FF;
    color: var(--wp--preset--color--blue-ribbon);
}

.vc-topic h3 {
    font-size: 1.125rem;
}

.vc-topic small {
    color: var(--wp--preset--color--violet-aura);
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 500;
    font-size: 0.875rem;
}

.vc-soon {
    align-self: flex-start;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp--preset--color--orange-happy);
    background: #FFF1E6;
    border-radius: var(--wp--custom--radius--button);
    padding: 3px 10px;
}

.vc-themes-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.vc-themes-row > span {
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--wp--preset--color--violet-aura);
}

/* ---------- Verifica en 3 pasos (patterns/steps.php) ---------- */
.vc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.vc-step {
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--radius--card-lg);
    padding: 28px 24px;
    box-shadow: var(--wp--preset--shadow--card);
}

.vc-step-n {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--wp--preset--color--blue-ribbon);
    color: var(--wp--preset--color--blue-ribbon);
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    font-family: var(--wp--preset--font-family--dm-sans);
    font-weight: 800;
    font-size: 1.125rem;
}

.vc-step h3 {
    font-size: 1.125rem;
    margin-bottom: 6px;
}

/* Redes del footer: de lista icono+texto vertical a íconos redondos sin texto. */
.vc-social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.vc-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    gap: 0;
}

.vc-social-links a:hover {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--blue-ribbon);
    filter: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .vc-feat-body {
        padding: 28px !important;
    }

    .vc-topics {
        grid-template-columns: repeat(2, 1fr);
    }

    .vc-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    /* ".is-layout-flex" de WP (body .is-layout-flex{display:flex}) tiene más especificidad
       que una clase sola — hay que igualar con .vc-site-header para ganarle. */
    .vc-site-header .vc-header-cta {
        display: none;
    }

    .vc-hero {
        border-radius: 22px !important;
    }

    .vc-hero-search .wp-block-search__button span {
        display: none;
    }

    .vc-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .vc-pills a {
        white-space: nowrap;
    }

    .vc-topics {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .vc-topic {
        padding: 18px;
    }

    .vc-cta {
        min-height: 0;
        background-position: 70% center !important;
    }

    .vc-cta::before {
        background: linear-gradient(180deg, rgba(0, 82, 197, 0.95), rgba(0, 106, 255, 0.88));
    }

    .vc-cta .vc-cta-in {
        padding: 36px 24px;
    }
}
