/* KAZAN GLOBAL TRADE · Rediseño Awwwards (SimCodec) */

@font-face { font-family: 'Inter'; src: url('fonts/inter-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/inter-tight-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/inter-tight-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #000035;
  --navy-2: #0a0a45;
  --crema: #f6f3ec;
  --blanco: #ffffff;
  --tinta: #1b1b2e;
  --oro: #d0a755;
  --oro-claro: #f0d79a;
  --gris-claro: #c9cad9;
  --linea: rgba(0, 0, 53, 0.14);
  --linea-clara: rgba(255, 255, 255, 0.16);
  --header-h: 120px;
  --f-texto: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-titulo: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --f-italica: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--crema);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--oro); color: var(--navy); padding: 10px 14px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Textura sutil */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== Encabezado fijo ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy); color: var(--blanco);
}
.demo-bar {
  background: #00002a; border-bottom: 1px solid var(--linea-clara);
  font-size: 0.8rem; color: var(--gris-claro);
}
.demo-bar-text {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px;
  padding: 8px var(--gutter); text-align: center; line-height: 1.4;
}
.demo-corto { display: none; }
.demo-bar-link {
  color: var(--oro-claro); display: inline-flex; align-items: center; gap: 4px;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.demo-bar-link svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
}
.brand { display: block; flex: 0 0 auto; }
.brand-logo { height: 46px; width: auto; }

.nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-list { display: flex; gap: clamp(16px, 2.2vw, 32px); white-space: nowrap; }
.nav-link {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 6px 0; position: relative; color: var(--blanco);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--linea-clara);
  cursor: pointer; padding: 0; position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--blanco);
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-texto); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 14px 22px; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-oro { background: var(--oro); color: var(--navy); }
.btn-oro:hover { background: var(--oro-claro); }
.btn-sm { padding: 10px 16px; font-size: 0.88rem; }
.btn-grande { padding: 18px 28px; font-size: 1rem; margin-top: 48px; }

.menu-movil {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--blanco);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
.menu-movil.abierto { opacity: 1; visibility: visible; }
.menu-movil-lista { counter-reset: m; }
.menu-movil-lista li { border-top: 1px solid var(--linea-clara); }
.menu-movil-lista a {
  display: block; padding: 18px 0; text-decoration: none;
  font-family: var(--f-titulo); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1;
}
.menu-movil .btn { justify-content: center; }

/* ===== Portada ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) var(--gutter) 56px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  background: var(--crema); z-index: 2;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--f-texto); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--navy); opacity: .85; margin-bottom: 18px;
}
.eyebrow-oro { color: var(--oro); opacity: 1; }
.hero-titulo {
  font-family: var(--f-titulo); font-weight: 800; color: var(--navy);
  font-size: clamp(3.6rem, 10.5vw, 10.5rem); line-height: 0.9; letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero-titulo .linea { display: block; }
.linea-acento { color: var(--navy); font-family: var(--f-italica); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.02em; }
.hero-pie {
  margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--linea); padding-top: 28px; max-width: 640px;
}
.hero-texto { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 44ch; color: var(--tinta); }
.hero-media {
  position: relative; z-index: 2; background: var(--blanco); aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.02); }

/* ===== Marquesina ===== */
.marquee {
  background: var(--navy); color: var(--blanco); overflow: hidden; white-space: nowrap;
  padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid var(--linea-clara); border-bottom: 1px solid var(--linea-clara);
  position: relative; z-index: 2;
}
.marquee-pista { display: inline-flex; will-change: transform; }
.marquee-lista { display: inline-flex; align-items: center; }
.marquee-lista li {
  font-family: var(--f-titulo); font-weight: 800; font-size: clamp(1.6rem, 4vw, 3.4rem);
  text-transform: uppercase; letter-spacing: -0.02em; padding-right: 0.7em;
}
.marquee-lista li::after {
  content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.7em;
  border: 2px solid var(--oro); border-radius: 50%; vertical-align: middle; transform: translateY(-0.08em);
}

/* ===== Encabezados de sección ===== */
.seccion-cabecera { margin-bottom: clamp(40px, 6vw, 72px); max-width: 900px; }
.titulo-xl {
  font-family: var(--f-titulo); font-weight: 800; color: var(--navy);
  font-size: clamp(2.2rem, 5.6vw, 5.2rem); line-height: 0.98; letter-spacing: -0.035em;
}

/* ===== Nosotros ===== */
.nosotros { padding: clamp(80px, 12vw, 160px) var(--gutter); background: var(--crema); position: relative; z-index: 2; }
.nosotros-inner, .valores-inner, .contacto-inner { max-width: 1280px; margin: 0 auto; }
.nosotros-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start;
  margin-bottom: clamp(56px, 8vw, 110px);
}
.lead { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.3; color: var(--navy); margin-bottom: 22px; }
.nosotros-texto p:not(.lead) { color: var(--tinta); max-width: 60ch; }
.dato-grupo { display: grid; gap: 28px; border-left: 1px solid var(--linea); padding-left: clamp(24px, 3vw, 40px); }
.dato dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta); }
.dato-cifra { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; color: var(--navy); letter-spacing: -0.04em; }

.mision-vision { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linea); }
.tarjeta-texto { padding: 36px 32px 0 0; }
.tarjeta-texto + .tarjeta-texto { padding-left: 32px; border-left: 1px solid var(--linea); }
.tarjeta-texto h3 {
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.25rem; color: var(--navy); margin-bottom: 12px;
}
.tarjeta-texto p { color: var(--tinta); font-size: 0.97rem; }

/* ===== Productos (horizontal fijado) ===== */
.productos { position: relative; background: var(--blanco); z-index: 2; }
.productos-pin { min-height: 100vh; padding: clamp(80px, 10vw, 128px) 0 clamp(48px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.productos-cabecera { padding: 0 var(--gutter); margin-bottom: clamp(32px, 5vw, 56px); }
.productos-track-wrap { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 var(--gutter) 8px; }
.productos-track-wrap::-webkit-scrollbar { display: none; }
.es-horizontal .productos-track-wrap { overflow: hidden; }
.productos-track { display: flex; gap: clamp(20px, 3vw, 40px); width: max-content; padding-right: var(--gutter); }
.producto-card {
  width: clamp(280px, 30vw, 420px); flex: 0 0 auto; background: var(--crema); border: 1px solid var(--linea);
  display: flex; flex-direction: column;
}
.producto-foto { aspect-ratio: 1 / 1; background: var(--blanco); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.producto-foto img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.producto-card:hover .producto-foto img { transform: scale(1.05); }
.producto-texto { padding: 24px 26px 30px; }
.producto-texto h3 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.producto-texto p { color: var(--tinta); font-size: 0.96rem; }
.producto-card-lista { background: var(--navy); color: var(--blanco); border-color: var(--navy); justify-content: flex-end; }
.producto-card-lista .producto-texto { padding-top: 40px; }
.producto-card-lista h3 { color: var(--blanco); }
.categorias { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.categorias li { border: 1px solid var(--linea-clara); padding: 6px 12px; font-size: 0.9rem; color: var(--blanco); }
.enlace-texto { color: var(--oro-claro); font-weight: 600; text-underline-offset: 4px; }

/* ===== Valores ===== */
.valores { background: var(--navy); color: var(--blanco); padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; z-index: 2; }
.valores .titulo-xl { color: var(--blanco); }
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea-clara); }
.valor { padding: 40px 32px 8px 0; }
.valor + .valor { padding-left: 32px; border-left: 1px solid var(--linea-clara); }
.icono { fill: none; stroke: var(--oro); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.valor h3 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.5rem; margin-bottom: 10px; }
.valor p { color: var(--gris-claro); }

/* ===== Contacto ===== */
.contacto { background: var(--crema); padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; z-index: 2; }
.contacto .titulo-xl { margin-bottom: 0; }
.contacto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 56px; border-top: 1px solid var(--linea); padding-top: 36px; }
.contacto-bloque h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; color: var(--tinta); }
.contacto-bloque p { font-size: 1.15rem; color: var(--navy); }
.contacto-enlace { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 6px; word-break: break-word; }

/* ===== Pie ===== */
.site-footer { background: var(--navy); color: var(--gris-claro); padding: 56px var(--gutter) 36px; position: relative; z-index: 2; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.footer-logo { height: 42px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.footer-links a { color: var(--blanco); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--oro-claro); text-decoration: underline; }
.footer-copy { font-size: 0.9rem; }
.footer-demo { grid-column: 1 / -1; font-size: 0.85rem; border-top: 1px solid var(--linea-clara); padding-top: 22px; }
.footer-demo a { color: var(--oro-claro); }

/* ===== Cursor y grano (solo puntero fino) ===== */
.cursor-dot, .cursor-ring { display: none; }

/* ===== Reveal sin JS: el contenido es visible por defecto ===== */
.linea { will-change: transform; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  :root { --header-h: 104px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .brand-logo { height: 40px; }
}

@media (min-width: 1101px) {
  .menu-movil { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 28px); min-height: auto; }
  .hero-media { aspect-ratio: 4 / 3; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .dato-grupo { border-left: 0; padding-left: 0; grid-template-columns: repeat(2, 1fr); }
  .mision-vision, .valores-grid { grid-template-columns: 1fr; }
  .tarjeta-texto, .valor { padding: 28px 0; }
  .tarjeta-texto + .tarjeta-texto, .valor + .valor { padding-left: 0; border-left: 0; border-top: 1px solid var(--linea); }
  .valores .valor + .valor { border-top: 1px solid var(--linea-clara); }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  :root { --header-h: 96px; }
  .demo-largo { display: none; }
  .demo-corto { display: inline; }
  .demo-bar { font-size: 0.74rem; }
  .demo-bar-text { padding: 6px 16px; }
  .brand-logo { height: 34px; }
  .header-inner { padding: 10px 16px; }
  .hero-pie { flex-direction: column; align-items: flex-start; }
  .productos-track-wrap { padding: 0 16px 8px; }
  .productos-cabecera { padding: 0 16px; }
  .producto-card { width: 80vw; }
  .btn-grande { width: 100%; justify-content: center; }
}

/* ===== Movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}

/* ===== Cursor personalizado (solo puntero fino) ===== */
@media (hover: hover) and (pointer: fine) and (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  html.js, html.js body, html.js a, html.js button { cursor: none; }
  .cursor-dot, .cursor-ring {
    display: block; position: fixed; left: 0; top: 0; pointer-events: none; z-index: 400; border-radius: 50%;
    transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s ease;
  }
  .cursor-dot { width: 8px; height: 8px; background: var(--oro); }
  .cursor-ring { width: 40px; height: 40px; border: 1px solid var(--oro); transition: width .35s ease, height .35s ease, opacity .3s ease, background-color .35s ease; }
  .cursor-ring.activo { width: 64px; height: 64px; background: rgba(208, 167, 85, 0.12); }
  .cursor-visible .cursor-dot, .cursor-visible .cursor-ring { opacity: 1; }
  .grain { opacity: 0.04; }
}
