/* ============================================
   INGVIAL - Ingeniería e Innovación Urbana
   Hoja de estilos global
   Paleta corporativa: cian #00A8E0, negro, grises
   ============================================ */

:root {
  --cyan: #00A8E0;
  --cyan-dark: #0087b8;
  --cyan-light: #e6f7fc;
  --ink: #1a1f24;
  --ink-soft: #4a5560;
  --gray-bg: #f5f7f9;
  --gray-line: #e2e8ee;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26, 31, 36, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 31, 36, 0.14);
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 90px; width: auto; }
.brand-home img { height: 90px; width: auto; }
.brand-text { display: flex; align-items: baseline; gap: 10px; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.55rem; letter-spacing: 0.3px; }
.brand-name span { color: var(--cyan); }
.brand-tagline { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.2px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--cyan); background: var(--cyan-light); }
.nav-links a.active { color: var(--cyan); background: var(--cyan-light); }

.nav-cta {
  background: var(--cyan);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 10px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--cyan-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-cyan:hover { background: var(--cyan-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--gray-line); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp svg { width: 18px; height: 18px; }
.btn-whatsapp:hover { background: #1fb858; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--cyan-light); }

/* ---------- Hero / Slideshow ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 80px 0 90px;
  background: linear-gradient(135deg, rgba(10, 30, 45, 0.88), rgba(0, 80, 120, 0.8));
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 20s infinite;
}
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 4s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 8s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 12s; }
.hero-slideshow .slide:nth-child(5) { animation-delay: 16s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.05); }
  4% { opacity: 1; transform: scale(1); }
  16% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(10, 30, 45, 0.55), rgba(0, 60, 100, 0.35));
}
.hero .container { position: relative; z-index: 1; }
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(0, 168, 224, 0.15));
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  max-width: 720px;
}
.hero h1 span { color: #4cc9f0; }
.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  opacity: 0.92;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ---------- Secciones ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-bg); }
.section-cyan { background: linear-gradient(180deg, #eef9fd, #e3f5fb); border-top: 1px solid #d5eef7; border-bottom: 1px solid #d5eef7; }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.kicker {
  display: inline-block;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--gray-line);
  transition: all 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat h3 { font-size: 2.2rem; font-weight: 800; color: var(--cyan); }
.stat p { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- Registros ---------- */
.registros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.registro-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.92rem;
}
.registro-item .check {
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Equipo ---------- */
.team-card { text-align: center; padding: 34px 22px; }
.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.team-card h3 { font-size: 1.05rem; }
.team-card .role { color: var(--cyan); font-weight: 700; font-size: 0.88rem; margin: 4px 0 10px; }
.team-card .contact { font-size: 0.85rem; color: var(--ink-soft); }
.team-card .contact a { color: var(--cyan); font-weight: 600; }

/* ---------- Clientes ---------- */
.clientes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cliente {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.cliente:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ---------- Galería ---------- */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.galeria-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.galeria-item:hover img { transform: scale(1.06); }
.galeria-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-grid .contact-info { order: 2; }
.contact-grid .form-card { order: 1; }
.contact-info h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; color: var(--cyan); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .ci-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--cyan-light);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item a, .contact-item span { font-weight: 600; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 22px; font-size: 1.2rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6); }
.wa-float .wa-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1a3f;
  color: #9fb0bd;
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { height: 52px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 5px;
  flex-shrink: 0;
  color: #9fb0bd;
}
.footer-col a:hover { color: var(--cyan); }
.footer-col a:hover svg { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (interior) con slideshow ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 30, 45, 0.9), rgba(0, 80, 120, 0.82));
  color: #fff;
  padding: 90px 0;
  overflow: hidden;
}
.page-hero .hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-slideshow .slide { animation: heroFade 20s infinite; }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 30, 45, 0.55), rgba(0, 60, 100, 0.35));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.page-hero .breadcrumb { font-size: 0.9rem; opacity: 0.85; margin-bottom: 10px; }
.page-hero .breadcrumb a:hover { color: var(--cyan); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-band p { opacity: 0.92; margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .registros { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 6px;
    border-bottom: 1px solid var(--gray-line);
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; text-align: center; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .registros { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 110px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Contacto directo WhatsApp */
.wa-contact { margin-top: 26px; }
.wa-contact .btn { width: 100%; justify-content: center; }

/* Acciones del formulario */
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.wa-contact .btn + .btn { margin-top: 10px; }
