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

html { scroll-behavior: smooth; }

body {
  background: #0d0d0d;
  color: #e8e8e8;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --clr-bg:       #0d0d0d;
  --clr-bg-2:     #111111;
  --clr-accent:   #e8a020;
  --clr-text:     #e8e8e8;
  --clr-muted:    rgba(232,232,232,0.55);
  --clr-border:   rgba(255,255,255,0.08);
  --clr-wa:       #25d366;
  --nav-height:   64px;
  --section-pad:  80px;
  --inner-max:    1100px;
}

/* ── LAYOUT HELPERS ── */
.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  color: var(--clr-text);
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--clr-accent);
  margin-top: 10px;
}

/* ── FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── WHATSAPP BUTTON ── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-wa);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-whatsapp:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-whatsapp--large { font-size: 1rem; padding: 16px 32px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav--scrolled {
  background: var(--clr-bg);
  border-color: var(--clr-border);
}

.nav__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img { height: 32px; width: auto; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--clr-text); }

.nav__links .nav__cta {
  color: var(--clr-accent);
}
.nav__links .nav__cta:hover { color: #f0b840; }

/* Burger — solo mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── MOBILE NAV ── */
@media (max-width: 680px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--clr-bg);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-top: 1px solid var(--clr-border);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    pointer-events: none;
  }
  .nav__links.nav__links--open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links li { text-align: center; }
  .nav__links a { display: block; padding: 14px 24px; }

  /* Burger → X cuando está abierto */
  .nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.38) 60%,
    rgba(0,0,0,0.18) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 40px 72px;
  max-width: 680px;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}

.hero__headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero__headline span { color: var(--clr-accent); }

.hero__tagline {
  font-size: 1rem;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 16px 0 28px;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 28px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--clr-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--clr-muted);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; width: 20px; }
  50% { opacity: 1; width: 40px; }
}

@media (max-width: 480px) {
  .hero__content { padding: 0 24px 60px; }
  .hero__scroll-indicator { right: 24px; }
}

/* ── SEPARADORES ── */
.sep-rebar {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.sep-rebar img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.6);
}

/* ── SERVICES ── */
.services {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
}
.services__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1;
}

.services .section-inner {
  position: relative;
  z-index: 2;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 32px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.service-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-3px);
}

.service-card__icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--clr-text);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

.services__grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services__grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.services__grid .fade-in:nth-child(4) { transition-delay: 0.1s; }
.services__grid .fade-in:nth-child(5) { transition-delay: 0.2s; }
.services__grid .fade-in:nth-child(6) { transition-delay: 0.3s; }

@media (max-width: 768px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ── GALLERY ── */
.gallery {
  background: var(--clr-bg);
  padding: var(--section-pad) 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery__item:hover .gallery__caption { opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox__close:hover { color: #fff; }

@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
}

/* ── VALUE PROPS ── */
.value-props {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.value-props__bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
}
.value-props__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-props__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
  z-index: 1;
}

.value-props .section-inner {
  position: relative;
  z-index: 2;
}

.value-props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.vp-item {
  text-align: center;
}

.vp-item__icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.vp-item h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--clr-text);
  margin-bottom: 10px;
}

.vp-item p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

@media (max-width: 680px) {
  .value-props__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── CONTACT ── */
.contact {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
}
.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70);
  z-index: 1;
}

.contact__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact .section-title::after { margin: 10px auto 0; }

.contact__sub {
  color: var(--clr-muted);
  margin: 16px 0 32px;
  font-size: 1rem;
}

/* ── FOOTER ── */
.footer {
  background: #000;
  border-top: 1px solid var(--clr-border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo { height: 28px; width: auto; }

.footer__location {
  font-size: 0.8rem;
  color: var(--clr-muted);
}

.footer__fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--clr-muted);
  transition: color 0.2s;
}
.footer__fb:hover { color: var(--clr-text); }

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ── WA FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: var(--clr-wa);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
