
/* ==========================================================================
   OPCIÓN 4 (RECOMENDADA): Identidad Real de Elopeza Gas + Conversión B2B
   Paleta extraída del logo oficial (#0A1A3A + #007CB8) + acento seguridad
   ========================================================================== */

:root {
  --navy: #0A1A3A;         /* Azul marino oficial de "Elopeza" */
  --navy-soft: #132852;
  --cyan: #007CB8;         /* Azul cian oficial de "Gas sac" */
  --cyan-hover: #006496;
  --ice: #F2F7FB;          /* Fondo técnico claro */
  --surface: #FFFFFF;
  --amber: #D97706;        /* Acento sutil de seguridad industrial */
  --wa: #15803D;           /* Verde WhatsApp legible (contraste AA) */
  --wa-hover: #166534;
  --text: #16243B;
  --muted: #4C607A;
  --border: #D9E4EE;
  --radius: 8px;
  --shadow: 0 10px 28px rgba(10, 26, 58, 0.08);
  --font-display: 'Barlow', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 200;
}
.skip-link:focus { left: 12px; }

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--cyan); color: #FFFFFF; }
.btn-primary:hover { background: var(--cyan-hover); }

.btn-cyan { background: var(--cyan); color: #FFFFFF; }
.btn-cyan:hover { background: #008FD4; }

.btn-whatsapp { background: var(--wa); color: #FFFFFF; }
.btn-whatsapp:hover { background: var(--wa-hover); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

.btn-ghost {
  background: var(--ice);
  color: var(--navy);
}

.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* Barra utilitaria */
.utility-bar {
  background: var(--navy);
  color: #D4E2F0;
  font-size: 0.82rem;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 8px 0;
}

.utility-contacts {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.utility-contacts a { text-decoration: none; color: #FFFFFF; }
.utility-contacts a:hover { color: #7DD3FC; }

/* Header sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
  position: relative;
}

.brand img { width: 166px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: -16px;
  right: -16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  flex-direction: column;
  gap: 16px;
}

.site-nav.is-open { display: flex; }

.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}

.nav-list a:hover { color: var(--cyan); }

/* Hero */
.hero {
  background-color: var(--ice);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(0, 124, 184, 0.12), transparent 45%),
    linear-gradient(rgba(10, 26, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 26, 58, 0.035) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  padding: 44px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.trust-strip dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.trust-strip dd {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
}

.visual-frame {
  position: relative;
  background: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
}

.visual-tag {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 5px;
  border-left: 4px solid var(--amber);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tag-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #FCD34D;
  font-weight: 700;
}

.visual-tag strong { font-size: 0.92rem; font-weight: 600; }

/* Secciones */
.section { padding: 60px 0; }
.section-ice { background: var(--ice); border-block: 1px solid var(--border); }
.section-navy { background: var(--navy); color: #FFFFFF; }
.section-navy h2 { color: #FFFFFF; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.kicker-light { color: #7DD3FC; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}

.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; }
.section-intro { color: var(--muted); max-width: 48ch; }

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-step {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--cyan);
  background: var(--ice);
  padding: 4px 10px;
  border-radius: 4px;
}

.card-icon {
  width: 38px;
  height: 38px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.32rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

.check-list {
  list-style: none;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--text);
}

.check-list li::before {
  content: "▪";
  color: var(--cyan);
  margin-right: 8px;
}

.card-wa-link {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--wa);
  text-decoration: none;
}

.card-wa-link:hover { text-decoration: underline; }

/* Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10, 26, 58, 0.05);
}

.project-img-wrap { position: relative; }

.project-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 4px;
}

.project-pill--amber {
  background: var(--amber);
  color: #FFFFFF;
}

.project-body {
  padding: 24px;
  display: grid;
  gap: 8px;
}

.project-loc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-body h3 { font-size: 1.45rem; }
.project-body p { color: var(--muted); }

.project-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.btn-link {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: none;
}

.btn-link:hover { text-decoration: underline; }

.ext-link {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}

.ext-link:hover { color: var(--navy); text-decoration: underline; }

/* Dialog nativo */
.project-dialog {
  width: min(600px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 26, 58, 0.35);
}

.project-dialog::backdrop {
  background: rgba(10, 26, 58, 0.72);
  backdrop-filter: blur(3px);
}

.dialog-top {
  background: var(--navy);
  color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dialog-top h3 { color: #FFFFFF; font-size: 1.5rem; }

.close-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 0;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1.35rem;
  cursor: pointer;
}

.dialog-content {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.dialog-content img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.dialog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Equipos */
.equip-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.equip-intro p {
  margin: 14px 0 26px;
  color: #C7D9EC;
  max-width: 50ch;
}

.equip-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.equip-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.equip-grid li {
  background: var(--navy-soft);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  padding: 16px 18px;
  display: grid;
  gap: 3px;
}

.equip-grid strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: #FFFFFF;
}

.equip-grid span {
  font-size: 0.88rem;
  color: #B8CCE2;
}

/* Nosotros y Políticas */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.about-lead {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
}

.policies-stack {
  display: grid;
  gap: 14px;
}

.policy-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.policy-item:hover {
  border-color: var(--cyan);
  background: var(--ice);
}

.policy-badge {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 124, 184, 0.12);
  color: var(--cyan);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.policy-item h3 { font-size: 1.15rem; margin-bottom: 3px; }
.policy-item p { font-size: 0.9rem; color: var(--muted); }

/* Contacto */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.contact-copy p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.c-card {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: 6px;
  text-decoration: none;
}

.c-card:hover { border-left-color: var(--navy); }
.c-card small { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.c-card strong { font-size: 1.12rem; color: var(--navy); }

.smart-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.smart-form h3 { font-size: 1.3rem; }

.f-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.f-group { display: grid; gap: 6px; }
.f-group label { font-size: 0.86rem; font-weight: 600; color: var(--navy); }

.f-group input,
.f-group select,
.f-group textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid #C5D4E2;
  border-radius: 6px;
  background: #FFFFFF;
}

.form-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #C7D9EC;
  padding: 36px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.site-footer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-links a { text-decoration: none; color: #A6C3DE; }
.footer-links a:hover { color: #FFFFFF; text-decoration: underline; }

/* Responsive */
@media (min-width: 720px) {
  .wrap { width: min(1160px, calc(100% - 64px)); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-wide { grid-column: 1 / -1; }
  .f-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; align-items: center; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-list { flex-direction: row; gap: 24px; }
  .hero { padding: 68px 0 76px; }
  .hero-grid { grid-template-columns: 1.06fr 0.94fr; gap: 52px; }
  .section { padding: 80px 0; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .equip-layout { grid-template-columns: 0.95fr 1.05fr; gap: 52px; }
  .about-layout { grid-template-columns: 0.95fr 1.05fr; gap: 52px; }
  .contact-layout { grid-template-columns: 0.88fr 1.12fr; gap: 52px; }
}

.btn-whatsapp, .card-wa-link { display:inline-flex; align-items:center; gap:.55rem; }
.btn-whatsapp, .btn.btn-whatsapp { background:#25D366; color:#072B18; }
.btn-whatsapp:hover, .btn.btn-whatsapp:hover { background:#1FBE5A; color:#072B18; }
.wa-icon { flex:none; width:1.25em; height:1.25em; }
.whatsapp-contact { align-self:center; padding:clamp(20px,5vw,38px); background:#effaf3; border:1px solid #c3e9ce; border-radius:16px; }
.whatsapp-contact p { margin:.65rem 0 1.25rem; }

:root { --font-display: system-ui, sans-serif; --font-body: system-ui, sans-serif; }
.detail {padding-block:clamp(32px,6vw,72px);}
.detail h1 {font-size:clamp(1.9rem,5vw,3.45rem);max-width:24ch;margin:0 0 1.4rem;line-height:1.08;}
.detail-body {max-width:76ch; margin-bottom:2rem; overflow-wrap:anywhere;}
.detail-body p,.detail-body ul,.detail-body ol,.detail-body figure,.detail-body h2,.detail-body h3,.detail-body table {margin:0 0 1.15rem;}
.detail-body ul,.detail-body ol {padding-inline-start:1.5rem;}
.detail-body a {color:#006991;text-decoration:underline;}
.detail-body figure {margin-inline:0;}
.detail-body img {max-width:100%;height:auto;border-radius:6px;}
.detail-body figcaption {font-size:.95rem;}
.detail-body .gallery {display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr));}
.detail-body .gallery img {width:100%;aspect-ratio:4/3;object-fit:cover;}
.directory {display:grid;gap:.65rem;list-style:none;padding:0!important;}
.directory a {display:block;background:#f2f7fb;border:1px solid #d9e4ee;padding:.65rem .9rem;border-radius:6px;}
.detail-actions {display:flex;gap:.85rem;flex-wrap:wrap;align-items:center;}
.site-nav:target {display:block;}
.brand img {height:auto;}
.btn-primary:not(.btn-whatsapp),.btn-cyan:not(.btn-whatsapp) {background:#006c9f;}
.site-nav {overflow-wrap:anywhere;}
