/* THOT FACTURA POS - RESPONSIVE */

/* Pantallas amplias: no aumentar artificialmente la altura del hero */
@media (min-width: 1450px) {
  .hero__inner { padding-top: 42px; padding-bottom: 42px; }
  .hero-art { height: min(26vw, 440px); }
  .hero h1 { font-size: clamp(52px, 3.1vw, 60px); }
}

/* Portátiles y tabletas horizontales */
@media (max-width: 1180px) {
  .container { width: calc(100% - 48px); }
  .brand img { width: 185px; }
  .header__inner { gap: 18px; }
  .main-nav { gap: 11px; }
  .main-nav a { font-size: 9px; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .hero h1 { font-size: clamp(36px, 4vw, 48px); letter-spacing: -1.2px; }
  .hero__description { font-size: 14px; }
  .hero__actions .button { min-height: 48px; padding-inline: 16px; font-size: 12px; }
  .hero-art { height: clamp(280px, 34vw, 390px); }
  .hero-art__composition { width: 100%; height: 100%; max-height: 100%; }
  .module-strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .module-tile { min-height: 112px; }
  .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .about-toucan { display: none; }
  .implementation-grid { gap: 30px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { gap: 20px; }
}

/* Menú colapsable y hero apilado en tabletas */
@media (max-width: 900px) {
  .topbar__inner { gap: 10px; }
  .topbar__contact, .topbar__right { gap: 10px; }
  .topbar__contact { font-size: 9px; }
  .topbar__contact span { display: none; }
  .header__inner { min-height: 70px; flex-wrap: wrap; }
  .brand img { width: 190px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    padding: 6px 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 4px; font-size: 13px; }
  .main-nav a.is-active::after { display: none; }
  .main-nav .search-link { display: block; width: auto; height: auto; border: 0; border-radius: 0; }
  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 12px;
  }
  .hero__copy { padding: 36px 0 8px; }
  .hero h1 { max-width: 720px; font-size: clamp(40px, 6.5vw, 56px); }
  .hero__description { max-width: 650px; }
  .hero-art {
    align-self: center;
    width: min(100%, 680px);
    height: auto;
    max-height: none;
    margin: 0 auto;
    overflow: hidden;
  }
  .hero-art__composition {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse 82% 80% at 52% 46%, #000 58%, rgba(0,0,0,.8) 78%, transparent 100%);
    mask-image: radial-gradient(ellipse 82% 80% at 52% 46%, #000 58%, rgba(0,0,0,.8) 78%, transparent 100%);
  }
  .about-home { padding: 52px 0; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-intro { grid-column: 1 / -1; }
  .implementation-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { gap: 25px; }
  .contact-form { max-width: 680px; }
  .footer-grid { flex-wrap: wrap; }
  .footer-company { text-align: left; }
}

/* Teléfonos */
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .topbar__inner { min-height: 0; padding: 8px 0; flex-direction: column; gap: 8px; }
  .topbar__contact { justify-content: center; flex-wrap: wrap; font-size: 10px; }
  .topbar__right { justify-content: center; }
  .topbar__right .social { display: none; }
  .topbar__cta { padding: 7px 12px; font-size: 10px; }
  .header__inner { min-height: 65px; }
  .brand img { width: 165px; height: 52px; }
  .hero__inner { padding-bottom: 8px; }
  .hero__copy { padding: 30px 0 8px; }
  .eyebrow { margin-bottom: 15px; padding: 8px 13px; font-size: 9px; }
  .hero h1 { margin-bottom: 14px; font-size: clamp(34px, 9.5vw, 46px); line-height: 1.05; letter-spacing: -1px; }
  .hero__description { margin-bottom: 18px; font-size: 13px; line-height: 1.6; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 17px; }
  .hero__actions .button { width: 100%; min-height: 48px; padding: 0 14px; font-size: 12px; }
  .hero__benefits { display: grid; gap: 7px; font-size: 11px; }
  .hero-art { width: 100%; height: auto; margin: 0; }
  .hero-art__composition {
    width: 100%;
    height: auto;
    max-height: none;
    filter: none;
    -webkit-mask-image: radial-gradient(ellipse 86% 82% at 50% 46%, #000 58%, rgba(0,0,0,.72) 80%, transparent 100%);
    mask-image: radial-gradient(ellipse 86% 82% at 50% 46%, #000 58%, rgba(0,0,0,.72) 80%, transparent 100%);
  }
  .module-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding-top: 10px; padding-bottom: 10px; }
  .module-tile { min-height: 112px; padding: 12px 8px; }
  .module-tile img { width: 36px; height: 36px; }
  .module-tile strong { font-size: 11px; }
  .module-tile small { font-size: 10px; }
  .about-home, .section { padding: 44px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 14px; }
  .about-intro { grid-column: auto; }
  .about-intro h2 { font-size: 28px; }
  .purpose { padding: 20px; }
  .implementation h2, .contact h2 { font-size: 29px; }
  .implementation p, .contact-copy > p { font-size: 13px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .service-grid article { padding: 17px 8px; }
  .contact-form { padding: 20px 16px; border-radius: 14px; }
  .contact-form h3 { font-size: 21px; }
  .simple-links { padding: 34px 0; }
  .simple-links .container { align-items: flex-start; flex-direction: column; gap: 16px; }
  .simple-links h2 { font-size: 23px; }
  .footer { padding: 27px 0; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 22px; }
  .footer img { width: 180px; }
  .footer nav { gap: 12px 16px; }
  .footer-company { text-align: left; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .brand img { width: 145px; }
  .hero h1 { font-size: 32px; }
  .hero__actions .button { font-size: 11px; }
  .module-tile { min-height: 105px; }
}



/* ===== RESPONSIVE UNIFICADO DEL HERO THOT ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  box-shadow: 0 3px 14px rgba(3,29,60,.08);
}
html { scroll-padding-top: 88px; }

@media (min-width: 1450px) {
  .hero__inner { padding-top: 24px; padding-bottom: 24px; }
  .hero-art { height: clamp(350px, 20.5vw, 390px); }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .hero__inner {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .hero-art { height: clamp(300px, 29vw, 350px); }
  .hero-art__composition { width: 106%; height: 106%; }
}
@media (max-width: 900px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 18px;
  }
  .hero__copy { width: 100%; padding-top: 30px; }
  .hero-art {
    width: min(100%, 760px);
    height: auto;
    aspect-ratio: 1660 / 768;
    align-self: center;
    overflow: hidden;
  }
  .hero-art__composition {
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: contain;
  }
}
@media (max-width: 560px) {
  .hero__copy { padding-top: 24px; }
  .hero-art { width: 100%; }
}
