:root {
  --navy: #063751;
  --navy-light: #0f4c6b;
  --yellow: #fdc113;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f7f8f9;
  --gray-200: #e3e7ea;
  --gray-500: #6b7680;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1160px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 22px; height: 22px; }
.icon--lg { width: 30px; height: 30px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  height: 74px;
  width: auto;
}

.logo--footer .logo__img { height: 40px; }

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

.nav__link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--yellow); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav__cta:hover { background: var(--navy-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(6, 55, 81, 0.94) 0%, rgba(6, 55, 81, 0.88) 32%, rgba(6, 55, 81, 0.55) 60%, rgba(6, 55, 81, 0.35) 100%),
    url('../assets/img/hero-fachada.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 130px 0 110px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero__shapes {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 55, 81, 0.55) 0%, transparent 40%);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 720px; }

.eyebrow {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow--center { text-align: center; }

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn--primary:hover { background: #ffd23f; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover { border-color: var(--white); }

/* ---------- Servicios ---------- */
.servicios { padding: 100px 0; background: var(--gray-50); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 56px;
}

.section-title--left { text-align: left; margin-bottom: 24px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: left;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(6, 55, 81, 0.08);
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--gray-500); }

.card__partner {
  height: 40px;
  width: auto;
  margin-top: 16px;
  border-radius: 6px;
}

/* ---------- Marcas ---------- */
.marcas { padding: 90px 0; }

.marcas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 36px 40px;
  margin-top: 8px;
}

.marcas__grid img {
  height: 46px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.marcas__grid img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

/* ---------- Nosotros ---------- */
.nosotros { padding: 100px 0; }

.nosotros__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.nosotros p { margin-bottom: 18px; color: var(--gray-500); }

.checklist { list-style: none; margin-top: 24px; }

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--navy);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
}

.nosotros__visual {
  min-height: 360px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.nosotros__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 55%, rgba(253, 193, 19, 0.9) 56%, rgba(253, 193, 19, 0.9) 62%, transparent 63%);
  opacity: 0.85;
}

/* ---------- Contacto ---------- */
.contacto { padding: 100px 0; background: var(--navy); color: var(--white); }

.contacto .section-title { color: var(--white); }

.contacto__lead {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.contacto__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 28px 22px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

a.contact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.contact-card .icon--lg { color: var(--yellow); margin-bottom: 14px; }

.contact-card span {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-card small { color: rgba(255, 255, 255, 0.65); }

.map-embed {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-embed iframe { display: block; width: 100%; }

.map-embed__link {
  display: block;
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.map-embed__link:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: rgba(255, 255, 255, 0.7); padding: 40px 0; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p { font-size: 0.85rem; }

.footer__social { display: flex; gap: 16px; }

.footer__social a { color: var(--white); opacity: 0.8; transition: opacity 0.2s ease; }
.footer__social a:hover { opacity: 1; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .nav.nav--open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-200);
  }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .nosotros__inner { grid-template-columns: 1fr; }
  .nosotros__visual { min-height: 240px; order: -1; }
  .contacto__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .contacto__grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; min-height: 460px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .header__inner { height: 72px; }
  .logo__img { height: 54px; }
}
