/* Galvanocrom, hoja de estilos única */

/* ---------- Variables ---------- */
:root {
  --teal:        #5F817F;
  --teal-light:  #8FB3B0;
  --teal-dark:   #3E5A58;
  --graphite:    #171B1D;
  --graphite-2:  #21282B;
  --graphite-3:  #333C40;
  --bronze:      #C08A3E;
  --bronze-light:#DCA85B;
  --paper:       #F3F5F5;
  --paper-2:     #E4E9E9;
  --ink:         #171B1D;
  --ink-soft:    #596367;
  --white:       #FFFFFF;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 1px 2px rgba(23,27,29,.06), 0 8px 24px rgba(23,27,29,.09);
  --shadow-lg: 0 2px 4px rgba(23,27,29,.08), 0 28px 56px rgba(23,27,29,.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-stretch: 112%;
}
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--bronze); color: var(--graphite); padding: .75rem 1.25rem; font-weight: 600;
}
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Utilidades ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--dark { background: var(--graphite); color: var(--paper); }
.section--tint { background: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--white); }


.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; max-width: 90px; }
.section--dark .eyebrow, .hero .eyebrow, .proc-hero .eyebrow { color: var(--teal-light); }

.h-xl { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.h-lg { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.h-md { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 62ch; }
.section--dark .lead, .hero .lead, .proc-hero .lead { color: #B2BEC1; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em; text-align: center;
  padding: .9rem 1.55rem;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--primary { background: var(--bronze); color: var(--graphite); }
.btn--primary:hover { background: var(--bronze-light); }
.btn--ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn--outline { border-color: var(--graphite-3); color: var(--ink); }
.btn--outline:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(23,27,29,.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px; padding-block: .75rem;
}
.logo { display: flex; align-items: center; gap: .8rem; color: var(--teal-light); }
.logo svg { height: 34px; width: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%;
  font-size: 1.06rem; letter-spacing: .07em; color: var(--white); text-transform: uppercase;
}
.logo__tag {
  font-size: .63rem; letter-spacing: .35em; text-transform: lowercase;
  color: var(--teal-light); margin-top: .34rem;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav > a:not(.btn) {
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: #B9C4C6;
  padding: .4rem 0; border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav > a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--white); border-color: var(--bronze); }
.nav .btn { padding: .62rem 1.15rem; font-size: .82rem; text-transform: uppercase; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--white); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--graphite); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .5rem var(--gutter) 1.5rem; display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--graphite); color: var(--paper); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .42;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(23,27,29,.92) 28%, rgba(23,27,29,.62) 60%, rgba(23,27,29,.4)),
    radial-gradient(70ch 50ch at 12% 100%, rgba(95,129,127,.4), transparent 65%);
}
.hero__inner {
  position: relative; z-index: 2; max-width: 940px; margin-inline: 0;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero .lead { margin-bottom: 2rem; }
.hero__strip { position: relative; z-index: 2; display: flex; height: 7px; }
.hero__strip i { flex: 1; }

.hero__stats {
  position: relative; display: flex; justify-content: center; text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2.25rem; border-top: 1px solid rgba(255,255,255,.14);
}
@media (min-width: 900px) {
  .hero__stats { justify-content: flex-start; text-align: left; }
  .hero__stats .stat { justify-content: flex-start; }
}
.stat { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .35rem .5rem; min-width: 0; }
.stat__k { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; color: var(--white); margin: 0; }
.stat__v { font-size: clamp(.9rem, 1.4vw, 1rem); color: #96A3A6; margin: 0; }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .92fr 1fr; } }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__media img { display: block; width: 100%; height: auto; }
.about__media::after {
  content: ""; position: absolute; inset: auto 0 0; height: 7px;
  background: linear-gradient(90deg, #B03A2E, #C08A3E 25%, #1E8449 50%, #2E86C1 72%, #7D3C98);
}
.about__text .checks { margin-bottom: 1.75rem; }
.about__text .checks strong { font-family: var(--font-display); }

/* ---------- Grillas de tarjetas ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--paper-2);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card__media { position: relative; overflow: hidden; }
.card__media img {
  /* height:auto es necesario: el atributo height del <img> le gana al aspect-ratio */
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__strip { position: absolute; inset: auto 0 0; height: 5px; }
.card__body { padding: 1.5rem 1.5rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.card__body p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.card__link {
  margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark);
  display: inline-flex; align-items: center; gap: .45rem;
}
.card:hover .card__link { color: var(--bronze); }
.card__link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card__link::after { transform: translateX(4px); }
/* El overlay clickeable va en ::before: ::after ya lo usa la flecha de .card__link */
.card__stretch::before { content: ""; position: absolute; inset: 0; }

/* Industrias */
.ind {
  background: var(--graphite-2); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  transition: border-color .2s ease, background .2s ease;
}
.ind:hover { border-color: var(--teal); background: #262E31; }
.ind__ico { width: 30px; height: 30px; color: var(--teal-light); margin-bottom: 1rem; }
.ind h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.ind p { font-size: .87rem; color: #96A3A6; margin: 0 0 .9rem; }
.ind__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; padding: .2rem .55rem; border-radius: 99px;
  background: rgba(143,179,176,.14); color: var(--teal-light);
}

/* ---------- CTA intercalado ---------- */
.cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin-top: clamp(2.25rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white); border: 1px solid var(--paper-2);
  border-left: 3px solid var(--bronze); border-radius: 0 var(--radius) var(--radius) 0;
}
.section--tint .cta-inline { background: var(--white); }
.cta-inline--dark { background: var(--graphite-2); border-color: rgba(255,255,255,.1); border-left-color: var(--bronze); }
.cta-inline__t { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; margin: 0 0 .3rem; }
.cta-inline--dark .cta-inline__t { color: var(--white); }
.cta-inline__s { margin: 0; color: var(--ink-soft); font-size: .95rem; max-width: 52ch; }
.cta-inline--dark .cta-inline__s { color: #96A3A6; }
.cta-inline--dark .btn--outline { border-color: rgba(255,255,255,.3); color: var(--white); }
.cta-inline--dark .btn--outline:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: 1.75rem .85rem .75rem; font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.placeholder-note {
  margin-top: 1.5rem; font-size: .82rem; color: var(--ink-soft);
  border-left: 2px solid var(--bronze); padding-left: .9rem;
}
.section--dark .placeholder-note { color: #96A3A6; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--paper-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative; font-family: var(--font-display); font-weight: 600;
  font-size: 1.03rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.75rem;
  width: 11px; height: 11px; border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--teal-dark); }
.faq .faq__a { padding: 0 2.5rem 1.5rem 0; color: var(--ink-soft); font-size: .96rem; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.15fr .85fr; } }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: #A9B5B8; margin-bottom: .45rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: rgba(255,255,255,.05); color: var(--white);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  transition: border-color .16s ease, background .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-light); background: rgba(255,255,255,.09);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select option { background: var(--graphite); }
.field-row { display: grid; gap: 0 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .85rem; color: #8A979A; margin: 1rem 0 0; }

.info dl { margin: 0; display: grid; gap: 1.4rem; }
.info dt {
  font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-light); margin-bottom: .3rem;
}
.info dd { margin: 0; font-size: 1.02rem; color: var(--paper); }
.info dd a:hover { color: var(--bronze-light); }
.info dd span { display: block; color: #96A3A6; font-size: .92rem; }
.info__mapa { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: #0F1315; color: #8A979A; padding: 3.5rem 0 2rem; font-size: .88rem; border-top: 3px solid rgba(255,255,255,.14); }
.footer__top {
  display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo { margin-bottom: 1rem; }
.footer__top p { max-width: 34ch; margin-bottom: 1.4rem; }
.footer h4 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a:hover { color: var(--white); }
.footer .btn:hover { color: var(--graphite); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.75rem; font-size: .8rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #06331A;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  padding: .8rem 1.15rem; border-radius: 99px;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.34); }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: .9rem; } }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .8rem; color: #8A979A; margin-bottom: 1.5rem; letter-spacing: .04em; }
.crumb a:hover { color: var(--teal-light); }
.crumb span { margin: 0 .5rem; opacity: .5; }

/* ---------- Página de proceso ---------- */
.proc-hero {
  position: relative; background: var(--graphite); color: var(--paper);
  padding: 2.5rem 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden;
}
.proc-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .44; }
.proc-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(23,27,29,.9) 30%, rgba(23,27,29,.58) 65%, rgba(23,27,29,.36));
}
.proc-hero .wrap { position: relative; z-index: 2; }
.proc-hero__inner { max-width: 780px; }
.proc-hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.3rem); }
.proc-hero .lead { margin-bottom: 1.9rem; }
.proc-hero__strip { height: 8px; border-radius: 99px; margin-top: clamp(2rem, 4vw, 3rem); }

.section--proc { padding-top: clamp(3rem, 6vw, 4.5rem); }
.proc-body { display: grid; }
.proc-main { max-width: 760px; }
.proc-main h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 2.75rem; }
.proc-main h2:first-child { margin-top: 0; }
.proc-main > p:first-of-type { font-size: 1.1rem; }
.proc-main .cta-inline { background: var(--paper); margin-bottom: 1rem; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 5px; border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}

.apps { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.apps li {
  background: var(--paper); border: 1px solid var(--paper-2); border-radius: var(--radius);
  padding: .85rem 1rem; font-size: .9rem; font-weight: 500; margin: 0;
}

.callout {
  background: var(--paper); border-left: 3px solid var(--bronze);
  padding: 1.35rem 1.5rem; margin: 2.25rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-family: var(--font-display); }

.next { display: flex; flex-wrap: wrap; gap: .6rem; }
.next a {
  border: 1px solid var(--paper-2); border-radius: 99px; padding: .55rem 1.1rem;
  font-size: .88rem; font-weight: 500; transition: border-color .18s ease, color .18s ease;
}
.next a:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Franja CTA ---------- */
.cta-band {
  position: relative; color: var(--white);
  background: var(--teal-dark) url("../img/fotos/cta.jpg") center/cover;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(35,63,61,.96) 35%, rgba(35,63,61,.82));
}
.cta-band__inner {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem;
}
.cta-band h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 .4rem; color: var(--white); }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); max-width: 52ch; }

/* ---------- Ajustes de pantalla chica ---------- */
@media (max-width: 560px) {
  .logo svg { height: 28px; }
  .logo__name { font-size: .92rem; letter-spacing: .05em; }
  .logo__tag { font-size: .55rem; letter-spacing: .28em; margin-top: .28rem; }
  .h-xl { font-size: clamp(2rem, 8.5vw, 2.4rem); }
  .hero .lead { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-inline { border-left-width: 3px; }
}
