/* ==========================================================
   ROAYER ARTES GRÁFICAS — desde 1956
   Identidad: tinta CMYK sobre papel, marcas de corte,
   tramados y tipografía gruesa de imprenta.
   ========================================================== */

/* ---------- Variables & reset ---------- */
:root {
  /* Tintas */
  --c: #00a5e3;   /* Cyan */
  --m: #e6007e;   /* Magenta */
  --y: #ffd500;   /* Amarillo */
  --k: #16161a;   /* Negro (Key) */

  /* Papel y tinta suave */
  --paper: #faf9f6;
  --paper-2: #f1efe9;
  --ink-soft: #54545e;
  --line: rgba(22, 22, 26, 0.12);

  /* Tipografía */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Forma y sombra */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-md: 0 12px 32px rgba(22, 22, 26, 0.10);
  --shadow-lg: 0 24px 64px rgba(22, 22, 26, 0.16);

  --nav-h: 76px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--k);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

a { color: inherit; text-decoration: none; }
ul, dl { list-style: none; }

.container {
  width: min(1140px, 100% - 44px);
  margin-inline: auto;
}

/* ---------- Utilidades ---------- */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot--c { background: var(--c); }
.dot--m { background: var(--m); }
.dot--y { background: var(--y); }
.dot--k { background: var(--k); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.badge__dots {
  display: inline-flex;
  gap: 4px;
}
.badge__dots .dot { width: 8px; height: 8px; }

.section--dark .badge {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Título con palabra en tinte CMYK (cada letra un color, como en prueba de tintas) */
.cmyk {
  font-style: normal;
  display: inline-block;
  position: relative;
}
.cmyk::before {
  content: "tus ideas";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c);
  transform: translate(-4px, -4px);
  z-index: -1;
  opacity: 0.55;
}
.cmyk { color: var(--k); }
.cmyk::after {
  content: "tus ideas";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--m);
  transform: translate(4px, 4px);
  z-index: -1;
  opacity: 0.45;
}

.em-c {
  font-style: normal;
  color: var(--m);
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--k);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
}

.btn--ink {
  background: var(--k);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--y);
}
.btn--ink:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--y);
}

.btn--ghost {
  background: transparent;
  color: var(--k);
}
.btn--ghost:hover {
  background: var(--k);
  color: var(--paper);
}

.btn--paper {
  background: var(--paper);
  color: var(--k);
  border-color: var(--paper);
  box-shadow: 5px 5px 0 var(--m);
}
.btn--paper:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--m);
}

.link-arrow {
  font-weight: 600;
  color: var(--m);
}
.link-arrow:hover { color: var(--k); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--k);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
}

.nav__logo img {
  display: block;
  /* El PNG tiene mucho margen negro: "cover" recorta y "screen" funde el fondo */
  height: 52px;
  width: 184px;
  object-fit: cover;
  mix-blend-mode: screen;
}

.nav__links {
  display: flex;
  gap: 18px;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 2px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}


.nav__links a:hover {
  color: #fff;
  border-color: var(--y);
}

.nav__cta {
  padding: 12px 22px;
  font-size: 0.88rem;
  background: var(--y);
  color: var(--k);
  border-color: var(--k);
  box-shadow: 4px 4px 0 var(--m);
}
.nav__cta:hover { box-shadow: 6px 6px 0 var(--m); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 110px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

/* Tramado de puntos (halftone) con desvanecido */
.halftone--hero {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(22, 22, 26, 0.14) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(700px 480px at 82% 18%, #000, transparent 70%);
  mask-image: radial-gradient(700px 480px at 82% 18%, #000, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  font-weight: 900;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  border-top: 2px solid var(--k);
  padding-top: 24px;
}

.hero__stat dt {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
}

.hero__stat:nth-child(1) dt { color: var(--c); }
.hero__stat:nth-child(2) dt { color: var(--m); }
.hero__stat:nth-child(3) dt { color: var(--k); }

.hero__stat dd {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 16ch;
}

/* Marcas de corte en las esquinas del hero */
.cropmarks {
  position: absolute;
  inset: 24px;
  pointer-events: none;
}

.cropmarks__c {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--k);
  opacity: 0.5;
}

.cropmarks__c--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.cropmarks__c--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.cropmarks__c--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cropmarks__c--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- Franja de tintes ---------- */
.inkbar {
  display: flex;
  height: 8px;
}
.inkbar span { flex: 1; }
.inkbar span:nth-child(1) { background: var(--c); }
.inkbar span:nth-child(2) { background: var(--m); }
.inkbar span:nth-child(3) { background: var(--y); }
.inkbar span:nth-child(4) { background: var(--k); }

.inkbar--footer { margin-top: 56px; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--dark {
  background:
    radial-gradient(700px 340px at 100% 0%, rgba(0, 165, 227, 0.22), transparent 60%),
    var(--k);
  color: #fff;
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.68); }
.section--tint { background: var(--paper-2); }

.section__head {
  margin-bottom: 52px;
}

.section__head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 900;
}

.section__lead {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 54ch;
}

.section__head--center .section__lead { margin-inline: auto; }

/* ---------- La empresa ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about__text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 58ch;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 28px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--k);
  color: var(--y);
  font-size: 0.7rem;
  font-weight: 800;
}

/* Prueba de tintas CMYK: las placas se desalinean al hover, como un registro imperfecto */
.about__plate {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border: 2px solid var(--k);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 10px 10px 0 rgba(22, 22, 26, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.plate {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.plate--c { color: var(--c); transform: translate(-14%, -12%); }
.plate--m { color: var(--m); transform: translate(10%, -14%); }
.plate--y { color: var(--y); transform: translate(-12%, 14%); }
.plate--k { color: var(--k); transform: translate(12%, 10%); }

.about__plate:hover .plate--c { transform: translate(-20%, -18%); }
.about__plate:hover .plate--m { transform: translate(16%, -20%); }
.about__plate:hover .plate--y { transform: translate(-18%, 20%); }
.about__plate:hover .plate--k { transform: translate(18%, 16%); }

.about__plate figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--k);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.about__plate figcaption strong {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.about__plate figcaption span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Servicios ---------- */
.grid { display: grid; gap: 22px; }
.grid--servicios { grid-template-columns: repeat(2, 1fr); gap: 24px; }

.service {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: transform var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}
.service:nth-child(1)::before { background: var(--c); }
.service:nth-child(2)::before { background: var(--m); }
.service:nth-child(3)::before { background: var(--y); }
.service:nth-child(4)::before { background: #fff; }

.service:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.09);
}

.service__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.55;
}

.service h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.service p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Productos (chips) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin-inline: auto;
}

.chips li {
  padding: 12px 22px;
  background: #fff;
  border: 1.5px solid var(--k);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
  cursor: default;
}

.chips li:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 5px 5px 0 var(--k);
}
.chips li:nth-child(4n+1):hover { background: var(--c); color: #fff; }
.chips li:nth-child(4n+2):hover { background: var(--m); color: #fff; }
.chips li:nth-child(4n+3):hover { background: var(--y); }
.chips li:nth-child(4n+4):hover { background: var(--k); color: var(--paper); }

.chips__more {
  text-align: center;
  margin-top: 28px;
  color: var(--ink-soft);
}

/* ---------- Galería (fotos reales de roayer.com) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.g {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 2px solid var(--k);
  overflow: hidden;
  background: var(--k);
  transition: transform var(--transition), box-shadow var(--transition);
}

.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.g:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 rgba(22, 22, 26, 0.15);
}

.g:hover img {
  transform: scale(1.06);
}

/* ---------- Presupuesto ---------- */
.quote-box {
  padding: clamp(32px, 5vw, 56px);
  background: var(--k);
  color: var(--paper);
  border-radius: calc(var(--radius) + 8px);
  position: relative;
  overflow: hidden;
}

.quote-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 55%);
  mask-image: linear-gradient(120deg, #000 10%, transparent 55%);
  pointer-events: none;
}

/* Formulario: "papel" sobre la tinta */
.quote-form {
  position: relative;
  background: var(--paper);
  color: var(--k);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 12px 12px 0 var(--m);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.quote-form__head {
  grid-column: 1 / -1;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--k);
}

.quote-form__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.quote-form__head p {
  color: var(--ink-soft);
  max-width: 60ch;
}

.quote-form__group {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 20px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.quote-form__group legend {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0 10px;
}

.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.quote-form__wide {
  grid-column: 1 / -1;
}

.quote-form__send {
  justify-items: start;
  margin-top: 4px;
}

.quote-form input,
.quote-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--k);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--c);
  box-shadow: 0 0 0 4px rgba(0, 165, 227, 0.18);
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.contact__list {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  border-radius: 12px;
  border: 1.5px solid var(--k);
  background: #fff;
}

.contact__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.contact__list span,
.contact__list a {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.contact__list a:hover { color: var(--m); }

/* Mapa: Google Maps embebido con la dirección real */
.contact__map {
  height: 420px;
  border: 2px solid var(--k);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(22, 22, 26, 0.08);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--k);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 28px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 8px;
}

.footer__brand .nav__logo { margin-bottom: 16px; }
.footer__brand .nav__logo img {
  height: 44px;
  width: 157px;
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 30ch;
}
.footer__brand em {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--y); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 0.84rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
}

@media (max-width: 1000px) {
  .about,
  .contact { grid-template-columns: 1fr; }

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

  .about__plate { max-width: 460px; margin-inline: auto; width: 100%; }

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

@media (max-width: 700px) {
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .cropmarks { inset: 12px; }

  .section { padding: 72px 0; }

  .grid--servicios,
  .gallery,
  .checklist,
  .quote-form__group { grid-template-columns: 1fr; }

  .quote-form { box-shadow: 7px 7px 0 var(--m); }
  .contact__map { height: 320px; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
