/* ============================================================
   JHAM INGENIERÍA S.A.S — Estilos (fiel al sitio original)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Playfair+Display:wght@700;900&family=Courier+Prime&display=swap');

/* ── Variables (colores exactos del sitio original) ─────────── */
:root {
  --cyan:          #3AAECC;   /* navbar + CTA background         */
  --navy:          #1C2B72;   /* títulos, botones principales    */
  --navy-dark:     #152060;   /* hover botones                   */
  --orange:        #F4A71D;   /* acento logo, iconos footer      */
  --coral:         #D9714F;   /* botón CTA redondeado            */
  --coral-hover:   #c4613f;
  --footer-bg:     #2C3547;   /* fondo footer                    */
  --footer-bottom: #1A1F2C;   /* barra copyright                 */
  --blanco:        #ffffff;
  --gris-claro:    #f8f8f8;
  --gris-texto:    #888888;
  --gris-borde:    #e0e0e0;
  --negro-suave:   #333333;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--negro-suave);
  background: var(--blanco);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TOPBAR (logo + contacto) ──────────────────────────────── */
.topbar {
  background: var(--blanco);
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.topbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-logo img {
  height: 60px;
  width: auto;
}
/* Logo de texto como fallback */
.topbar-logo .logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-bolt {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.logo-bolt::before {
  content: '⚡';
  font-size: 1.6rem;
  color: var(--orange);
}
.logo-name {
  font-family: 'Open Sans', sans-serif;
}
.logo-name strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 3px;
  line-height: 1;
}
.logo-name span {
  font-size: 0.7rem;
  color: var(--navy);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.topbar-contacto {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.topbar-contacto a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--negro-suave);
  transition: color 0.2s;
}
.topbar-contacto a:hover { color: var(--cyan); }
.topbar-contacto .tc-icon {
  width: 18px; height: 18px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.6rem;
  flex-shrink: 0;
}
.tc-icon.wa { background: transparent; }

/* ── NAVBAR (cyan) ─────────────────────────────────────────── */
.navbar {
  background: var(--cyan);
}
.navbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: stretch;
}
.nav-links a {
  display: block;
  padding: 14px 30px;
  color: var(--blanco);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  position: relative;
  transition: background 0.2s;
}
.nav-links a:hover {
  background: rgba(0,0,0,0.1);
}
.nav-links a.activo {
  border-bottom: 3px solid var(--blanco);
}

/* Hamburguesa móvil */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 14px 20px 14px auto;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── HERO (foto completa) ──────────────────────────────────── */
.hero {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── SECCIÓN GENÉRICA ──────────────────────────────────────── */
.seccion {
  padding: 70px 20px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.seccion-gris { background: var(--gris-claro); }

/* ── ENCABEZADO DE SECCIÓN (estilo original) ───────────────── */
.sec-header {
  text-align: center;
  margin-bottom: 50px;
}
.sec-header .label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gris-texto);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sec-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  font-weight: 900;
  line-height: 1.1;
}
.sec-header p {
  margin-top: 14px;
  color: var(--gris-texto);
  font-size: 0.92rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CARDS DE SERVICIOS (imagen circular + botón navy) ──────── */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.serv-card {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  padding: 36px 24px 30px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}
.serv-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.serv-card .card-img {
  width: 130px; height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 3px solid var(--gris-borde);
}
.serv-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.serv-card h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
  line-height: 1.3;
}
.serv-card p {
  font-size: 0.88rem;
  color: var(--gris-texto);
  margin-bottom: 24px;
  line-height: 1.6;
}
.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--blanco);
  padding: 10px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}
.btn-navy:hover { background: var(--navy-dark); }

/* ── CTA "ASESORÍA GRATIS" (cyan bg) ───────────────────────── */
.cta-asesoria {
  background: var(--cyan);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-asesoria h2 {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blanco);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.cta-asesoria p {
  font-family: 'Courier Prime', 'Courier New', monospace;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}
.btn-coral {
  display: inline-block;
  background: var(--coral);
  color: var(--blanco);
  padding: 13px 36px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}
.btn-coral:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
}

/* ── PORTAFOLIO (página nueva) ──────────────────────────────── */
.filtros {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filtro-btn {
  padding: 8px 22px;
  border: 2px solid var(--navy);
  background: var(--blanco);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Open Sans', sans-serif;
}
.filtro-btn:hover,
.filtro-btn.activo {
  background: var(--navy);
  color: var(--blanco);
}
.portafolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.proyecto-card {
  border: 1px solid var(--gris-borde);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  background: var(--blanco);
}
.proyecto-card.oculto { display: none; }
.proyecto-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.proyecto-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.proyecto-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.proyecto-card:hover .proyecto-img img { transform: scale(1.05); }
.proyecto-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cyan);
  color: var(--blanco);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.proyecto-info { padding: 18px 20px 22px; }
.proyecto-info h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.proyecto-info p { font-size: 0.85rem; color: var(--gris-texto); }

/* ── PAGE HERO (páginas interiores) ─────────────────────────── */
.page-hero {
  background: var(--cyan);
  padding: 50px 20px;
  text-align: center;
  color: var(--blanco);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--blanco);
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  margin-top: 10px;
  font-size: 0.92rem;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
}
.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo .logo-name strong { color: var(--cyan); }
.footer-logo .logo-name span   { color: rgba(255,255,255,0.5); }
.footer-nit {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  letter-spacing: 1px;
}
.footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blanco);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.footer ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer ul li a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer ul li a:hover { color: var(--orange); }
.f-icon {
  font-size: 1rem;
  color: var(--orange);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
/* Checkmarks menu footer */
.footer-menu li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.footer-bottom {
  background: var(--footer-bottom);
  text-align: center;
  padding: 14px 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── WHATSAPP FLOTANTE ─────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 9999;
}
.whatsapp-fab a {
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .servicios-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 650px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cyan);
    z-index: 999;
  }
  .nav-links.abierto { display: flex; }
  .nav-links a { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .navbar { position: relative; }
  .topbar .inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .topbar-contacto { align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .hero { height: 260px; }
  .servicios-grid { max-width: 100%; }
}
