/* PermisosRD 7.64.99 — Portada compacta en móvil (720px o menos).
   Clases repetidas a propósito: superan las reglas de la portada y las de HR, que convierte
   las tarjetas en carrusel horizontal (data-hr-mobile-scroller). */
@media (max-width:720px){

  /* Portada: menos alto en el encabezado. */
  body .prd-home-v152 .prd-hero-v152{gap:14px!important;padding-top:18px!important}
  body .prd-home-v152 .prd-hero-copy-v152{padding:20px 16px!important}
  body .prd-home-v152 .prd-hero-copy-v152 h1{font-size:25px!important;line-height:1.15!important;margin:10px 0 8px!important}
  body .prd-home-v152 .prd-hero-copy-v152 > p{font-size:14.5px!important;line-height:1.45!important;margin:0 0 12px!important}
  body .prd-home-v152 .prd-hero-search-v152{padding:6px!important;gap:6px!important}
  body .prd-home-v152 .prd-hero-search-v152 input{min-height:44px!important;font-size:16px!important}
  body .prd-home-v152 .prd-hero-search-v152 button{min-height:44px!important;padding:10px 14px!important;font-size:15px!important}

  /* Botones: Asistente y Catálogo en una fila; Orientación debajo. */
  body .prd-home-v152 .prd-hero-actions-v152.prd-hero-actions-v152{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:10px!important;
  }
  body .prd-home-v152 .prd-hero-actions-v152 > a{
    min-height:44px!important;padding:10px 8px!important;margin:0!important;width:100%!important;box-sizing:border-box!important;
    font-size:14px!important;line-height:1.2!important;border-radius:12px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal!important;
  }
  body .prd-home-v152 .prd-hero-actions-v152 > a:nth-child(n+3){grid-column:1/-1!important}

  /* Ejemplos rápidos: dos por fila, más pequeños. */
  body .prd-home-v152 .prd-home-examples-v152.prd-home-examples-v152{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:10px!important;
  }
  body .prd-home-v152 .prd-home-examples-v152 > a{
    margin:0!important;padding:7px 8px!important;font-size:12px!important;line-height:1.2!important;text-align:center!important;
    min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  }

  /* Cómo te ayuda: los 4 pasos de dos en dos. */
  body .prd-home-v152 .prd-hero-panel-v152{padding:18px 14px!important;border-radius:22px!important}
  body .prd-home-v152 .prd-hero-panel-v152 h2{font-size:21px!important;margin:4px 0 10px!important}
  body .prd-home-v152 .prd-hero-steps-v152.prd-hero-steps-v152.prd-hero-steps-v152.prd-hero-steps-v152.prd-hero-steps-v152.prd-hero-steps-v152{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
    overflow:visible!important;flex-wrap:wrap!important;padding:0!important;scroll-snap-type:none!important;
  }
  body .prd-home-v152 .prd-hero-steps-v152.prd-hero-steps-v152.prd-hero-steps-v152.prd-hero-steps-v152.prd-hero-steps-v152.prd-hero-steps-v152 > article{
    flex:none!important;max-width:none!important;width:auto!important;min-width:0!important;margin:0!important;
    display:block!important;padding:12px 10px!important;border-radius:14px!important;
  }
  body .prd-home-v152 .prd-hero-steps-v152 article b{width:26px!important;height:26px!important;font-size:13px!important;margin:0 0 6px!important;display:inline-flex!important;align-items:center;justify-content:center}
  body .prd-home-v152 .prd-hero-steps-v152 article strong{display:block!important;font-size:14px!important;line-height:1.2!important;margin:0 0 4px!important}
  body .prd-home-v152 .prd-hero-steps-v152 article p{font-size:12px!important;line-height:1.35!important;margin:0!important}

  /* Gratis / Completa / Especializada: más bajas. */
  body .prd-home-v152 .prd-value-v152 article{padding:14px!important}
  body .prd-home-v152 .prd-value-v152 h3{font-size:17px!important;margin:4px 0!important}
  body .prd-home-v152 .prd-value-v152 p{font-size:13px!important;line-height:1.4!important}

  /* Permisos destacados: cuadrícula de 2, sin carrusel, tarjetas bajas. */
  body .prd-home-v152 .prd-section-v152 .hr-mobile-scroller-hint{display:none!important}
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
    overflow:visible!important;flex-wrap:wrap!important;padding:0!important;scroll-snap-type:none!important;width:100%!important;
  }
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152 > article{
    flex:none!important;max-width:none!important;width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;
    padding:12px 10px!important;border-radius:16px!important;gap:6px!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;
  }
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152 .prd-permiso-visual-v594{
    width:44px!important;height:44px!important;min-height:0!important;border-radius:12px!important;margin:0!important;padding:0!important;
  }
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152 .prd-permiso-visual-v594 svg{width:24px!important;height:24px!important}
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152 .prd-tags-v152 span:nth-child(n+2){display:none!important}
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152 .prd-tags-v152 span{font-size:10px!important;padding:3px 7px!important;line-height:1.2!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152 h3{font-size:14.5px!important;line-height:1.2!important;margin:0!important}
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152 p{
    font-size:12px!important;line-height:1.35!important;margin:0!important;
    display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
  }
  body .prd-home-v152 .prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152.prd-permit-grid-v152 article > a{
    margin-top:auto!important;padding:8px 10px!important;font-size:12px!important;min-height:36px!important;width:100%!important;box-sizing:border-box!important;
    display:flex!important;align-items:center!important;justify-content:center!important;white-space:normal!important;line-height:1.2!important;
  }
  body .prd-home-v152 .prd-section-link-v152{padding:10px 16px!important;font-size:14px!important;min-height:42px!important}

  /* Categorías y confianza: dos por fila. */
  body .prd-home-v152 .prd-cat-grid-v152.prd-cat-grid-v152.prd-cat-grid-v152.prd-cat-grid-v152.prd-cat-grid-v152.prd-cat-grid-v152,
  body .prd-home-v152 .prd-trust-grid-v152.prd-trust-grid-v152.prd-trust-grid-v152.prd-trust-grid-v152.prd-trust-grid-v152.prd-trust-grid-v152,
  body .prd-home-v152 .prd-prof-grid-v747.prd-prof-grid-v747.prd-prof-grid-v747.prd-prof-grid-v747.prd-prof-grid-v747.prd-prof-grid-v747{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;flex-wrap:wrap!important;padding:0!important;
  }
  body .prd-home-v152 .prd-cat-grid-v152.prd-cat-grid-v152.prd-cat-grid-v152.prd-cat-grid-v152.prd-cat-grid-v152.prd-cat-grid-v152 > *,
  body .prd-home-v152 .prd-trust-grid-v152.prd-trust-grid-v152.prd-trust-grid-v152.prd-trust-grid-v152.prd-trust-grid-v152.prd-trust-grid-v152 > *,
  body .prd-home-v152 .prd-prof-grid-v747.prd-prof-grid-v747.prd-prof-grid-v747.prd-prof-grid-v747.prd-prof-grid-v747.prd-prof-grid-v747 > *{
    flex:none!important;max-width:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:12px 10px!important;
  }
  body .prd-home-v152 :is(.prd-cat-grid-v152,.prd-trust-grid-v152,.prd-prof-grid-v747) strong{font-size:14px!important;line-height:1.2!important}
  body .prd-home-v152 :is(.prd-cat-grid-v152,.prd-trust-grid-v152,.prd-prof-grid-v747) p{font-size:12px!important;line-height:1.35!important;margin:4px 0!important}
  body .prd-home-v152 :is(.prd-section-v152,.prd-trust-v152) .hr-mobile-scroller-hint{display:none!important}

  /* Encabezados de sección y banner del asistente: menos aire. */
  body .prd-home-v152 .prd-section-v152,body .prd-home-v152 .prd-trust-v152{margin-top:22px!important;margin-bottom:22px!important}
  body .prd-home-v152 .prd-section-head-v152 h2{font-size:22px!important;line-height:1.15!important;margin:6px 0!important}
  body .prd-home-v152 .prd-section-head-v152 p{font-size:13.5px!important;line-height:1.45!important;margin:0 0 10px!important}
  body .prd-home-v152 .prd-assistant-banner-v152{padding:18px 16px!important;gap:10px!important}
  body .prd-home-v152 .prd-assistant-banner-v152 h2{font-size:22px!important}
  body .prd-home-v152 .prd-assistant-banner-v152 p{font-size:13.5px!important;line-height:1.45!important}
}

/* 7.65.0 */
/* Encabezado móvil común (GeneratePress): logo y botón «☰ Menú» fijos arriba, como InvertiaRD.
   Un solo botón: si el tema usa el botón dentro del encabezado, se oculta el de la barra de navegación. */
@media (max-width:768px){
  html body{overflow-x:clip!important}
  html body #masthead.site-header,html body .site-header{
    position:sticky!important;top:0!important;z-index:1000!important;background:#fff!important;
    box-shadow:0 2px 10px rgba(11,37,69,.08)!important;
  }
  html body #masthead .inside-header{padding-top:6px!important;padding-bottom:6px!important;align-items:center!important}
  html body #masthead .main-navigation.toggled .main-nav{max-height:72vh!important;overflow-y:auto!important}

  /* Un solo botón de menú. */
  html body.has-inline-mobile-toggle #site-navigation .menu-toggle.menu-toggle{display:none!important}
  /* El tema puede marcar el botón interno en #masthead (no en body): si existe, se oculta el de la barra. */
  html body:has(#masthead .mobile-menu-control-wrapper .menu-toggle) #site-navigation.main-navigation .menu-toggle.menu-toggle.menu-toggle{display:none!important}

  html body #masthead .mobile-menu-control-wrapper.mobile-menu-control-wrapper.mobile-menu-control-wrapper{width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;margin-left:auto!important}
  html body #masthead .mobile-menu-control-wrapper .menu-toggle.menu-toggle,
  html body:not(.has-inline-mobile-toggle):not(:has(.mobile-menu-control-wrapper .menu-toggle)) #site-navigation .menu-toggle.menu-toggle{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    width:auto!important;min-width:0!important;height:auto!important;min-height:44px!important;padding:8px 13px!important;
    border:2px solid #0b2545!important;border-radius:12px!important;background:#fff!important;color:#0b2545!important;
    font-size:16px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;overflow:visible!important;
    box-shadow:0 2px 8px rgba(11,37,69,.12)!important;
  }
  html body #masthead .menu-toggle.menu-toggle .gp-icon,
  html body #masthead .menu-toggle.menu-toggle .gp-icon svg,
  html body #site-navigation .menu-toggle.menu-toggle .gp-icon,
  html body #site-navigation .menu-toggle.menu-toggle .gp-icon svg{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;font-size:22px!important}
  html body #masthead .menu-toggle.menu-toggle .mobile-menu,html body #site-navigation .menu-toggle.menu-toggle .mobile-menu{display:none!important}
  html body #masthead .menu-toggle.menu-toggle::after,html body #site-navigation .menu-toggle.menu-toggle::after{content:"Menú";font-size:16px;font-weight:800;line-height:1}
  html body #masthead .menu-toggle.menu-toggle[aria-expanded="true"]::after,
  html body #site-navigation.toggled .menu-toggle.menu-toggle::after{content:"Cerrar"}
}
@media (min-width:601px) and (max-width:768px){
  html body.admin-bar #masthead.site-header,html body.admin-bar .site-header{top:46px!important}
}

@media (max-width:768px){
  html body .prd-theme-brand-v5149{max-width:calc(100vw - 140px)!important}
  html body #masthead .prd-brand-logo-img-v5147,html body #masthead .site-logo img,html body #masthead .custom-logo{max-height:66px!important;max-width:min(210px,56vw)!important;width:auto!important}
}
@media (max-width:768px){
  html body #masthead.site-header.site-header.site-header.site-header .inside-header{grid-template-columns:minmax(0,1fr) auto!important;min-height:0!important;padding:6px 12px!important}
}
@media (max-width:768px){
  html body #masthead .mobile-menu-control-wrapper.mobile-menu-control-wrapper .menu-toggle.menu-toggle .gp-icon,
  html body #masthead .mobile-menu-control-wrapper.mobile-menu-control-wrapper .menu-toggle.menu-toggle .gp-icon svg{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;font-size:22px!important}
}

/* 7.65.2: "¿Qué deseas revisar ahora?" compacto */
@media (min-width:769px){
  html body .prd-smart-more-v7652>summary{display:none!important}
}
@media (max-width:768px){
  html body .prd-smart-next-step-v108.prd-smart-next-step-v108{padding:14px 12px!important;margin:16px 0!important;border-radius:18px!important}
  html body .prd-smart-next-head-v108.prd-smart-next-head-v108{margin:0 auto 10px!important}
  html body .prd-smart-next-head-v108 span{padding:4px 10px!important;font-size:10px!important}
  html body .prd-smart-next-head-v108.prd-smart-next-head-v108 h3{font-size:20px!important;margin:6px 0 4px!important}
  html body .prd-smart-next-head-v108.prd-smart-next-head-v108 p{font-size:12.5px!important;line-height:1.45!important}
  /* tarjeta: icono al lado del título y contenido pegado arriba (sin el hueco bajo el icono) */
  html body .prd-smart-card-v108.prd-smart-card-v108.prd-smart-card-v108{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;column-gap:10px!important;row-gap:0!important;align-content:start!important;align-items:start!important;padding:12px!important;border-radius:16px!important;height:auto!important;min-height:0!important}
  html body .prd-smart-card-v108 .prd-smart-icon-v108.prd-smart-icon-v108{width:34px!important;height:34px!important;border-radius:11px!important;font-size:16px!important;margin:0!important}
  html body .prd-smart-card-v108 .prd-smart-content-v108{min-width:0!important}
  html body .prd-smart-content-v108.prd-smart-content-v108 h4{font-size:16.5px!important;line-height:1.2!important;margin:6px 0 4px!important}
  html body .prd-smart-content-v108.prd-smart-content-v108 p,html body .prd-smart-content-v108.prd-smart-content-v108 li{font-size:12.5px!important;line-height:1.42!important}
  html body .prd-smart-content-v108.prd-smart-content-v108 ul{margin:4px 0 2px!important;padding-left:16px!important}
  html body .prd-smart-content-v108.prd-smart-content-v108 li{margin:0 0 2px!important}
  html body .prd-smart-more-v7652{margin:4px 0 0!important}
  html body .prd-smart-more-v7652>summary{cursor:pointer;font-size:12.5px!important;font-weight:800!important;color:#0B74D1!important;padding:4px 0!important;list-style:revert}
  html body .prd-smart-price-note-v108.prd-smart-price-note-v108{padding:6px 10px!important;margin:8px 0 0!important;border-radius:10px!important}
  html body .prd-smart-price-note-v108 span{font-size:12px!important}
  html body .prd-smart-price-note-v108 strong{font-size:15px!important}
  html body .prd-smart-disclaimer-v108.prd-smart-disclaimer-v108{font-size:11px!important;line-height:1.38!important;padding:7px 9px!important;margin:8px 0 0!important;border-radius:10px!important}
  html body .prd-smart-actions-v108.prd-smart-actions-v108{margin:8px 0 0!important;grid-column:1/-1}
  html body .prd-smart-btn-v108.prd-smart-btn-v108{display:flex!important;width:100%!important;box-sizing:border-box!important;padding:9px 12px!important;font-size:13px!important;text-align:center!important;line-height:1.25!important}
  /* el texto ocupa todo el ancho de la tarjeta, no solo la columna junto al icono */
  html body .prd-smart-card-v108.prd-smart-card-v108.prd-smart-card-v108>.prd-smart-content-v108{display:contents!important}
  html body .prd-smart-card-v108 .prd-smart-content-v108>h4{grid-column:2;align-self:center}
  html body .prd-smart-card-v108 .prd-smart-content-v108>*:not(h4){grid-column:1/-1}
  html body .prd-smart-content-v108.prd-smart-content-v108 p{margin:0 0 2px!important}
  html body .prd-smart-next-grid-v108.is-three-v110 .prd-smart-card-v108.is-gestor.is-gestor{grid-column:auto!important}
  /* cada tarjeta con su propio alto: las cortas no quedan con hueco al final */
  html body .prd-smart-next-step-v108 .prd-smart-next-grid-v108.prd-smart-next-grid-v108.prd-smart-next-grid-v108{align-items:start!important;gap:10px!important}
}
