/* ============================================================
   INTELECSA SpA — hoja de estilos
   Nomenclatura BEM: .bloque, .bloque__elemento, .bloque--modificador
   Estados vía JS: .is-solid (header con fondo), .is-open (menú móvil)
   ============================================================ */

:root {
  --navy: #1B3A5C;
  --navy-deep: #132C47;
  --amber: #F2A81D;
  --amber-dark: #A66A00;
  --tint: #EFF3F8;
  --ink: #26313D;
  --muted: #55647A;
  --line: #D8E0EA;
  --white: #FFFFFF;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;
  --header-h: clamp(64px, 8vh, 76px);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

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

.container {
  width: min(1120px, 100% - clamp(32px, 6vw, 48px));
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; text-wrap: balance; }
p { margin: 0 0 14px; }

/* ---------- Secciones ---------- */

.section { padding: clamp(56px, 8vw, 88px) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy-deep); }
.section--navy .section__title { color: var(--white); }

.section__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 10px;
}
.section__kicker--on-dark { color: var(--amber); }

.section__title {
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 800;
  margin-bottom: clamp(16px, 2.5vw, 22px);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--amber { background: var(--amber); color: var(--navy-deep); }
.btn--amber:hover { background: #dd9407; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }
.btn--whatsapp { background: #1fa855; color: var(--white); }
.btn--whatsapp:hover { background: #178a45; }
.btn--whatsapp svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-solid {
  background: var(--white);
  box-shadow: 0 2px 14px rgba(19, 44, 71, 0.12);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: clamp(32px, 3vw, 38px); height: auto; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 21px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
}
.brand__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}
.brand__hex { fill: var(--white); }
.brand__bolt { fill: var(--amber); }
.site-header.is-solid .brand__name { color: var(--navy); }
.site-header.is-solid .brand__tagline { color: var(--amber-dark); }
.site-header.is-solid .brand__hex { fill: var(--navy); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 30px); }
.site-nav__link {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--white);
  transition: color 0.15s ease;
}
.site-nav__link:hover { color: var(--amber); }
.site-header.is-solid .site-nav__link { color: var(--ink); }
.site-header.is-solid .site-nav__link:hover { color: var(--navy); }
.site-nav__cta { padding: 10px 22px; }

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.site-header__toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
}
.site-header.is-solid .site-header__toggle span,
.site-header.is-open .site-header__toggle span { background: var(--navy); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 860px);
  display: flex;
  align-items: center;
  background: var(--navy-deep);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero.jpg') center 40% / cover no-repeat;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(19, 44, 71, 0.55) 0%, rgba(19, 44, 71, 0) 30%),
    linear-gradient(95deg, rgba(19, 44, 71, 0.95) 0%, rgba(19, 44, 71, 0.82) 42%, rgba(19, 44, 71, 0.45) 75%, rgba(19, 44, 71, 0.3) 100%);
}
.hero__content {
  position: relative;
  max-width: 680px;
  padding: calc(var(--header-h) + clamp(40px, 8vh, 80px)) 0 clamp(56px, 9vh, 90px);
}
.hero__rule { width: 64px; height: 5px; background: var(--amber); margin-bottom: clamp(16px, 2.5vh, 24px); }
.hero__title {
  color: var(--white);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 16px;
}
.hero__tagline {
  color: var(--amber);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero__lead {
  color: #D5DFEA;
  font-size: clamp(16px, 1.2vw, 17.5px);
  max-width: 560px;
  margin-bottom: clamp(24px, 4vh, 32px);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Cifras ---------- */

.stats { background: var(--navy); padding: clamp(26px, 4vw, 38px) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.8vw, 34px);
  color: var(--amber);
  line-height: 1;
}
.stat__label { font-size: 14.5px; color: #D5DFEA; line-height: 1.35; }

/* ---------- Nosotros ---------- */

.about__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 8px;
}

.about__mission-vision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(24px, 4vw, 36px);
}

.card { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); }
.card__title { letter-spacing: 0.1em; text-transform: uppercase; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.card p { margin: 0; font-size: 16px; }
.card--navy { background: var(--navy); }
.card--navy .card__title { color: var(--amber); }
.card--navy p { color: #E8EEF5; }
.card--tint { background: var(--tint); }

.about__values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}
.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.value-chip__num { font-family: var(--font-display); font-weight: 800; color: var(--amber-dark); font-size: 13px; }

/* ---------- Servicios ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: 12px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 2px 10px rgba(19, 44, 71, 0.06);
}
.service-card__icon { width: 30px; height: 30px; color: var(--amber-dark); margin-bottom: 14px; }
.service-card__title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card__desc { margin: 0; font-size: 16px; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(16px, 2.5vw, 24px);
}
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery__item img { width: 100%; height: clamp(190px, 24vw, 250px); object-fit: cover; }
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 18px 12px;
  background: linear-gradient(180deg, rgba(19, 44, 71, 0) 0%, rgba(19, 44, 71, 0.85) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 14.5px;
}

.capacity {
  background: var(--navy);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  margin-top: clamp(16px, 2.5vw, 24px);
}
.capacity__title { color: var(--white); font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.capacity__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 24px);
}
.capacity__item { color: #D5DFEA; font-size: 14.5px; line-height: 1.35; }
.capacity__item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 32px);
  color: var(--amber);
  margin-bottom: 4px;
}
.capacity__note { margin: 22px 0 0; font-size: 13.5px; color: #9FB3C8; }

/* ---------- Cobertura ---------- */

.coverage__lead { max-width: 640px; }
.coverage__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.chip {
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy);
}

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.contact__lead { color: #D5DFEA; }
.contact__list { list-style: none; margin: 26px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact__item { color: var(--white); font-size: 16.5px; }
.contact__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2px;
}
.contact__item a { color: var(--white); text-decoration: none; }
.contact__item a:hover { color: var(--amber); }

.quote-form {
  background: var(--white);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
}
.quote-form__field input,
.quote-form__field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  resize: vertical;
  width: 100%;
}
.quote-form__field input:focus,
.quote-form__field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.quote-form__note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; font-size: 14.5px; }
.site-footer__legal { color: #9FB3C8; font-size: 13.5px; }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capacity__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .about__intro, .about__mission-vision, .services, .gallery { grid-template-columns: minmax(0, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}

/* Menú móvil */
@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(19, 44, 71, 0.15);
    display: none;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-header.is-open { background: var(--white); }
  .site-header.is-open .brand__name { color: var(--navy); }
  .site-header.is-open .brand__tagline { color: var(--amber-dark); }
  .site-header.is-open .brand__hex { fill: var(--navy); }
  .site-nav__link {
    color: var(--ink) !important;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__cta { margin: 16px 24px; }
  .site-header__toggle { display: flex; }
}

/* Móvil chico */
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .stats__grid { gap: 18px; }
  .stat__label { font-size: 13.5px; }
  .capacity__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .chip { padding: 8px 16px; font-size: 14.5px; }
}
