/*
Theme Name:   Elección Óptima - Child
Theme URI:    https://www.eleccionoptima.com/
Description:  Tema hijo de Divi para Elección Óptima. Clasificación e inspección industrial con IA y deep learning. Desarrollado por Intercastilla.
Author:       Intercastilla Diseño y Comunicación
Author URI:   https://www.intercastilla.com/
Template:     Divi
Version:      1.3.16
Text Domain:  eleccion-optima-child
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Tags:         business, industrial, deep-learning, technology
*/

/* =====================================================
   ELECCIÓN ÓPTIMA — TEMA HIJO DIVI
   Sistema de marca y estilos globales
   ===================================================== */

/* ---------------------------------------------------
   1. VARIABLES DE MARCA (extraídas del logo oficial)
   --------------------------------------------------- */
:root {
    /* Paleta corporativa — verde teal-tech del iris del logo */
    --eo-green:         #0E7D52;   /* Verde primario — iris interior */
    --eo-green-hover:   #0B6444;   /* Hover, un punto más oscuro */
    --eo-green-dark:    #084030;   /* Uso en fondos oscuros con contraste */
    --eo-green-light:   #DCF2E8;   /* Fondos suaves, badges */
    --eo-green-softer:  #EFF9F4;   /* Separaciones de sección */

    /* Acentos del logo */
    --eo-lime:          #9BCA38;   /* Lima brillo del iris — data highlights */
    --eo-lime-soft:     #F1F9DE;
    --eo-mint:          #3DD4B0;   /* Mint cyan del tagline — enlaces activos, stats */
    --eo-mint-soft:     #E1F9F2;

    /* AMD (cobranding, uso restringido) */
    --eo-amd-red:       #A32D2D;
    --eo-amd-red-soft:  #FFF8F6;

    /* Grises técnicos */
    --eo-black:         #0A0A0A;   /* Negro del logo — footer, bloques oscuros */
    --eo-dark:          #2C2C2A;   /* Texto principal */
    --eo-gray-700:      #444441;
    --eo-gray-wordmark: #8B8F92;   /* Gris del wordmark del logo */
    --eo-gray-500:      #5F5E5A;
    --eo-gray-300:      #B4B2A9;
    --eo-gray-200:      #D3D1C7;
    --eo-gray-100:      #F1EFE8;
    --eo-white:         #FFFFFF;
    --eo-off-white:     #FAFAF7;

    /* Tipografía — coherente con el logo (Exo 2) */
    --eo-font-display:  'Exo 2', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --eo-font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --eo-font-mono:     'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

    /* Radios y sombras */
    --eo-radius-sm:     4px;
    --eo-radius-md:     8px;
    --eo-radius-lg:     12px;
    --eo-radius-xl:     16px;

    /* Transiciones */
    --eo-ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --eo-duration:      180ms;

    /* Layout */
    --eo-container:     1240px;
    --eo-gutter:        24px;
}

/* ---------------------------------------------------
   2. TIPOGRAFÍA GLOBAL
   --------------------------------------------------- */
body {
    font-family: var(--eo-font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--eo-dark);
    background-color: var(--eo-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.et_pb_section h1, .et_pb_section h2, .et_pb_section h3,
.et_pb_section h4, .et_pb_section h5, .et_pb_section h6 {
    font-family: var(--eo-font-display);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--eo-dark);
    line-height: 1.2;
    text-transform: none;
}

h1, .et_pb_section h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 900; letter-spacing: -0.025em; }
h2, .et_pb_section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3, .et_pb_section h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }
h4, .et_pb_section h4 { font-size: 1.125rem; font-weight: 700; }
h5, .et_pb_section h5 { font-size: 1rem; font-weight: 600; }

p { line-height: 1.65; }

/* Texto eyebrow (pequeño, mayúsculas, para etiquetas de sección) */
.eo-eyebrow {
    display: inline-block;
    font-family: var(--eo-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--eo-green);
    margin-bottom: 0.75rem;
}

/* Cifras y stats técnicos (para dar peso numérico como Tomra/Cimbria) */
.eo-stat {
    font-family: var(--eo-font-display);
    font-weight: 800;
    color: var(--eo-green);
    letter-spacing: -0.02em;
    line-height: 1;
}
.eo-stat--lg { font-size: clamp(2rem, 5vw, 3.5rem); }
.eo-stat--md { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Tagline oficial de la marca (mimetiza el logo) */
.eo-tagline {
    font-family: var(--eo-font-display);
    font-style: italic;
    font-weight: 300;
    color: var(--eo-mint);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8125rem;
}

/* ---------------------------------------------------
   3. BOTONES Y CTAs
   --------------------------------------------------- */
.et_pb_button,
.eo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem !important;
    font-family: var(--eo-font-sans) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    border-radius: var(--eo-radius-md) !important;
    transition: all var(--eo-duration) var(--eo-ease) !important;
    border: 2px solid transparent !important;
    text-transform: none !important;
}

.et_pb_button::after,
.et_pb_button_module_wrapper .et_pb_button::after {
    display: none !important;
}

/* CTA primario (verde sólido) */
.eo-btn--primary,
.et_pb_button.eo-btn--primary {
    background-color: var(--eo-green) !important;
    color: var(--eo-white) !important;
    border-color: var(--eo-green) !important;
}
.eo-btn--primary:hover,
.et_pb_button.eo-btn--primary:hover {
    background-color: var(--eo-green-hover) !important;
    border-color: var(--eo-green-hover) !important;
    color: var(--eo-white) !important;
    transform: translateY(-1px);
}

/* CTA secundario (outline) */
.eo-btn--outline,
.et_pb_button.eo-btn--outline {
    background-color: transparent !important;
    color: var(--eo-dark) !important;
    border-color: var(--eo-gray-200) !important;
}
.eo-btn--outline:hover,
.et_pb_button.eo-btn--outline:hover {
    background-color: var(--eo-gray-100) !important;
    border-color: var(--eo-gray-300) !important;
    color: var(--eo-dark) !important;
}

/* CTA sobre fondo oscuro */
.eo-btn--light,
.et_pb_button.eo-btn--light {
    background-color: var(--eo-white) !important;
    color: var(--eo-green) !important;
    border-color: var(--eo-white) !important;
}
.eo-btn--light:hover,
.et_pb_button.eo-btn--light:hover {
    background-color: var(--eo-green-light) !important;
    color: var(--eo-green) !important;
}

/* ---------------------------------------------------
   4. HEADER Y NAVEGACIÓN
   --------------------------------------------------- */
#main-header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    background-color: var(--eo-white);
    transition: box-shadow var(--eo-duration) var(--eo-ease);
}

#main-header.et-fixed-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#top-menu a,
.nav li a {
    color: var(--eo-gray-700) !important;
    font-weight: 500;
    font-size: 15px !important;
    padding-bottom: 0;
    transition: color var(--eo-duration) var(--eo-ease);
}

#top-menu a:hover,
#top-menu .current-menu-item > a,
.nav li.current-menu-item a {
    color: var(--eo-green) !important;
    opacity: 1 !important;
}

/* Teléfono destacado en header (top bar) */
.eo-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--eo-dark);
    font-size: 0.9375rem;
    margin-right: 1rem;
    text-decoration: none;
}
.eo-header-phone:hover { color: var(--eo-green); }
.eo-header-phone svg { width: 16px; height: 16px; }

/* Top bar con teléfono + CTA */
.eo-topbar {
    background-color: var(--eo-gray-100);
    padding: 8px 0;
    font-size: 0.8125rem;
}
.eo-topbar-inner {
    max-width: var(--eo-container);
    margin: 0 auto;
    padding: 0 var(--eo-gutter);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}
.eo-topbar a { color: var(--eo-gray-700); text-decoration: none; }
.eo-topbar a:hover { color: var(--eo-green); }

/* CTA del header */
.eo-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    background-color: var(--eo-green);
    color: var(--eo-white) !important;
    border-radius: var(--eo-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--eo-duration) var(--eo-ease);
}
.eo-header-cta:hover {
    background-color: var(--eo-green-hover);
    color: var(--eo-white) !important;
}

/* ---------------------------------------------------
   5. WHATSAPP FLOTANTE
   --------------------------------------------------- */
.eo-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform var(--eo-duration) var(--eo-ease), box-shadow var(--eo-duration) var(--eo-ease);
    text-decoration: none;
}
.eo-whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}
.eo-whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: var(--eo-white);
}
.eo-whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: eo-wa-pulse 2.4s ease-out infinite;
}
@keyframes eo-wa-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ---------------------------------------------------
   6. SECCIONES Y CONTENEDORES
   --------------------------------------------------- */
.et_pb_section {
    padding: 80px 0;
}
.et_pb_section.eo-section--compact { padding: 48px 0; }
.et_pb_section.eo-section--tight   { padding: 32px 0; }

.eo-bg--light     { background-color: var(--eo-off-white); }
.eo-bg--green     { background-color: var(--eo-green); color: var(--eo-white); }
.eo-bg--green-soft{ background-color: var(--eo-green-light); }
.eo-bg--dark      { background-color: var(--eo-dark); color: var(--eo-white); }
.eo-bg--amd       { background-color: var(--eo-amd-red-soft); border-top: 2px solid var(--eo-amd-red); }

.eo-bg--dark h1, .eo-bg--dark h2, .eo-bg--dark h3,
.eo-bg--green h1, .eo-bg--green h2, .eo-bg--green h3 { color: var(--eo-white); }

/* ---------------------------------------------------
   7. TARJETAS (sectores, tecnologías, casos)
   --------------------------------------------------- */
.eo-card {
    background-color: var(--eo-white);
    border: 1px solid var(--eo-gray-200);
    border-radius: var(--eo-radius-lg);
    padding: 1.5rem;
    transition: all var(--eo-duration) var(--eo-ease);
    height: 100%;
}
.eo-card:hover {
    border-color: var(--eo-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 109, 17, 0.08);
}
.eo-card__icon {
    width: 48px;
    height: 48px;
    background-color: var(--eo-green-light);
    border-radius: var(--eo-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--eo-green);
}
.eo-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--eo-dark);
}
.eo-card__desc {
    font-size: 0.9375rem;
    color: var(--eo-gray-500);
    margin: 0;
    line-height: 1.55;
}

/* Tarjeta de sector compacta (grid de iconos) */
.eo-sector-card {
    background-color: var(--eo-white);
    border: 1px solid var(--eo-gray-200);
    border-radius: var(--eo-radius-md);
    padding: 1.25rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--eo-dark);
    transition: all var(--eo-duration) var(--eo-ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.eo-sector-card:hover {
    border-color: var(--eo-green);
    background-color: var(--eo-green-softer);
    transform: translateY(-2px);
}
.eo-sector-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--eo-green-light);
    color: var(--eo-green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.eo-sector-card__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--eo-dark);
}

/* ---------------------------------------------------
   8. BADGE, DIVIDERS, UTILS
   --------------------------------------------------- */
.eo-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--eo-green-light);
    color: var(--eo-green);
    border-radius: var(--eo-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.eo-badge--amd {
    background-color: #FCEBEB;
    color: var(--eo-amd-red);
}

.eo-divider-green {
    border: 0;
    border-top: 2px solid var(--eo-green);
    width: 48px;
    margin: 1rem 0 1.5rem;
}

.eo-text-green { color: var(--eo-green); }
.eo-text-red   { color: var(--eo-amd-red); }
.eo-text-muted { color: var(--eo-gray-500); }

/* ---------------------------------------------------
   9. FORMULARIOS
   --------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select,
.et_pb_contact_field input,
.et_pb_contact_field textarea,
.et_pb_contact_field select {
    background-color: var(--eo-white) !important;
    border: 1px solid var(--eo-gray-200) !important;
    border-radius: var(--eo-radius-md) !important;
    padding: 0.7rem 0.9rem !important;
    font-family: var(--eo-font-sans) !important;
    font-size: 0.9375rem !important;
    color: var(--eo-dark) !important;
    transition: border-color var(--eo-duration) var(--eo-ease), box-shadow var(--eo-duration) var(--eo-ease);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--eo-green) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 109, 17, 0.12) !important;
}

/* ---------------------------------------------------
   10. FOOTER
   --------------------------------------------------- */
#main-footer {
    background-color: var(--eo-black) !important;
    color: var(--eo-gray-300);
}
#main-footer h1, #main-footer h2, #main-footer h3,
#main-footer h4, #main-footer h5, #main-footer h6,
#main-footer .widget-title,
#main-footer .fwidget h4 {
    color: var(--eo-white) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    margin-bottom: 1rem !important;
}
#main-footer a { color: var(--eo-gray-200); transition: color var(--eo-duration) var(--eo-ease); text-decoration: none; }
#main-footer a:hover { color: var(--eo-white); }
#main-footer ul li { border: 0 !important; padding: 3px 0 !important; }
#footer-bottom {
    background-color: var(--eo-black) !important;
    border-top: 1px solid var(--eo-gray-700);
    padding: 14px 0;
}
#footer-bottom p { font-size: 0.8125rem; color: var(--eo-gray-300); }

/* ---------------------------------------------------
   11. COOKIE / CONSENT (si se usa plugin nativo o similar)
   --------------------------------------------------- */
.cmplz-cookiebanner,
.cky-consent-container {
    font-family: var(--eo-font-sans) !important;
}

/* ---------------------------------------------------
   12. BREADCRUMBS
   --------------------------------------------------- */
.eo-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-family: var(--eo-font-sans);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--eo-gray-500);
    padding: 10px 0;
    margin: 0;
}
.eo-breadcrumbs__link {
    color: var(--eo-gray-700);
    text-decoration: none;
    transition: color var(--eo-duration) var(--eo-ease);
}
.eo-breadcrumbs__link:hover {
    color: var(--eo-green);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.eo-breadcrumbs__current {
    color: var(--eo-dark);
    font-weight: 500;
}
.eo-breadcrumbs__sep {
    display: inline-block;
    margin: 0 0.25rem;
    color: var(--eo-gray-300);
    user-select: none;
}
/* Legacy (por si alguna plantilla antigua sigue generando .separator) */
.eo-breadcrumbs .separator { margin: 0 0.4rem; color: var(--eo-gray-300); }

/* ---------------------------------------------------
   13. BLOG / ARTÍCULOS
   --------------------------------------------------- */
.et_pb_post_title,
.entry-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}
article.et_pb_post {
    border-radius: var(--eo-radius-lg);
    overflow: hidden;
    border: 1px solid var(--eo-gray-200);
    transition: all var(--eo-duration) var(--eo-ease);
}
article.et_pb_post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ---------------------------------------------------
   14. RESPONSIVE
   --------------------------------------------------- */
@media (max-width: 980px) {
    .et_pb_section { padding: 56px 0; }
    .eo-topbar { display: none; }
    .eo-whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 640px) {
    h1, .et_pb_section h1 { font-size: 1.625rem; }
    h2, .et_pb_section h2 { font-size: 1.375rem; }
    .eo-card { padding: 1.25rem; }
}

/* ---------------------------------------------------
   15. ACCESIBILIDAD
   --------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--eo-green);
    outline-offset: 2px;
    border-radius: var(--eo-radius-sm);
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---------------------------------------------------
   16. PRINT
   --------------------------------------------------- */
@media print {
    .eo-whatsapp-float, .eo-header-cta, #main-header, #main-footer { display: none !important; }
    body { color: #000; background: #fff; }
}

/* ---------------------------------------------------
   17. CATÁLOGO DE PRODUCTOS (features grid)
   --------------------------------------------------- */
.eo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 2rem 0;
}
.eo-features-grid .eo-card__icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: var(--eo-green);
}

/* Tabla de especificaciones técnicas (usar en Theme Builder) */
.eo-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin: 1.5rem 0;
}
.eo-specs-table th,
.eo-specs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--eo-gray-100);
}
.eo-specs-table th {
    color: var(--eo-gray-500);
    font-weight: 500;
    font-family: var(--eo-font-sans);
    width: 42%;
    background-color: var(--eo-off-white);
}
.eo-specs-table td {
    color: var(--eo-dark);
    font-weight: 600;
}

/* Productos relacionados (shortcode [eo_related_products]) */
.eo-related-products-wrap {
    margin: 2.5rem 0;
}
.eo-related-products__title {
    font-family: var(--eo-font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--eo-dark);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--eo-green);
    display: inline-block;
}
.eo-related-products {
    display: grid;
    grid-template-columns: repeat(var(--eo-rel-cols, 4), 1fr);
    gap: 1.25rem;
    margin: 0;
}
.eo-related-products__item {
    display: flex;
    flex-direction: column;
    background: var(--eo-white);
    border: 1px solid var(--eo-gray-200);
    border-radius: var(--eo-radius-lg);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: all var(--eo-duration) var(--eo-ease);
}
.eo-related-products__item:hover {
    border-color: var(--eo-green);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(14, 125, 82, 0.12);
}
.eo-related-products__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--eo-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.eo-related-products__img-tag,
.eo-related-products__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--eo-duration) var(--eo-ease);
}
.eo-related-products__item:hover .eo-related-products__img-tag,
.eo-related-products__item:hover .eo-related-products__img img {
    transform: scale(1.04);
}
.eo-related-products__img-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--eo-gray-100);
}
.eo-related-products__body {
    padding: 0.75rem 1rem 1rem;
}
.eo-related-products__modelo {
    font-family: var(--eo-font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eo-green);
    margin-bottom: 0.35rem;
}
.eo-related-products__name {
    font-family: var(--eo-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--eo-dark);
    margin: 0;
}
@media (max-width: 980px) {
    .eo-related-products {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .eo-related-products {
        grid-template-columns: 1fr;
    }
}

/* Descripción de producto (shortcode [eo_descripcion]) */
.eo-descripcion {
    font-family: var(--eo-font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--eo-dark);
}
.eo-descripcion p {
    margin: 0 0 1.1em;
}
.eo-descripcion p:last-child {
    margin-bottom: 0;
}
.eo-desc-source-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 3px 9px;
    background: var(--eo-amd-red-soft);
    color: var(--eo-amd-red);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--eo-radius-sm);
    border: 1px solid #f7c1c1;
}
.eo-desc-ref-collapse {
    margin-top: 1.5rem;
    padding: 12px 16px;
    background: var(--eo-off-white);
    border-left: 3px solid var(--eo-gray-300);
    border-radius: var(--eo-radius-sm);
    font-size: 0.875rem;
    color: var(--eo-gray-500);
}
.eo-desc-ref-collapse summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--eo-gray-700);
}

/* Galería de producto */
.eo-galeria {
    display: grid;
    grid-template-columns: repeat(var(--eo-gal-cols, 3), 1fr);
    gap: var(--eo-gal-gap, 12px);
    margin: 1.5rem 0;
}
.eo-galeria__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--eo-radius-md);
    background: var(--eo-gray-100);
    transition: transform var(--eo-duration) var(--eo-ease), box-shadow var(--eo-duration) var(--eo-ease);
}
.eo-galeria__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.eo-galeria__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 700px) {
    .eo-galeria {
        grid-template-columns: repeat(min(var(--eo-gal-cols, 3), 2), 1fr);
    }
}

.eo-specs-empty {
    padding: 1rem 1.25rem;
    background: var(--eo-off-white);
    border-left: 3px solid var(--eo-green);
    border-radius: var(--eo-radius-sm);
    color: var(--eo-gray-500);
    font-size: 0.9375rem;
    margin: 1rem 0;
}

/* Botón de descarga de folleto */
.eo-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--eo-gray-200);
    border-radius: var(--eo-radius-md);
    color: var(--eo-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--eo-duration) var(--eo-ease);
}
.eo-download-btn:hover {
    border-color: var(--eo-green);
    color: var(--eo-green);
    background-color: var(--eo-green-softer);
}

/* Badge de destacado en listados */
.eo-producto-destacado::before {
    content: '★';
    color: var(--eo-lime);
    margin-right: 6px;
}

/* ---------------------------------------------------
   18. WIDGET DE CATEGORÍAS DE PRODUCTO (sidebar)
   --------------------------------------------------- */
.eo-categories-widget {
    font-family: var(--eo-font-sans);
    background: var(--eo-white);
    padding: 4px 0;
}
.eo-categories-widget__title {
    font-family: var(--eo-font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--eo-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--eo-green);
}
.eo-categories-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.eo-categories-list__item {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--eo-gray-100);
    list-style: none !important;
}
.eo-categories-list__item::before,
.eo-categories-list__item::marker {
    content: none !important;
    display: none !important;
}
.eo-categories-list__item:last-child {
    border-bottom: 0;
}
.eo-categories-list__item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0.25rem;
    font-size: 0.9375rem;
    color: var(--eo-gray-700);
    text-decoration: none;
    line-height: 1.35;
    transition: color var(--eo-duration) var(--eo-ease), padding-left var(--eo-duration) var(--eo-ease), background-color var(--eo-duration) var(--eo-ease);
    border-radius: var(--eo-radius-sm);
}
.eo-categories-list__item a:hover {
    color: var(--eo-green);
    padding-left: 0.6rem;
    background-color: var(--eo-green-softer);
}
.eo-categories-list__item.is-active a {
    color: var(--eo-green);
    font-weight: 600;
    padding-left: 0.6rem;
    background-color: var(--eo-green-light);
    border-left: 3px solid var(--eo-green);
    border-radius: 0 var(--eo-radius-sm) var(--eo-radius-sm) 0;
    margin-left: -3px;
}
.eo-cat-name {
    flex: 1;
    min-width: 0;
}
.eo-cat-count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--eo-gray-500);
    background-color: var(--eo-gray-100);
    padding: 2px 9px;
    border-radius: 999px;
    min-width: 26px;
    text-align: center;
}
.eo-categories-list__item.is-active .eo-cat-count {
    color: var(--eo-green);
    background-color: var(--eo-white);
}
.eo-categories-list__item a:hover .eo-cat-count {
    color: var(--eo-green);
    background-color: var(--eo-white);
}

@media (max-width: 980px) {
    .eo-categories-widget {
        margin-bottom: 2rem;
    }
    .eo-categories-list__item a {
        padding: 0.6rem 0.25rem;
    }
}

/* ---------------------------------------------------
   19. DESCRIPCIÓN DE CATEGORÍA (shortcode [eo_category_description])
   --------------------------------------------------- */
.eo-cat-description {
    font-family: var(--eo-font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--eo-gray-700);
    max-width: 760px;
    margin: 1rem 0 2rem;
}

.eo-cat-description p {
    margin: 0 0 1rem;
}

.eo-cat-description p:last-child {
    margin-bottom: 0;
}

.eo-cat-description strong { color: var(--eo-dark); }
.eo-cat-description em     { color: inherit; }

.eo-cat-description a {
    color: var(--eo-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.eo-cat-description a:hover { color: var(--eo-green-hover); }

.eo-cat-description h2,
.eo-cat-description h3,
.eo-cat-description h4 {
    font-family: var(--eo-font-display);
    color: var(--eo-dark);
    margin: 1.5rem 0 0.5rem;
}
.eo-cat-description h3 { font-size: 1.25rem; font-weight: 700; }
.eo-cat-description h4 { font-size: 1.0625rem; font-weight: 700; }

.eo-cat-description ul,
.eo-cat-description ol {
    margin: 0 0 1rem 1.5rem;
}

.eo-cat-description li {
    margin-bottom: 0.25rem;
}
