/* Diseño adaptable por dispositivo — 17 nov 2026
   Escritorio ancho (>=1101) · Tableta (768–1100) · Móvil tipo app (<=767)
   Marca: negro #050403, crema #F5EFE3, dorado #C8A030/#D4AF37. Tipografías del sitio sin cambios. */
.app-top,.app-tabs{display:none}

/* ================= ESCRITORIO ================= */
@media (min-width:1101px){
  /* contenedor más ancho: 92 % del ancho hasta 1520 px */
  #wrap [style*="max-width: 1240px"],
  #wrap [style*="max-width: 1300px"],
  #wrap [style*="max-width: 1100px"]{max-width:min(1520px,92%)!important}
  #wrap [style*="max-width: 980px"]{max-width:min(1200px,92%)!important}
  #wrap [style*="max-width: 900px"]{max-width:min(1100px,92%)!important}
  #wrap [style*="max-width: 1240px"],
  #wrap [style*="max-width: 1300px"]{padding-left:clamp(32px,3.2vw,64px)!important;padding-right:clamp(32px,3.2vw,64px)!important}

  /* Método PALACIO: foto grande + cuadrícula que llena el ancho */
  #metodo>div{gap:0!important}
  #metodo>div>div:nth-of-type(1){flex-wrap:nowrap!important;gap:clamp(40px,4vw,84px)!important;align-items:center!important}
  #metodo>div>div:nth-of-type(1)>div:nth-child(1){flex:0 0 clamp(340px,28%,520px)!important}
  #metodo>div>div:nth-of-type(1)>div:nth-child(1)>div{max-width:100%!important}
  #metodo>div>div:nth-of-type(1)>div:nth-child(2){flex:1 1 0!important;min-width:0}
  #metodo .letras{gap:clamp(12px,1.1vw,20px)}
  #metodo .lt{min-height:clamp(160px,11vw,220px);padding:clamp(20px,1.6vw,30px) clamp(18px,1.5vw,28px)}
  #metodo .lt b{font-size:clamp(15px,1.1vw,19px)}
  #metodo .lt small{font-size:clamp(13px,.95vw,16px)}
  #metodo .lt-L{font-size:clamp(140px,10vw,190px)}
  #metodo .esc-t{font-size:clamp(34px,3.2vw,56px)}
  #metodo .esc-base{font-size:clamp(20px,1.5vw,26px)}
  #inicio>div{padding-top:clamp(96px,7vw,140px)!important;padding-bottom:clamp(88px,6vw,128px)!important}
}
/* Escalado de tipografía y tarjetas en pantallas grandes (todo el contenido crece en proporción) */
@media (min-width:1600px){#wrap{zoom:1.12}}
@media (min-width:1900px){#wrap{zoom:1.22}}
@media (min-width:2300px){
  #wrap{zoom:1.45}
  #wrap [style*="max-width: 1240px"],
  #wrap [style*="max-width: 1300px"],
  #wrap [style*="max-width: 1100px"]{max-width:min(1640px,92%)!important}
}

/* ================= TABLETA ================= */
@media (min-width:768px) and (max-width:1100px){
  #wrap [style*="max-width: 1240px"],
  #wrap [style*="max-width: 1300px"],
  #wrap [style*="max-width: 1100px"],
  #wrap [style*="max-width: 980px"],
  #wrap [style*="max-width: 900px"]{max-width:94%!important;padding-left:clamp(24px,3.4vw,40px)!important;padding-right:clamp(24px,3.4vw,40px)!important}
  #metodo>div>div:nth-of-type(1){flex-direction:column;flex-wrap:nowrap!important;gap:36px!important;align-items:stretch!important}
  #metodo>div>div:nth-of-type(1)>div:nth-child(1){flex:0 0 auto!important;width:100%;flex-direction:row!important;justify-content:center;gap:28px!important}
  #metodo>div>div:nth-of-type(1)>div:nth-child(1)>div{width:min(46%,340px)!important;flex:0 0 auto}
  #metodo>div>div:nth-of-type(1)>div:nth-child(1)>p{align-self:center;text-align:left!important;font-size:26px!important;max-width:320px}
  #metodo .letras{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px}
  #metodo .lt{min-height:150px}
  #metodo .lt-top{grid-column:span 3}
  #etapas>div>div:nth-child(2){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px!important}
  #inicio>div{padding-top:72px!important;padding-bottom:64px!important;gap:40px!important}
  nav[aria-label="Principal"]{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:16px 0!important;padding-top:18px!important;padding-bottom:16px!important}
  nav[aria-label="Principal"]>a{flex:0 0 auto!important;width:auto!important;max-width:100%;justify-content:center!important;margin:0 0 2px}
  nav[aria-label="Principal"]>a img[alt="Jonnathan Palacio"]{height:36px!important}
  nav[aria-label="Principal"]>div{display:flex!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:10px 14px!important;font-size:12.5px!important}
  nav[aria-label="Principal"]>div>a{white-space:nowrap}
}

/* ================= MÓVIL TIPO APP ================= */
@media (max-width:767px){
  :root{--tab-h:68px;--top-h:52px}
  html{scroll-snap-type:y proximity;scroll-padding-top:var(--top-h);scroll-behavior:smooth;overscroll-behavior-y:none}
  body{padding-top:var(--top-h);padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom,0px) + 10px);-webkit-tap-highlight-color:transparent}
  .mh-more{display:none!important}

  /* La portada de escritorio se reemplaza por la pantalla Inicio (#m-home); sin franja ni menú superior */
  #wrap>div:first-child,#wrap>header,#inicio{display:none!important}
  #m-home{min-height:calc(100svh - var(--top-h) - var(--tab-h) - 12px)!important;padding-top:26px!important}
  #m-home,#wrap section{scroll-snap-align:start;scroll-margin-top:var(--top-h)}

  /* barra superior */
  .app-top{display:flex;position:fixed;z-index:90;top:0;left:0;right:0;height:var(--top-h);align-items:center;justify-content:space-between;padding:0 16px;background:rgba(5,4,3,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(212,175,55,.28)}
  .app-top img{height:30px;width:auto;display:block}
  .app-top b{font:600 11px Poppins,sans-serif;letter-spacing:3px;text-transform:uppercase;color:#E6C766}

  /* barra de navegación inferior fija */
  .app-tabs{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:90;left:0;right:0;bottom:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));background:rgba(8,6,4,.96);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid rgba(212,175,55,.35)}
  .app-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;border-radius:14px;text-decoration:none;color:#A99E86;font:500 10.5px Poppins,sans-serif;letter-spacing:.2px}
  .app-tabs a svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .app-tabs a.on{color:#E6C766;background:rgba(212,175,55,.12)}
  .app-tabs a.cta{color:#050403;background:linear-gradient(110deg,#C8A030,#F7E7A6 55%,#C8A030);font-weight:600}
  /* botones flotantes y cookies por encima de la barra */
  a[href*="wa.me"][style*="position: fixed"],a[href*="wa.me"][style*="position:fixed"],[id*="wa"][style*="fixed"]{display:none!important}
  .jp-cookies,#jp-cookies,[class*="cookie"]{bottom:calc(var(--tab-h) + 10px)!important}

  /* pantallas: padding lateral compacto y contenedores a ancho completo */
  #wrap [style*="max-width"]{max-width:100%!important}
  #wrap section>div[style*="padding"]{padding-left:20px!important;padding-right:20px!important;padding-top:56px!important;padding-bottom:56px!important}
  #wrap section{min-height:calc(100svh - var(--top-h) - var(--tab-h))}
  #wrap section[aria-label="Cifras"]{min-height:0}
  h2{word-break:normal;hyphens:auto}

  /* Cifras: tarjetas deslizables */
  section[aria-label="Cifras"]>div{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px!important;padding:26px 20px!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  section[aria-label="Cifras"]>div::-webkit-scrollbar{display:none}
  section[aria-label="Cifras"]>div>span{display:none}
  section[aria-label="Cifras"]>div>div{flex:0 0 74%;scroll-snap-align:center;padding:22px 18px;border:1px solid rgba(212,175,55,.35);border-radius:20px;background:linear-gradient(160deg,#15110A,#0B0905)}

  /* Etapas / programas: tarjetas a pantalla (deslizar) */
  #etapas>div>div:nth-child(2){flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px!important;margin:0 -20px;padding:6px 20px 16px;scrollbar-width:none;align-items:stretch!important}
  #etapas>div>div:nth-child(2)::-webkit-scrollbar{display:none}
  #etapas>div>div:nth-child(2)>div{flex:0 0 84%!important;scroll-snap-align:center}
  section[aria-label="Otras formas de empezar"]>div{flex-direction:column;flex-wrap:nowrap!important;padding-bottom:56px!important}
  section[aria-label="Otras formas de empezar"]>div>div{flex:0 0 auto!important;flex-wrap:wrap!important;padding:24px 20px!important;gap:14px!important}

  /* Método PALACIO: foto a tamaño razonable + tarjetas deslizables */
  #metodo>div>div:nth-of-type(1){flex-direction:column!important;flex-wrap:nowrap!important;gap:26px!important;align-items:center!important}
  #metodo>div>div:nth-of-type(1)>div:nth-child(1){flex:0 0 auto!important;min-width:0!important;width:100%}
  #metodo>div>div:nth-of-type(1)>div:nth-child(1)>div{width:min(58vw,230px)!important;max-width:230px!important;aspect-ratio:4/5}
  #metodo>div>div:nth-of-type(1)>div:nth-child(1)>p{font-size:19px!important}
  #metodo>div>div:nth-of-type(1)>div:nth-child(2){flex:0 0 auto!important;width:100%}
  #metodo .esc-t{text-align:center;font-size:30px}
  #metodo .letras{display:flex;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:0 -20px;padding:4px 20px 12px;scrollbar-width:none}
  #metodo .letras::-webkit-scrollbar{display:none}
  #metodo .lt,#metodo .lt-top{flex:0 0 76%;min-height:170px;scroll-snap-align:center;grid-column:auto;padding:20px 18px}
  #metodo .lt b{font-size:17px}#metodo .lt small{font-size:14px}
  #metodo .lt-L{font-size:130px}
  #metodo .esc-base{margin-top:6px}
  #metodo>div>p{font-size:22px!important;margin-top:28px!important}

  /* Historia, manifiesto, garantía */
  #historia>div{gap:30px!important}
  #historia img{max-height:56svh;object-fit:cover}

  /* Formularios y FAQ cómodos al tacto */
  input,button{min-height:48px;font-size:16px}
  details summary{font-size:21px!important}

  /* Pie con redes */
  .ft-rd{padding:44px 20px 24px}
  .rds{max-width:320px}
  footer{padding-bottom:12px}
}
@media (max-width:360px){.app-tabs a{font-size:9.5px}}
