/* ═══════════════════════════════════════════════════════════════
   PROYECTMEDIA · CSS DE ACCESIBILIDAD Y CONTRASTE
   Versión 1.0.0 — Cumplimiento WCAG 2.1 nivel AA
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   1. WPBAKERY HEADINGS — FIX COLOR MORADO
   ══════════════════════════════════════════ */

.wpb_wrapper .vc_custom_heading,
.wpb_wrapper .vc_custom_heading *,
.vc_column-inner h1,
.vc_column-inner h2,
.vc_column-inner h3,
.vc_column-inner h4,
.vc_column-inner h5,
.vc_column-inner h6,
.section_inner h1,
.section_inner h2,
.section_inner h3,
.section_inner h4 {
    color: #1a1a2e !important;
}

/* Neutraliza la variable CSS de WP que filtra morado */
.wpb_wrapper,
.vc_column-inner,
.section_inner,
.full_width_inner {
    --wp-block-synced-color: #1a1a2e;
    --wp-bound-block-color: #1a1a2e;
}


/* ═══════════════════════════════════════════
   2. CONTRASTE WCAG AA — TEXTO GRIS
   #858793/blanco = 3.2:1 ✗ → #595a65 = 6.8:1 ✓
   ══════════════════════════════════════════ */

/* Tablas de precios */
.q_price_table,
.price_table_inner ul li.table_title .title_content,
.price_table_inner ul li.pricing_table_content li {
    color: #595a65 !important;
}

/* Testimonios */
.testimonials_c_holder .testimonial_text,
.testimonials_c_holder .testimonial_text p,
.testimonials_c_holder .testimonial_author {
    color: #444444 !important;
}

/* Tarjetas info (qode-info-card) */
.qode-info-card .qode-info-card-text,
.qode-info-card .qode-info-card-text p,
.qode-info-card .qode-info-card-text-holder p {
    color: #595a65 !important;
}

/* Precio — refuerzo de #5e5f68 (5.8:1) a #3d3e48 (8.2:1) */
.price_in_table .price {
    color: #3d3e48 !important;
}


/* ═══════════════════════════════════════════
   3. FIX REGLAS ea11y — FONDOS GRISES EN TÍTULOS
   ══════════════════════════════════════════ */

/* ea11y añadió background-color: #B0B0B0 / #C4C4C4
   a los enlaces de títulos de posts — se revierte */
.latest_post_title.entry_title > a,
.latest_post_title.entry_title a,
h5.latest_post_title a {
    background-color: transparent !important;
    color: #1a1a2e !important;
}

/* Fecha de post — revertir color forzado a blanco sobre blanco */
span.date.entry_date.updated {
    color: inherit !important;
    background-color: transparent !important;
}

/* Enlace de comentarios en posts — revertir fondo negro ea11y */
span.post_infos a.post_comments {
    background-color: transparent !important;
    color: #4B0F3F !important;
}


/* ═══════════════════════════════════════════
   4. NAVEGACIÓN STICKY + BOTONES BLANCOS
   ══════════════════════════════════════════ */

/* Hover/active en menú sticky: #858793 = 3.2:1 ✗ → #3d3e48 = 8.2:1 ✓ */
header.sticky nav.main_menu > ul > li > a,
header.sticky nav.main_menu > ul > li > a > span,
header.sticky nav.main_menu > ul > li:hover > a > span,
header.sticky nav.main_menu > ul > li.active > a span {
    color: #3d3e48 !important;
}

/* Botones WPBakery blancos — texto legible sobre fondo claro */
.vc_btn3-color-white.vc_btn3-style-flat,
.vc_btn3-color-white.vc_btn3-style-outline,
.vc_btn3-color-white {
    color: #1a1a2e !important;
    border: 2px solid #1a1a2e !important;
}

/* Botones gris claro — texto oscuro */
.vc_btn3-color-grey.vc_btn3-style-flat,
.vc_btn3-color-grey {
    color: #1a1a2e !important;
}

/* Texto ítem legal en footer — refuerzo */
#menu-legal-es .menu-item > a {
    color: #1a1a2e !important;
}
