/* Energía y Economía Consultores — hoja de estilos */

:root {
  --navy: #1e346d;
  --navy-dark: #142449;
  --navy-tint: #eef1f7;
  --navy-tint-2: #dfe5f1;
  --ink: #1c2230;
  --muted: #5b6472;
  --white: #ffffff;
  --border: #e3e7ee;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 36, 73, 0.08);
  --maxw: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

a { color: inherit; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--muted); text-align: justify; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.section { padding: 88px 0; }
.section--tint { background: var(--navy-tint); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 { font-size: 2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 45px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-cta:hover { background: var(--navy-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy-dark), var(--navy) 65%);
  color: var(--white);
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-collage.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 26, 56, 0.82) 0%, rgba(15, 26, 56, 0.55) 42%, rgba(20, 36, 73, 0.35) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1,
.hero p.lead {
  text-shadow: 0 2px 10px rgba(10, 18, 40, 0.4);
}

.hero-logo { height: 80px; width: auto; display: block; margin: 0 auto 28px; }

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  max-width: 18ch;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn--primary { background: var(--white); color: var(--navy); }
.btn--primary:hover { background: #e9ecf5; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-dark); }

.hero-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pillar {
  background: rgba(15, 26, 56, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.service-card img { height: 38px; width: auto; margin-bottom: 16px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { margin: 0; font-size: 0.93rem; }

/* Proyectos / evidencia */
.proyectos-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.proyectos-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--navy-tint-2);
  padding-left: 12px;
}

/* Nosotros */
.nosotros-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 820px;
}

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

.contacto .section-head p { color: rgba(255, 255, 255, 0.75); }
.contacto .section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 0 auto 36px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.contact-card img { margin: 0 auto 12px; height: 30px; }
.contact-card a { color: var(--white); font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 6px; }

.contacto-cta { text-align: center; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 22px 0;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .proyectos-grid .proyectos-img { order: -1; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
  }
  .site-header.is-open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-header.is-open .nav-cta { display: inline-block; margin-top: 14px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 64px 0; }
  .nosotros-card { padding: 26px; }
}
