/* =========================================================
   ARF Gráficas · Landing
   ========================================================= */

:root {
  --navy-900: #050d2e;
  --navy-800: #0a1a52;
  --blue-700: #0b2bb8;
  --blue-600: #1544e0;
  --blue-500: #2f6bff;
  --blue-line: #1f3fd1;
  --lime: #a6e22e;
  --orange: #f7931e;
  --red: #e30613;
  --whatsapp: #2ecc40;
  --gray-100: #f2f2f2;
  --gray-200: #e3e3e3;
  --ink: #111;
  --font-head: "Exo 2", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --container: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); line-height: 1.5; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografía compartida ---------- */
.title-wide {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.05;
}
.title-wide--left { text-align: left; }
.subtitle-italic {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin-top: 14px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  padding: 10px 18px; border-radius: 3px; border: 0; cursor: pointer;
  transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--white { background: #fff; color: var(--blue-700); text-transform: uppercase; font-size: .78rem; padding: 12px 22px; }
.btn--block { width: 100%; justify-content: center; }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-900) url("../img/hero/fondo.webp") center / cover no-repeat;
  padding: 90px 0 70px;
}

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.hero__title {
  font-family: var(--font-head); font-weight: 900; text-transform: uppercase;
  letter-spacing: .05em; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.05;
}
.hero__title span { color: var(--lime); }
.hero__lead { font-weight: 500; margin: 10px 0 24px; max-width: 420px; }

.hero__features li { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero__features strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--blue-500); line-height: 1.2; }
.hero__features strong.lime { color: var(--lime); }
.hero__features small { font-size: .7rem; opacity: .9; }
.hero__icon { flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }

.hero .btn--whatsapp { margin-top: 10px; }
.hero__note { font-size: .7rem; opacity: .75; margin-top: 8px; }
.hero__media img { margin: 0 auto; max-height: 440px; object-fit: contain; }

/* =========================================================
   2. SERVICIOS
   ========================================================= */
.servicios { padding: 40px 0 30px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head__text { font-size: .78rem; margin-top: 12px; }

.cards { display: grid; gap: 6px; margin-bottom: 6px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card { display: block; cursor: pointer; background: var(--gray-200); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.card__img { position: relative; aspect-ratio: 4 / 2.9; overflow: hidden; border-bottom: 3px solid var(--blue-line); }
.cards--4 .card__img { aspect-ratio: 1 / .96; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__badge {
  position: absolute; left: 0; bottom: 0;
  background: var(--orange); color: #fff; font-size: .62rem; font-weight: 600;
  padding: 5px 14px; border-radius: 0 6px 0 0;
}
.card__badge::before { content: "▣ "; font-size: .55rem; }
.card__title {
  font-family: var(--font-head); font-weight: 500; font-size: 1.25rem;
  text-align: center; padding: 8px 6px 10px; letter-spacing: .01em;
}

/* =========================================================
   3. CTA
   ========================================================= */
.cta {
  background: linear-gradient(180deg, #0a1a7a 0%, var(--blue-700) 45%, var(--blue-600) 100%);
  color: #fff; text-align: center; padding: 38px 0 46px;
}
.cta__kicker { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: .72rem; letter-spacing: .02em; }
.cta__title {
  font-family: var(--font-head); font-weight: 900; text-transform: uppercase;
  letter-spacing: .06em; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.05; margin: 4px 0 8px;
}
.cta__sub { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; margin-bottom: 16px; }

/* =========================================================
   4. GALERÍA
   ========================================================= */
.gallery { padding: 16px 16px 50px; }
.gallery__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 1560px; margin: 0 auto; }
.gallery__item { aspect-ratio: 1; overflow: hidden; display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; }
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.08); }

/* =========================================================
   5. POLARIZADOS
   ========================================================= */
.polarizados { background: linear-gradient(180deg, #fff 0%, #ececec 100%); padding: 60px 0 70px; }
.polarizados__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; max-width: 1000px; }

.tag { display: inline-block; font-weight: 600; }
.tag--dark { background: #111; color: #fff; font-size: 1.3rem; padding: 2px 8px; margin-bottom: 16px; }
.tag--red  { background: var(--red); color: #fff; font-size: .82rem; padding: 2px 6px; margin-top: 28px; }

.polarizados__strong { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .03em; line-height: 1.3; margin-top: 4px; }
.polarizados__text { font-size: .85rem; margin: 22px 0 26px; max-width: 450px; }

.checklist li {
  position: relative; padding-left: 22px; margin: 0 0 24px 10px;
  font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
}
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 1px; width: 6px; height: 11px;
  border: solid var(--blue-600); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

.polarizados__media { position: relative; padding-bottom: 100px; }
.polarizados__car { width: 100%; }
.polarizados__badge { position: absolute; left: -10px; bottom: 30px; width: 130px; }

/* =========================================================
   6. MARCAS
   ========================================================= */
.marcas { padding: 40px 0; background: #fff; }
.marcas__row { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; }
.marcas__row img { height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.marcas__row img:hover { filter: none; opacity: 1; }

/* =========================================================
   7. CONTACTO
   ========================================================= */
.contacto {
  position: relative; color: #fff; padding: 60px 0 40px;
  background: #0a0a10 url("../img/contacto/fondo.jpg") center / cover no-repeat;
}
.contacto::before { content: ""; position: absolute; inset: 0; background: rgba(5, 5, 12, .82); }
.contacto__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1000px; }

.contacto__title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1.6rem; }
.contacto__title::after { content: ""; display: block; width: 150px; height: 3px; background: var(--blue-line); margin: 10px 0 40px; }

.contacto__list li { display: flex; align-items: center; gap: 12px; font-size: .85rem; margin-bottom: 14px; }
.contacto__list svg { width: 15px; height: 15px; fill: #fff; flex: 0 0 15px; }
.contacto__list a:hover { color: var(--lime); }

.social { display: flex; gap: 18px; margin: 26px 0 30px 8px; }
.social svg { width: 16px; height: 16px; fill: #fff; transition: fill .2s; }
.social a:hover svg { fill: var(--lime); }

.contacto__map { border: 1px solid rgba(255,255,255,.2); }
.contacto__map iframe { width: 100%; height: 220px; border: 0; display: block; }

.contacto__box { background: rgba(255, 255, 255, .5); color: var(--ink); padding: 20px; align-self: start; min-height: 300px; }
.contacto__box h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 18px; }
.form label { display: block; font-size: .75rem; font-weight: 600; margin-bottom: 14px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  font: inherit; font-weight: 400; font-size: .85rem;
  border: 1px solid #ccc; border-radius: 3px; background: #fafafa;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue-500); border-color: transparent; }

/* ---------- Footer ---------- */
.footer { text-align: center; font-size: .7rem; padding: 10px; color: #555; background: #fff; }
.footer a { color: #7b2ff2; }

/* ---------- Popup / Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; }
.lightbox__img { max-width: 88vw; max-height: 68vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 3rem; line-height: 1; padding: 10px 18px; }
.lightbox button[hidden] { display: none; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__nav--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__thumbs { display: flex; gap: 8px; max-width: 90vw; overflow-x: auto; padding: 4px; }
.lightbox__thumbs[hidden] { display: none; }
.lightbox__thumbs img { width: 70px; height: 70px; object-fit: cover; cursor: pointer; opacity: .5; border: 2px solid transparent; transition: opacity .2s; flex: 0 0 auto; }
.lightbox__thumbs img:hover { opacity: .85; }
.lightbox__thumbs img.is-active { opacity: 1; border-color: var(--lime); }

/* ---------- Placeholder de imagen faltante (lo genera main.js) ---------- */
.img-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; min-height: 120px; padding: 10px;
  background: repeating-linear-gradient(45deg, #d9d9d9 0 12px, #e6e6e6 12px 24px);
  color: #555; font: 600 .7rem/1.3 var(--font-body); word-break: break-all;
}
.hero__media .img-ph { min-height: 380px; background: rgba(255,255,255,.08); color: #cfd8ff; border: 2px dashed rgba(255,255,255,.3); }
.marcas__row .img-ph { width: 150px; min-height: 56px; }
.polarizados__media .img-ph { min-height: 260px; }
.polarizados__media .polarizados__badge.img-ph { width: 130px; height: 50px; min-height: 0; position: absolute; left: -10px; bottom: 30px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero__grid, .polarizados__grid, .contacto__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 300px; }
  .cards--3 { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .section-head br, .cta__title br { display: none; }
  .marcas__row { gap: 30px; }
  .marcas__row img { height: 40px; }
}
@media (max-width: 480px) {
  .cards--4 { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
