
/* TJP 4.1 | Presentación institucional */
:root { --tje-header-shadow:0 9px 25px rgba(15,48,80,.075); }
body.tje-site { -webkit-font-smoothing:antialiased; }
body.tje-site .tje-topline {
  background:#f1f6fa;
  color:#294966;
  border-bottom:1px solid #d8e6f0;
}
body.tje-site .tje-topline .wrap{min-height:35px;align-items:center;gap:18px}
body.tje-site .tje-topline .tje-utility-actions{display:flex;gap:20px;align-items:center;justify-content:flex-end}
body.tje-site .tje-topline .tje-mesa-toplink{color:#005991;font-weight:750;text-decoration:none}
body.tje-site .tje-topline .tje-mesa-toplink:hover{text-decoration:underline}
body.tje-site .tje-header{position:relative;box-shadow:var(--tje-header-shadow);background:#fff}
body.tje-site .tje-header-inner{gap:clamp(10px,1.65vw,26px);min-height:84px}
body.tje-site .tje-logo img{width:190px;max-width:100%;height:auto;object-fit:contain}
body.tje-site .tje-nav{gap:clamp(10px,1.12vw,18px);justify-content:flex-end}
body.tje-site .tje-nav a{font-size:clamp(.79rem,.83vw,.92rem);font-weight:600;color:#183c5d;letter-spacing:0}
body.tje-site .tje-nav a:hover,body.tje-site .tje-nav a:focus-visible{color:#0b69a6}
body.tje-site .tje-nav li{line-height:1.25}
body.tje-site .tje-menu-toggle{border:1px solid #c7dceb;border-radius:6px;background:#f3f8fc}
body.tje-site .tje-mobile-menu:not([hidden]){background:#fff}
body.tje-site .tje-mobile-menu a:hover{background:#f2f7fa;color:#0a548c}
body.tje-site .tje-hero{min-height:425px}
body.tje-site .tje-hero h1{letter-spacing:-.022em;line-height:1.12}
body.tje-site .tje-card-img img,body.tje-site .tje-practice-photo img{object-position:center}
body.tje-site .tje-service-card,body.tje-site .tje-practice-card,body.tje-site .tje-blog-card{border-radius:8px}
body.tje-site .tje-service-card a:focus-visible,body.tje-site .tje-blog-card a:focus-visible{outline:3px solid #147ac1;outline-offset:3px}
body.tje-site .tje-whatsapp{z-index:9997}

/* Tienda oculta en la presentación pública; NO desactiva WooCommerce ni borra pedidos. */
body.tje-site :is(.wc-block-mini-cart,.wc-block-mini-cart__drawer,.wp-block-woocommerce-mini-cart,
  .woocommerce-mini-cart,.widget_shopping_cart,.widget_shopping_cart_content,
  .ast-cart-menu-wrap,.ast-site-header-cart,.ast-header-woo-cart,.ast-header-cart,
  .xoo-wsc-modal,.xoo-wsc-basket,.xoo-wsc-container,.xoo-wsc-opac,
  .cpops-cart-trigger,.cpops-cart,.cartpops-cart,.cartpops-cart-popup,
  .fkcart-modal,.fkcart-mini-toggler,.fkcart-floating-cart,.fkcart-side-cart,
  .wpc-fly-cart,.woofc-area,.xt_woofc,.woo-floating-cart,
  .wcf-floating-cart,.wcf-cart-icon,.wcf-cart-button,
  .elementor-menu-cart__toggle,.elementor-menu-cart__container,
  .elementor-widget-woocommerce-menu-cart,.elementor-widget-woocommerce-cart,
  .woofc-count,.woo-menu-cart,.woo-cart-icon,
  .cartflows-cart,.woo-floating-cart-button,
  .wc-menu-cart,.wc-side-cart,.cart-drawer,.side-cart-widget,
  #cartpops,#fkcart-modal,#xoo-wsc,#ast-cart-menu-wrap){display:none!important;visibility:hidden!important;pointer-events:none!important}
@media (max-width:1250px){
 body.tje-site .tje-nav{gap:10px}
 body.tje-site .tje-logo img{width:170px}
 body.tje-site .tje-nav a{font-size:.82rem}
}
@media (max-width:1075px){
 body.tje-site .tje-nav{display:none!important}
 body.tje-site .tje-menu-toggle{display:block!important}
}
@media (max-width:660px){
 body.tje-site .tje-topline .wrap{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;padding:7px 0;text-align:center}
 body.tje-site .tje-topline .tje-utility-actions{width:100%;gap:12px;justify-content:center}
 body.tje-site .tje-topline .tje-mesa-toplink{white-space:nowrap}
 body.tje-site .tje-header-inner{min-height:75px}
 body.tje-site .tje-logo img{width:176px}
}

/* Lectura de portada en pantallas pequeñas: texto siempre sobre contraste alto. */
@media (max-width:660px){
 body.tje-site .tje-hero{
   background-image:linear-gradient(90deg,rgba(10,29,48,.97),rgba(10,29,48,.85)),var(--hero-photo)!important;
   background-size:cover,cover!important;
   background-position:center,center!important;
 }
 body.tje-site .tje-hero p{color:#f0f5fa}
}

/* v4.2: ocultación visual exclusiva de carritos y minicarritos.
   La tienda, las órdenes y los componentes de WooCommerce permanecen instalados. */
body.tje-site :is(
  .wc-block-mini-cart__button,.wc-block-components-drawer__screen-overlay,
  .wc-block-mini-cart__drawer,.ast-header-woo-cart,.ast-cart-menu-wrap,
  .cartpops-toggle,.xoo-wsc-basket,.xoo-wsc-modal,.xoo-wsc-container,
  .fkcart-mini-toggler,.fkcart-modal,.elementor-menu-cart__main,
  .widget_woocommerce_widget_cart,.cartflows-floating-cart,
  .wpc-fly-cart-wrapper,.woocommerce-mini-cart,
  .woocommerce.widget_shopping_cart,#ast-cart-menu-wrap
) { display:none!important; visibility:hidden!important; pointer-events:none!important; }
/* Extractos, etiquetas y encabezados con separación estable en lectura móvil. */
body.tje-site .tje-blog-card .tje-article-category { margin-right:9px!important; }
body.tje-site .tje-blog-card time { display:inline-block; margin-bottom:7px; }
body.tje-site.single-post .tje-wp-content > h1 { margin-top:18px; margin-bottom:14px; }
body.tje-site.single-post .tje-wp-content img { max-width:100%; height:auto; }
body.tje-site.single-post .tje-wp-content :is(h2,h3,h4) { margin-top:1.6em; margin-bottom:.8em; }
@media(max-width:660px) {
  body.tje-site.single-post .tje-wp-content { overflow-wrap:anywhere; }
  body.tje-site .tje-blog-card time { margin-bottom:8px; }
}


/* v4.3 · Presentación editorial: un H1 por artículo, jerarquía interna H2-H6. */
body.tje-site.single-post .tje-juridical-article > .tje-article-title {
  font-size:14pt!important;line-height:1.45!important;margin:16px 0 16px!important;
  font-weight:700;color:#132b46;hyphens:none!important;overflow-wrap:normal;word-break:normal;
}
body.tje-site.single-post .tje-juridical-article .tje-article-body :is(h1,h2,h3,h4,h5,h6),
body.tje-site.single-post .tje-juridical-article .tje-article-body .elementor-heading-title {
  font-size:14pt!important;hyphens:none!important;-webkit-hyphens:none!important;
  line-height:1.45!important;letter-spacing:normal!important;text-align:left!important;
  font-weight:700;overflow-wrap:normal;word-break:normal;
}
body.tje-site.single-post .tje-juridical-article .tje-article-body :is(p,li,blockquote,td,th,figcaption) {
  font-size:12pt!important;line-height:1.7!important;hyphens:none!important;-webkit-hyphens:none!important;
  overflow-wrap:break-word;
}
body.tje-site.single-post .tje-juridical-article .tje-article-body p {
  text-align:justify!important;text-align-last:left!important;text-justify:inter-word!important;
}
body.tje-site.single-post .tje-juridical-article .tje-article-body :is(span,font)[style*="font-size"] {
  font-size:inherit!important;
}
body.tje-site.single-post .tje-juridical-article .tje-article-cover {
  display:block;width:100%;max-height:440px;object-fit:cover;margin:20px auto 26px;
  border-radius:6px;
}
body.tje-site .tje-category-filters a:focus-visible,
body.tje-site .tje-desk-button:focus-visible,
body.tje-site .tje-mesa-action:focus-visible,
body.tje-site .tje-article-back:focus-visible {
  outline:3px solid #0d6daf!important;outline-offset:3px;
}
/* Solo se OCULTAN los carritos flotantes (los datos y el plugin permanecen). */
body.tje-site :is(.xt_woofc,.xt_woofc-trigger,.xt_woofc-cart,.xt_woofc-modal,
  .xt_woofc-inner,.xt_woofc-wrapper,[class^="xt_woofc"],
  .cfw-side-cart,.cfw-side-cart-open-trigger,.cfw-side-cart-floating-button,
  .wfc-cart,.wfc-floating-cart,.wpc-fly-cart-wrapper,
  .woo-minicart,.woo-mini-cart,.fly-cart,.fly-cart-wrapper,
  .wcfusion-floating-cart,.wcfusion-mini-cart,.woo-cart-popup,
  .uawcc-toggle,.uawcc-cart-panel,.wc-floating-cart,
  .astra-cart-drawer,.ast-cart-drawer,.astra-cart-drawer-content) {
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
@media(max-width:660px){
  body.tje-site.single-post .tje-juridical-article .tje-article-title{margin:12px 0!important}
  body.tje-site.single-post .tje-juridical-article .tje-article-body :is(p,li){overflow-wrap:break-word}
  body.tje-site .tje-category-filters a{min-height:42px}
}
@media(prefers-reduced-motion:reduce){body.tje-site .tje-service-card,body.tje-site .tje-blog-card{transition:none!important}}

/* v4.4 · Conversación pública al final de artículos de Actualidad Jurídica. */
body.tje-site.single-post .tje-comments-section {
  padding-top:0;
  padding-bottom:76px;
  scroll-margin-top:90px;
}
body.tje-site.single-post .tje-comments-inner {
  max-width:880px;
  margin-inline:auto;
  padding:32px clamp(20px,4vw,44px) 40px;
  border:1px solid #cee0ed;
  border-radius:12px;
  background:linear-gradient(145deg,#f0f7fc 0%,#ffffff 72%);
  box-shadow:0 12px 32px rgba(13,43,70,.055);
}
body.tje-site.single-post .tje-comments-intro {
  padding-bottom:18px;
  border-bottom:1px solid #d7e5ef;
  margin-bottom:26px;
}
body.tje-site.single-post .tje-comments-intro .tje-kicker {color:#1267a8;}
body.tje-site.single-post .tje-comments-inner :is(h2,h3),
body.tje-site.single-post .tje-comments-inner #reply-title {
  font-family:Georgia,'Times New Roman',serif;
  font-size:14pt;
  line-height:1.45;
  font-weight:700;
  color:#132b46;
  margin:0 0 15px;
  letter-spacing:normal;
}
body.tje-site.single-post .tje-comments-intro p,
body.tje-site.single-post .tje-comment-note,
body.tje-site.single-post .tje-comments-list p,
body.tje-site.single-post .tje-comment-closed {
  color:#405569;
  font-size:12pt;
  line-height:1.65;
  margin:0 0 16px;
  overflow-wrap:break-word;
}
body.tje-site.single-post .tje-comments-section .tje-comments-list {
  list-style:none;
  margin:0 0 30px;
  padding:0;
}
body.tje-site.single-post .tje-comments-list li.comment {
  list-style:none;
  padding:18px;
  margin-bottom:16px;
  background:#fff;
  border:1px solid #dce7ef;
  border-radius:8px;
}
body.tje-site.single-post .tje-comments-list ol.children {
  list-style:none;
  padding-left:clamp(10px,3vw,27px);
  margin:16px 0 0;
  border-left:2px solid #cde1ef;
}
body.tje-site.single-post .tje-comments-list .comment-body {overflow-wrap:anywhere;}
body.tje-site.single-post .tje-comments-list .comment-author {display:flex;gap:10px;align-items:center;font-size:11pt;color:#183b5e;}
body.tje-site.single-post .tje-comments-list .comment-author img {width:44px;height:44px;border-radius:50%;object-fit:cover;}
body.tje-site.single-post .tje-comments-list .comment-metadata {font-size:10pt;margin:8px 0 12px;color:#617184;}
body.tje-site.single-post .tje-comments-section a {color:#075d9b;text-decoration:underline;text-underline-offset:2px;}
body.tje-site.single-post .tje-comments-section .reply {font-size:11pt;font-weight:700;}
body.tje-site.single-post .tje-comments-section #respond {margin-top:26px;}
body.tje-site.single-post .tje-comments-section #respond .tje-comment-form {display:grid;grid-template-columns:1fr 1fr;gap:18px;}
body.tje-site.single-post .tje-comment-form .comment-form-comment,
body.tje-site.single-post .tje-comment-form .comment-form-cookies-consent,
body.tje-site.single-post .tje-comment-form .form-submit {grid-column:1/-1;}
body.tje-site.single-post .tje-comment-form p {margin:0;}
body.tje-site.single-post .tje-comment-form label {display:block;margin-bottom:8px;font-weight:700;color:#183955;font-size:11pt;}
body.tje-site.single-post .tje-comment-form :is(input[type="text"],input[type="email"],textarea) {
  width:100%;max-width:100%;border:1px solid #b7cedf!important;border-radius:6px;
  color:#1b354b!important;background:#fff!important;padding:12px 14px;
  box-shadow:none;min-height:48px;line-height:1.5;font-size:12pt;
}
body.tje-site.single-post .tje-comment-form textarea {min-height:140px;resize:vertical;}
body.tje-site.single-post .tje-comment-form :is(input,textarea):focus-visible,
body.tje-site.single-post .tje-comment-submit:focus-visible,
body.tje-site.single-post .tje-comments-section a:focus-visible {
  outline:3px solid #167abb!important;outline-offset:2px;
}
body.tje-site.single-post .tje-comment-form .comment-form-cookies-consent {display:flex;gap:10px;align-items:flex-start;}
body.tje-site.single-post .tje-comment-form .comment-form-cookies-consent input {flex:none;width:17px;height:17px;margin-top:4px;}
body.tje-site.single-post .tje-comment-form .comment-form-cookies-consent label {font-weight:400;font-size:10.5pt;line-height:1.45;}
body.tje-site.single-post .tje-comment-submit {
  border:1px solid #1267a8!important;background:#1267a8!important;color:#fff!important;
  min-height:48px;cursor:pointer;font-size:12pt;font-weight:700;border-radius:6px;padding:12px 22px;
}
body.tje-site.single-post .tje-comment-submit:hover {background:#0b517f!important;}
body.tje-site.single-post .tje-comments-section .navigation.comment-navigation {margin:14px 0 25px;}
@media(max-width:680px) {
  body.tje-site.single-post .tje-comments-section {padding-bottom:48px;}
  body.tje-site.single-post .tje-comments-inner {padding:22px 17px 27px;}
  body.tje-site.single-post .tje-comments-section #respond .tje-comment-form {grid-template-columns:1fr;}
  body.tje-site.single-post .tje-comment-form :is(.comment-form-author,.comment-form-email) {grid-column:1/-1;}
}

/* TJP 5.0.5 · Instrucciones y ayuda de Mesa de Partes. */
body.tje-site .tje-mesa-layout .tje-white-panel { min-width:0; }
body.tje-site .tje-mesa-layout a { overflow-wrap:anywhere; }
body.tje-site .tje-mesa-access-note { padding:16px 18px; background:#f2f6fa; border-left:3px solid #b89961; font-size:.95rem; }
body.tje-site .tje-mesa-help { margin-top:30px; padding-top:24px; border-top:1px solid #d9e3eb; }
body.tje-site .tje-mesa-help h3 { font-size:1.3rem; margin:0 0 12px; }
body.tje-site .tje-mesa-help a,body.tje-site .tje-mesa-legal a { color:#105a96; text-decoration:underline; text-underline-offset:3px; }
body.tje-site .tje-mesa-steps { margin:0; padding-left:22px; color:#42596e; }
body.tje-site .tje-mesa-steps li { padding-left:5px; margin-bottom:15px; }
body.tje-site .tje-mesa-legal { display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin-top:20px; font-size:.95rem; }
@media(max-width:640px) { body.tje-site .tje-mesa-layout .tje-white-panel { padding:24px 20px; } }
