/* Ajuste del hero por tamaño de pantalla (2026-11-13).
   Se carga después de home-photo-hero-20261104-r2.css. Para revertir, quita el <link>. */

/* 1) Computadora: el título en 2 renglones ("Tu proyecto en / tiempo récord"), sin partirse en 4-5. */
@media (min-width: 961px) and (orientation: landscape) {
  /* El bloque de texto se pega al borde derecho para no tocar la oreja del gato. */
  .hero-photo-cover .hero-minimal-shell { width: 100% !important; }
  .hero-photo-cover .hero-minimal-copy { width: max-content; max-width: min(42rem, 100%); justify-self: end; }
  .hero-photo-cover .hero-title,
  html.dark .hero-photo-cover .hero-title {
    max-width: 7.4em !important;
    font-size: clamp(2.9rem, 4.25vw, 5.1rem) !important;
    text-wrap: initial;
  }
  .hero-photo-cover .hero-subtitle { max-width: min(24rem, 100%); }
}

/* 2) Monitores ultra anchos (más de 2:1): mostrar al gato completo, con patitas. */
@media (min-aspect-ratio: 2/1) and (min-width: 961px) {
  .hero-photo-media img { object-position: 40% 72%; }
}

/* 3) Tablets grandes en vertical (iPad Pro, etc.): mismo diseño que el celular, con la imagen vertical. */
@media (min-width: 961px) and (max-width: 1400px) and (orientation: portrait) {
  #tab-inicio > section.todaps-hero-lab.hero-photo-cover:first-child {
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    padding-top: calc(76px + env(safe-area-inset-top)) !important;
  }
  #tab-inicio .hero-photo-cover .hero-photo-media {
    order: 0;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1.2;
    margin-top: 0;
  }
  #tab-inicio .hero-photo-cover .hero-photo-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
  #tab-inicio .hero-photo-cover .hero-minimal-shell {
    order: 1;
    min-height: 0;
    width: 100%;
    display: block;
    padding: 40px 48px 56px;
  }
  #tab-inicio .hero-photo-cover .hero-minimal-copy { width: 100%; max-width: 46rem; margin-inline: auto; }
  #tab-inicio .hero-photo-cover .hero-title,
  html.dark #tab-inicio .hero-photo-cover .hero-title {
    font-size: clamp(4rem, 8vw, 6rem) !important;
    max-width: 46rem !important;
  }
  #tab-inicio .hero-photo-cover .hero-subtitle { margin-top: 18px; max-width: 34rem; font-size: 1.2rem; }
  #tab-inicio .hero-photo-cover .hero-actions { margin-top: 28px; }
}

/* 4) Celular acostado: el título no queda debajo del encabezado. */
@media (orientation: landscape) and (max-height: 560px) {
  .hero-photo-cover .hero-minimal-shell {
    padding-top: calc(76px + env(safe-area-inset-top)) !important;
    align-items: center;
  }
}

/* 5) Barra superior en computadora: el logo nunca se encoge y la pestaña activa se ve. */
.td-site-header .td-brand { flex: none !important; min-width: 8.5rem; }
.td-site-header .td-brand img.td-brand-wordmark { width: clamp(8.5rem, 10vw, 10.75rem) !important; min-width: 8.5rem; height: auto; }
.td-desktop-menu a[aria-current="page"] {
  color: #0079ad !important;
  background: rgba(0, 153, 213, .11) !important;
  border-radius: 999px;
  font-weight: 700;
}
.td-desktop-menu a[aria-current="page"] svg,
.td-desktop-menu a[aria-current="page"] i { color: #0079ad !important; }
html.dark .td-desktop-menu a[aria-current="page"],
html.dark .td-desktop-menu a[aria-current="page"] svg { color: #fff !important; background: rgba(255, 255, 255, .14) !important; }

/* 6) Pantallas horizontales chicas (laptops 1024-1180 y celular acostado): texto más angosto, lejos de la oreja. */
@media (orientation: landscape) and (max-width: 1180px) {
  .hero-photo-cover .hero-subtitle { max-width: 19rem !important; }
}
