/* Escuela Doctoral · diseño estable: un único contrato responsive para todas las páginas.
   Evita dos filas en accesos principales, diapositivas ocultas y bloques vacíos. */
html,body{max-width:100%;overflow-x:clip}
.site-header,.site-header .header-main,.site-header .brand,.site-header .brand-name,
.hero,.hero-inner,.hero-slider,.slider-content,.editorial-section,.editorial-layout,
.editorial-column,.editorial-feed,.editorial-side,.editorial-card,.editorial-card-body{min-width:0}
.site-header .header-main,.editorial-section .wrap{max-width:var(--max);width:100%;box-sizing:border-box}
.hero,.editorial-section{overflow-x:clip}
.hero .hero-inner{min-height:0}
.hero .slider-content{display:block;position:relative}
.hero .slider-content .hero-slide{position:absolute;inset:0 auto auto 0;width:100%;opacity:0;visibility:hidden;pointer-events:none}
.hero .slider-content .hero-slide.is-active{position:relative;inset:auto;opacity:1;visibility:visible;pointer-events:auto}
.hero .hero-cta{margin-bottom:0}
.editorial-section{padding:36px 0 45px}
.editorial-section .editorial-heading{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;margin-bottom:20px}
.editorial-section .editorial-heading h2{font-size:clamp(26px,3.3vw,37px);line-height:1.2;margin:0;letter-spacing:-.028em}
.editorial-section .editorial-layout{grid-template-columns:minmax(0,1.65fr) minmax(0,.95fr);gap:21px}
.editorial-section:not(.has-side) .editorial-layout{display:block}
.editorial-section:not(.has-side) .editorial-column{max-width:850px}
.editorial-section .editorial-side[hidden],.editorial-section .editorial-column[hidden]{display:none!important}
.editorial-section .editorial-block-title{display:flex;flex-wrap:wrap;align-items:center;gap:7px;justify-content:space-between;margin-bottom:12px;padding-bottom:9px}
.editorial-section .editorial-block-title>a{white-space:normal}
.editorial-card img{display:block;max-width:100%}
.site-header .header-actions .access-lock,.site-header .header-actions .header-return{background:transparent!important;border:0!important;box-shadow:none!important}
@media(min-width:1201px){
 .site-header .header-main .mobile-header-controls{display:contents}
 .site-header .mobile-shortcuts{display:none}
 .site-header .menu-toggle{display:none}
 .site-header .navbar .main-nav{display:flex;flex-wrap:nowrap;gap:0;justify-content:space-between;align-items:center;min-width:0}
 .site-header .navbar .main-nav a{font-size:clamp(10px,.82vw,12px);padding:9px 5px;white-space:nowrap}
}
@media(max-width:1200px) and (min-width:741px){
 .site-header .header-main{display:flex;align-items:center;justify-content:space-between;gap:16px}
 .site-header .header-main .mobile-header-controls{display:flex;align-items:center;gap:13px}
 .site-header .mobile-shortcuts{display:none}
 .site-header .header-actions{display:flex;align-items:center;gap:12px}
 .site-header .menu-toggle{display:flex!important;position:relative}
 .site-header .navbar{display:none}
 .site-header .navbar.open{display:block}
 .site-header .navbar.open .main-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .site-header .navbar.open .main-nav a{white-space:normal}
}
@media(max-width:900px){
 .editorial-section .editorial-layout{grid-template-columns:minmax(0,1fr)}
 .editorial-section .editorial-side{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:740px){
 /* Mantiene el logo y los textos de identificación, separados de los accesos. */
 .site-header .header-main{display:block!important;padding-top:10px!important;padding-bottom:0!important;min-height:0!important}
 .site-header .header-main .brand{display:flex!important;flex-direction:row!important;gap:9px!important;align-items:center!important;width:100%!important;min-width:0!important;max-width:100%!important}
 .site-header .header-main .brand-logo{width:clamp(82px,25vw,108px)!important;max-width:108px!important;flex:0 0 clamp(82px,25vw,108px)!important;height:auto!important}
 .site-header .header-main .brand-name{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;width:auto!important;order:initial!important;padding:2px 0 2px 10px!important;border-left:1px solid #dce3e7!important;border-top:0!important;gap:0!important}
 .site-header .header-main .brand-name strong{font-size:clamp(13px,4.1vw,18px)!important;line-height:1.2!important;letter-spacing:-.012em!important;white-space:nowrap!important}
 .site-header .header-main .brand-name small{font-size:clamp(9px,2.75vw,11px)!important;line-height:1.3!important;letter-spacing:-.02em!important;margin-top:5px!important;white-space:nowrap!important}
 /* Navegación: espaciado igual para todas las parejas de accesos. */
 .site-header .header-main .mobile-header-controls,.site-header .mobile-header-controls{
   display:grid!important;
   grid-template-columns:max-content max-content max-content max-content 34px!important;
   grid-template-rows:42px!important;
   align-items:center!important;
   justify-content:space-between!important;
   column-gap:clamp(5px,1.3vw,9px)!important;
   min-width:0!important;width:100%!important;max-width:100%!important;
   border-top:1px solid #e1e8ec!important;margin:12px 0 0!important;
   padding:7px 0 6px!important;
 }
 .site-header .header-main .mobile-shortcuts,.site-header .mobile-shortcuts{display:contents!important}
 .site-header .header-main .mobile-shortcuts a,.site-header .mobile-shortcuts a{
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   width:max-content!important;min-width:0!important;max-width:100%!important;
   white-space:nowrap!important;line-height:1.2!important;
   font-weight:750!important;letter-spacing:-.02em!important;
   padding:7px 0!important;min-height:34px!important;
   font-size:clamp(10px,2.75vw,13px)!important;
   text-align:center!important;
 }
 .site-header .mobile-shortcuts a:nth-child(1){grid-column:1!important;grid-row:1!important}
 .site-header .mobile-shortcuts a:nth-child(2){grid-column:2!important;grid-row:1!important}
 .site-header .mobile-shortcuts a:nth-child(3){grid-column:3!important;grid-row:1!important}
 .site-header .header-main .header-actions,.site-header .header-actions{
   grid-column:4!important;grid-row:1!important;display:flex!important;
   align-items:center!important;justify-content:center!important;
   width:max-content!important;min-width:0!important;max-width:100%!important;
   padding:0!important;margin:0!important;gap:0!important;
 }
 .site-header .header-actions .header-return{
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   width:max-content!important;min-width:0!important;max-width:100%!important;
   padding:7px 0!important;min-height:34px!important;height:auto!important;
   font-size:clamp(10px,2.65vw,12px)!important;font-weight:750!important;
   letter-spacing:-.02em!important;white-space:nowrap!important;
 }
 .site-header .header-portal-prefix{display:none!important}
 .site-header .header-main .menu-toggle,.site-header .menu-toggle{
   grid-column:5!important;grid-row:1!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
   width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;
   flex:none!important;margin:0!important;padding:6px!important;
 }
 /* Logotipo independiente del separador; candado en extremo derecho del título. */
 .site-header .header-main .brand{gap:clamp(15px,3.8vw,21px)!important}
 .site-header .header-main .brand-name{padding-left:12px!important}
 .site-header .brand-name .brand-title-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-width:0!important}
 .site-header .brand-title-row .access-lock-top{margin-left:auto!important;flex-shrink:0!important}
 .site-header .navbar{display:none}
 .site-header .navbar.open{display:block}
 .site-header .navbar.open .main-nav{display:flex;flex-direction:column;align-items:stretch}
 .site-header .navbar.open .main-nav a{white-space:normal}
 .hero .hero-inner{min-height:0!important;padding-top:28px!important;padding-bottom:23px!important}
 .hero .hero-slide h1,.hero .hero-slide h2{font-size:clamp(31px,7.8vw,43px)!important;line-height:1.15!important;margin-bottom:14px!important}
 .hero .hero-slide p{font-size:15px!important;line-height:1.6!important}
 .hero .hero-cta{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin-top:23px!important;margin-bottom:0!important}
 .hero .hero-cta .btn{width:100%!important;min-width:0!important;padding:14px 10px!important;min-height:0!important}
 .editorial-section{padding:27px 0 34px!important}
 .editorial-section .editorial-heading{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:15px!important}
 .editorial-section .editorial-heading h2{font-size:clamp(24px,6.5vw,31px)!important;line-height:1.18!important;margin:0!important}
 .editorial-section .editorial-all{font-size:12px!important;white-space:nowrap!important}
 .editorial-section .editorial-layout{display:block!important}
 .editorial-section .editorial-side{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:15px!important}
 .editorial-section .editorial-side[hidden]{display:none!important}
 .editorial-section .editorial-column,.editorial-section .editorial-feed{min-width:0;max-width:100%}
 .editorial-section .editorial-card{width:100%;max-width:100%;overflow:hidden}
 .editorial-card-body{padding:16px!important}
 .editorial-card .editorial-photo img{width:100%!important;height:100%!important;object-fit:cover!important}
}
@media(max-width:400px){
 .site-header .header-main .mobile-header-controls{grid-template-columns:max-content max-content max-content max-content 30px!important;column-gap:4px!important}
 .site-header .header-main .mobile-shortcuts a{font-size:clamp(9px,2.7vw,10.8px)!important;letter-spacing:-.035em!important;font-weight:750!important}
 .site-header .header-actions .header-return{font-size:clamp(9px,2.62vw,10.5px)!important}
 .site-header .header-main .menu-toggle{width:30px!important;min-width:30px!important;height:32px!important;min-height:32px!important}
}
@media(max-width:350px){
 .site-header .header-main .mobile-header-controls{column-gap:4px!important;grid-template-columns:max-content max-content max-content max-content 28px!important}
 .site-header .header-main .mobile-shortcuts a{font-size:9px!important;letter-spacing:-.03em!important}
 .site-header .header-actions .header-return{font-size:9px!important}
 .site-header .header-main .menu-toggle{width:28px!important;min-width:28px!important}
 .site-header .header-main .brand-logo{width:78px!important;flex-basis:78px!important}
}


/* Cabecera institucional: compactar identificación y adaptar candado por dispositivo. */
.site-header .brand-name small{margin-top:2px!important;line-height:1.23!important}
.site-header .nav-group{position:relative;display:flex;align-items:center;min-width:max-content;flex:0 0 auto}
.site-header .nav-group .nav-parent{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.site-header .nav-group .nav-parent::after{content:"";width:5px;height:5px;display:inline-block;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:translateY(-2px) rotate(45deg);margin:0 2px}
.site-header .nav-group .nav-submenu{
  display:block;position:absolute;z-index:150;top:calc(100% - 1px);left:0;
  min-width:190px;padding:7px;background:#fff;border:1px solid #e6eaee;border-radius:9px;
  box-shadow:0 12px 28px #142c421c;opacity:0;visibility:hidden;
  transform:translateY(6px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease
}
.site-header .nav-group.is-open .nav-submenu{
  display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  transform:translateY(0)!important
}
.site-header .nav-group .nav-submenu a{display:block;padding:10px 13px!important;font-size:13px!important;white-space:nowrap!important;color:#263c4a}
.site-header .nav-group .nav-submenu a:hover,.site-header .nav-group .nav-submenu a:focus-visible{color:var(--wine);background:#fbedf2}
@media(min-width:741px){
  .site-header .brand-title-row .access-lock-top{display:none!important}
  .site-header .header-actions{display:flex!important;align-items:center!important;gap:8px!important}
  .site-header .header-actions .access-lock-desktop{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:30px!important;height:34px!important;min-height:34px!important;flex:0 0 30px!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;color:var(--wine)!important
  }
  .site-header .header-actions .access-lock-desktop svg{width:19px!important;height:19px!important}
  .site-header .header-actions .header-return{padding-left:0!important;padding-right:0!important}
}
@media(min-width:1201px){
  .site-header .navbar .main-nav{gap:0!important;flex-wrap:nowrap!important}
  .site-header .navbar .main-nav .nav-group{width:max-content!important;min-width:max-content!important;flex-shrink:0!important}
  .site-header .navbar .main-nav>a,.site-header .navbar .main-nav .nav-parent{
    font-size:clamp(12px,.94vw,13.5px)!important;font-weight:760!important;
    padding:9px clamp(3px,.42vw,7px)!important;
    letter-spacing:-.012em!important;white-space:nowrap!important
  }
}
@media(max-width:1200px){
  .site-header .navbar.open .main-nav .nav-group{width:100%;min-width:0;display:block}
  .site-header .navbar.open .main-nav .nav-group .nav-parent{display:flex}
  .site-header .navbar.open .main-nav .nav-group .nav-submenu{
    display:block;position:static;opacity:1;visibility:visible;transform:none;
    box-shadow:none;border:0;background:#faf7f8;padding:0 0 0 16px;border-radius:6px;
    width:100%;min-width:0
  }
  .site-header .navbar.open .main-nav .nav-group .nav-submenu a{display:block;padding:8px 13px!important}
}
@media(max-width:740px){
  .site-header .header-actions .access-lock-desktop{display:none!important}
  .site-header .brand-title-row .access-lock-top{display:inline-flex!important}
  .site-header .header-main .brand-name small{margin-top:2px!important;line-height:1.23!important}
  .site-header .navbar.open .main-nav .nav-group .nav-parent{white-space:normal}
}


/* Navegación de Escuela Doctoral: despliegue únicamente al pulsar (ratón, tacto y teclado). */
.site-header .navbar .main-nav .nav-group .nav-parent{
  appearance:none;font-family:inherit;font-size:13px;font-weight:720;line-height:1.35;
  display:inline-flex;align-items:center;gap:5px;
  padding:10px 14px;border:0;border-radius:8px;background:transparent;
  color:#3f4f5b;cursor:pointer;text-align:left;text-decoration:none;
}
.site-header .navbar .main-nav .nav-group .nav-parent:hover,
.site-header .navbar .main-nav .nav-group .nav-parent:focus-visible,
.site-header .navbar .main-nav .nav-group.is-open .nav-parent{
  background:#f6eef1;color:var(--wine);
}
.site-header .navbar .main-nav .nav-group .nav-parent:focus-visible{
  outline:2px solid var(--wine);outline-offset:2px;
}
.site-header .nav-group.is-open .nav-parent::after{
  transform:translateY(2px) rotate(225deg);
}
@media(min-width:941px) and (max-width:1200px){
  .site-header .navbar .main-nav .nav-group .nav-parent{font-size:12.5px;padding:9px 10px}
}
@media(max-width:1200px){
  .site-header .navbar.open .main-nav .nav-group .nav-parent{
    display:flex!important;width:100%!important;justify-content:space-between;
    min-height:44px;box-sizing:border-box;
    padding:12px 15px!important;font-size:15px!important;
  }
  .site-header .navbar.open .main-nav .nav-group .nav-submenu{
    display:none!important;position:static!important;opacity:0!important;
    visibility:hidden!important;pointer-events:none!important;transform:none!important;
    box-shadow:none!important;border:0!important;background:#faf7f8!important;
    padding:0!important;border-radius:6px!important;width:100%!important;min-width:0!important;
  }
  .site-header .navbar.open .main-nav .nav-group.is-open .nav-submenu{
    display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
    padding:4px 0 4px 16px!important;
  }
  .site-header .navbar.open .main-nav .nav-group .nav-submenu a{
    display:block!important;padding:11px 13px!important;min-height:42px;box-sizing:border-box;
    font-size:14px!important;white-space:normal!important;
  }
}
@media(max-width:740px){
  /* Una sola unidad visual entre título y subtítulo; sin los 2–5 px residuales anteriores. */
  .site-header .header-main .brand-name{gap:0!important}
  .site-header .header-main .brand-title-row,
  .site-header .header-main .brand-title-row .brand-heading{line-height:1.06!important}
  .site-header .header-main .brand-title-row strong{line-height:1.06!important}
  .site-header .header-main .brand-name small{
    margin-top:-3px!important;line-height:1.05!important;
  }
}
