:root {
  --verde: #2b4742;
  --arena: #bcaa93;
  --arena-claro: #e9e3da;
  --gris: #8a8f8c;
  --gris-claro: #f4f3f1;
  --texto: #2b2f2e;
  --blanco: #ffffff;
  --max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.contenedor { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.header .contenedor { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { height: 54px; width: auto; }
.marca-texto { line-height: 1.2; letter-spacing: .28em; font-size: .72rem; font-weight: 600; color: var(--verde); }
.marca-texto small { display: block; font-weight: 400; color: var(--gris); letter-spacing: .22em; font-size: .62rem; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: .9rem; font-weight: 500; color: var(--verde); padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a.activo { border-color: var(--arena); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--verde); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  color: var(--blanco); padding: 120px 16px 60px;
  background: linear-gradient(rgba(20, 30, 28, .45), rgba(20, 30, 28, .45)), url("../img/skyline2.jpg") center/cover no-repeat;
}
.hero.corto { min-height: 52vh; background-image: linear-gradient(rgba(20, 30, 28, .55), rgba(20, 30, 28, .55)), url("../img/hero.jpg"); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 400; letter-spacing: .04em; }
.hero p.lema { margin-top: 10px; letter-spacing: .3em; font-size: .9rem; font-weight: 500; }
.boton {
  display: inline-block; margin-top: 34px; padding: 14px 44px;
  border: 1px solid currentColor; color: inherit; font-size: .9rem; letter-spacing: .08em;
  transition: background .25s, color .25s;
}
.hero .boton:hover { background: var(--blanco); color: var(--verde); }

/* ---------- Secciones ---------- */
.seccion { padding: 90px 0; }
.seccion h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 300; text-align: center; color: var(--verde); margin-bottom: 36px; }
.texto-centro { max-width: 780px; margin-inline: auto; }
.texto-centro p + p { margin-top: 18px; }

/* Tarjetas de servicio */
.servicios { display: grid; grid-template-columns: repeat(5, 1fr); }
.servicio { text-align: center; }
.servicio img { aspect-ratio: 3/2; object-fit: cover; width: 100%; filter: saturate(.85); transition: filter .3s; }
.servicio:hover img { filter: saturate(1.1); }
.servicio .num { display: block; margin-top: 22px; color: var(--gris); font-size: .9rem; }
.servicio h3 { font-size: 1rem; font-weight: 500; color: var(--verde); padding: 4px 14px 30px; }

/* Banda de llamado a la acción */
.banda { background: var(--arena); color: var(--blanco); text-align: center; padding: 60px 16px; }
.banda p { letter-spacing: .14em; font-size: .9rem; font-weight: 500; }
.banda .boton:hover { background: var(--blanco); color: var(--arena); }

.foto-ancha { height: 60vh; min-height: 320px; background: url("../img/oficina.jpg") center/cover no-repeat; }

/* Soluciones */
.solucion { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center; padding: 60px 0; border-bottom: 1px solid var(--arena-claro); }
.solucion:nth-child(even) .solucion-img { order: 2; }
.solucion-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.solucion h3 { font-size: 1.7rem; font-weight: 400; color: var(--verde); margin-bottom: 16px; }
.solucion p + p { margin-top: 14px; }

/* MetodologÃ­a */
.fases { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: center; gap: 10px; margin-top: 40px; }
.conector { display: grid; place-items: center; }
.conector svg { width: 44px; height: 44px; fill: none; stroke: var(--arena); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.conector.ciclo svg { width: 52px; height: 52px; animation: girar 6s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .conector.ciclo svg { animation: none; } }
.fases-nota { text-align: center; color: var(--gris); font-size: .92rem; margin-top: 16px; }
.fase { background: var(--verde); color: var(--blanco); text-align: center; padding: 34px 20px; }
.fase b { display: block; font-size: 2.2rem; font-weight: 300; color: var(--arena); }
.fase span { letter-spacing: .2em; font-weight: 600; font-size: .9rem; }
.tabla-wrap { overflow-x: auto; margin-top: 60px; }
.tabla { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
.tabla th, .tabla td { border: 1px solid var(--arena-claro); padding: 18px; vertical-align: top; text-align: left; }
.tabla thead th { background: var(--arena); color: var(--blanco); font-weight: 600; letter-spacing: .06em; }
.tabla tbody th { background: var(--gris-claro); color: var(--verde); font-weight: 600; width: 16%; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.dato { margin-bottom: 26px; }
.dato h4 { color: var(--verde); font-weight: 600; font-size: .95rem; letter-spacing: .08em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 500; color: var(--verde); gap: 6px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #cfcac2; background: var(--blanco); color: var(--texto);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--arena); border-color: var(--arena); }
.form button {
  grid-column: 1 / -1; justify-self: start; cursor: pointer; font: inherit; font-weight: 500;
  background: var(--verde); color: var(--blanco); border: 0; padding: 14px 48px; letter-spacing: .08em;
}
.form button:hover { background: #1d322e; }

/* ---------- Pie ---------- */
.footer { background: var(--arena); color: var(--blanco); padding: 50px 0 26px; }
.footer .enlaces { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; font-size: 1.05rem; }
.footer .enlaces a:hover { text-decoration: underline; }
.footer .copy { text-align: center; font-size: .8rem; margin-top: 36px; opacity: .85; }

/* WhatsApp flotante */
.wa {
  position: fixed; right: 18px; bottom: 76px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .solucion, .contacto-grid { grid-template-columns: 1fr; gap: 26px; }
  .solucion:nth-child(even) .solucion-img { order: 0; }
  .fases { grid-template-columns: 1fr; gap: 6px; }
  .conector:not(.ciclo) svg { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--blanco); border-bottom: 1px solid #eee; display: none;
  }
  .nav.abierto { display: flex; }
  .nav a { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; }
  .marca-texto { display: none; }
  .form { grid-template-columns: 1fr; }
  .seccion { padding: 64px 0; }
}
@media (max-width: 480px) {
  .servicios { grid-template-columns: 1fr; }
}
