/* ============================================================
   CYNTEK — responsive.css
   Ajustes globales de responsive. Se carga siempre al final.
   Cada CSS individual ya tiene sus propias media queries;
   aquí van las que afectan a varias secciones a la vez.
   ============================================================ */

/* ============================================================
   1. ROOT — variables adaptativas
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --header-h:       72px;
    --header-h-scroll: 60px;

    --section-py:    clamp(3.5rem, 7vw, 6rem);
    --section-py-lg: clamp(4rem, 8vw, 7rem);

    --container-px:  1.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h:        var(--header-h-mobile);
    --header-h-scroll: var(--header-h-mobile);

    --section-py:    3.5rem;
    --section-py-lg: 4rem;

    --container-px:  1.25rem;

    /* Escala tipográfica más compacta en móvil */
    --fs-3xl: 2.25rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.5rem;
  }
}


/* ============================================================
   2. TIPOGRAFÍA GLOBAL — refuerzos
   ============================================================ */
@media (max-width: 640px) {

  h1, .h1 {
    letter-spacing: -0.025em;
    line-height: 1;
  }

  h2, .h2 {
    letter-spacing: -0.02em;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .eyebrow::before {
    width: 18px;
  }

  p.lead {
    font-size: var(--fs-base);
  }
}


/* ============================================================
   3. SECTION HEADER
   ============================================================ */
@media (max-width: 640px) {

  .section-header {
    margin-bottom: var(--sp-8);
  }

  .section-header h2 {
    margin-bottom: var(--sp-4);
  }
}


/* ============================================================
   4. BOTONES — refuerzos responsive
   ============================================================ */
@media (max-width: 640px) {

  .btn {
    padding: 0.875rem 1.5rem;
    min-height: 48px;
    font-size: 11px;
  }

  .btn--lg {
    padding: 1rem 1.75rem;
    min-height: 52px;
    font-size: var(--fs-sm);
  }

  /* En móvil, los grupos de botones se apilan */
  .cta-block__actions,
  .hero__actions,
  .machine-feature__actions,
  .section-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-block__actions .btn,
  .hero__actions .btn,
  .machine-feature__actions .btn,
  .section-cta__actions .btn {
    width: 100%;
  }
}


/* ============================================================
   5. CARDS — apilado y ajustes
   ============================================================ */
@media (max-width: 900px) {

  .card {
    padding: var(--sp-6);
  }

  .machine-card__body {
    padding: var(--sp-5);
  }

  .machine-card__footer {
    padding: var(--sp-4) var(--sp-5);
  }
}


/* ============================================================
   6. DATA STRIP — ya tiene responsive propio en products.css
   Aquí solo el ajuste de tipografía para móvil pequeño
   ============================================================ */
@media (max-width: 480px) {

  .data-strip {
    padding-block: var(--sp-7);
  }

  .data-strip__value {
    font-size: 1.5rem;
  }
}


/* ============================================================
   7. SECCIONES CON GRID ESPECÍFICO
   ============================================================ */
@media (max-width: 900px) {

  /* Intro */
  .section-intro__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  /* Engineered */
  .section-engineered__grid {
    gap: var(--sp-7);
  }

  /* Why pillars */
  .why-pillar {
    padding: var(--sp-5);
  }

  /* Technology list */
  .tech-item {
    grid-template-columns: 28px 1fr;
    gap: var(--sp-3);
  }
}

@media (max-width: 640px) {

  .section-engineered__grid {
    gap: var(--sp-6);
  }

  .section-why__grid {
    gap: var(--sp-5);
  }

  .why-pillar {
    padding: var(--sp-4) 0;
    border-top-width: 1px;
  }

  .why-pillar__title {
    font-size: var(--fs-lg);
  }
}


/* ============================================================
   8. STAINLESS — ajustes móviles
   ============================================================ */
@media (max-width: 640px) {

  .section-stainless__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .section-stainless__detail {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
}


/* ============================================================
   9. SOLUTIONS CARDS — móvil
   ============================================================ */
@media (max-width: 560px) {

  .solution-card {
    min-height: 300px;
    padding: var(--sp-5);
  }

  .solution-card__title {
    font-size: var(--fs-lg);
  }
}


/* ============================================================
   10. FINDER — móvil
   ============================================================ */
@media (max-width: 640px) {

  .finder {
    margin-top: var(--sp-8);
  }

  .finder__options {
    gap: var(--sp-2);
  }

  .chip {
    font-size: 11px;
    padding: 0.4rem 0.75rem;
  }

  .finder__result-title {
    font-size: var(--fs-xl);
  }
}


/* ============================================================
   11. HERO — ajustes finos por debajo de 380px
   ============================================================ */
@media (max-width: 380px) {

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero__eyebrow::before {
    width: 20px;
  }
}


/* ============================================================
   12. HEADER — ajustes de móvil muy pequeño
   ============================================================ */
@media (max-width: 380px) {

  .header__logo-img {
    height: 22px;
  }

  .header.is-scrolled .header__logo-img {
    height: 20px;
  }

  .header__burger {
    width: 36px;
    height: 36px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .theme-toggle__icon {
    width: 16px;
    height: 16px;
  }
}


/* ============================================================
   13. FOOTER — móvil
   ============================================================ */
@media (max-width: 640px) {

  .footer__brand {
    max-width: 100%;
  }

  .footer__wordmark {
    font-size: clamp(2.5rem, 22vw, 6rem);
    letter-spacing: -0.03em;
  }

  .footer__column-title {
    font-size: 10px;
  }
}


/* ============================================================
   14. LANDSCAPE EN MÓVIL — el hero se achica
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {

  .hero {
    min-height: 500px;
  }

  .hero__container {
    padding-top: calc(var(--header-h-mobile) + var(--sp-5));
    padding-bottom: 4rem;
  }

  .hero__title {
    font-size: 2rem;
    line-height: 1;
  }

  .hero__text {
    display: none;
  }

  .hero__scroll {
    bottom: 1rem;
  }
}


/* ============================================================
   15. PANTALLAS GRANDES — 2xl
   ============================================================ */
@media (min-width: 1600px) {

  :root {
    --container-max: 1440px;
  }
}

@media (min-width: 1920px) {

  :root {
    --container-max: 1560px;
  }
}


/* ============================================================
   16. UTILIDADES — ocultar/mostrar por breakpoint
   ============================================================ */
.show-mobile  { display: none !important; }
.hide-mobile  { display: block; }

@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
  .show-tablet { display: block !important; }
}

@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

@media (min-width: 1025px) {
  .show-desktop { display: block !important; }
  .hide-desktop { display: none !important; }
}


/* ============================================================
   17. PRINT — estilos para impresión
   ============================================================ */
@media print {

  .header,
  .footer__social,
  .hero__scroll,
  .header__overlay,
  .mobile-menu,
  .loader {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .section {
    padding-block: 1.5rem;
    page-break-inside: avoid;
  }
}