/* ============================================================
   Role Machine — Pantone Print Lab
   Paleta azul oficial · 4 colores Pantone
   ============================================================ */

:root {
  /* Paleta Pantone oficial */
  --navy: #050F4B;          /* Dark Blue Horizon · Pantone 2768C */
  --blue: #005FFF;          /* Blue Horizon · Pantone 2175C */
  --cyan: #00C8FF;          /* Light Blue Horizon · Pantone 299C */
  --pale: #D2E1F0;          /* White Blue · Pantone 2706C */

  /* Tinta y papel */
  --ink: var(--navy);
  --paper: #FAFCFE;
  --paper-2: var(--pale);
  --line: rgba(5, 15, 75, 0.12);
  --line-2: rgba(5, 15, 75, 0.22);
  --muted: rgba(5, 15, 75, 0.55);

  /* Accent */
  --accent: var(--blue);
  --accent-soft: var(--cyan);

  /* CMYK demo */
  --c: #00A3D7;
  --m: #E61C8E;
  --y: #FFCE00;
  --k: #0A0A0A;

  /* Tipografía */
  --display: "Geist", "Inter", -apple-system, sans-serif;
  --sans: "Geist", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Berkeley Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  /* Layout */
  --gap: 24px;
  --pad-x: clamp(20px, 4vw, 64px);
  --pad-y: clamp(56px, 9vw, 140px);

  /* Radios */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: default; }
a { color: inherit; text-decoration: none; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(to right,
    var(--cyan) 0%, var(--cyan) 33%,
    var(--blue) 33%, var(--blue) 66%,
    var(--navy) 66%, var(--navy) 100%);
}

/* ----------------- Layout helpers ----------------- */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ----------------- Tipografía ----------------- */
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.serif { font-family: var(--serif); font-weight: 400; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }

.display {
  font-family: var(--display);
  font-size: clamp(64px, 13vw, 200px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
  padding-bottom: 0.22em; /* hueco para descenders cursivas */
}
.h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  padding-bottom: 0.20em; /* hueco para descenders cursivas */
}
.h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

/* ----------------- Botones ----------------- */
.btn {
  appearance: none;
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 95, 255, 0.28);
}
.btn-primary:hover { background: var(--navy); box-shadow: 0 8px 28px rgba(5, 15, 75, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-on-dark {
  background: var(--cyan);
  color: var(--navy);
}
.btn-on-dark:hover { background: #fff; }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------- Líneas ----------------- */
.hr { height: 1px; background: var(--line); width: 100%; }

/* ----------------- Tech labels ----------------- */
.tech-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}
.tech-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}

/* ----------------- Chip ----------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: transparent;
  font-weight: 500;
}
.chip.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.cyan { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }

/* ----------------- PANTONE CARDS (motivo central) ----------------- */
.pantone-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}
.pantone-card .swatch {
  aspect-ratio: 1 / 1.2;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(5, 15, 75, 0.10);
  border: 1px solid rgba(5, 15, 75, 0.08);
}
.pantone-card .label {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.pantone-card .label sup {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 2px;
}
.pantone-card .name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  margin-top: 6px;
  color: var(--ink);
}
.pantone-card .specs {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.pantone-card .specs b { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* ----------------- Marquee ----------------- */
.ticker {
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}
.ticker-track {
  display: flex;
  gap: 64px;
  padding: 26px 0;
  animation: ticker 38s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.ticker-hex {
  display: inline-flex;
  align-items: center;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------- Grid bg ----------------- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(5,15,75,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(5,15,75,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Crop marks corners */
.crop-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0;
}
.crop-corner.tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.crop-corner.tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.crop-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.crop-corner.br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

/* Selection */
::selection { background: var(--blue); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-soft { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.pulse-dot { animation: pulse-soft 1.8s ease-in-out infinite; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----------------- Nav links ----------------- */
.nav-link {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 8px 4px;
  position: relative;
  transition: color 0.18s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(.22,.9,.3,1.1);
}
.nav-link:hover {
  color: var(--blue);
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link.is-active {
  color: var(--blue);
}
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* ----------------- Gran Formato bento grid ----------------- */
.gf-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gf-card--large  { grid-column: span 6; grid-row: span 2; }
.gf-card--wide   { grid-column: span 6; grid-row: span 1; }
.gf-card--tall   { grid-column: span 3; grid-row: span 2; }
.gf-card--normal { grid-column: span 3; grid-row: span 1; }

@media (max-width: 1100px) {
  .gf-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; }
  .gf-card--large  { grid-column: span 6; grid-row: span 2; }
  .gf-card--wide   { grid-column: span 6; grid-row: span 1; }
  .gf-card--tall   { grid-column: span 3; grid-row: span 2; }
  .gf-card--normal { grid-column: span 3; grid-row: span 1; }
}
@media (max-width: 640px) {
  .gf-bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gf-card--large, .gf-card--wide, .gf-card--tall, .gf-card--normal {
    grid-column: span 1; grid-row: span 1;
  }
}

/* ----------------- Equipo grid ----------------- */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.equipo-card { cursor: default; }
.equipo-card:hover img { transform: scale(1.06); }
@media (max-width: 1100px) { .equipo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .equipo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ----------------- Quienes Somos mini grid ----------------- */
@media (max-width: 720px) {
  .qs-mini-grid { grid-template-columns: 1fr !important; }
}

/* ----------------- Collage equipo (Quiénes Somos) ----------------- */
.qs-collage {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.qs-collage::-webkit-scrollbar { height: 6px; }
.qs-collage::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.qs-collage-card {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--navy);
  cursor: default;
  flex: 0 0 auto;
  width: calc((100% - 8px * 8) / 9);
  min-width: 100px;
}
.qs-collage-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: grayscale(100%) sepia(40%) hue-rotate(180deg) saturate(2.5) brightness(0.9);
  transition: filter 0.45s ease, transform 0.5s cubic-bezier(.22,.9,.3,1);
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.qs-collage-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,95,255,0.18) 0%, rgba(5,15,75,0.30) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.qs-collage-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) sepia(0%) hue-rotate(0deg) saturate(1) brightness(1);
}
.qs-collage-card:hover::before { opacity: 0; }
@media (max-width: 900px) {
  .qs-collage-card { width: 140px; min-width: 140px; }
}
@media (max-width: 560px) {
  .qs-collage-card { width: 110px; min-width: 110px; }
}

/* ----------------- Bloqueo de copia / drag de imágenes ----------------- */
.no-copy {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-drag: none;
}

/* Ocultar marca de agua "Free Instagram Feed Widget" de Elfsight */
[class*="elfsight-app-"] [class*="eapps-link"],
[class*="elfsight-app-"] [class*="eapps-widget-toolbar"],
[class*="elfsight-app-"] a[href*="elfsight"],
[class*="elfsight-app-"] [class*="branding"],
[class*="elfsight-app-"] [class*="Branding"],
[class*="elfsight-app-"] [class*="-attribution"],
[class*="elfsight-app-"] [aria-label*="Elfsight"],
.eapps-widget-toolbar-panel-buttons-button-text,
.eapps-widget-toolbar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Máscara visual sobre la marca de agua de Elfsight (esquina inferior derecha) */
#instagram {
  position: relative;
}
#instagram::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 320px;
  height: 80px;
  background: var(--paper-2);
  pointer-events: none;
  z-index: 10;
}

/* ----------------- Maquinaria logos ----------------- */
.maq-logo:hover {
  filter: grayscale(0%) opacity(1) !important;
  transform: translateY(-2px);
}

/* ----------------- Servicios grid (5 cards) ----------------- */
.servicios-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, 1fr);
}
.servicios-grid > * { min-width: 0; }
@media (max-width: 1200px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .servicios-grid { grid-template-columns: 1fr; }
}

/* ----------------- Clientes marquee ----------------- */
@keyframes clientsMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cliente-logo:hover {
  filter: grayscale(0%) opacity(1) !important;
}

/* ----------------- Top utility bar ----------------- */
.top-social:hover {
  background: var(--blue) !important;
  opacity: 1 !important;
}
@keyframes topSloganScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 900px) {
  .top-slogan { display: none !important; }
}
@media (max-width: 640px) {
  .top-bar { display: none !important; }
}

/* ----------------- Nav mobile / hamburger ----------------- */
.nav-burger { display: none !important; }

@media (max-width: 1024px) {
  .nav-desktop { gap: 16px !important; }
  .nav-desktop .nav-link { font-size: 13px !important; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-burger { display: inline-flex !important; }
}

/* ----------------- Contact + Bolsa grid responsive ----------------- */
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ----------------- Slogan tipográfico footer ----------------- */
.typo-slogan {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6vw, 12px);
  font-family: var(--display);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.typo-line {
  display: block;
  font-size: clamp(48px, 9vw, 148px);
}
.typo-word {
  display: inline-block;
}
.typo-bold {
  font-weight: 800;
  color: #fff;
}
.typo-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.025em;
}
.typo-outline {
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.55);
}
.typo-cyan {
  color: var(--cyan) !important;
}
@keyframes sloganHexSpin {
  0%   { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* Footer grid responsive */
@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Social circles hover */
.social-circle:hover {
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  color: var(--navy) !important;
  transform: translateY(-2px);
}

/* Social link hover */
.social-link:hover {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.3) !important;
  transform: translateX(3px);
}
[data-density="comfy"]  { --gap: 32px; --pad-y: clamp(72px, 11vw, 180px); }
[data-density="regular"]{ --gap: 24px; --pad-y: clamp(56px, 9vw, 140px); }
[data-density="compact"]{ --gap: 16px; --pad-y: clamp(40px, 6vw, 96px); }
