@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

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

:root {
  --green: #5cb82c;
  --dark: #111111;
  --dark2: #1a1a1a;
  --gray: #f5f5f5;
  --text: #222222;
  --text-light: #666666;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--white); }

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

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 70px;
  border-bottom: 1px solid #222;
}

.navbar-logo {
  display: flex; align-items: center; gap: 10px;
}
.navbar-logo img { height: 44px; width: 44px; border-radius: 6px; object-fit: cover; }

.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a {
  color: #ccc; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--white); }
.navbar-links a.active { color: var(--white); }
.navbar-links .btn-nav {
  background: var(--green); color: var(--white);
  padding: 9px 20px; border-radius: 4px; font-size: 13px; font-weight: 700;
  transition: background 0.2s;
}
.navbar-links .btn-nav:hover { background: #4da024; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center;
  background: url('../img/hero-bg.jpg') center center / cover no-repeat;
  margin-top: 70px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 0 48px;
  max-width: 780px;
}
.hero-logo {
  width: 120px; height: 120px;
  border-radius: 16px; object-fit: cover;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.hero-tag {
  color: var(--green); font-size: 15px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  color: var(--white); font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 900; line-height: 1.1; margin-bottom: 24px;
}
.hero h1 span { color: var(--green); }
.hero p {
  color: #ccc; font-size: 22px; line-height: 1.6; margin-bottom: 44px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-ghost {
  border: 2px solid var(--white); color: var(--white);
  padding: 17px 36px; font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; border-radius: 4px;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--white); color: var(--dark); }
.btn-primary {
  background: var(--green); color: var(--white);
  padding: 17px 36px; font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; border-radius: 4px;
  transition: background 0.2s;
}
.btn-primary:hover { background: #4da024; }

/* ── DIFERENCIADORES ── */
.diferenciadores { background: var(--dark2); padding: 28px 48px; }
.diferenciadores-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around; gap: 24px;
}
.dif-item { display: flex; align-items: center; gap: 16px; }
.dif-icon { font-size: 28px; flex-shrink: 0; }
.dif-item strong { display: block; color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.dif-item p { color: #888; font-size: 13px; margin: 0; }
.dif-sep { width: 1px; height: 48px; background: #333; flex-shrink: 0; }

@media (max-width: 768px) {
  .diferenciadores { padding: 32px 24px; }
  .diferenciadores-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .dif-sep { width: 100%; height: 1px; }
}

/* ── SECTION BASE ── */
.section { padding: 80px 48px; max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--text-light);
  font-size: 15px; margin-bottom: 56px;
}

/* ── SERVICIOS CARDS ── */
.servicios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.servicio-card {
  position: relative; border-radius: 8px; overflow: hidden;
  height: 320px; cursor: pointer;
  transition: transform 0.3s;
}
.servicio-card:hover { transform: translateY(-6px); }
.servicio-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.servicio-card:hover img { transform: scale(1.05); }
.servicio-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.1) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 28px;
}
.servicio-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; margin-bottom: 12px; font-size: 22px;
}
.servicio-card h3 {
  color: var(--white); font-size: 18px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.servicio-card p { color: #ccc; font-size: 13px; line-height: 1.5; }

/* ── CLIENTES ── */
.clientes-section { background: var(--gray); padding: 60px 48px; }
.clientes-inner { max-width: 1200px; margin: 0 auto; }
.clientes-section .section-title { margin-bottom: 40px; }
.clientes-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.clientes-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.cliente-logo {
  display: flex; align-items: center; justify-content: center;
  width: 180px; height: 90px;
  background: var(--white); border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 4px 8px; transition: box-shadow 0.2s, transform 0.2s; overflow: hidden;
}
.cliente-logo:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.14); transform: translateY(-2px); }
.cliente-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(100%); opacity: 0.65;
  transition: all 0.3s;
}
.cliente-logo:hover img { filter: grayscale(0%); opacity: 1; }
.logo-zoom { transform: scale(1.35); }
.cliente-logo:hover .logo-zoom { filter: grayscale(0%); opacity: 1; transform: scale(1.35); }
.cliente-logo span {
  font-size: 14px; font-weight: 700; color: #666;
  letter-spacing: 1px; text-transform: uppercase; text-align: center;
}

/* ── NOSOTROS SPLIT ── */
.nosotros-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.nosotros-video {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  min-height: 420px;
}
.nosotros-video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.nosotros-texto {
  background: #f8f8f8;
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nosotros-texto h2 {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--dark);
}
.nosotros-texto p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.nosotros-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nosotros-lista li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.nosotros-lista li::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .nosotros-split { grid-template-columns: 1fr; }
  .nosotros-video { min-height: 260px; }
  .nosotros-texto { padding: 48px 24px; }
}

/* ── CTA FINAL ── */
.cta-section {
  background: var(--green); padding: 80px 48px;
  text-align: center;
}
.cta-section h2 {
  color: var(--white); font-size: clamp(26px, 4vw, 44px);
  font-weight: 900; margin-bottom: 12px;
}
.cta-section p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 32px; }
.btn-white {
  background: var(--white); color: var(--green);
  padding: 14px 36px; font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; border-radius: 4px;
  display: inline-block; transition: all 0.2s;
}
.btn-white:hover { background: var(--dark); color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--dark); padding: 60px 48px 30px;
  color: #aaa;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.footer-brand .footer-logo span { color: var(--white); font-size: 20px; font-weight: 800; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #aaa; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid #333; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-bottom a { color: var(--green); }

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: #25d366; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── PAGE HERO (secundario) ── */
.page-hero {
  position: relative; height: 380px;
  display: flex; align-items: center;
  background: url('../img/hero-bg.jpg') center 30% / cover no-repeat;
  margin-top: 70px;
}
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
.page-hero-content { position: relative; z-index: 1; padding: 0 48px; }
.page-hero-content h1 {
  color: var(--white); font-size: clamp(32px, 4vw, 54px);
  font-weight: 900; line-height: 1.1; margin-top: 12px;
}
.page-hero-content h1 span { color: var(--green); }

/* ── NOSOTROS ── */
.nosotros-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.nosotros-text p { font-size: 16px; line-height: 1.8; color: var(--text-light); }
.nosotros-img { height: 420px; border-radius: 12px; overflow: hidden; }

.pilares-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.pilar-card {
  background: var(--white); border-radius: 12px; padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: center;
}
.pilar-icon { font-size: 40px; margin-bottom: 16px; }
.pilar-card h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.pilar-card p { font-size: 14px; line-height: 1.8; color: var(--text-light); }

/* ── SERVICIOS SECTORIZADOS ── */
.srv-section { padding: 100px 48px; }
.srv-light { background: var(--white); }
.srv-dark { background: var(--dark); }
.srv-gray { background: #f0f0f0; }

.srv-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.srv-inner-reverse { direction: rtl; }
.srv-inner-reverse > * { direction: ltr; }

.srv-number {
  font-size: 80px; font-weight: 900; line-height: 1;
  color: var(--green); opacity: 0.25; display: block; margin-bottom: -16px;
}
.srv-dark .srv-number { opacity: 0.3; }

.srv-text h2 {
  font-size: clamp(28px, 3vw, 42px); font-weight: 900;
  text-transform: uppercase; margin-bottom: 16px;
}
.srv-light h2, .srv-gray h2 { color: var(--dark); }
.srv-dark h2 { color: var(--white); }

.srv-divider {
  width: 56px; height: 4px; background: var(--green);
  margin-bottom: 24px; border-radius: 2px;
}
.srv-text p { font-size: 16px; line-height: 1.8; margin-bottom: 28px; }
.srv-light p, .srv-gray p { color: var(--text-light); }
.srv-dark p { color: #bbb; }

.srv-list { display: flex; flex-direction: column; gap: 10px; }
.srv-list li {
  font-size: 14px; font-weight: 600; padding-left: 20px; position: relative;
}
.srv-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
}
.srv-light .srv-list li, .srv-gray .srv-list li { color: var(--text); }
.srv-dark .srv-list li { color: #ddd; }

.srv-image { border-radius: 12px; overflow: hidden; height: 400px; }
.srv-image img { width: 100%; height: 100%; object-fit: cover; }

/* STATS */
.srv-stats { background: var(--dark2); padding: 70px 48px; }
.srv-stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around; gap: 32px;
}
.stat-item { text-align: center; }
.stat-num {
  display: block; font-size: clamp(40px, 5vw, 64px);
  font-weight: 900; color: var(--green); line-height: 1;
}
.stat-label { display: block; font-size: 13px; color: #aaa; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 80px; background: #333; }

/* ── SERVICIOS DETALLE ── */
.servicios-detalle-grid { display: flex; flex-direction: column; gap: 60px; }
.servicio-detalle-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.servicio-detalle-card.reverse { direction: rtl; }
.servicio-detalle-card.reverse > * { direction: ltr; }
.servicio-detalle-img { border-radius: 12px; overflow: hidden; height: 320px; }
.servicio-detalle-img img { width: 100%; height: 100%; object-fit: cover; }
.servicio-detalle-icon { font-size: 36px; margin-bottom: 12px; }
.servicio-detalle-body h3 {
  font-size: 24px; font-weight: 800; text-transform: uppercase;
  margin-bottom: 14px; color: var(--text);
}
.servicio-detalle-body p { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 20px; }
.servicio-detalle-body ul { display: flex; flex-direction: column; gap: 8px; }
.servicio-detalle-body li { font-size: 14px; font-weight: 600; color: var(--green); }

/* ── PORTFOLIO ── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.portfolio-item {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); display: flex; align-items: flex-end;
  padding: 20px; transition: background 0.3s;
}
.portfolio-item:hover .portfolio-overlay { background: rgba(0,0,0,0.55); }
.portfolio-overlay span {
  color: var(--white); font-size: 14px; font-weight: 700;
  opacity: 0; transform: translateY(8px); transition: all 0.3s;
}
.portfolio-item:hover .portfolio-overlay span { opacity: 1; transform: translateY(0); }

/* ── MODAL ── */
.modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal-content { position: relative; max-width: 90vw; max-height: 90vh; }
.modal-content img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.modal-content p { color: #ccc; text-align: center; margin-top: 12px; font-size: 14px; }
.modal-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; color: var(--white);
  font-size: 24px; cursor: pointer; padding: 8px;
}

/* ── CLIENTES PAGE ── */
.clientes-logos-full {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: center; align-items: center; margin-top: 40px;
}
.cliente-logo-full {
  display: flex; align-items: center; justify-content: center;
  width: 220px; height: 110px;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 6px 12px; transition: box-shadow 0.2s, transform 0.2s; overflow: hidden;
}
.cliente-logo-full:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.14); transform: translateY(-3px); }
.cliente-logo-full img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(100%); opacity: 0.65; transition: all 0.3s;
}
.cliente-logo-full:hover img { filter: grayscale(0%); opacity: 1; }
.cliente-logo-full img.logo-zoom { transform: scale(1.35); }

/* ── CONTACTO ── */
.contacto-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.contacto-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea {
  padding: 12px 16px; border: 2px solid #e0e0e0;
  border-radius: 6px; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.info-icon { font-size: 24px; min-width: 36px; }
.info-item strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.info-item p, .info-item a { font-size: 15px; color: var(--text-light); }
.info-item a:hover { color: var(--green); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-img { height: 300px; }
  .pilares-grid { grid-template-columns: 1fr; }
  .servicio-detalle-card { grid-template-columns: 1fr; }
  .servicio-detalle-card.reverse { direction: ltr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
  .srv-inner { grid-template-columns: 1fr; gap: 40px; }
  .srv-inner-reverse { direction: ltr; }
  .srv-image { height: 280px; }
  .srv-stats-inner { flex-wrap: wrap; gap: 40px; }
  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 24px; }
  .navbar-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); padding: 24px; gap: 20px; }
  .navbar-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { padding: 0 24px; }
  .page-hero-content { padding: 0 24px; }
  .section { padding: 60px 24px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .clientes-section { padding: 60px 24px; }
  .cta-section { padding: 60px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
