/* ==========================================================================
   MORRISON — Audio Profesional
   Paleta tomada del empaque real de la marca: crema cálido, tinta negra,
   dorado premium y una banda negra final (como las insignias de la caja).
   Tipografía: Archivo variable — expandida y negra para display,
   ancho normal para texto. Una sola familia, dos voces.
   ========================================================================== */

:root {
  --bg:          #f1ece2;
  --bg:          oklch(0.943 0.014 90);
  --surface:     #e7e0d1;
  --surface:     oklch(0.905 0.018 90);
  --line:        rgba(32, 28, 20, 0.16);
  --ink:         #201c14;
  --ink:         oklch(0.235 0.012 85);
  --ink-muted:   #635c4c;
  --ink-muted:   oklch(0.475 0.02 85);
  --gold:        #b08d3c;
  --gold:        oklch(0.66 0.1 85);
  --gold-deep:   #7d6318;
  --gold-deep:   oklch(0.5 0.1 85);
  --dark:        #17140e;
  --dark:        oklch(0.19 0.012 85);
  --dark-ink:    #f1ece2;
  --dark-muted:  rgba(241, 236, 226, 0.68);
  --dark-line:   rgba(241, 236, 226, 0.18);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: clamp(2.5rem, 5vw, 4rem);
  --space-5: clamp(4.5rem, 10vw, 8.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-nav: 30;
  --z-skip: 40;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(2.1rem, 8.5vw, 5.5rem); }
h2 { font-size: clamp(1.55rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.2; }

p { margin: 0 0 var(--space-2); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--dark-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Layout base ---------- */

.wrap {
  width: min(72rem, 100% - clamp(2.5rem, 8vw, 6rem));
  margin-inline: auto;
}

.wrap-narrow { max-width: 46rem; }

.wrap-split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 60rem) {
  .wrap-split { grid-template-columns: 5fr 6fr; }
}

/* ---------- Cabecera / navegación ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header:has(.nav-menu.is-open) {
  background: rgba(241, 236, 226, 0.94);
  border-bottom-color: var(--line);
}

.nav {
  width: min(72rem, 100% - clamp(2.5rem, 8vw, 6rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand-dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(176, 141, 60, 0.7);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 180ms var(--ease-out);
}
.nav-menu a:hover { color: var(--gold-deep); }

.nav-menu a:not(.nav-cta) {
  position: relative;
}
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}
@media (max-width: 47.99rem) {
  .nav-menu a:not(.nav-cta)::after { content: none; }
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line);
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.nav-menu a.nav-cta:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(176, 141, 60, 0.14);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  min-height: 44px;
}
.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  display: block;
}

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a {
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta { border: none; }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              color 200ms var(--ease-out),
              transform 200ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: var(--dark-ink);
}
.btn-primary:hover { background: #3d3524; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(241, 236, 226, 0.97) 0%, rgba(241, 236, 226, 0.78) 45%, rgba(241, 236, 226, 0.5) 100%);
}

.hero-inner {
  width: min(72rem, 100% - clamp(2.5rem, 8vw, 6rem));
  margin-inline: auto;
  padding-block: var(--space-5) var(--space-4);
}

.hero h1 { margin-bottom: var(--space-2); }

.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.rec-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(176, 141, 60, 0.85);
  animation: rec-pulse 2.4s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-wave {
  width: 100%;
  height: 72px;
  display: block;
  margin-top: var(--space-3);
  border-top: 1px solid var(--line);
}

/* ---------- Página en construcción (normativa SUBTEL) ---------- */

.construction-hero {
  justify-content: center;
  background: radial-gradient(60rem 30rem at 85% 8%, rgba(176, 141, 60, 0.14), transparent 70%);
}
.construction-hero .hero-wave { margin-top: auto; }

.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.construction-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  animation: rec-pulse 1.6s ease-in-out infinite;
}

.construction-preview {
  padding-block: 0 var(--space-5);
}
.construction-preview .wrap-split { align-items: start; }

.construction-copy {
  color: var(--ink-muted);
  max-width: 34rem;
}

.construction-contact-inner { text-align: center; }
.construction-contact-inner p {
  color: var(--dark-muted);
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}
.construction-contact-inner .hero-actions { justify-content: center; }

.contact .btn-ghost {
  border-color: var(--dark-line);
  color: var(--dark-ink);
}
.contact .btn-ghost:hover { border-color: var(--gold); }

/* ---------- Declaración ---------- */

.statement { padding-block: var(--space-5); }

.statement-text {
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.35;
  font-weight: 500;
  text-wrap: pretty;
  margin-bottom: var(--space-3);
}
.statement-text em {
  font-style: italic;
  color: var(--gold-deep);
}

.statement-sign {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---------- Cinta en movimiento ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 0.95rem;
  margin-bottom: var(--space-5);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex: 0 0 auto;
}

.marquee-group span {
  font-stretch: 118%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--gold-deep);
  white-space: nowrap;
}

.marquee-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Productos ---------- */

.products { padding-block: 0 var(--space-5); }

.section-head {
  max-width: 52rem;
  margin-bottom: var(--space-4);
}
.section-head p {
  color: var(--ink-muted);
  max-width: 40rem;
}

.product-layout {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 60rem) {
  .product-layout {
    grid-template-columns: 6fr 5fr;
    align-items: start;
  }
}

.product-stack {
  display: grid;
  gap: var(--space-4);
}

.product-media {
  display: block;
  overflow: hidden;
  background: var(--surface);
}
.product-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out);
}
.product-feature .product-media img { aspect-ratio: 3 / 4; }
.product-media:hover img {
  transform: scale(1.03);
  opacity: 0.94;
}

.product-info { padding-top: var(--space-2); }
.product-info h3 { margin-bottom: 0.5rem; }
.product-info p {
  color: var(--ink-muted);
  max-width: 34rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 600;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.products-note {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 44rem;
}
.products-note a {
  color: var(--gold-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Ingeniería / ficha técnica ---------- */

.engineering {
  padding-block: var(--space-5);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.engineering-copy p {
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

.spec-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.spec-sheet th,
.spec-sheet td {
  padding: 1.05rem 0.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.spec-sheet tr:first-child th,
.spec-sheet tr:first-child td { border-top: 1px solid var(--line); }
.spec-sheet th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-muted);
  padding-right: var(--space-2);
}
.spec-sheet td {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.spec-tol {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
@media (max-width: 30rem) {
  .spec-sheet td { white-space: normal; }
  .spec-sheet th { padding-right: var(--space-1); }
}

/* ---------- El estudio ---------- */

.studio { padding-block: var(--space-5); }

.studio-media { margin: 0; }
.studio-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.studio-media figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.studio-copy p { color: var(--ink-muted); }

.studio-list {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
}
.studio-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
}
.studio-list li:first-child { border-top: 1px solid var(--line); }

.studio-quote {
  margin: var(--space-3) 0 0;
  padding: 0;
}
.studio-quote p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
}
.studio-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ---------- Distribuidores: banda negra, como las insignias del empaque ---------- */

.contact {
  padding-block: var(--space-5);
  background: var(--dark);
  color: var(--dark-ink);
}

.contact-split { align-items: start; }
@media (min-width: 60rem) {
  .contact-split { grid-template-columns: 5fr 6fr; }
}

.contact-copy p { color: var(--dark-muted); }

.dist-list {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
}
.dist-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--dark-line);
  font-weight: 500;
  color: var(--dark-ink);
}
.dist-list li:first-child { border-top: 1px solid var(--dark-line); }

.contact-alt { font-size: 0.95rem; }
.contact-alt a {
  color: var(--gold);
  text-underline-offset: 3px;
  transition: color 180ms var(--ease-out);
}
.contact-alt a:hover { color: #c6a355; }

/* ---------- Formulario para empresas ---------- */

.form-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 48rem) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field-full { grid-column: 1 / -1; }
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.req { color: var(--gold); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: rgba(241, 236, 226, 0.07);
  border: 1px solid var(--dark-line);
  color: var(--dark-ink);
  font: inherit;
  border-radius: 0;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.form-field textarea {
  min-height: 7rem;
  resize: vertical;
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b08d3c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.form-field select option {
  background: var(--dark);
  color: var(--dark-ink);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(241, 236, 226, 0.55); }

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: rgba(241, 236, 226, 0.38); }

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  background: rgba(241, 236, 226, 0.1);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--dark-muted);
  margin: 0.35rem 0 0;
}

.form-error {
  display: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffb4a3;
  margin: 0.35rem 0 0;
}
.form-field.has-error .form-error { display: block; }
.form-field.has-error input,
.form-field.has-error select { border-color: #e2745e; }

/* Honeypot: fuera de pantalla, invisible para personas */
.form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.form-note {
  font-size: 0.82rem;
  color: var(--dark-muted);
  margin: 0;
}

.contact .btn-primary {
  background: var(--gold);
  color: var(--dark);
}
.contact .btn-primary:hover { background: #c6a355; }

.form-status {
  margin: var(--space-2) 0 0;
  font-weight: 500;
  color: var(--gold);
  min-height: 1.5em;
}

.contact :focus-visible { outline-color: var(--gold); }

/* ---------- Pie (continúa la banda negra) ---------- */

.site-footer {
  background: var(--dark);
  color: var(--dark-ink);
  border-top: 1px solid var(--dark-line);
  padding-block: var(--space-4);
}

.footer-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand { font-size: 1rem; margin-bottom: var(--space-1); }
.footer-note,
.footer-legal p {
  color: var(--dark-muted);
  font-size: 0.9rem;
  max-width: 26rem;
  margin-bottom: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav a {
  text-decoration: none;
  color: var(--dark-muted);
  font-size: 0.95rem;
  transition: color 180ms var(--ease-out);
}
.footer-nav a:hover { color: var(--gold); }

.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- Revelado al hacer scroll ----------
   El contenido es visible por defecto; solo se oculta cuando hay JS
   y el usuario no ha pedido movimiento reducido. ---------- */

.js .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js .reveal.reveal-pending {
  opacity: 0;
  transform: translateY(1.5rem);
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal.reveal-pending {
    opacity: 1;
    transform: none;
  }
}
