/* ═══════════════════════════════════════════════
   NILTTE CONSTRUCTORA — style.css
   Paleta: Azul Marino #1B3A4B / Dorado #B8972E
   Tipografía: Syne (display) + Inter (cuerpo)
   ═══════════════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1B3A4B;
  --navy-dark:   #0F2230;
  --navy-mid:    #24516A;
  --gold:        #B8972E;
  --gold-light:  #CFA83C;
  --gold-pale:   #F5EDD0;
  --white:       #FFFFFF;
  --off-white:   #F4F3EF;
  --grey:        #6B7B85;
  --grey-light:  #E4E9EC;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 16px rgba(15,34,48,.07);
  --shadow-md:   0 8px 32px rgba(15,34,48,.12);
  --shadow-lg:   0 20px 60px rgba(15,34,48,.18);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --ease:         cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SECTION HELPERS ── */
.section { padding: 6rem 0; }

.section-label {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 2.5rem;
}
.section-title span { color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.4);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); color: var(--white); }

.btn--lg { padding: .9rem 2.2rem; font-size: 1rem; }

/* ══════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: var(--shadow-md);
}

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

.nav__logo-img {
  height: 46px;
  width: auto;
  border-radius: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}
.nav__links a:hover { color: var(--gold-light); }

.nav__cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: .4rem 1.2rem;
  border-radius: var(--radius);
}
.nav__cta:hover { background: var(--gold-light) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: .25s var(--ease);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   HERO — PANELES GEOMÉTRICOS
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
  background: var(--navy-dark);
}

/* Contenedor de los tres paneles fotográficos */
.hero__panels {
  position: absolute;
  inset: 0;
  display: flex;
}

/* Cada panel ocupa toda la altura y se recorta */
.hero__panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/*
  Panel izquierdo: cubre 60% del ancho,
  recortado con diagonal hacia la derecha que apunta al centro
*/
.hero__panel--left {
  clip-path: polygon(0 0, 58% 0, 48% 100%, 0 100%);
  z-index: 1;
}

/*
  Panel centro: franja diagonal que pasa por el medio,
  crea el efecto de "corte" con la imagen de los trabajadores
*/
.hero__panel--mid {
  clip-path: polygon(50% 0, 68% 0, 56% 100%, 40% 100%);
  z-index: 2;
  opacity: .85;
}

/*
  Panel derecho: cubre el 45% derecho,
  recortado con diagonal desde la izquierda
*/
.hero__panel--right {
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 52% 100%);
  z-index: 1;
}

/* Overlay oscuro degradado para legibilidad del texto */
.hero__panels-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(105deg,
      rgba(10,22,34,.92) 0%,
      rgba(15,34,48,.78) 38%,
      rgba(27,58,75,.35) 70%,
      rgba(10,22,34,.55) 100%
    );
}

/* Línea diagonal dorada decorativa — borde del corte izquierdo */
.hero__diag-line {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.hero__diag-line::before {
  content: '';
  position: absolute;
  /* línea delgada dorada que sigue la diagonal del panel izquierdo */
  top: 0; bottom: 0;
  left: calc(48% - 1px);
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent 100%
  );
  transform: skewX(-8deg);
  opacity: .7;
}
.hero__diag-line::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(62% - 1px);
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(184,151,46,.4) 25%,
    rgba(184,151,46,.4) 75%,
    transparent 100%
  );
  transform: skewX(-8deg);
  opacity: .5;
}

/* Contenido sobre los paneles */
.hero__layout {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: 5rem 0;
}

.hero__left { max-width: 600px; }

.hero__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(184,151,46,.4);
  background: rgba(184,151,46,.1);
  padding: .28rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 4rem);  /* cambia 3.2rem → 1.8rem */
  font-weight: 800;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.62);
  max-width: 500px;
  margin-bottom: 2.4rem;
  font-weight: 300;
  line-height: 1.75;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats box */
.hero__right { flex-shrink: 0; }

.hero__stat-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-width: 200px;
}

.hero__stat { text-align: center; }
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.hero__stat span {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .3rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.hero__scroll span {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(184,151,46,.7));
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* Responsive hero */
@media (max-width: 900px) {
  .hero__panel--mid  { display: none; }
  .hero__panel--left { clip-path: polygon(0 0, 65% 0, 52% 100%, 0 100%); }
  .hero__panel--right{ clip-path: polygon(58% 0, 100% 0, 100% 100%, 45% 100%); }
  .hero__diag-line::before { left: calc(52% - 1px); }
  .hero__diag-line::after  { display: none; }
  .hero__layout { flex-direction: column; align-items: flex-start; padding: 4rem 0; }
  .hero__right { width: 100%; }
  .hero__stat-box { flex-direction: row; justify-content: space-around; }
}

@media (max-width: 600px) {
  .hero__panel--right { display: none; }
  .hero__panel--left  { clip-path: none; }
  .hero__diag-line    { display: none; }
  .hero__title { font-size: clamp(2.8rem, 11vw, 4.5rem); }
  .hero__stat-box { flex-direction: column; gap: 1rem; }
}

/* ══════════════════════════════════════
   EMPRESA
══════════════════════════════════════ */
.empresa { background: var(--off-white); }

.empresa__wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

/* Photo column */
.empresa__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.empresa__photo-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.empresa__badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--gold);
  color: var(--white);
  padding: .75rem 1.1rem;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.2;
}
.empresa__badge span {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}
.empresa__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

/* Cards */
.empresa__cards { display: flex; flex-direction: column; gap: 1.2rem; }

.empresa__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  border-left: 3px solid var(--gold);
  transition: box-shadow .25s, transform .25s;
}
.empresa__card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.empresa__card--full { border-left-color: var(--navy); }

.ecard__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.empresa__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}

.empresa__card p {
  font-size: .88rem;
  color: var(--grey);
  line-height: 1.7;
}

.valores-list { margin-top: .3rem; }
.valores-list li {
  font-size: .87rem;
  color: var(--grey);
  padding: .28rem 0;
  border-bottom: 1px solid var(--grey-light);
  display: flex;
  align-items: center;
  gap: .55rem;
}
.valores-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.valores-list li:last-child { border-bottom: none; }

/* ══════════════════════════════════════
   SERVICIOS — EDITORIAL GRID
══════════════════════════════════════ */
.servicios { background: var(--white); }

.servicios__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.servicios__header .section-title { margin-bottom: 0; }

.servicios__intro {
  max-width: 340px;
  font-size: .9rem;
  color: var(--grey);
  line-height: 1.75;
  padding-bottom: .3rem;
  text-align: right;
}

/* Grid: 3 columnas base, items especiales ocupan más */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.4rem;
}

/* Card base */
.svc {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.svc:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

/* Imagen del servicio */
.svc__img {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}
.svc__img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.svc:hover .svc__img img { transform: scale(1.04); }

/* Overlay oscuro sobre imagen */
.svc__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,34,.55) 0%, transparent 60%);
  pointer-events: none;
}

/* Número del servicio sobre la imagen */
.svc__num {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--white);
  background: var(--gold);
  padding: .18rem .6rem;
  border-radius: 100px;
  z-index: 2;
}

/* Contenido del card */
.svc__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.svc__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .65rem;
  line-height: 1.25;
}

.svc__body p {
  font-size: .87rem;
  color: var(--grey);
  line-height: 1.72;
  flex: 1;
}

/* Badge "mediante terceros" */
.svc__badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: .74rem;
  font-weight: 500;
  color: var(--navy-mid);
  background: rgba(27,58,75,.07);
  border: 1px solid rgba(27,58,75,.15);
  padding: .2rem .75rem;
  border-radius: 100px;
}

/* Tags de servicios */
.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}
.svc__tags span {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: .18rem .6rem;
  border-radius: 100px;
}

/* Card alto (2 filas) */
.svc--tall {
  grid-row: span 2;
}
.svc--tall .svc__img img {
  height: 100%;
  min-height: 360px;
}
.svc--tall .svc__img {
  flex: 1;
}
.svc--tall {
  display: flex;
  flex-direction: column;
}

/* Card ancho completo */
.svc--wide {
  grid-column: span 3;
  flex-direction: row;
}
.svc--wide .svc__img {
  width: 45%;
  flex-shrink: 0;
}
.svc--wide .svc__img img {
  height: 100%;
  min-height: 260px;
}
.svc--wide .svc__body {
  justify-content: center;
  padding: 2.2rem;
}
.svc--wide .svc__body h3 {
  font-size: 1.45rem;
}

/* ══════════════════════════════════════
   CTA BAND
══════════════════════════════════════ */
.cta-band {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.cta-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,22,34,.9) 0%, rgba(27,58,75,.75) 100%);
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band__pre {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .4rem;
  font-weight: 400;
  letter-spacing: .04em;
}

.cta-band__h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  padding: 4.5rem 0 0;
  color: rgba(255,255,255,.65);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__logo {
  height: 52px;
  width: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: .85rem;
  line-height: 1.85;
  color: rgba(255,255,255,.42);
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer__col ul li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .85rem;
  margin-bottom: .8rem;
  color: rgba(255,255,255,.55);
}
.footer__col ul li svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}
.footer__col ul li a {
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer__col ul li a:hover { color: var(--gold-light); }

.footer__days {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .3rem;
}
.footer__time {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: .02em;
}

.footer__svc-list li {
  font-size: .8rem;
  color: rgba(255,255,255,.38);
  padding: .22rem 0 .22rem .75rem;
  border-left: 2px solid rgba(184,151,46,.2);
  margin-bottom: .3rem;
}

.footer__bottom {
  padding: 1.2rem 0;
}
.footer__bottom p {
  font-size: .76rem;
  color: rgba(255,255,255,.25);
  text-align: center;
}

/* ══════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .empresa__wrap { grid-template-columns: 1fr; gap: 3rem; }
  .empresa__photo-frame img { aspect-ratio: 16/9; }

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

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .servicios__header { flex-direction: column; align-items: flex-start; }
  .servicios__intro { text-align: left; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 199;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.2rem; }
  .nav__cta { text-align: center; }

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

  .cta-band__inner { flex-direction: column; text-align: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .section { padding: 4rem 0; }
}

/* Small — 480px */
@media (max-width: 480px) {
  .section-title { font-size: 2rem; }
}
@media (max-width: 768px) {
  .hero__title {
    font-size: 6vw;
  }
}