:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-soft: #e8dfd2;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: rgba(28, 28, 28, 0.12);
  --accent: #b68b2d;
  --accent-dark: #7c5f1e;
  --forest: #26322b;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 0.55rem;
}

.container {
  width: min(calc(100% - 120px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  z-index: 101;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.92rem;
  color: rgba(16, 32, 35, 0.74);
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.55rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

body.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.section {
  padding: 104px 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 138px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 62vw;
  height: 62vw;
  right: -24vw;
  top: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 122, 59, 0.22), rgba(183, 122, 59, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 72px;
  align-items: center;
  position: relative;
}

.eyebrow,
.section-kicker,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
  max-width: 880px;
  margin-bottom: 1.55rem;
}

.hero-text {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 690px;
  color: var(--muted);
  margin-bottom: 2.1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--forest);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(235, 230, 220, 0.68));
  border: 1px solid rgba(16, 32, 35, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.panel-card {
  border-radius: 23px;
  background: var(--ink);
  color: #fff;
  padding: 2rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.panel-card::before,
.panel-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.panel-card::before {
  width: 280px;
  height: 280px;
  right: -108px;
  top: -98px;
}

.panel-card::after {
  width: 170px;
  height: 170px;
  right: 38px;
  top: 58px;
}

.panel-label {
  color: #dfb37f;
  z-index: 1;
}

.panel-card strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 1;
}

.panel-card p {
  color: rgba(255, 255, 255, 0.68);
  margin: 0.75rem 0 0;
  z-index: 1;
}

.panel-metrics {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.metric-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.metric-card span {
  color: var(--accent-dark);
  font-weight: 800;
}

.metric-card strong {
  letter-spacing: -0.02em;
}

.intro-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 56px;
}

.intro-copy h2,
.section-heading h2,
.approach-copy h2,
.credentials-copy h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 1.15rem;
}

.intro-copy p,
.approach-copy p,
.cta-card p,
.credentials-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 800px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card,
.sector-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  min-height: 410px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.service-card h3,
.sector-card h3,
.process-item h3 {
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 0.8rem;
}

.service-card p,
.sector-card p,
.process-item p,
.credential-list p {
  color: var(--muted);
}

.service-card ul {
  margin-top: 1.4rem;
  padding-top: 0;
  color: rgba(16, 32, 35, 0.82);
}

.approach-section {
  background: var(--ink);
  color: #fff;
}

.approach-grid,
.credentials-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.approach-copy p,
.approach-section .eyebrow,
.approach-section .process-item p {
  color: rgba(255, 255, 255, 0.66);
}

.process-list {
  display: grid;
  gap: 0.85rem;
}

.process-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.process-item span {
  color: #dfb37f;
  font-weight: 800;
}

.process-item p {
  margin-bottom: 0;
}

.sector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.sector-card {
  min-height: 300px;
}

.credentials-section {
  padding-top: 20px;
}

.credential-list {
  display: grid;
  gap: 1rem;
}

.credential-list > div {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}

.credential-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.credential-list p {
  margin-bottom: 0;
}

.cta-section {
  padding-top: 40px;
}

.cta-card {
  background: linear-gradient(135deg, var(--forest), var(--ink));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-card::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -150px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cta-card .eyebrow {
  color: #dfb37f;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.68);
}

.cta-card .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-card .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.contact-actions,
.contact-note {
  position: relative;
  z-index: 1;
}

.contact-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  margin: -1.2rem 0 0;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner a:not(.brand) {
  color: #fff;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .hero-grid,
  .intro-grid,
  .approach-grid,
  .credentials-grid,
  .cta-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cards-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .sector-card {
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    padding: 7.6rem 2rem 2rem;
    background: rgba(246, 243, 236, 0.96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .panel-card {
    min-height: 220px;
    padding: 1.45rem;
  }

  .panel-card strong {
    font-size: 1.65rem;
  }

  .metric-card,
  .process-item {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }
}
/* ================================
   Sección infraestructura eléctrica
================================ */

.section-split {
  padding: 96px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.split-copy {
  max-width: 560px;
}

.split-copy h2 {
  margin: 0 0 24px;
}

.split-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.image-card {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(16, 32, 35, 0.12);
}

.image-card img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.85) contrast(1.04);
}

.image-card figcaption {
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
}

/* Responsive */
@media (max-width: 940px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .image-card img {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .section-split {
    padding: 72px 0;
  }

  .image-card {
    border-radius: 22px;
  }

  .image-card img {
    height: 360px;
  }
}
/* ================================
   Capacidades visuales
================================ */

.visual-section {
  padding: 96px 0;
  background: var(--surface-soft);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.visual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(16, 32, 35, 0.1);
}

.visual-card figure {
  margin: 0;
  overflow: hidden;
}

.visual-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 0.45s ease;
}

.visual-card:hover img {
  transform: scale(1.04);
}

.visual-card-content {
  padding: 28px;
}

.visual-card-content span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visual-card-content h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.25rem;
}

.visual-card-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Ajuste específico para la foto vertical de línea de transmisión */
.visual-card:nth-child(3) img {
  object-position: center;
}

/* Responsive */
@media (max-width: 1040px) {
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-card img {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .visual-section {
    padding: 72px 0;
  }

  .visual-grid {
    gap: 22px;
    margin-top: 36px;
  }

  .visual-card {
    border-radius: 22px;
  }

  .visual-card img {
    height: 300px;
  }

  .visual-card-content {
    padding: 24px;
  }
}
/* Ajuste de encabezado fijo compacto */
.site-header {
  min-height: 72px;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  min-height: 72px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand-logo {
  width: 165px;
  height: auto;
  display: block;
}

.hero {
  padding-top: 108px;
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .header-inner {
    min-height: 64px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand-logo {
    width: 155px;
  }

  .hero {
    padding-top: 92px;
  }
} 