/* Constructora JF & M - sitio estático listo para Netlify */
:root {
  --black: #07090b;
  --dark: #111417;
  --dark-2: #171b1f;
  --orange: #f26a00;
  --orange-2: #ff8a1c;
  --white: #ffffff;
  --muted: #6d737b;
  --light: #f5f6f7;
  --line: #e5e7eb;
  --shadow: 0 20px 50px rgba(0,0,0,.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-label {
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  margin: 0 0 12px;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", Arial, sans-serif;
  margin: 0;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -.04em;
}

p {
  line-height: 1.7;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(7,9,11,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar {
  width: min(1160px, calc(100% - 32px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  width: 92px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: rgba(255,255,255,.88);
  text-transform: uppercase;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--orange-2);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  box-shadow: 0 14px 30px rgba(242,106,0,.26);
}

.nav-cta:hover,
.btn-primary:hover {
  background: #ff7a0c;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: white;
  margin: 5px auto;
}

.hero {
  min-height: 760px;
  padding-top: 82px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-equipo.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 28%, rgba(242,106,0,.18), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.68) 38%, rgba(0,0,0,.2) 70%, rgba(0,0,0,.52) 100%),
    linear-gradient(0deg, rgba(0,0,0,.48), rgba(0,0,0,.14));
}

.hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: 80px;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(242,106,0,.42);
  transform: rotate(45deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  color: white;
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--orange);
  border-radius: 99px;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(2.9rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .96;
}

.hero h1 span {
  color: var(--orange-2);
}

.hero-text {
  max-width: 650px;
  font-size: 1.12rem;
  color: rgba(255,255,255,.9);
  margin: 26px 0 34px;
}

.hero-text strong {
  color: var(--orange-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .86rem;
  transition: .22s ease;
}

.btn-primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 16px 38px rgba(242,106,0,.28);
}

.btn-secondary {
  color: white;
  border: 1px solid rgba(255,255,255,.44);
  background: rgba(255,255,255,.07);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange-2);
}

.hero-card {
  position: absolute;
  right: max(40px, calc((100vw - 1120px)/2));
  bottom: 38px;
  z-index: 2;
  background: rgba(7,9,11,.78);
  color: white;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 18px 22px;
  backdrop-filter: blur(12px);
}

.hero-card span {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--orange-2);
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.hero-card strong {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.2rem;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.about-text {
  color: #343942;
  font-size: 1.05rem;
}

.services {
  background:
    linear-gradient(180deg, var(--light), #fff);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-description {
  color: var(--muted);
  max-width: 680px;
}

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

.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 38px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: rgba(242,106,0,.07);
  border-radius: 50%;
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--black);
  border-radius: 16px;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.service-card h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 12px;
  border-radius: 99px;
  background: var(--orange);
}

.service-card p {
  color: #4a5058;
  margin-bottom: 0;
}

.values-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark);
  border-radius: var(--radius);
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.value-item {
  display: flex;
  gap: 15px;
  padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.value-item:last-child {
  border-right: 0;
}

.value-item span {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(242,106,0,.15);
  font-size: 1.45rem;
}

.value-item h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.value-item p {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  margin: 0;
  line-height: 1.45;
}

.projects {
  background: var(--white);
}

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

.project-card {
  min-height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #111;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.86) 100%);
}

.project-info {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: white;
}

.project-info span {
  display: inline-block;
  background: var(--orange);
  color: white;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-info h3 {
  font-size: 1.35rem;
}

.project-info p {
  color: rgba(255,255,255,.78);
  margin-bottom: 0;
}

.cta-section {
  background: var(--dark);
  color: white;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(242,106,0,.18);
}

.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cta-grid h2 {
  max-width: 730px;
}

.cta-grid p {
  color: rgba(255,255,255,.72);
  max-width: 650px;
}

.contact {
  background: var(--light);
}

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

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  min-height: 126px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(0,0,0,.06);
}

.contact-card span {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-size: 1.3rem;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-card p {
  margin: 0;
  color: #3b4149;
  line-height: 1.45;
  word-break: break-word;
}

.footer {
  background: #060708;
  color: white;
  border-top: 4px solid var(--orange);
}

.footer-grid {
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap: 44px;
}

.footer-brand img {
  width: 116px;
  margin-bottom: 18px;
}

.footer p {
  color: rgba(255,255,255,.72);
}

.footer h4 {
  color: var(--orange-2);
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer a {
  display: block;
  color: rgba(255,255,255,.74);
  margin-bottom: 10px;
}

.footer a:hover {
  color: var(--orange-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 20px;
  font-size: .9rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #18b957;
  color: white;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 14px 36px rgba(0,0,0,.26);
}

@media (max-width: 980px) {
  .navbar {
    height: 76px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(7,9,11,.98);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 16px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .brand img {
    width: 78px;
  }

  .hero {
    min-height: 720px;
    padding-top: 76px;
  }

  .hero h1 {
    max-width: 620px;
  }

  .hero-card {
    left: 20px;
    right: auto;
  }

  .about-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .project-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-strip {
    grid-template-columns: 1fr 1fr;
  }

  .value-item:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 760px;
  }

  .hero-bg {
    background-position: center top;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.62)),
      linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    display: none;
  }

  .service-grid,
  .project-grid,
  .contact-grid,
  .footer-grid,
  .values-strip {
    grid-template-columns: 1fr;
  }

  .value-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .project-card,
  .project-card img {
    min-height: 360px;
  }
}
