/* ============================================================
   JCV Expert — landing styles
   Brand: navy + copper sobre fondos claros (como la firma de correo)
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F1ECE4;
  --panel: #FFFFFF;
  --line: #E3DCD1;
  --navy: #14293A;
  --navy-deep: #0F2231;
  --text: #24384A;
  --muted: #5C6B77;
  --copper: #B87A4A;
  --copper-dark: #A5673A;
  --copper-light: #D9A87E;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- typography helpers ---------- */

.kicker {
  color: var(--copper-dark);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--navy);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--navy);
}

h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--navy); }

/* párrafos de lectura justificados */
.hero__lead,
.about__grid p,
.card p,
.contact__info > p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

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

.btn--ghost {
  border-color: var(--line);
  color: var(--navy);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--copper); color: var(--copper-dark); }

.btn--small { padding: 9px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; justify-content: center; }

.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand__hex { display: inline-flex; }

.brand__hex img { display: block; height: auto; }

.brand__text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 0.98rem;
  line-height: 1.25;
}

.brand__text small {
  color: var(--copper-dark);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__links a:hover { color: var(--navy); }
.nav__links a.btn { color: #fff; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  /* colada de cobre al fondo, velada con crema para mantener la página clara */
  background:
    linear-gradient(100deg, rgba(250, 247, 242, 0.98) 0%, rgba(250, 247, 242, 0.93) 48%, rgba(250, 247, 242, 0.78) 100%),
    url("../img/bg-colada.jpg") right center / cover no-repeat var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero__circuit {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(600px, 60vw);
  height: 400px;
  pointer-events: none;
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 60px;
}

.hero__lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 56ch;
}

.hero__lead strong { color: var(--copper-dark); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  max-width: 660px;
}

.hero__stats > div {
  border-left: 3px solid var(--copper);
  padding-left: 14px;
}

.hero__stats dt {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  white-space: nowrap;
}

.hero__stats dd {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 3px;
}

.hero__photo { justify-self: center; }

.hero__photo img {
  width: min(340px, 70vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--copper);
  box-shadow: 0 0 0 10px rgba(184, 122, 74, 0.12), 0 24px 50px rgba(20, 41, 58, 0.18);
}

/* companies strip */

.companies {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 8px;
  padding-bottom: 30px;
}

.companies span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.companies ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
}

.companies li {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  background: #fff;
}

/* ---------- sections ---------- */

.section { padding: 88px 0; }

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  color: var(--muted);
  font-size: 1.02rem;
}

.about__grid strong, .about__grid em { color: var(--navy); font-style: normal; }

/* ---------- photo band (planta de flotación) ---------- */

.band {
  background:
    linear-gradient(rgba(13, 28, 40, 0.78), rgba(13, 28, 40, 0.78)),
    url("../img/bg-flotacion.jpg") center / cover no-repeat;
  padding: 100px 0;
}

.band__inner {
  max-width: 760px;
  text-align: center;
}

.band__quote {
  color: #EDF2F4;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.band__quote::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--copper-light);
  border-radius: 2px;
  margin: 0 auto 26px;
}

.band__source {
  display: inline-block;
  margin-top: 22px;
  color: var(--copper-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- expertise cards ---------- */

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(20, 41, 58, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(184, 122, 74, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 41, 58, 0.10);
}

.card h3 { margin-bottom: 10px; }

.card h3::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--copper);
  border-radius: 2px;
  margin-bottom: 14px;
}

.card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- contact (fondo: laboratorio metalúrgico) ---------- */

.contact {
  background:
    linear-gradient(rgba(13, 28, 40, 0.87), rgba(13, 28, 40, 0.87)),
    url("../img/bg-laboratorio.jpg") center / cover no-repeat;
}

.contact .kicker { color: var(--copper-light); }
.contact h2 { color: #fff; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact__info > p { color: #B9C6CF; max-width: 44ch; }

.contact__list {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 20px;
  color: #DCE4E9;
}

.contact__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--copper-light);
  margin-bottom: 3px;
}

.contact__list a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 168, 126, 0.55);
}

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

.contact__form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(20, 41, 58, 0.05);
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 122, 74, 0.18);
}

/* honeypot: visually removed, still in the DOM for bots */
.field--hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status--ok { color: #1E7A4C; }
.form-status--error { color: #B54726; }

/* ---------- footer (bloque navy: ancla la identidad de marca) ---------- */

.footer {
  padding: 36px 0;
  background: var(--navy-deep);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand__text--footer {
  letter-spacing: 0.24em;
  font-size: 0.9rem;
  color: #EDF2F4;
}

.brand__text--footer small { color: var(--copper-light); }

.footer p { color: #9AAEBB; font-size: 0.85rem; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: left;
  }
  .hero__photo { order: -1; justify-self: start; }
  .hero__photo img { width: 180px; }
  .hero__circuit { display: none; }
  .hero__stats { grid-template-columns: 1fr; gap: 14px; }
  .cards { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .nav__links a:not(.btn) { display: none; }
  .section { padding: 64px 0; }
  .band { padding: 72px 0; }
}

/* parallax sutil solo en escritorio (fixed es problemático en móviles) */
@media (min-width: 881px) {
  .band { background-attachment: fixed; }
}
