/* 3D TEC - La industria en escala
   Taste Skill design system implementation
   No gradients, no shadows at rest, no hairline rules, no assist-slop */

:root {
  --bg: #111317;
  --surface: #1a1e24;
  --surface-muted: #222730;
  --surface-bright: #2d3440;
  --ink: #f4f6fa;
  --muted: #959fae;
  --accent: #1e4bd7;
  --accent-hover: #295bf0;
  --accent-ink: #ffffff;
  --warning: #f59e0b;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(0.95rem, 0.92rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  --step-head: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --step-display: clamp(1.9rem, 1.4rem + 1.7vw, 2.85rem);

  --margin: clamp(1rem, 3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(3.5rem, 6vw, 6rem);
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 600ms;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Typography tokens */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  hyphens: none;
}

.display {
  font-size: var(--step-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.head {
  font-size: var(--step-head);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.45;
  color: var(--muted);
  max-width: 58ch;
}

.nums {
  font-variant-numeric: tabular-nums;
}

.wrap {
  padding-inline: var(--margin);
  max-width: 1320px;
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

/* Navigation */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  background-color: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  border-radius: var(--radius);
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-status {
  font-size: var(--step-small);
  color: var(--warning);
  background-color: var(--surface);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  font-size: var(--step-small);
  color: var(--muted);
  transition: color var(--t-hover) ease;
}

.nav-item:hover {
  color: var(--ink);
}

/* Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.5rem;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.button:hover {
  background-color: var(--accent-hover);
}

.button:active {
  transform: scale(0.97);
}

.button-secondary {
  background-color: var(--surface-muted);
  color: var(--ink);
}

.button-secondary:hover {
  background-color: var(--surface-bright);
}

.button-header {
  min-height: 2.3rem;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.button-full {
  width: 100%;
}

.field {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  background-color: var(--surface-muted);
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--step-body);
}

.field:focus {
  outline: 2px solid var(--accent);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.hero-status {
  font-size: var(--step-small);
  color: var(--warning);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  max-width: 30ch;
}

.hero-lead {
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-frame {
  background-color: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: var(--surface);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background-color: var(--surface-muted);
  font-size: var(--step-small);
}

.caption-name {
  font-weight: 600;
  color: var(--ink);
}

.caption-detail {
  color: var(--muted);
}

/* Banner strip */
.banner-strip {
  padding-block: 1rem;
}

.banner-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface);
}

.banner-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background-color: rgba(17, 19, 23, 0.88);
}

.banner-statement {
  font-size: var(--step-lead);
  font-weight: 600;
  max-width: 52ch;
  color: var(--ink);
}

/* Section Header */
.section-header {
  margin-bottom: 2.25rem;
}

.section-header .head {
  margin-bottom: 0.75rem;
}

/* Specimens grid */
.specimens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.specimen-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.specimen-media {
  background-color: var(--surface-muted);
  overflow: hidden;
}

.specimen-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.specimen-card:hover .specimen-img {
  transform: scale(1.03);
}

.specimen-meta {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.specimen-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.specimen-desc {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.specimen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.specimen-tag {
  font-size: 0.75rem;
  background-color: var(--surface-bright);
  color: var(--ink);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
}

/* Quote Section */
.quote-panel {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 3rem);
}

.quote-header {
  margin-bottom: 2rem;
}

.quote-header .head {
  margin-bottom: 0.5rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.quote-direct {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.direct-card {
  background-color: var(--surface-muted);
  padding: 1.25rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.direct-role {
  font-size: var(--step-small);
  color: var(--muted);
}

.direct-phone {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  transition: color var(--t-hover) ease;
}

.direct-phone:hover {
  color: var(--accent-hover);
}

.direct-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.direct-note {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.5;
}

.quote-action-box {
  background-color: var(--surface-muted);
  padding: 1.75rem;
  border-radius: var(--radius);
}

.action-box-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.action-box-desc {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
}

.form-status {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.4;
}

/* Footer */
.footer {
  padding-top: var(--section);
  padding-bottom: 3rem;
}

.footer-top {
  margin-bottom: 1.5rem;
}

.footer-brand-huge {
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--surface-muted);
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-slogan {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.footer-copy {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.footer-sub {
  font-size: var(--step-small);
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .specimens-grid {
    grid-template-columns: 1fr;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .nav-status {
    display: none;
  }

  .nav-links .nav-item {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(1.35rem, 5.8vw, 1.55rem);
    line-height: 1.15;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
