/* Portada Twoart: ajustes para WordPress (escritos a mano). Se carga después de inicio.css. */
.tw-home { background: var(--papel); color: var(--tinta); font-family: var(--f-texto); font-size: 17px; line-height: 1.55; }
.tw-home .heroe-grid { padding-block: 10px 70px; }
.tw-home .heroe h1 { margin: 0; }
.tw-home .h1-ceja { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-texto); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta); background: rgba(255,255,255,.55); border-radius: 999px; padding: 7px 14px; margin-bottom: 22px; width: fit-content; max-width: 100%; display: flex; line-height: 1.3; white-space: normal; }
.tw-home .h1-ceja::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tinta); }
.tw-home section.bloque { margin: 0; }
.tw-home .wp-block-html { margin: 0; }
/* Del blog */
.tw-home .tw-blog { padding-block: 0 120px; }
.tw-home .tw-blog .izq { margin-bottom: 40px; }
.tw-home .tw-blog .sub .link-flecha { display: inline-flex; margin-left: 6px; }
.tw-home .tw-blog-cards { max-width: var(--ancho); margin: 0 auto !important; padding-left: max(20px, env(safe-area-inset-left, 0px)) !important; padding-right: max(20px, env(safe-area-inset-right, 0px)) !important; list-style: none; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tw-home .tw-blog-cards li { margin: 0 !important; width: auto !important; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.tw-home .tw-blog-cards li:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(60,30,0,.12); }
.tw-home .tw-blog-cards .wp-block-latest-posts__featured-image { margin: 0; }
.tw-home .tw-blog-cards .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16/10; height: auto; object-fit: cover; }
.tw-home .tw-blog-cards .wp-block-latest-posts__post-title { display: block; padding: 20px 22px 6px; font-family: var(--f-titulo); font-weight: 700; font-size: 19px; letter-spacing: -.02em; line-height: 1.25; text-decoration: none; color: var(--tinta); }
.tw-home .tw-blog-cards .wp-block-latest-posts__post-date { display: block; padding: 0 22px 22px; color: var(--gris); font-size: 13.5px; }
/* Preguntas (bloques reales, así Google las lee) */
.tw-home .tw-home-faq { max-width: var(--ancho); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 120px max(20px, env(safe-area-inset-left, 0px)); }
.tw-home .tw-home-faq-cols { gap: 60px !important; align-items: flex-start; }
.tw-home .tw-home-faq-izq { display: grid; gap: 18px; position: sticky; top: 110px; }
.tw-home .tw-home-faq h2 { font-family: var(--f-titulo); font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.tw-home .tw-home-faq h2 em { color: var(--naranja-hondo); }
.tw-home .tw-home-faq .tw-eyebrow { margin: 0; }
.tw-home .tw-home-faq .wp-block-buttons { margin: 0; }
@media (max-width: 980px) {
  .tw-home .tw-blog-cards { grid-template-columns: 1fr; }
  .tw-home .tw-home-faq-izq { position: static; }
  .tw-home .tw-home-faq-cols { gap: 30px !important; }
}
@media (max-width: 720px) { .tw-home .tw-blog { padding-bottom: 80px; } .tw-home .tw-home-faq { padding-bottom: 80px; } }

/* Botones del tema dentro de la portada */
.tw-home .wp-block-button__link { color: #fff; }
.tw-home .wp-block-button__link:hover { color: var(--tinta); }
.tw-home .tw-home-faq-izq { align-content: start; align-self: flex-start; }
.tw-home .tw-blog .izq h2 { font-size: clamp(34px, 4vw, 52px); }
.tw-home .heroe-grid > * { min-width: 0; }
@media (max-width: 720px) { .tw-home .h1-ceja { font-size: 11px; letter-spacing: .06em; } }

/* Pestañas de servicios: en el celular quedan en una sola fila que se desliza de costado. */
@media (max-width: 720px) {
  .tw-home .tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; margin-inline: -20px; padding: 4px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .tw-home .tabs::-webkit-scrollbar { display: none; }
  .tw-home .tabs button { flex: none; white-space: nowrap; scroll-snap-align: start; }
}

/* Servicios en el celular: pestañas + panel entran juntos en una pantalla. */
@media (max-width: 720px) {
  .tw-home #servicios .tabs { margin-top: 32px; }
  .tw-home #servicios .panel {
    margin-top: 10px; padding: 22px 20px 0; gap: 14px; border-radius: 28px; min-height: 0;
    display: flex; flex-direction: column; overflow: hidden;
    height: clamp(380px, calc(100svh - 150px), 640px);
  }
  .tw-home #servicios .panel[hidden] { display: none; }
  .tw-home #servicios .panel .txt { gap: 10px; flex: none; align-content: start; }
  .tw-home #servicios .panel .txt > .ceja { display: none; }
  .tw-home #servicios .panel h3 { font-size: 25px; line-height: 1.12; }
  .tw-home #servicios .panel .txt > p { font-size: 15px; line-height: 1.45; }
  .tw-home #servicios .panel .checks { gap: 5px; margin: 0; }
  .tw-home #servicios .panel .checks li { font-size: 14.5px; gap: 8px; line-height: 1.35; }
  .tw-home #servicios .panel .checks li::before { width: 18px; height: 18px; margin-top: 1px; }
  .tw-home #servicios .panel .link-flecha { margin-top: 2px; font-size: 15px; }
  .tw-home #servicios .panel .vis {
    flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-start;
    padding-top: 16px; margin-inline: -20px;
    -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
  }
  .tw-home #servicios .panel .vis::before { width: 300px; top: 10px; left: 50%; transform: translateX(-50%); }
  .tw-home #servicios .panel .vis > :not(.cap) { zoom: .74; flex: none; }
  .tw-home #servicios .panel .vis .wa-boton { display: none; }
  .tw-home #servicios .panel .vis .nav-mock { width: 410px; }
  .tw-home #servicios .panel .vis .post { zoom: .62; }
  .tw-home #servicios .panel .vis .cap { top: 0; bottom: auto; right: 22px; font-size: 10.5px; }
}
/* Pantallas bajas (celulares chicos o con las barras del navegador): sin la lista, para dejarle lugar al ejemplo. */
@media (max-width: 720px) and (max-height: 700px) {
  .tw-home #servicios .panel .checks { display: none; }
}
