@font-face {
  font-family: 'Oswald';
  src: url('/fonts/Oswald-VariableFont_wght.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/Roboto-VariableFont_wdth,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/Roboto-Italic-VariableFont_wdth,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* Industrial Color Palette */
  /* Primary: Brick Red #B03E21 -> HSL(12, 68%, 41%) */
  /* Secondary: Deep Blue #0D077C -> HSL(243, 89%, 26%) */
  
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;

  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;

  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;

  --primary: 12 68% 41%;
  --primary-foreground: 0 0% 100%;

  --secondary: 243 89% 26%;
  --secondary-foreground: 0 0% 98%;

  --tertiary: 0 0% 0%;
  --tertiary-foreground: 0 0% 98%;

  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;

  --accent: 12 68% 96%; /* Light wash of primary */
  --accent-foreground: 240 5.9% 10%;

  --destructive: 0 72% 45%;
  --destructive-foreground: 0 0% 98%;

  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 12 68% 41%;

  --radius: 0.25rem;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

@layer base {
  body {
    @apply bg-background text-foreground antialiased font-body;
  }
  
  h1, h2, h3, h4, h5, h6 {
    @apply font-display tracking-tight uppercase;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--primary) / 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary));
}

.swiper-scrollbar {
  background: hsl(var(--muted));
  height: 10px; /* igual que tu scrollbar */
  border-radius: 5px;
}

.swiper-scrollbar-drag {
  background: hsl(var(--primary));
  border-radius: 5px;
  transition: background 0.3s ease;
}

.swiper-button-next,
.swiper-button-prev {
  color: hsl(var(--primary));
  opacity: 0.8;
}

/* The third hero headline must fit both narrow screens and short viewports. */
.hero-third-title {
  font-size: clamp(2.75rem, min(13vw, 9vh), 6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero-third-title {
    font-size: clamp(4.2rem, min(7vw, 9.5vh), 6rem);
    letter-spacing: normal;
  }
}

/* Keep the second and third slides below the navbar on short mobile screens. */
@media (max-width: 639px) and (max-height: 750px) {
  .hero-second-content {
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-bottom: 0.5rem;
  }

  .hero-second-stack > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
  }

  .hero-second-title {
    font-size: clamp(3rem, 9.5vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .hero-second-copy {
    margin-bottom: 0.35rem;
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .hero-second-actions {
    gap: 0.75rem;
  }

  .hero-third-title {
    font-size: clamp(2.4rem, min(12vw, 8vh), 3.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  html,
  body,
  #root {
    width: 8.5in;
    min-height: 11in;
    background: white !important;
  }

  body {
    margin: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  nav,
  footer,
  [data-print-hidden] {
    display: none !important;
  }

  .technical-sheet-page {
    background: white !important;
    margin: 0 !important;
    min-height: 11in !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 8.5in !important;
  }

  .technical-sheet-document {
    break-after: avoid;
    break-inside: avoid;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    min-height: 11in !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    padding: 0.36in 0.4in !important;
    page-break-after: avoid;
    page-break-inside: avoid;
    width: 8.5in !important;
  }

  .technical-sheet-document * {
    max-width: 100%;
  }

  .technical-sheet-top-rule {
    flex: 0 0 auto;
    height: 0.08in !important;
    margin-bottom: 0.18in !important;
  }

  .technical-sheet-header {
    flex: 0 0 auto;
    margin-bottom: 0.2in !important;
  }

  .technical-sheet-header > div {
    align-items: end !important;
    display: grid !important;
    gap: 0.15in !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .technical-sheet-header h1 {
    font-size: 24pt !important;
    line-height: 0.95 !important;
  }

  .technical-sheet-eyebrow {
    font-size: 7pt !important;
    letter-spacing: 0.18em !important;
  }

  .technical-sheet-content {
    align-items: start;
    display: grid !important;
    flex: 0 0 auto;
    gap: 0.22in !important;
    grid-template-columns: 2.45in minmax(0, 1fr) !important;
    min-height: 0;
  }

  .technical-sheet-aside {
    border-radius: 0.05in !important;
    display: flex;
    flex-direction: column;
    grid-column: auto !important;
    min-height: auto !important;
    padding: 0.22in !important;
  }

  .technical-sheet-content > div:last-child {
    grid-column: auto !important;
    min-width: 0;
  }

  .technical-sheet-aside .h-16 {
    height: 0.48in !important;
    margin-bottom: 0.12in !important;
    width: 0.48in !important;
  }

  .technical-sheet-aside [data-print-icon] {
    height: 0.28in !important;
    width: 0.28in !important;
  }

  .technical-sheet-aside h2 {
    font-size: 16pt !important;
    line-height: 1.14 !important;
  }

  .technical-sheet-aside p {
    font-size: 8.5pt !important;
    line-height: 1.48 !important;
    margin-top: 0.1in !important;
  }

  .technical-sheet-aside .inline-flex {
    margin-top: 0.13in !important;
    padding: 0.07in 0.11in !important;
  }

  .technical-sheet-aside .inline-flex span {
    font-size: 7pt !important;
    letter-spacing: 0.12em !important;
  }

  .technical-sheet-product-image {
    aspect-ratio: auto !important;
    flex: 0 0 auto;
    height: 2.25in !important;
    margin-top: 0.16in !important;
    min-height: 0 !important;
  }

  .technical-sheet-product-image img,
  .technical-sheet-product-image picture {
    max-height: 2.25in !important;
  }

  .technical-sheet-content > div:last-child > p:first-child {
    font-size: 7pt !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 0.1in !important;
  }

  .technical-sheet-metrics {
    display: grid !important;
    gap: 0.09in !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .technical-sheet-metric-card {
    border-radius: 0.05in !important;
    min-height: 1.06in !important;
    padding: 0.1in !important;
  }

  .technical-sheet-metric-card:nth-child(-n + 2) {
    grid-column: span 3 / span 3 !important;
  }

  .technical-sheet-metric-card:nth-child(n + 3) {
    grid-column: span 2 / span 2 !important;
  }

  .technical-sheet-metric-card > svg {
    height: 0.22in !important;
    width: 0.22in !important;
  }

  .technical-sheet-metric-card p {
    line-height: 1.3 !important;
  }

  .technical-sheet-metric-card div p:first-child {
    font-size: 6.8pt !important;
    letter-spacing: 0.1em !important;
  }

  .technical-sheet-metric-card div p:nth-child(2) {
    font-size: 20pt !important;
    margin-top: 0.04in !important;
  }

  .technical-sheet-metric-card div p:nth-child(2) span {
    font-size: 8.5pt !important;
    margin-left: 0.04in !important;
  }

  .technical-sheet-metric-card div p:nth-child(3) {
    font-size: 7.5pt !important;
    line-height: 1.38 !important;
    margin-top: 0.04in !important;
  }

  .technical-sheet-detail-list {
    gap: 0.06in !important;
    margin-top: 0.12in !important;
  }

  .technical-sheet-detail-row {
    align-items: center !important;
    display: grid !important;
    gap: 0.08in !important;
    grid-template-columns: 1.45in minmax(0, 1fr) !important;
    padding: 0.07in 0.09in !important;
  }

  .technical-sheet-detail-row svg {
    height: 0.15in !important;
    width: 0.15in !important;
  }

  .technical-sheet-detail-row p {
    font-size: 8pt !important;
    line-height: 1.38 !important;
  }

  .technical-sheet-detail-row p:first-child {
    font-size: 6.8pt !important;
    letter-spacing: 0.1em !important;
  }

  .technical-sheet-signatures {
    display: grid !important;
    gap: 0.12in !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 0.12in !important;
    padding: 0.1in !important;
  }

  .technical-sheet-signatures svg {
    height: 0.16in !important;
    width: 0.16in !important;
  }

  .technical-sheet-signatures p {
    font-size: 8pt !important;
    line-height: 1.2 !important;
  }

  .technical-sheet-signatures .font-display {
    font-size: 12pt !important;
  }

  .technical-sheet-specification-notice {
    margin-top: 0.1in !important;
    padding: 0.09in 0.11in !important;
  }

  .technical-sheet-specification-notice svg {
    height: 0.16in !important;
    width: 0.16in !important;
  }

  .technical-sheet-specification-notice p:first-child {
    font-size: 6.8pt !important;
    letter-spacing: 0.1em !important;
    line-height: 1.3 !important;
  }

  .technical-sheet-specification-notice p:last-child {
    font-size: 7.8pt !important;
    line-height: 1.42 !important;
    margin-top: 0.04in !important;
  }
}
