/* CIB UX Fixes · auditoría 2026-11-01 · rollback: borrar este archivo */
:root{
  --cib-green:#3d8b2f; --cib-green-btn:#007a3d; --cib-gold:#c8961a; --cib-gold-text:#8a6410;
  --cib-navy:#021126; --cib-blue:#003b73; --cib-green2:#007a3d;
  --cib-radius-btn:30px; --cib-radius-card:18px;
  --global-body-font-family:'Poppins',sans-serif; /* H-16: sustituye a Prompt (ajuste de Kadence) */
}

/* H-16 tipografía: sustituye Inter */
.woocommerce,.learndash-wrapper,.woocommerce-account,.woocommerce-account .woocommerce-MyAccount-navigation ul li a{font-family:'Poppins',sans-serif}
.woocommerce .price,.woocommerce-Price-amount,.woocommerce-Price-amount bdi{font-family:'Space Grotesk',sans-serif;font-weight:700}
.woocommerce-checkout input,.woocommerce-checkout select,.woocommerce-checkout textarea,.woocommerce-account input,.woocommerce form .form-row input.input-text{font-family:'Poppins',sans-serif}

/* H-06/H-20 escala tipográfica interna */
.entry-hero h1,h1.page-title,h1.entry-title,.woocommerce div.product h1.product_title{font-size:var(--cib-h1)!important;line-height:1.1;overflow-wrap:anywhere}
.entry-content h2.wp-block-heading,.woocommerce-account h2{font-size:var(--cib-h2)}
.ld-course-status-label{font-size:14px!important}

/* H-08 banner de título: separa el título del header transparente */
.entry-hero-container-inner{box-sizing:border-box;height:auto!important;min-height:0!important;padding-top:36px;padding-bottom:36px}
@media (max-width:1024px){.entry-hero-container-inner{padding-top:28px;padding-bottom:28px}}
/* banner de título: mismo azul marino que el header (--cib-navy) en todas las páginas */
body:not(.woocommerce-account) .entry-hero .entry-hero-container-inner,body:not(.woocommerce-account) .entry-hero .hero-section-overlay{background-color:#021126!important}
body:not(.woocommerce-account) .entry-hero .hero-container,body:not(.woocommerce-account) .entry-hero .entry-header{min-height:0!important;height:auto!important}

/* H-09 portadas completas */
.woocommerce ul.products li.product a img,.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail{object-fit:contain!important;height:auto;aspect-ratio:auto;background:#f6f7f2;border-radius:var(--cib-radius-card)}

/* H-15 verde de botón accesible + H-19 componente único de botón/tarjeta */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.single_add_to_cart_button,.woocommerce-form-login__submit,.wc-block-components-button,.button.alt{
  border-radius:var(--cib-radius-btn)!important;font-family:'Poppins',sans-serif!important;font-weight:600!important}
.woocommerce a.button.alt,.woocommerce button.button.alt,.single_add_to_cart_button,.woocommerce-form-login__submit,
.woocommerce #payment #place_order,.woocommerce-checkout #place_order{background-color:var(--cib-accion,#007a3d)!important;color:#fff!important}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.single_add_to_cart_button:hover,.woocommerce-form-login__submit:hover,
.woocommerce-checkout #place_order:hover{background-color:var(--cib-accion-hover,#00643a)!important}
.woocommerce ul.products li.product{border-radius:var(--cib-radius-card)}

/* H-05 oro como texto sobre fondo claro */
.cibc-etq,.cibc-n{color:var(--cib-gold-text)!important}

/* H-25 Mi cuenta: título duplicado en móvil (se oculta visualmente, el H1 se conserva para lectores de pantalla) */
@media (max-width:767px){
  body.woocommerce-account:not(.logged-in) .entry-hero .entry-title,
  body.woocommerce-account:not(.logged-in) .entry-header.page-title{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body.woocommerce-account:not(.logged-in) .entry-hero-container-inner{min-height:0;padding-top:84px;padding-bottom:0}
}
.cib-first-time{margin:16px 0 0;font-size:14px;color:#4a5a40}

/* H-22 tablas de formularios con scroll horizontal en móvil */
.cib-diagnostico-wrap .cib-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

/* H-30 títulos de contenido (antes h1) con tamaño fluido */
.cib-gracias-card h2{font-size:var(--cib-h2);overflow-wrap:break-word;hyphens:auto}
.cib-hero h2{overflow-wrap:break-word}

/* Footer compacto (mitad de alto) + sin franja clara al final */
html{background-color:#021126}
#colophon .site-middle-footer-inner-wrap,#colophon .site-bottom-footer-inner-wrap{padding-top:0!important;padding-bottom:0!important;row-gap:12px;grid-row-gap:12px}
#colophon .site-middle-footer-wrap .site-container{padding-top:28px}
#colophon .site-bottom-footer-wrap .site-container{padding-top:12px;padding-bottom:18px}
#colophon .site-middle-footer-inner-wrap{align-items:start}
#colophon .footer-widget-area-inner>section{margin:0 0 8px}
#colophon .widget_media_image img{width:200px;max-width:100%;height:auto}
#colophon .site-footer-middle-section-1 p{font-size:14px;line-height:1.5;margin:0}
#colophon .widget ul{margin:0;padding-left:18px}
#colophon .widget ul li{font-size:15px;line-height:1.35;margin:0 0 4px}
#colophon .site-footer-bottom-section-1,#colophon .site-footer-bottom-section-2{margin:0}
#colophon .site-bottom-footer-inner-wrap p{margin:0 0 4px;font-size:12.5px;line-height:1.4}
@media (min-width:768px){
  #colophon .site-footer-middle-section-1 p{max-width:340px}
  #colophon .site-bottom-footer-inner-wrap{align-items:center}
}
/* ajuste 2 del footer compacto */
#colophon .site-middle-footer-wrap .site-container{padding-top:18px}
#colophon .site-bottom-footer-wrap .site-container{padding-top:6px;padding-bottom:10px}
#colophon .widget_media_image img{width:170px}
#colophon .site-footer-middle-section-1 p{font-size:13px;line-height:1.4}
#colophon .widget ul li{font-size:14px;line-height:1.3;margin:0 0 2px}
#colophon .site-bottom-footer-inner-wrap p{font-size:12px;line-height:1.35;margin:0 0 2px}
#colophon .site-bottom-footer-inner-wrap a{padding:3px 8px;font-size:13px}
#colophon .site-footer-middle-section-1 p{max-width:none}
@media (min-width:768px){
  #colophon .site-middle-footer-inner-wrap{grid-template-columns:1.3fr 1fr 1fr!important}
}
@media (max-width:767px){
  #colophon .site-middle-footer-wrap .site-container{padding-top:14px}
  #colophon .site-middle-footer-inner-wrap{row-gap:6px}
  #colophon .site-footer-middle-section-3{display:none}
  #colophon .widget_media_image img{width:150px}
}

/* Mi cuenta: mismo banner azul marino y mismo alto que el resto de páginas */
body.woocommerce-account .entry-hero .entry-hero-container-inner,body.woocommerce-account.logged-in .entry-hero .entry-hero-container-inner,body.woocommerce-account:not(.logged-in) .entry-hero .entry-hero-container-inner{background-color:#021126!important;min-height:0!important;height:auto!important;padding-top:36px!important;padding-bottom:36px!important}
@media (max-width:1024px){body.woocommerce-account .entry-hero .entry-hero-container-inner,body.woocommerce-account:not(.logged-in) .entry-hero .entry-hero-container-inner{padding-top:28px!important;padding-bottom:28px!important}}
body.woocommerce-account .entry-hero .hero-container,body.woocommerce-account .entry-hero .entry-header{min-height:0!important;height:auto!important}
body.woocommerce-account .entry-hero .entry-header .entry-title,body.woocommerce-account .entry-hero h1,body.woocommerce-account .entry-hero .page-title h1{color:#fff!important}

/* ===== Mi cuenta: menú en cuadrícula de mosaicos con emoji ===== */
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content{float:none!important;width:100%!important;max-width:100%}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation{display:block!important;margin:0 0 24px}
body.woocommerce-account.logged-in .cib-menu-toggle{display:none!important}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:transparent!important;border-radius:0;overflow:visible;padding:0;margin:0;list-style:none}
@media (min-width:768px){body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li{margin:0;padding:0}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;padding:16px 10px!important;text-align:center;font-family:var(--cib-font-texto,'Poppins',sans-serif);font-size:15px;font-weight:600;line-height:1.25;color:#021126!important;background:#eef0eb!important;border:1px solid #dde2da!important;border-radius:18px;text-decoration:none;transition:background .18s,color .18s,transform .18s}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a::before{content:'\1F4CC';font-size:30px;line-height:1}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a:hover{background:#dde8da!important;color:#021126!important;transform:translateY(-2px)}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.is-active a{background:#021126!important;border-color:#021126!important;color:#fff!important}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a{color:#8a6410!important}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before{content:'\1F3E0'}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--aula a::before{content:'\1F4DA'}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--diplomas a::before{content:'\1F393'}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--descargas a::before{content:'\1F4E5'}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before{content:'\1F9FE'}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--payment-methods a::before{content:'\1F4B3'}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before{content:'\1F464'}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before{content:'\1F6AA'}
body.woocommerce-account.logged-in .account-navigation-wrap{float:none!important;width:100%!important;max-width:100%!important;margin:0 0 8px!important;padding:0!important}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation{background:transparent!important;padding:0!important;border:0!important}
body.woocommerce-account.logged-in .kadence-account-avatar{margin:0 0 14px}
body.woocommerce-account.logged-in .account-navigation-wrap,body.woocommerce-account.logged-in .account-navigation-wrap::before,body.woocommerce-account.logged-in .account-navigation-wrap::after,body.woocommerce-account.logged-in .woocommerce-MyAccount-content{border:0!important;box-shadow:none}
