/* Universitarios DMS Landing Premium — mobile-first corrections v2.0.2 */
@media (max-width: 767px) {
  html, body.udms-landing-body { overflow-x: hidden; }
  body.udms-landing-body { background:#eef1f8; }
  .udms-page { width:100%; overflow:hidden; }
  .udms-shell { width:calc(100% - 28px) !important; max-width:none; }

  /* Header: compact, usable and without empty white button */
  .udms-site-header { position:sticky; top:0; z-index:999; }
  body.udms-landing-body.admin-bar .udms-site-header { top:46px; }
  .udms-header-inner {
    width:calc(100% - 24px) !important;
    height:64px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:8px;
    align-items:center;
  }
  .udms-brand { gap:8px; min-width:0; }
  .udms-brand-mark { width:36px; height:36px; flex-basis:36px; font-size:11px; }
  .udms-brand-text strong { font-size:15px; line-height:1; }
  .udms-brand-text small { display:block; margin-top:3px; font-size:8px; white-space:nowrap; }
  .udms-menu-toggle {
    display:grid !important;
    place-items:center;
    width:40px;
    height:40px;
    padding:0;
    border:1px solid rgba(168,85,247,.75);
    border-radius:10px;
    background:rgba(76,29,149,.24);
    color:#fff;
    font-size:0;
    line-height:1;
    box-shadow:0 0 16px rgba(124,58,237,.16);
    order:initial;
  }
  .udms-menu-toggle::before { content:'☰'; font-size:21px; }
  .udms-menu-toggle[aria-expanded="true"]::before { content:'×'; font-size:25px; }
  .udms-login-button {
    width:40px;
    height:40px;
    padding:0 !important;
    border-radius:10px;
    order:initial;
  }
  .udms-login-button span:first-child { font-size:18px; }
  .udms-login-button span:last-child { display:none !important; }
  .udms-main-nav {
    position:absolute;
    z-index:1000;
    left:12px;
    right:12px;
    top:64px;
    display:none;
    flex-direction:column;
    gap:4px;
    padding:12px;
    border:1px solid rgba(139,92,246,.35);
    border-radius:0 0 14px 14px;
    background:rgba(2,6,23,.98);
    box-shadow:0 22px 44px rgba(0,0,0,.38);
  }
  .udms-main-nav.is-open { display:flex; }
  .udms-main-nav a {
    width:100%;
    padding:12px 14px;
    border-radius:9px;
    text-align:left;
    font-size:14px;
  }
  .udms-main-nav a:hover,.udms-main-nav a.is-active { background:rgba(124,58,237,.15); }
  .udms-main-nav a::after { display:none; }

  /* Hero: true vertical layout, no horizontal squeeze */
  .udms-hero { background:radial-gradient(circle at 70% 35%,#33205f 0,#15133c 34%,#070b22 68%,#020617 100%); }
  .udms-hero-grid {
    min-height:0 !important;
    padding:42px 0 34px !important;
    display:flex !important;
    flex-direction:column;
    gap:38px !important;
    transform:none !important;
  }
  .udms-hero-copy {
    width:100%;
    text-align:left !important;
  }
  .udms-hero h1 {
    width:100%;
    max-width:none !important;
    margin:0 0 20px !important;
    font-size:clamp(38px,11.2vw,50px) !important;
    line-height:.98 !important;
    letter-spacing:-1.4px !important;
    text-wrap:balance;
  }
  .udms-hero h1 span,.udms-hero h1 em { display:inline; }
  .udms-hero h1 span::after,.udms-hero h1 em::after { content:' '; }
  .udms-hero-copy>p {
    max-width:none !important;
    margin:0 !important;
    font-size:15px !important;
    line-height:1.55 !important;
    font-weight:550;
  }
  .udms-search {
    width:100%;
    max-width:none !important;
    margin:24px 0 20px !important;
    grid-template-columns:minmax(0,1fr) 54px !important;
  }
  .udms-search input {
    height:52px;
    padding:0 15px;
    font-size:13px;
    border-color:rgba(139,92,246,.25);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
  }
  .udms-search button { border-radius:0 11px 11px 0; font-size:24px; }
  .udms-search a { display:none !important; }
  .udms-proof {
    width:100%;
    max-width:none !important;
    margin:0 !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px 12px !important;
  }
  .udms-proof span { font-size:11px; grid-template-columns:22px 1fr; }
  .udms-proof i { font-size:18px; }
  .udms-proof small { font-size:9px; }

  /* LEO ecosystem: logo first, cards below in two clean columns */
  .udms-ecosystem {
    width:100%;
    max-width:none !important;
    margin:0 !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:auto auto auto !important;
    gap:12px !important;
    transform:none !important;
  }
  .udms-leo-wrap {
    grid-column:1/-1 !important;
    grid-row:1 !important;
    margin:0 0 14px;
  }
  .udms-leo-ring {
    width:min(270px,78vw) !important;
    margin:auto;
  }
  .udms-leo-ring img { width:69%; max-height:69%; }
  .udms-leo-ring p { font-size:16px; }
  .udms-online { right:22px; top:18px; font-size:10px; }
  .udms-ecosystem-column { display:contents !important; }
  .udms-ecosystem-left .udms-orbit-card:nth-child(1) { grid-column:1; grid-row:2; }
  .udms-ecosystem-right .udms-orbit-card:nth-child(1) { grid-column:2; grid-row:2; }
  .udms-ecosystem-left .udms-orbit-card:nth-child(2) { grid-column:1; grid-row:3; }
  .udms-ecosystem-right .udms-orbit-card:nth-child(2) { grid-column:2; grid-row:3; }
  .udms-ecosystem-left .udms-orbit-card:nth-child(3) { grid-column:1; grid-row:4; }
  .udms-ecosystem-right .udms-orbit-card:nth-child(3) { grid-column:2; grid-row:4; }
  .udms-orbit-card {
    width:100%;
    min-width:0;
    min-height:66px !important;
    padding:9px 10px !important;
    border-radius:16px !important;
    gap:8px;
  }
  .udms-orbit-card i {
    width:34px !important;
    height:34px !important;
    flex-basis:34px !important;
    font-size:14px;
  }
  .udms-orbit-card b { font-size:9.5px !important; overflow-wrap:anywhere; }
  .udms-orbit-card small { font-size:8px !important; }
  .udms-week-pill {
    grid-column:1/-1 !important;
    grid-row:5 !important;
    width:100% !important;
    min-width:0 !important;
    margin-top:2px;
  }
  .udms-week-pill b { font-size:10px; }
  .udms-week-pill small { font-size:8px; }
  .udms-week-pill strong { font-size:8px; }

  /* Subscription cards: readable two-column grid */
  .udms-includes { padding:24px 0 28px; border-radius:22px 22px 0 0; }
  .udms-includes h2 { max-width:280px; margin:0 auto 20px; font-size:20px; line-height:1.12; }
  .udms-cards { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
  .udms-card {
    min-width:0;
    min-height:280px !important;
    padding:14px 11px !important;
    border-radius:13px;
  }
  .udms-card-icon { width:40px; height:40px; margin-bottom:10px; font-size:17px; }
  .udms-card h3 { font-size:11px; overflow-wrap:anywhere; }
  .udms-card p,.udms-card li,.udms-card a { font-size:9px; }
  .udms-card li { margin:6px 0; }

  /* Remaining sections: single-column and comfortable */
  .udms-ai-demo {
    width:calc(100% - 28px) !important;
    margin:14px auto 0 !important;
    padding:18px !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
  .udms-demo-copy h2 { font-size:25px; }
  .udms-legal-doc,.udms-leo-actions { min-height:0; }
  .udms-demo-benefits { grid-template-columns:1fr !important; }
  .udms-week { grid-template-columns:1fr !important; gap:10px; }
  .udms-week aside { display:flex !important; min-height:160px; }
  .udms-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:0; }
  .udms-stats span { padding:14px 8px; }
  .udms-stats b { font-size:18px; }
  .udms-bottom { grid-template-columns:1fr !important; }
  .udms-price-card>div { grid-template-columns:1fr !important; }
  .udms-workflow-row { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .udms-workflow-row span { flex:none !important; width:auto; }
  .udms-workflow-row i { display:none !important; }
  .udms-footer .udms-shell { display:grid; grid-template-columns:1fr; gap:9px; justify-items:center; text-align:center; }
}

@media (max-width: 390px) {
  .udms-shell { width:calc(100% - 22px) !important; }
  .udms-brand-text strong { font-size:14px; }
  .udms-brand-text small { font-size:7px; }
  .udms-hero-grid { padding-top:34px !important; }
  .udms-hero h1 { font-size:37px !important; }
  .udms-hero-copy>p { font-size:14px !important; }
  .udms-leo-ring { width:min(244px,76vw) !important; }
  .udms-orbit-card { min-height:62px !important; padding:8px !important; }
  .udms-orbit-card b { font-size:8.8px !important; }
  .udms-cards { gap:8px !important; }
  .udms-card { padding:12px 9px !important; min-height:270px !important; }
  .udms-card h3 { font-size:10px; }
}

/* v2.0.3 — correcciones móviles puntuales aprobadas */
@media (max-width: 767px) {
  /* Cabecera: elimina el cuadro blanco y muestra controles coherentes */
  .udms-header-inner {
    grid-template-columns:minmax(0,1fr) 42px 42px !important;
    gap:8px !important;
  }
  button.udms-menu-toggle {
    -webkit-appearance:none !important;
    appearance:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid rgba(168,85,247,.72) !important;
    border-radius:11px !important;
    background:linear-gradient(145deg,rgba(76,29,149,.48),rgba(15,23,42,.94)) !important;
    box-shadow:0 0 18px rgba(124,58,237,.18) !important;
    color:#fff !important;
    font:700 21px/1 Arial,sans-serif !important;
    text-indent:0 !important;
    opacity:1 !important;
  }
  button.udms-menu-toggle::before { content:none !important; }
  button.udms-menu-toggle[aria-expanded="true"] {
    font-size:0 !important;
  }
  button.udms-menu-toggle[aria-expanded="true"]::after {
    content:'×';
    display:block;
    color:#fff;
    font:700 25px/1 Arial,sans-serif;
  }
  .udms-login-button {
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    margin:0 !important;
    border-radius:11px !important;
    background:linear-gradient(145deg,rgba(76,29,149,.42),rgba(15,23,42,.92)) !important;
  }

  /* Hero con mejor respiración y lectura */
  .udms-hero-grid { padding-top:48px !important; gap:34px !important; }
  .udms-hero h1 {
    margin-bottom:24px !important;
    font-size:clamp(39px,11vw,48px) !important;
    line-height:1.025 !important;
    letter-spacing:-1.25px !important;
  }
  .udms-hero-copy>p {
    font-size:14px !important;
    line-height:1.58 !important;
  }

  /* Buscador: texto visible, sin corte lateral */
  .udms-search {
    grid-template-columns:minmax(0,1fr) 50px !important;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(0,0,0,.2),0 0 0 1px rgba(139,92,246,.13);
  }
  .udms-search input {
    width:100% !important;
    min-width:0 !important;
    height:50px !important;
    padding:0 14px !important;
    font-size:12.5px !important;
    text-overflow:ellipsis;
  }
  .udms-search button { width:50px !important; min-width:50px !important; }

  /* Indicadores como tarjetas legibles 2 x 2 y una tarjeta final */
  .udms-proof {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .udms-proof span {
    min-height:66px;
    padding:10px 9px !important;
    align-content:center;
    grid-template-columns:24px minmax(0,1fr) !important;
    column-gap:7px !important;
    border:1px solid rgba(139,92,246,.24);
    border-radius:12px;
    background:rgba(8,14,35,.48);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  }
  .udms-proof span:last-child { grid-column:1/-1; }
  .udms-proof i { font-size:18px !important; align-self:center; }
  .udms-proof b { font-size:11px !important; line-height:1.08; }
  .udms-proof small { font-size:9px !important; line-height:1.15; }

  /* Ecosistema: más aire entre el círculo y los módulos */
  .udms-leo-wrap { margin-bottom:20px !important; }
  .udms-orbit-card { min-height:70px !important; }
}

@media (max-width: 390px) {
  .udms-header-inner { width:calc(100% - 18px) !important; }
  .udms-brand { gap:7px !important; }
  .udms-brand-mark { width:34px !important; height:34px !important; flex-basis:34px !important; }
  .udms-brand-text strong { font-size:13px !important; }
  .udms-brand-text small { font-size:7px !important; }
  button.udms-menu-toggle,.udms-login-button {
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
  }
  .udms-hero-grid { padding-top:42px !important; }
  .udms-hero h1 { font-size:38px !important; }
}
@media(max-width:767px){
 .udms-search.udms-research-form{grid-template-columns:minmax(0,1fr) 54px!important}.udms-search.udms-research-form button b{display:none}.udms-popular{margin-top:-10px}.udms-popular span{width:100%}
 .udms-research-results{padding:30px 0;scroll-margin-top:64px}.udms-research-progress{padding:34px 16px}.udms-research-progress ul{grid-template-columns:1fr;font-size:13px}.udms-research-progress h2,.udms-research-dashboard h2{font-size:28px}
 .udms-result-grid{grid-template-columns:1fr 1fr;gap:9px}.udms-result-card{min-height:155px;padding:13px 10px;gap:8px;flex-direction:column}.udms-result-icon{width:36px;height:36px;flex-basis:36px}.udms-result-card strong{font-size:20px}.udms-result-card li{max-width:125px}.udms-result-lock{font-size:7px}
 .udms-preview-card{padding:16px;flex-direction:column}.udms-preview-icon{width:44px;height:44px;flex-basis:44px}.udms-unlock-grid{padding:18px;grid-template-columns:1fr}.udms-unlock-grid ul{font-size:13px}
}


@media(max-width:767px){
 .udms-leo-research-status{grid-template-columns:44px 1fr;padding:16px;gap:11px}.udms-leo-status-icon{width:44px;height:44px;font-size:19px}.udms-leo-research-status h3{font-size:16px}.udms-leo-research-status p{font-size:12px}.udms-leo-research-status>span{grid-column:1/-1;justify-self:start;font-size:9px}
 .udms-map-heading{margin:18px 0 12px}.udms-map-heading p{font-size:11px}
 .udms-legal-map{padding:10px;grid-template-columns:1fr 1fr}.udms-legal-map::before{display:none}.udms-legal-map::after{display:none}
 .udms-result-card{min-height:168px}.udms-premium-title{font-size:15px!important}.udms-premium-message{font-size:9px!important}
}
@media(max-width:390px){.udms-legal-map{grid-template-columns:1fr}.udms-result-card{min-height:145px}}

/* v2.3.0 — investigación móvil */
@media (max-width: 767px){
  .udms-research-results{padding:34px 0}
  .udms-result-hero h2{font-size:34px}
  .udms-dossier-card{grid-template-columns:48px minmax(0,1fr);padding:16px;gap:12px}
  .udms-dossier-seal{width:48px;height:48px;font-size:21px}
  .udms-dossier-card dl{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .udms-dossier-card dl div{padding:9px 7px;text-align:center}.udms-dossier-card dt{font-size:7px}.udms-dossier-card dd{font-size:14px}
  .udms-leo-research-status{grid-template-columns:46px minmax(0,1fr);padding:16px}.udms-leo-research-status>span{grid-column:1/-1;justify-self:start}
  .udms-document-previews{grid-template-columns:1fr;gap:14px}
  .udms-document-preview>header{grid-template-columns:40px minmax(0,1fr);padding:13px}.udms-access-badge{grid-column:1/-1;justify-self:start;margin-left:51px}
  .udms-paper-preview{min-height:220px;margin:12px;padding:18px 18px 52px}.udms-paper-preview h3{font-size:17px}.udms-doc-excerpt{font-size:12px;line-height:1.68}
}
@media (max-width: 390px){
  .udms-dossier-card dl{grid-template-columns:1fr 1fr}.udms-dossier-card dl div:last-child{grid-column:1/-1}
}


@media (max-width:767px){
  .udms-intent-card{grid-template-columns:46px 1fr;padding:15px;gap:12px}.udms-intent-icon{width:46px;height:46px;font-size:20px}.udms-intent-card h3{font-size:17px}.udms-intent-card>span{grid-column:1/-1;justify-self:start}.udms-document-preview.is-primary-result{grid-column:auto}.udms-document-preview.is-primary-result .udms-paper-preview{min-height:245px}
}

/* v2.5.0 – resultado práctico en móvil */
@media (max-width:900px){.udms-smart-demo-grid{grid-template-columns:1fr}.udms-ai-sales-panel{order:2}}
@media (max-width:600px){
  .udms-smart-demo-grid{gap:14px}.udms-primary-document,.udms-ai-sales-panel{border-radius:18px}
  .udms-primary-document>header{grid-template-columns:44px minmax(0,1fr);padding:14px;gap:10px}.udms-primary-document>header>span{display:none}.udms-primary-doc-icon{width:44px;height:44px;border-radius:12px;font-size:20px}.udms-primary-document>header h3{font-size:17px}
  .udms-primary-doc-paper{min-height:340px;margin:12px;padding:24px 20px 95px}.udms-primary-doc-paper>p{font-size:15px;line-height:1.75}.udms-primary-doc-meta{display:grid;gap:5px}
  .udms-ai-sales-panel{padding:17px}.udms-ai-sales-heading img{width:52px;height:52px}.udms-ai-sales-heading h3{font-size:19px}.udms-ai-sales-intro{font-size:13px}.udms-ai-tools-list article{padding:11px}.udms-ai-tools-list p{font-size:10.5px}
}


/* v2.6.2 — reducción puntual del título en móvil. */
@media(max-width:680px){
  .udms-hero-heading .udms-hero-heading-main,
  .udms-hero-heading .udms-hero-heading-gold{
    display:block !important;
  }
  .udms-hero-heading .udms-hero-heading-main::after,
  .udms-hero-heading .udms-hero-heading-gold::after{content:none !important;}
  .udms-hero-heading .udms-hero-heading-main{
    font-size:clamp(27px,8.1vw,32px) !important;
    line-height:1.05 !important;
    letter-spacing:-.65px !important;
  }
  .udms-hero-heading .udms-hero-heading-gold{
    margin:7px 0 10px !important;
    font-size:clamp(13px,4.1vw,16px) !important;
    line-height:1.22 !important;
    letter-spacing:0 !important;
  }
  .udms-hero-heading .udms-hero-heading-final{
    font-size:clamp(23px,7vw,28px) !important;
    line-height:1.08 !important;
  }
}
