/* Nereus Abogados — especialidades v36. Adaptación del prototipo aprobado sobre la v35. */
/* Menú: estructura original y posición del logo intactas, superficie Glass flotante.
   No se replica la animación de la izquierda porque el logo ya está integrado. */
body.specialty-v36 .site-header,
body.specialty-v36 .site-header.scrolled,
body.specialty-v36 .site-header.eq-header-white {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 10px 0;
  z-index: 100;
}
body.specialty-v36 .site-header::before,
body.specialty-v36 .site-header.eq-header-white::before {
  display: none !important;
  content: none !important;
}
body.specialty-v36 .site-header .nav {
  position: relative;
  z-index: 1;
  min-height: 84px;
  padding: 0 clamp(15px,2.1vw,24px);
  background: rgba(248,247,245,.52) !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(12,30,61,.10) !important;
  -webkit-backdrop-filter: blur(9px) saturate(115%);
  backdrop-filter: blur(9px) saturate(115%);
  isolation: isolate;
}
body.specialty-v36 .site-header .nav::before,
body.specialty-v36 .site-header .nav::after {
  display: none !important;
  content: none !important;
}
body.specialty-v36 .site-header .nav > .brand,
body.specialty-v36 .site-header .nav > .nav-links,
body.specialty-v36 .site-header .nav > .menu-toggle {
  position: relative;
  z-index: 2;
}
/* No cambiar position de language-switcher: es absolute en móvil. */
body.specialty-v36 .site-header .nav > .language-switcher { z-index: 3; }
body.specialty-v36 .site-header:has(.language-switcher.open),
body.specialty-v36.menu-open .site-header { z-index: 200 !important; }
body.specialty-v36 .site-header .language-switcher.open,
body.specialty-v36 .site-header .language-switcher.open .language-menu { z-index: 25 !important; }
@media (min-width:1181px) {
  body.specialty-v36 .site-header .nav-links:not(.open) > a:not(.button) {
    color: #06152a !important;
    font-weight: 800 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}
@media (max-width:1140px) {
  body.specialty-v36 .site-header .nav-links.open {
    position: absolute !important;
    top: calc(100% + 8px);
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(12,30,61,.18) !important;
    z-index: 10;
  }
}
@media (max-width:940px) {
  body.specialty-v36 .site-header { padding: 7px 0; }
  body.specialty-v36 .site-header .nav {
    min-height: 76px !important;
    padding: 0 13px;
    border-radius: 999px;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.specialty-v36 .site-header .nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(248,247,245,.88) !important;
  }
}

body.specialty-v36{--bg:linear-gradient(90deg,#c5c0bb 0%,#c1bbb5 48%,#bbb5af 100%);--panel:#f7f6f4;--paper:#fff;--navy:#0d1e3a;--navy2:#142b4f;--ink:#102442;--muted:#526078;--line:rgba(12,30,61,.12);--radius:34px;--gutter:clamp(12px,3vw,48px);--serif:Georgia,"Times New Roman",serif;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--shadow:0 18px 45px rgba(12,30,61,.075)}
body.specialty-v36{margin:0;background:var(--bg);font-family:var(--sans);color:var(--ink);min-width:300px}
body.specialty-v36 main a{color:inherit;text-decoration:none}
body.specialty-v36 main{min-height:60vh;padding:26px 0 84px}
body.specialty-v36 main > section{margin:0 auto clamp(16px,2.1vw,30px)!important;padding:0!important;width:min(1480px,calc(100% - 2 * var(--gutter)));max-width:none!important;overflow:visible;background:transparent!important;border:0!important}
body.specialty-v36 main > section > .shell{max-width:none!important;width:100%!important;margin:0 auto!important;background:var(--panel);border-radius:var(--radius);padding:clamp(30px,4.6vw,70px)!important;box-shadow:var(--shadow);box-sizing:border-box}
body.specialty-v36 main > .page-hero{padding-top:7px!important}
body.specialty-v36 .page-hero-grid{min-height:290px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.65fr);align-items:center;gap:clamp(30px,4vw,74px);background:#f7f6f4}
body.specialty-v36 .page-hero h1{max-width:870px;margin:14px 0 0;font:500 clamp(44px,5.5vw,86px)/1.04 var(--serif);letter-spacing:-.047em;text-wrap:balance;color:var(--navy)}
body.specialty-v36 .page-aside{padding-left:30px;border-left:1px solid var(--line);align-self:center}
body.specialty-v36 .page-aside p{font-size:clamp(15px,1.22vw,18px);line-height:1.7;color:#40506b;margin:0 0 25px}
body.specialty-v36 main .eyebrow{color:#566985;font-size:11px;font-weight:750;letter-spacing:.18em;text-transform:uppercase}
body.specialty-v36 main h2,
body.specialty-v36 main h3,
body.specialty-v36 main p{margin-top:0}
body.specialty-v36 main h2{font:500 clamp(31px,3.3vw,52px)/1.11 var(--serif);letter-spacing:-.028em;color:var(--navy);text-wrap:balance;margin:12px 0 18px}
body.specialty-v36 main h3{font:500 clamp(20px,1.7vw,28px)/1.17 var(--serif);letter-spacing:-.024em;color:var(--navy);margin:0 0 15px}
body.specialty-v36 main p{line-height:1.72;color:#485770;font-size:15px}
body.specialty-v36 main .button,
body.specialty-v36 main .contact-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:12px 22px;border-radius:999px;border:0;background:var(--navy);color:white!important;font-size:13px;font-weight:730;transition:transform .2s,box-shadow .2s}
body.specialty-v36 main .button:hover,
body.specialty-v36 main .contact-actions a:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(12,30,61,.2)}
body.specialty-v36 main .section-head,
body.specialty-v36 main .area-intro-copy{margin:0 0 29px;max-width:950px}
body.specialty-v36 main .section-head>p,
body.specialty-v36 main .area-intro-copy>p{max-width:820px}
body.specialty-v36 main .section-head h2,
body.specialty-v36 main .area-intro-copy h2{margin-top:12px}
body.specialty-v36 main .area-intro,
body.specialty-v36 main .approach-panel{width:100%}
body.specialty-v36 main .area-grid,
body.specialty-v36 main .practice-grid,
body.specialty-v36 main .approach-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.4vw,20px);align-items:stretch}
body.specialty-v36 main .area-grid .area-card,
body.specialty-v36 main .practice-grid .practice,
body.specialty-v36 main .approach-grid .approach-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:clamp(19px,2vw,30px);background:#fff;border:1px solid rgba(12,30,61,.07);border-radius:25px;box-shadow:0 7px 24px rgba(12,30,61,.035)}
body.specialty-v36 main .area-card-top{margin:0 0 20px;min-height:20px}
body.specialty-v36 main .area-tag{font-size:10px;letter-spacing:.13em;font-weight:800;text-transform:uppercase;color:#7c8796}
body.specialty-v36 main .area-card p,
body.specialty-v36 main .practice p,
body.specialty-v36 main .approach-card p{font-size:14px;line-height:1.7;margin-bottom:17px;flex:1}
body.specialty-v36 main .area-card .mini-link,
body.specialty-v36 main .practice .text-link{font-size:12px;line-height:1.55;font-weight:750;color:#173b67;margin-top:auto;overflow-wrap:anywhere}
body.specialty-v36 main .area-card .mini-link:hover,
body.specialty-v36 main .practice .text-link:hover{text-decoration:underline}
body.specialty-v36 main .practice-grid.expanded{grid-template-columns:repeat(2,minmax(0,1fr))}
body.specialty-v36 main .practice-grid.expanded h3{font-size:30px}
body.specialty-v36 main > .urgent-entry-section > .shell{display:flex;justify-content:space-between;align-items:center;gap:25px;background:var(--navy);box-shadow:0 18px 35px rgba(12,30,61,.11)}
body.specialty-v36 main .urgent-entry-card .eyebrow,
body.specialty-v36 main .urgent-entry-card h2,
body.specialty-v36 main .urgent-entry-card p{color:white}
body.specialty-v36 main .urgent-entry-card h2{font-size:clamp(29px,3vw,45px);margin-bottom:9px}
body.specialty-v36 main .urgent-entry-card p{margin:0;color:#c5cfdd}
body.specialty-v36 main .urgent-entry-links{flex-shrink:0}
body.specialty-v36 main .urgent-entry-links a{display:inline-flex;border:1px solid rgba(255,255,255,.5);color:white;font-size:13px;font-weight:700;border-radius:999px;padding:14px 22px}
body.specialty-v36 main > .approach-section > .shell{background:var(--navy)}
body.specialty-v36 main .approach-section .eyebrow,
body.specialty-v36 main .approach-section h2{color:white}
body.specialty-v36 main .approach-section p{color:#c7cfdb;max-width:750px}
body.specialty-v36 main .approach-grid{margin-top:30px}
body.specialty-v36 main .approach-grid .approach-card{background:#203756;border:1px solid #334766;color:white;box-shadow:none}
body.specialty-v36 main .approach-card h3,
body.specialty-v36 main .approach-card p{color:white}
body.specialty-v36 main .approach-card p{opacity:.8;margin-bottom:0}
body.specialty-v36 main .penal-execution-copy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:30px}
body.specialty-v36 main .penal-section{background:#fff;border-radius:25px;padding:clamp(22px,2.3vw,35px);border:1px solid var(--line)}
body.specialty-v36 main .penal-section h2{font-size:clamp(24px,2vw,34px)}
body.specialty-v36 main .penal-section p{font-size:14px}
body.specialty-v36 main .penal-section p:last-child{margin-bottom:0}
body.specialty-v36 main .penal-execution .section-head{max-width:1080px}
body.specialty-v36 main > .contact-section > .shell{background:var(--navy);display:flex;justify-content:space-between;align-items:center;gap:40px;color:white}
body.specialty-v36 main .contact-card .eyebrow,
body.specialty-v36 main .contact-card h2{color:white}
body.specialty-v36 main .contact-card h2{font-size:clamp(34px,3.7vw,60px)}
body.specialty-v36 main .contact-card p{color:#d7dfeb;max-width:760px;margin-bottom:0}
body.specialty-v36 main .contact-actions{flex:0 0 auto}
body.specialty-v36 main .contact-actions a{background:#fff;color:var(--navy)!important}
body.specialty-v36 main > section.alt,
body.specialty-v36 main > .section{background:transparent!important}
body.specialty-v36 main .specialty-cluster .practice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.specialty-v36 main > section a[href]:not(.button):not(.mini-link):not(.text-link):not(.nav-cta):hover{text-decoration:underline}
body.specialty-v36 *{overflow-wrap:break-word}
body.specialty-v36 main .area-number,
body.specialty-v36 main .practice-number,
body.specialty-v36 main .approach-card>small{display:none!important}
@media (max-width:1100px){body.specialty-v36 main .page-hero-grid{grid-template-columns:1fr 0.75fr;gap:25px}
body.specialty-v36 main .area-grid,
body.specialty-v36 main .practice-grid,
body.specialty-v36 main .specialty-cluster .practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:800px){body.specialty-v36 main{padding-top:12px}
body.specialty-v36 main > section > .shell{padding:clamp(25px,5vw,46px)!important;border-radius:25px}
body.specialty-v36 .page-hero-grid{grid-template-columns:1fr;min-height:0;gap:23px}
body.specialty-v36 .page-aside{padding-left:0;border:0;border-top:1px solid var(--line);padding-top:20px}
body.specialty-v36 .page-hero h1{font-size:clamp(39px,7vw,64px)}
body.specialty-v36 main > .urgent-entry-section > .shell{align-items:flex-start;flex-direction:column}
body.specialty-v36 main > .contact-section > .shell{flex-direction:column;align-items:flex-start;gap:25px}
body.specialty-v36 main .penal-execution-copy{grid-template-columns:1fr}}
@media (max-width:580px){body.specialty-v36{--gutter:12px}
body.specialty-v36 main>section{margin-bottom:13px!important}
body.specialty-v36 main>section>.shell{padding:27px 22px!important;border-radius:24px}
body.specialty-v36 .page-hero h1{font-size:clamp(36px,9vw,46px)}
body.specialty-v36 main .area-grid,
body.specialty-v36 main .practice-grid,
body.specialty-v36 main .practice-grid.expanded,
body.specialty-v36 main .specialty-cluster .practice-grid,
body.specialty-v36 main .approach-grid{grid-template-columns:1fr}
body.specialty-v36 main h2{font-size:clamp(29px,7.4vw,37px)}
body.specialty-v36 main h3{font-size:22px}
body.specialty-v36 main .area-grid .area-card,
body.specialty-v36 main .practice-grid .practice,
body.specialty-v36 main .approach-grid .approach-card{padding:21px;border-radius:21px}
body.specialty-v36 main .penal-section{padding:22px;border-radius:21px}
body.specialty-v36 main > .urgent-entry-section > .shell{gap:16px}
body.specialty-v36 main .urgent-entry-links{flex-shrink:1}}
@media (prefers-reduced-motion:reduce){body.specialty-v36 main *::before{animation:none!important;transition:none!important}}
body.specialty-v36 main .section-head,
body.specialty-v36 main .area-intro-copy,
body.specialty-v36 main .penal-execution .section-head{
  max-width:none;width:100%;
}
body.specialty-v36 main .section-head>p,
body.specialty-v36 main .area-intro-copy>p,
body.specialty-v36 main .approach-section .shell>p,
body.specialty-v36 main .contact-card p{
  max-width:none;width:100%;
}
body.specialty-v36 main .contact-card{flex:1 1 auto;min-width:0}
body.specialty-v36 main>.contact-section>.shell{gap:clamp(24px,3vw,50px)}
body.specialty-v36 main .penal-execution-copy>.penal-section:last-child:nth-child(odd){grid-column:1/-1}
@media (min-width:1101px){body.specialty-v36 main .area-grid,
body.specialty-v36 main .specialty-cluster .practice-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
body.specialty-v36 main .area-grid>.area-card,
body.specialty-v36 main .specialty-cluster .practice-grid>.practice{grid-column:span 2}
body.specialty-v36 main .area-grid:has(>:last-child:nth-child(3n + 2))>:nth-last-child(-n + 2),
body.specialty-v36 main .specialty-cluster .practice-grid:has(>:last-child:nth-child(3n + 2))>:nth-last-child(-n + 2){grid-column:span 3}
body.specialty-v36 main .area-grid:has(>:nth-child(7):last-child)>:nth-child(n + 4){grid-column:span 3}
body.specialty-v36 main .area-grid>:only-child,
body.specialty-v36 main .specialty-cluster .practice-grid>:only-child{grid-column:1/-1}
body.specialty-v36 main .specialty-cluster .practice-grid>.practice:only-child{
    display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
    align-items:start;column-gap:clamp(24px,4vw,65px);row-gap:12px;
  }
body.specialty-v36 main .specialty-cluster .practice-grid>.practice:only-child h3{grid-column:1;grid-row:1/span 2;margin-bottom:0}
body.specialty-v36 main .specialty-cluster .practice-grid>.practice:only-child p{grid-column:2;grid-row:1;margin-bottom:0}
body.specialty-v36 main .specialty-cluster .practice-grid>.practice:only-child .text-link{grid-column:2;grid-row:2}
body.specialty-v36 main .penal-execution-copy>.penal-section:last-child:nth-child(odd){display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);column-gap:clamp(20px,3vw,50px);align-items:start}
body.specialty-v36 main .penal-execution-copy>.penal-section:last-child:nth-child(odd) h2{grid-column:1;grid-row:1/span 2;margin:0}
body.specialty-v36 main .penal-execution-copy>.penal-section:last-child:nth-child(odd) p{grid-column:2;margin-bottom:12px}
body.specialty-v36 main .penal-execution-copy>.penal-section:last-child:nth-child(odd) p:last-child{margin-bottom:0}}
@media (min-width:801px){body.specialty-v36 main .area-intro-copy>p,
body.specialty-v36 main .section-head>p,
body.specialty-v36 main .approach-section .shell>p,
body.specialty-v36 main .contact-card p{text-align:justify;text-wrap:pretty}}
@media (min-width:581px) and (max-width:1100px){body.specialty-v36 main .area-grid>:last-child:nth-child(odd),
body.specialty-v36 main .specialty-cluster .practice-grid>:last-child:nth-child(odd){grid-column:1/-1}}

/* v36 · integración del diseño aprobado de las tres especialidades. */
body.specialty-v36 { min-width: 300px; background: linear-gradient(90deg,#c5c0bb 0%,#c1bbb5 48%,#bbb5af 100%) !important; }
body.specialty-v36 main {display:block;min-height:60vh;padding:18px 0 80px;overflow:visible}
body.specialty-v36 main > section { overflow: visible !important; }
body.specialty-v36 main > section > .shell {max-width:none!important;}
/* Neutralizar rejillas y anchos heredados para reproducir el prototipo. */
body.specialty-v36 main .shell.area-intro{display:block!important;}
body.specialty-v36 main .section-head{display:block!important;}
body.specialty-v36 main .page-aside{display:block!important;}
body.specialty-v36 main .eyebrow{display:block!important;}
body.specialty-v36 main .area-intro-copy,
body.specialty-v36 main .section-head{max-width:none!important;width:100%!important;}
body.specialty-v36 main .practice-grid.expanded>.practice,
body.specialty-v36 main .practice-grid .practice{min-height:0!important;height:auto!important;}
body.specialty-v36 main .practice-grid.expanded{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.specialty-v36 main .practice-grid.expanded > .practice{grid-column:auto!important;width:auto!important;justify-self:stretch!important;}
body.specialty-v36 main .approach-section h2{max-width:none!important;}
body.specialty-v36 main .contact-card > div:first-child{max-width:none!important;min-width:0;flex:1 1 auto;}
body.specialty-v36 main .penal-execution-copy{max-width:none!important;width:100%}
/* v38 · El menu Glass hereda el ancho .shell de Inicio y Equipo,
   incluido el margen movil definido para <=620px. */
body.specialty-v36 main .area-number,
body.specialty-v36 main .practice-number{display:none!important}
/* Separar las fuentes y el acceso al servicio penitenciario de la tarjeta anterior. */
body.specialty-v36 main .penal-execution-copy + a.text-link {
  display:inline-block!important; margin-top:clamp(26px,3vw,42px)!important; margin-bottom:12px;
  color:#173b67;font-weight:700;text-decoration:none;
}
body.specialty-v36 main .penal-source-note {margin:0 0 6px!important;line-height:1.8;}
body.specialty-v36 main .penal-source-note a {color:#173b67;text-underline-offset:3px;}
@media(max-width:940px){body.specialty-v36 main{padding-top:14px;padding-bottom:40px}}
@media(max-width:800px){
 body.specialty-v36 main .page-hero-grid{grid-template-columns:minmax(0,1fr)!important;}
 body.specialty-v36 main .page-aside{max-width:none!important;}
}
@media(max-width:580px){
 body.specialty-v36 main .penal-execution-copy + a.text-link{margin-top:25px!important}
 body.specialty-v36 main .practice-grid.expanded{grid-template-columns:minmax(0,1fr)!important}
}

/* v37 · Quitar anclaje sticky heredado de titulos e introducciones de paneles.
   Los titulos deben desplazarse naturalmente con sus tarjetas. */
body.specialty-v36 main .area-intro-copy {
  position: static !important;
  top: auto !important;
}


/* v39 · Desplegables selectivos en las especialidades (contenido presente en el HTML).
   Las cabeceras forman parte del flujo normal; nunca se anclan al viewport. */
body.specialty-v36 main > section .shell > .section-head,
body.specialty-v36 main > section .shell > .area-intro-copy,
body.specialty-v36 main > section .shell > .section-head > div,
body.specialty-v36 main > section .shell > .section-head h2,
body.specialty-v36 main > section .shell > .area-intro-copy h2 {
  max-width:none !important;
  width:100% !important;
  min-width:0;
  position:static !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
}
body.specialty-v36 main > section .shell > .section-head h2,
body.specialty-v36 main > section .shell > .area-intro-copy h2,
body.specialty-v36 main > .approach-section .shell > h2,
body.specialty-v36 main > .contact-section .shell h2 {
  max-width:none !important;
  text-wrap:normal;
}
body.specialty-v36 main .ne-collapsible-section .area-intro-copy,
body.specialty-v36 main .ne-collapsible-section .section-head { margin-bottom:0 !important; }
body.specialty-v36 main .ne-panel-details {display:block;width:100%;max-width:none;min-width:0;margin-top:clamp(22px,2.6vw,32px)}
body.specialty-v36 main .ne-panel-details > summary.ne-accordion-control {
  display:inline-flex!important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  list-style:none;
  background:#0d1e3a;
  color:#fff;
  border:1px solid #0d1e3a;
  padding:15px 22px;
  border-radius:999px;
  font:750 13px/1.2 var(--sans);
  cursor:pointer;
  -webkit-user-select:none;user-select:none;
  min-height:48px;
  transition:background-color .2s,box-shadow .2s;
}
body.specialty-v36 main .ne-panel-details > summary.ne-accordion-control::-webkit-details-marker {display:none;}
body.specialty-v36 main .ne-panel-details > summary.ne-accordion-control::marker {content:'';}
body.specialty-v36 main .ne-panel-details > summary.ne-accordion-control:hover{background:#1d3559;box-shadow:0 8px 18px rgba(12,30,61,.15)}
body.specialty-v36 main .ne-panel-details > summary.ne-accordion-control:focus-visible{outline:3px solid #789bc3;outline-offset:4px}
body.specialty-v36 main .ne-panel-details .ne-label-collapse{display:none}
body.specialty-v36 main .ne-panel-details[open] .ne-label-expand{display:none}
body.specialty-v36 main .ne-panel-details[open] .ne-label-collapse{display:inline}
body.specialty-v36 main .ne-chevron{display:inline-block;width:9px;height:9px;border-bottom:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);margin-top:-5px;transition:transform .2s,margin .2s}
body.specialty-v36 main .ne-panel-details[open] .ne-chevron{transform:rotate(225deg);margin-top:5px}
body.specialty-v36 main .ne-panel-details .ne-panel-body {margin-top:clamp(24px,3vw,40px);max-width:none;width:100%;min-width:0}
body.specialty-v36 main .ne-panel-body .penal-execution-copy{margin-top:0}
body.specialty-v36 main .ne-panel-details:not([open]) > .ne-panel-body{display:none}
@media (max-width:580px){
 body.specialty-v36 main .ne-panel-details{margin-top:21px}
 body.specialty-v36 main .ne-panel-details > summary.ne-accordion-control{padding:14px 19px;min-height:46px}
 body.specialty-v36 main .ne-panel-details .ne-panel-body{margin-top:24px}
}
@media(prefers-reduced-motion:reduce){body.specialty-v36 main .ne-panel-details summary,body.specialty-v36 main .ne-chevron{transition:none}}


/* v40 · Logo igual que Equipo (100 px escritorio, 108 px tableta y 90 px movil).
   Sin cambios de escala al hacer scroll: la misma geometria en los tres idiomas. */
@media(min-width:941px){
 body.specialty-v36 .site-header .brand-logo {width:100px!important; height:auto!important;}
}
@media(min-width:621px) and (max-width:940px){
 body.specialty-v36 .site-header .brand-logo {width:108px!important; height:auto!important;}
}
@media(max-width:620px){
 body.specialty-v36 .site-header .brand-logo {width:90px!important; height:auto!important;}
}

/* v40 · Titular de Derecho Animal en exactamente dos lineas por idioma.
   En anchuras intermedias se da todo el ancho del panel al encabezado.
   El cuerpo y el lateral mantienen su lectura normal. */
body.specialty-v36 main > section.page-hero.ne-animal-hero h1 {
  max-width:none!important;
  font-size:clamp(47px,4.35vw,57px);
  letter-spacing:-.047em;
  text-wrap:initial;
}
body.specialty-v36 main > section.page-hero.ne-animal-hero h1 .ne-animal-title-line {
  display:block;
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:normal;
}
@media(max-width:1100px){
 body.specialty-v36 main > section.page-hero.ne-animal-hero .page-hero-grid {
  grid-template-columns:minmax(0,1fr)!important;
 }
 body.specialty-v36 main > section.page-hero.ne-animal-hero h1 {
  font-size:clamp(23px,7.25vw,57px);
 }
}

/* v40 · Tarjetas de servicio de tamaño uniforme dentro de desplegables.
   Ninguna tarjeta de una fila incompleta se estira para rellenar el espacio. */
body.specialty-v36 main .ne-panel-body .area-grid,
body.specialty-v36 main .ne-panel-body .practice-grid,
body.specialty-v36 main .ne-panel-body .practice-grid.expanded,
body.specialty-v36 main .ne-panel-body .penal-execution-copy {
  grid-auto-rows:1fr;
  align-items:stretch;
}
@media(min-width:1101px){
 body.specialty-v36 main .ne-panel-body .area-grid,
 body.specialty-v36 main .ne-panel-body .practice-grid,
 body.specialty-v36 main .ne-panel-body .practice-grid.expanded {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}
body.specialty-v36 main .ne-panel-body .area-grid > .area-card,
body.specialty-v36 main .ne-panel-body .practice-grid > .practice,
body.specialty-v36 main .ne-panel-body .practice-grid.expanded > .practice,
body.specialty-v36 main .ne-panel-body .penal-execution-copy > .penal-section {
  grid-column:auto!important;
  grid-row:auto!important;
  min-width:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  box-sizing:border-box;
  display:flex!important;
  flex-direction:column!important;
  justify-self:stretch!important;
  align-self:stretch!important;
}
body.specialty-v36 main .ne-panel-body .practice-grid > .practice:only-child h3,
body.specialty-v36 main .ne-panel-body .practice-grid > .practice:only-child p,
body.specialty-v36 main .ne-panel-body .practice-grid > .practice:only-child .text-link,
body.specialty-v36 main .ne-panel-body .penal-execution-copy > .penal-section:last-child:nth-child(odd) h2,
body.specialty-v36 main .ne-panel-body .penal-execution-copy > .penal-section:last-child:nth-child(odd) p {
  grid-column:auto!important;
  grid-row:auto!important;
}
body.specialty-v36 main .ne-panel-body .practice-grid > .practice:only-child h3,
body.specialty-v36 main .ne-panel-body .penal-execution-copy > .penal-section:last-child:nth-child(odd) h2 {
 margin-bottom:15px!important;
}
@media(max-width:580px){
 body.specialty-v36 main .ne-panel-body .area-grid,
 body.specialty-v36 main .ne-panel-body .practice-grid,
 body.specialty-v36 main .ne-panel-body .practice-grid.expanded,
 body.specialty-v36 main .ne-panel-body .penal-execution-copy {
  grid-auto-rows:1fr;
 }
 body.specialty-v36 main .ne-panel-body .area-grid > .area-card,
 body.specialty-v36 main .ne-panel-body .practice-grid > .practice,
 body.specialty-v36 main .ne-panel-body .penal-execution-copy > .penal-section {
  height:100%!important;
 }
}
/* Misma anchura y altura de los botones de apertura, independientemente del texto. */
body.specialty-v36 main .ne-panel-details > summary.ne-accordion-control {
  box-sizing:border-box;
  width:185px;
  min-height:48px;
}
@media(max-width:580px){
 body.specialty-v36 main .ne-panel-details > summary.ne-accordion-control {
  width:185px;
  min-height:48px;
 }
}
