/* Mobile experience refinements shared across Psico Casa. */
html,body{max-width:100%;overflow-x:clip}
html{scroll-padding-top:76px}
button,input,textarea,select{font:inherit}

/* Shared primary appointment action — same visual system as Recursos. */
a[data-cta="agenda"],
.links a[href*="calendar.app.google"],
nav.links a[href*="calendar.app.google"]{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px!important;
  box-sizing:border-box!important;
  min-height:46px!important;
  padding:11px 20px!important;
  border:0!important;
  border-radius:999px!important;
  background:#20B5A5!important;
  color:#fff!important;
  font:700 .92rem/1 Inter,Arial,sans-serif!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  opacity:1!important;
  box-shadow:0 10px 24px rgba(32,181,165,.20)!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
a[data-cta="agenda"]:hover,
.links a[href*="calendar.app.google"]:hover,
nav.links a[href*="calendar.app.google"]:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(32,181,165,.27)!important;
}

/* Shared WhatsApp floating action. */
a.wa,a.wa-float{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:120;
  width:auto;
  height:50px;
  min-height:50px;
  padding:0 18px!important;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:#25D366!important;
  color:#fff!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-decoration:none;
  font-family:Inter,Arial,sans-serif;
  font-weight:700;
  font-size:0;
  line-height:1;
  box-shadow:0 14px 30px rgba(20,115,57,.28)!important;
  transition:transform .2s ease,box-shadow .2s ease;
}
a.wa:hover,a.wa-float:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(20,115,57,.35)!important}
a.wa::before{content:"";width:21px;height:21px;flex:0 0 21px;background:url('/assets/whatsapp-icon.svg') center/contain no-repeat}
a.wa.wa-float-global::before{content:none}
a.wa.wa-float-global::after{content:none}
a.wa-float .wa-ic{width:21px!important;height:21px!important;flex:0 0 21px}
a.wa-float span{display:none}
a.wa::after,a.wa-float::after{content:"WhatsApp";display:block;font-size:.86rem;white-space:nowrap}

@media (max-width:860px){
  nav.links,.links{max-height:calc(100dvh - 64px);overflow-y:auto;overscroll-behavior:contain;align-items:stretch;box-shadow:0 18px 34px rgba(51,42,73,.12)}
  nav.links a,.links a{display:flex;align-items:center;justify-content:center;min-height:44px;text-align:center}
  .value-list{grid-template-columns:1fr}
  .journey{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:640px){
  html{scroll-padding-top:68px}
  body{font-size:16px}
  .wrap,.wrap-n{padding-left:18px!important;padding-right:18px!important}
  section,.section{padding-top:42px!important;padding-bottom:42px!important}
  .section-head{margin-bottom:30px}
  .section-head h2,.section h2{line-height:1.15}
  h1,h2,h3{overflow-wrap:break-word}
  .nav{padding:10px 18px}
  .brand{min-width:max-content;flex:0 0 auto}
  .brand img{width:38px;height:38px;flex:0 0 auto}
  .brand span{font-size:1.14rem;white-space:nowrap}
  .navToggle{width:46px;height:46px;display:grid!important;place-items:center;border-radius:50%}
  nav.links,.links{top:59px;padding:12px 18px 20px;gap:4px}
  nav.links .btn,.links .btn{width:100%;margin-top:6px}

  .hero{padding-top:40px!important;padding-bottom:40px!important}
  .hero-grid{gap:30px}
  .hero h1{font-size:clamp(2rem,10vw,2.65rem);line-height:1.08;margin:14px 0 18px}
  .hero p.lead{font-size:1rem;margin-bottom:24px}
  .hero-cta{display:grid;grid-template-columns:1fr;gap:10px}
  .hero-cta .btn,.paraTi .btn,.cta-final .btn,.access-actions .btn{width:100%;justify-content:center;min-height:48px}
  .hero-photo{width:min(100%,340px);margin:0 auto;padding:0 8px 18px}
  .hero-photo .badge{left:0;right:0;bottom:0;max-width:calc(100% - 28px);margin:auto;padding:13px 16px}

  .journey{grid-template-columns:1fr}
  .metodo-grid .step,.journey .step{min-height:0;padding:22px 20px;gap:4px}
  .cards{grid-template-columns:1fr}
  .tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .tab{min-height:44px;padding:9px 10px}
  .service-grid,.price-grid,.community-grid,.community-feed,.community-entry-grid{grid-template-columns:1fr}
  .start-panel,.ask-panel,.community-panel,.community-entry-card,.loc-card{padding:24px 20px}
  .ask-field input,.ask-field textarea,.community-form input,.community-form textarea,.community-form select,.country-trigger{font-size:16px;min-height:48px}
  .faq-q{min-height:52px;padding:16px 0}
  .sobre-photo{width:min(100%,360px);margin:auto}
  .foot-grid{grid-template-columns:1fr;gap:28px}
  .foot-bottom{display:block}
  .foot-bottom>*+*{margin-top:8px}
  .btn,.button{min-height:48px;padding:13px 18px}
  .wa,.wa-float{right:14px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;width:54px;height:54px;padding:0!important;display:grid!important;place-items:center}
  a.wa::after,a.wa-float::after{display:none}

  .wrap{width:calc(100% - 32px)}
  .product-card,.article-card{border-radius:20px}
  .product-cover{padding:22px}
  .product-cover img{width:min(100%,235px)!important;max-height:330px;object-fit:contain!important}
  .product-copy,.article-copy{padding:25px 22px}
  .product-copy h2{font-size:1.9rem;line-height:1.12}
  .product-copy .button,.article-copy .button{width:100%}
  .sales-hero{padding-top:42px!important;padding-bottom:48px!important}
  .sales-copy h1{font-size:clamp(2.15rem,11vw,3rem);line-height:1}
  .sales-copy>.button,#checkoutToggle{width:100%}
  .book-scene{min-height:320px}
  .book,.relationship-hero .book{width:min(260px,70vw)}
  .checkout{padding:20px 16px}
  .field input{font-size:16px;min-height:48px}
  .payment-choice{padding:14px 12px}
  .trust{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .content-item{min-height:0;padding:17px 14px}
  .preview-scroller{grid-auto-columns:86%;gap:14px;scroll-padding-left:4px}
  .buy-card{padding:24px 20px}
  .buy-card .button{width:100%}
  .author-card{padding:26px 20px}
  .article-hero h1{font-size:clamp(2.05rem,10vw,2.8rem);line-height:1.04}
  .article-hero p,.article-body p,.article-body li{font-size:1rem}
  .highlight{padding:20px;border-radius:0 14px 14px 0}
  .corporate-cta{padding:25px 20px;border-radius:20px}
  .cta-actions{display:grid;gap:10px}
  .cta-actions .button{width:100%}
  .success-card{padding:30px 20px;border-radius:22px}

  /* Recursos: escala y ritmo pensados para pantallas pequeñas. */
  body.page-resources .section{padding-top:38px!important;padding-bottom:38px!important}
  body.page-resources .section-head{margin-bottom:22px}
  body.page-resources .section-head h2{font-size:clamp(1.55rem,7.5vw,2rem);line-height:1.12}
  body.page-resources .section-head p{font-size:.96rem;line-height:1.55}
  body.page-resources .product-list{gap:18px}
  body.page-resources .product-card{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden;border-radius:18px}
  body.page-resources .article-card{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden;border-radius:18px}
  body.page-resources .product-cover,body.page-resources .product-copy,body.page-resources .article-mark,body.page-resources .article-copy{min-width:0!important;max-width:100%!important}
  body.page-resources .product-copy h2,body.page-resources .article-copy h2{overflow-wrap:anywhere}
  body.page-resources .product-cover{padding:16px}
  body.page-resources .product-cover img{width:min(100%,170px)!important;max-height:235px!important}
  body.page-resources .product-copy,body.page-resources .article-copy{padding:20px 18px}
  body.page-resources .product-copy h2,body.page-resources .article-copy h2{font-size:1.5rem;line-height:1.14;margin:10px 0 8px}
  body.page-resources .product-copy p,body.page-resources .article-copy p{margin:0;font-size:.95rem;line-height:1.5}
  body.page-resources .price{font-size:1.35rem;margin:14px 0}
  body.page-resources .article-mark{padding:18px}
  body.page-resources .article-mark img{width:82px;height:82px}

  body[data-product-page] .sales-hero{padding-top:30px!important;padding-bottom:34px!important}
  body[data-product-page] .sales-grid{gap:8px}
  body[data-product-page] .sales-copy h1{font-size:clamp(2rem,10vw,2.55rem);line-height:1.02;margin-bottom:14px}
  body[data-product-page] .subtitle{font-size:1rem;line-height:1.45;margin:0 0 12px}
  body[data-product-page] .explain{font-size:.96rem;line-height:1.55;margin:0}
  body[data-product-page] .authorline{margin:15px 0;padding-left:12px}
  body[data-product-page] .price{font-size:1.45rem;margin:16px 0}
  body[data-product-page] .trust{margin-top:12px;gap:6px;font-size:.76rem}
  body[data-product-page] .book-scene{min-height:245px}
  body[data-product-page] .book,body[data-product-page].relationship-hero .book{width:min(195px,55vw)}
  body[data-product-page] .section{padding-top:38px!important;padding-bottom:38px!important}
  body[data-product-page] .section-head{margin-bottom:22px}
  body[data-product-page] .section h2{font-size:clamp(1.6rem,8vw,2.1rem)}
  body[data-product-page] .card-grid{gap:10px}
  body[data-product-page] .soft-card{padding:16px}
  body[data-product-page] .soft-card .icon{margin-bottom:10px}
  body[data-product-page] .preview-scroller{grid-auto-columns:74%;gap:12px;padding-bottom:18px}
  body[data-product-page] .buy-card{padding:20px 18px}
  body[data-product-page] .author-card{padding:22px 18px;gap:20px}
  body[data-product-page] .author-card img{width:132px;height:132px}
  body[data-product-page] .faq details{padding:14px 2px}

  /* Recorrido móvil compacto: la información se conserva sin alargar la página. */
  .page-home .mobile-swipe-note{display:block;margin:0 0 12px;color:#756e82;font:600 .78rem/1.4 Inter,sans-serif}
  .page-home .metodo-grid,
  .page-home #personas>.wrap>.cards,
  .page-home .service-grid,
  .page-home .price-grid,
  .page-home .instagram-grid{
    display:grid!important;
    grid-template-columns:none!important;
    grid-auto-flow:column!important;
    grid-auto-columns:min(82vw,320px)!important;
    gap:14px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    scroll-padding-left:2px;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    padding:2px 2px 14px!important;
    background:transparent!important;
    border-radius:0!important;
    scrollbar-width:none;
  }
  .page-home .metodo-grid::-webkit-scrollbar,
  .page-home #personas>.wrap>.cards::-webkit-scrollbar,
  .page-home .service-grid::-webkit-scrollbar,
  .page-home .price-grid::-webkit-scrollbar,
  .page-home .instagram-grid::-webkit-scrollbar,
  .page-home .recursos-tags::-webkit-scrollbar{display:none}
  .page-home .metodo-grid>.step,
  .page-home #personas>.wrap>.cards>.card,
  .page-home .service-grid>.service-option,
  .page-home .price-grid>.price-card,
  .page-home .instagram-grid>.instagram-card{scroll-snap-align:start;min-width:0}
  .page-home .metodo-grid>.step{min-height:170px!important;border:1px solid var(--line);border-radius:18px}
  .page-home #personas>.wrap>.cards>.card{min-height:190px}
  .page-home .service-grid{margin-bottom:38px}
  .page-home .service-option,.page-home .price-card{min-height:240px}
  .page-home .instagram-grid>.instagram-card:nth-child(n+4){display:none}
  .page-home .recursos-tags{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px;scrollbar-width:none}
  .page-home .recursos-tags>span{flex:0 0 auto;scroll-snap-align:start}
  .page-home .sobre-photo{width:min(74vw,280px)!important}
  .page-home .filosofia .quote{font-size:1.35rem!important}
  .page-home .instagram-head{margin-bottom:24px}

  .page-home .pc-simple-section{padding-top:38px!important;padding-bottom:38px!important}
  .page-home .pc-simple-grid{gap:14px!important}
  .page-home .pc-simple-photo{height:112px!important;min-height:0!important;aspect-ratio:auto!important}
  .page-home .pc-simple-photo img.pc-vector{padding:0!important}
  .page-home .pc-simple-body{padding:18px!important}
}

@media (max-width:430px){
  .content-grid{grid-template-columns:1fr}
  .trust{grid-template-columns:1fr}
  .future-grid{grid-template-columns:1fr}
}

@media (pointer:coarse){
  a.btn,a.button,button,.tab,.faq-q,.country-option{min-height:44px}
}

/* The injected global WhatsApp control already includes its own icon and label. */
a.wa.wa-float-global::before,
a.wa.wa-float-global::after{
  content:none!important;
  display:none!important;
}
