:root {
  --navy: #13234b;
  --navy-2: #1c3168;
  --ink: #1d2530;
  --green: #20ae64;
  --green-dark: #138149;
  --yellow: #fdb62f;
  --paper: #f4f6f7;
  --white: #ffffff;
  --line: rgba(19, 35, 75, 0.14);
  --shadow: 0 24px 70px rgba(20, 33, 56, 0.16);
  --max: 1180px;
}

/* Páginas de error servidas por Apache sin revelar detalles del servidor. */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #eef2f7;
}

.error-card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  background: #fff;
  border: 1px solid rgba(19, 35, 75, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 4rem rgba(19, 35, 75, 0.14);
}

.error-card img {
  width: min(15rem, 70%);
  height: auto;
  margin: 0 auto 2rem;
}

.error-card h1 {
  margin: 0.75rem 0 1rem;
  color: #13234b;
}

.error-card p:not(.eyebrow) {
  margin: 0 auto 2rem;
  max-width: 34rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px;
  background: var(--white); color: var(--navy); transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; z-index: 100; top: 0; border-bottom: 1px solid transparent;
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px); transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(17, 30, 55, .08); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 32px; }
.brand { flex: 0 0 auto; }
.brand img { width: 184px; height: 70px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a {
  position: relative; text-decoration: none; color: #3a4656; font-weight: 700; font-size: .94rem;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px;
  background: var(--green); transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-cta {
  min-width: 152px; padding: 12px 18px; border-left: 3px solid var(--yellow);
  text-decoration: none; color: var(--navy); font-weight: 900; line-height: 1.2;
}
.header-cta span { display: block; color: #6b7480; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; padding: 64px 0 90px; background: linear-gradient(112deg, #f9fafb 0 58%, #eff3f4 58% 100%); }
.hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; left: -300px; top: 60px;
  border: 72px solid rgba(32,174,100,.08); border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 36px 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--green-dark);
  font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow span { display: inline-block; width: 34px; height: 3px; background: var(--yellow); }
.hero h1 {
  margin: 0; max-width: 760px; color: var(--navy); font-size: clamp(3.25rem, 6vw, 5.8rem);
  line-height: .94; letter-spacing: -.065em; font-weight: 900;
}
.hero h1 em { display: inline-block; margin-top: 13px; color: var(--green-dark); font-style: normal; }
.hero-lead { max-width: 640px; margin: 28px 0 30px; color: #586474; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button {
  min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 28px;
  padding: 14px 22px; text-decoration: none; font-weight: 850; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .main-nav a:focus-visible, .contact-actions a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--green-dark); box-shadow: 0 14px 32px rgba(19,129,73,.22); }
.button-primary:hover { background: #0f6f3f; }
.button-ghost { color: var(--navy); border-color: rgba(19,35,75,.28); background: rgba(255,255,255,.55); }
.service-strip {
  display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 38px 0 0; list-style: none;
  color: #556170; font-size: .86rem; font-weight: 800;
}
.service-strip li::before { content: "•"; color: var(--green); margin-right: 8px; }

.hero-visual { position: relative; min-height: 630px; }
.hero-photo { position: absolute; z-index: 2; inset: 20px 0 30px 28px; overflow: hidden; box-shadow: var(--shadow); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,17,37,.54)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-note {
  position: absolute; z-index: 4; right: -28px; bottom: 4px; width: 270px; padding: 22px 26px;
  color: var(--white); background: var(--navy); box-shadow: 0 18px 44px rgba(19,35,75,.22);
}
.hero-note strong, .hero-note span { display: block; }
.hero-note strong { font-size: 1.08rem; }
.hero-note span { color: #cbd4e9; font-size: .88rem; }
.hero-mark {
  position: absolute; z-index: 1; left: -24px; top: 0; padding: 12px 18px; color: var(--navy);
  border: 10px solid var(--yellow); font-size: 2rem; font-weight: 950; transform: rotate(-5deg);
}

.services-section { background: var(--white); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 46px; }
.section-heading h2, .about-title h2, .contact-copy h2, .bonogas-copy h2 {
  margin: 0; color: var(--navy); font-size: clamp(2.4rem, 4.2vw, 4.1rem); line-height: 1.05; letter-spacing: -.045em;
}
.section-heading > p { margin: 0; color: #657180; font-size: 1.06rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { min-height: 380px; position: relative; overflow: hidden; }
.service-card-image { color: var(--white); background: var(--navy); }
.service-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,40,.03) 25%, rgba(8,18,40,.9) 100%); }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card-image:hover img { transform: scale(1.035); }
.service-card-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 34px; }
.service-card span { color: var(--yellow); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin: 8px 0 8px; font-size: 1.65rem; line-height: 1.15; }
.service-card p { margin: 0; color: rgba(255,255,255,.78); }
.service-card-accent { padding: 42px; color: var(--white); background: var(--green-dark); display: flex; flex-direction: column; justify-content: flex-end; }
.service-card-accent::before { content: ""; position: absolute; width: 270px; height: 270px; top: -120px; right: -80px; border: 48px solid rgba(255,255,255,.08); border-radius: 50%; }
.service-card-accent .service-icon { position: absolute; top: 32px; left: 42px; color: var(--yellow); font-size: 4.5rem; font-weight: 200; line-height: 1; }
.service-card-accent p { max-width: 520px; }
.service-card-accent a { margin-top: 24px; color: var(--white); font-weight: 850; text-decoration: none; }

.bonogas-section { position: relative; overflow: hidden; padding: 100px 0; color: var(--white); background: var(--navy); }
.bonogas-section::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 34%; background: linear-gradient(135deg, transparent 0 20%, rgba(32,174,100,.14) 20% 100%); }
.bonogas-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .55fr 1.05fr .8fr; gap: 54px; align-items: center; }
.bonogas-number { color: rgba(255,255,255,.045); font-size: clamp(6rem, 12vw, 11rem); line-height: .8; font-weight: 950; writing-mode: vertical-rl; transform: rotate(180deg); }
.eyebrow-light { color: #6ee5a6; }
.bonogas-copy h2 { color: var(--white); }
.bonogas-copy > p { color: #c4cee0; font-size: 1.05rem; }
.bonogas-copy .bonogas-disclaimer { padding-left: 16px; border-left: 3px solid var(--yellow); color: #e4e9f3; font-size: .88rem; }
.button-light { margin-top: 12px; color: var(--navy); background: var(--yellow); }
.button-light:hover { background: #ffc953; }
.bonogas-steps { display: grid; gap: 1px; background: rgba(255,255,255,.14); }
.bonogas-steps div { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px; padding: 22px; background: #1c3168; }
.bonogas-steps b { color: var(--yellow); font-size: 1.45rem; }
.bonogas-steps span { color: #e2e7f0; font-size: .94rem; }

.about-section { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.about-origin { max-width: 520px; margin-top: 26px; color: #657180; font-size: 1.05rem; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.value-card { min-height: 320px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.value-card:last-child { border-right: 0; }
.value-card span { display: inline-block; margin-bottom: 70px; color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.value-card p { margin: 0; color: #455161; font-size: 1.05rem; }

.contact-section { padding: 105px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.contact-copy > p:not(.eyebrow) { color: #687382; }
.contact-actions { display: grid; margin-top: 34px; border-top: 1px solid var(--line); }
.contact-actions a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 850; text-decoration: none; overflow-wrap: anywhere; }
.contact-actions a span { color: var(--green-dark); }
.locations { padding: 40px; color: var(--white); background: var(--navy); }
.locations h3 { margin: 0 0 18px; font-size: 1.35rem; }
.location { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.15); }
.location span { color: var(--yellow); font-size: .76rem; font-weight: 900; }
.location p { margin: 0; color: #cbd4e5; }
.location b { color: var(--white); }
.locations small { display: block; margin-top: 16px; color: #9eacc3; line-height: 1.5; }

.site-footer { padding: 34px 0; color: #b9c2d1; background: #0b1734; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.footer-inner img { width: 146px; height: 62px; object-fit: contain; padding: 7px; background: var(--white); }
.footer-inner p { margin: 0; font-size: .86rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal-delay { transition-delay: .1s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 158px; height: 60px; }
  .menu-toggle {
    display: grid; gap: 5px; width: 44px; height: 44px; margin-left: auto; place-content: center;
    border: 1px solid var(--line); background: var(--white); cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 16px 20px 24px;
    flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 20px 28px rgba(10,23,52,.12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-cta { display: none; }
  .hero { padding-top: 34px; background: #f7f9fa; }
  .hero-grid, .section-heading, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: clamp(3.25rem, 11vw, 5rem); }
  .hero-visual { min-height: 560px; }
  .section-heading { align-items: start; }
  .bonogas-grid { grid-template-columns: 1fr 1fr; }
  .bonogas-number { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section, .contact-section { padding: 78px 0; }
  .hero { padding-bottom: 62px; }
  .hero-copy { padding-top: 18px; }
  .hero h1 { letter-spacing: -.055em; }
  .hero-lead { font-size: 1rem; }
  .button { width: 100%; }
  .service-strip { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 470px; }
  .hero-photo { inset: 12px 0 36px 0; }
  .hero-note { right: 0; width: 240px; }
  .hero-mark { left: -5px; font-size: 1.5rem; border-width: 7px; }
  .service-grid, .values-grid, .bonogas-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 420px; }
  .service-card-accent { min-height: 360px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .about-title h2, .contact-copy h2, .bonogas-copy h2 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .bonogas-section { padding: 76px 0; }
  .bonogas-section::after { width: 70%; }
  .values-grid { border-top: 0; gap: 14px; }
  .value-card { min-height: auto; border: 1px solid var(--line) !important; }
  .value-card span { margin-bottom: 40px; }
  .locations { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; text-align: center; justify-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
