/* ============================================================
   CICG · Comité Intergremial Consumidores de Gas
   Hoja de estilos principal — v5
   Paleta oficial: Azul #1C3A63 · Rojo #C93728 · Grises institucionales
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1C3A63;
  --navy-deep: #0D1E35;
  --navy-mid:  #2B5089;
  --red:       #C93728;
  --red-glow:  #E5453A;
  --red-light: #FF7B6B;   /* cifras destacadas sobre fondos oscuros */
  --gray-text: #4A5568;
  --gray-mid:  #949EAB;
  --gray-light:#E2E6EB;
  --gray-bg:   #F5F7FA;
  --white:     #FFFFFF;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--gray-text);
  background: var(--white);
  line-height: 1.6;
}

/* ── UTILIDADES ── */
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 72px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--navy);
  box-shadow: 0 2px 14px rgba(28,58,99,.07);
  transition: box-shadow .3s;
}
.nav-logo img { height: 46px; display: block; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; opacity: .7;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: .45rem 1.25rem; border-radius: 6px;
  opacity: 1 !important; transition: background .2s !important;
}
.nav-cta:hover { background: var(--navy-deep); }

/* ── BOTONES ── */
.btn-primary {
  background: var(--navy); color: var(--white);
  padding: .9rem 2.4rem; border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 700;
  text-decoration: none; letter-spacing: .02em; display: inline-block;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(28,58,99,.22);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,58,99,.32); }
.btn-secondary {
  background: transparent; color: var(--navy);
  padding: .9rem 2.4rem; border-radius: 8px;
  border: 2px solid var(--gray-light);
  font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 700;
  text-decoration: none; letter-spacing: .02em; display: inline-block;
  transition: border-color .2s, transform .15s;
}
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy); color: var(--white);
  padding: .9rem 2.2rem; border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 700;
  text-decoration: none; letter-spacing: .02em; display: inline-block;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(28,58,99,.26);
}
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--navy);
  padding: .9rem 2.2rem; border-radius: 8px;
  border: 2px solid var(--gray-light);
  font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 700;
  text-decoration: none; letter-spacing: .02em; display: inline-block;
  transition: border-color .2s, transform .15s;
}
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ── HERO — logo completo arriba, título grande abajo ── */
#hero {
  min-height: 100vh; padding-top: 72px;
  display: flex; align-items: center;
  background: var(--white);
}
.hero-inner {
  width: 100%; padding: 5rem 8%;
}
.hero-logo-wrap {
  margin-bottom: 2.8rem;
}
.hero-logo-wrap img {
  height: 148px; width: auto; display: block;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; width: fit-content;
  font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--red);
  border: 1px solid rgba(201,55,40,.28); border-radius: 4px;
  padding: .35rem .9rem; margin-bottom: 1.8rem;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
}
h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -.03em;
  color: var(--navy); margin-bottom: 1.6rem;
  max-width: 900px;
}
h1 .accent { color: var(--red); }
.hero-sub {
  font-size: 1.12rem; line-height: 1.78; color: var(--gray-text);
  max-width: 620px; margin-bottom: 3rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── IMPACTO ── */
#impacto {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 5rem 6%; position: relative; overflow: hidden;
}
#impacto::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,55,40,.18) 0%, transparent 65%);
  pointer-events: none;
}
.impacto-label {
  font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 3rem;
}
.impacto-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative; z-index: 1;
}
.impacto-cell { padding: 0 2.5rem; border-right: 1px solid rgba(255,255,255,.12); }
.impacto-cell:first-child { padding-left: 0; }
.impacto-cell:last-child  { border-right: none; }
.ic-n {
  font-family: 'Montserrat', sans-serif; font-size: 3.2rem; font-weight: 900;
  color: var(--red-light); line-height: 1; margin-bottom: .5rem; letter-spacing: -.02em;
}
.ic-label { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.5; }
.ic-sub   { font-size: .78rem; color: rgba(255,255,255,.38); margin-top: .3rem; line-height: 1.4; }

/* ── QUIÉNES SOMOS ── */
#quienes { padding: 8rem 6%; }
.quienes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.quienes-text p { margin-bottom: 1.3rem; font-size: 1.02rem; line-height: 1.82; }
.quienes-text p:last-child { margin-bottom: 0; }
.quote-block {
  border-left: 4px solid var(--red); padding: .2rem 0 .2rem 1.5rem; margin: 2rem 0;
  color: var(--navy); font-family: 'Montserrat', sans-serif;
  font-size: 1.06rem; font-weight: 700; line-height: 1.52; font-style: italic;
}
.alert-block {
  background: rgba(201,55,40,.06); border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0; padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.alert-block p { font-size: .97rem; line-height: 1.72; color: var(--gray-text); margin: 0; }
.alert-block strong { color: var(--red); }
.opp-card { background: var(--gray-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(28,58,99,.06); }
.opp-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid)); padding: 1.5rem 2rem;
  font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.opp-card-body { padding: 1.6rem 2rem; }
.opp-row {
  display: flex; align-items: flex-start; gap: 1rem; padding: .95rem 0;
  border-bottom: 1px solid var(--gray-light); font-size: .97rem; line-height: 1.65;
}
.opp-row:last-child { border-bottom: none; padding-bottom: 0; }
.opp-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; margin-top: .1rem;
  background: linear-gradient(135deg, rgba(28,58,99,.09), rgba(43,80,137,.14));
  display: flex; align-items: center; justify-content: center;
}
.opp-icon svg { width: 15px; height: 15px; }
.opp-row strong {
  display: block; font-family: 'Montserrat', sans-serif;
  font-size: .86rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem;
}

/* ── PILARES ── */
#pilares { padding: 8rem 6%; background: var(--gray-bg); }
.pilares-header { max-width: 580px; margin-bottom: 4rem; }
.pilares-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.pilar-card {
  background: var(--white); border-radius: 16px; padding: 2.4rem 2rem;
  border: 1px solid var(--gray-light);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative; overflow: hidden;
}
.pilar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--navy-mid));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.pilar-card:hover::before { transform: scaleX(1); }
.pilar-card:hover { border-color: transparent; box-shadow: 0 14px 36px rgba(28,58,99,.12); transform: translateY(-6px); }
.pilar-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, rgba(28,58,99,.08), rgba(43,80,137,.13));
  display: flex; align-items: center; justify-content: center;
}
.pilar-icon svg { width: 22px; height: 22px; }
.pilar-card h3 {
  font-family: 'Montserrat', sans-serif; font-size: 1.08rem; font-weight: 800;
  color: var(--navy); margin-bottom: .9rem; line-height: 1.3;
}
.pilar-card p { font-size: .97rem; line-height: 1.75; }

/* ── GREMIOS ── */
#gremios { padding: 8rem 6%; }
.gremios-header { max-width: 680px; margin-bottom: 3.5rem; }
.gremios-header p { font-size: 1.04rem; line-height: 1.8; }
.gremios-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.gremio-card {
  background: var(--white); border-radius: 16px; padding: 2rem 1.5rem; text-align: center;
  border: 1px solid var(--gray-light);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.gremio-card:hover { box-shadow: 0 8px 28px rgba(28,58,99,.11); transform: translateY(-4px); border-color: var(--navy); }
.gremio-badge {
  width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: .84rem; color: var(--white);
}
.gremio-card h4 {
  font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 700;
  color: var(--navy); margin-bottom: .45rem;
}
.gremio-card p { font-size: .78rem; color: var(--gray-mid); line-height: 1.5; }
.gremio-card.pending {
  opacity: .38; border: 1.5px dashed var(--gray-mid);
  background: var(--gray-bg); pointer-events: none; transition: none;
}
.gremio-card.pending .gremio-badge { background: linear-gradient(135deg, var(--gray-mid), #8A95A3); }
.gremio-card.pending h4 { color: var(--gray-text); }
.pending-tag {
  display: inline-block; margin-top: .6rem;
  font-family: 'Montserrat', sans-serif; font-size: .64rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-mid); border: 1px solid var(--gray-light);
  border-radius: 3px; padding: .18rem .5rem;
}
.empresas-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 16px; padding: 2.5rem 3rem;
  display: flex; align-items: flex-start; gap: 3rem; color: var(--white);
}
.eb-num {
  font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 900;
  color: var(--red-light); white-space: nowrap; line-height: 1; flex-shrink: 0;
}
.eb-num span { display: block; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.7); margin-top: .2rem; }
.eb-text p { font-size: .97rem; line-height: 1.78; color: rgba(255,255,255,.82); }

/* ── FAQ — ¿Qué es un gran consumidor? ── */
#faq { padding: 8rem 6%; background: var(--gray-bg); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3.5rem; }
.faq-intro p { font-size: 1.02rem; line-height: 1.82; margin-bottom: 1.3rem; }
.faq-intro p:last-child { margin-bottom: 0; }

/* umbral técnico */
.threshold-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(28,58,99,.07);
  border: 1px solid var(--gray-light);
}
.threshold-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 1.4rem 2rem;
  font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.threshold-body { padding: 0; }
.threshold-row {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.2rem 2rem; border-bottom: 1px solid var(--gray-light);
}
.threshold-row:last-child { border-bottom: none; }
.t-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(28,58,99,.08), rgba(43,80,137,.12));
  display: flex; align-items: center; justify-content: center;
}
.t-icon svg { width: 20px; height: 20px; }
.t-val {
  font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 800;
  color: var(--navy); line-height: 1.2;
}
.t-label { font-size: .82rem; color: var(--gray-mid); margin-top: .15rem; }

/* acordeón FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--gray-light);
  overflow: hidden; transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(28,58,99,.08); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.6rem; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: .92rem; font-weight: 700;
  color: var(--navy); gap: 1rem; user-select: none;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-arrow {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--gray-bg); display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .3s;
}
.faq-arrow svg { width: 14px; height: 14px; transition: transform .3s; }
details[open] .faq-arrow { background: var(--navy); }
details[open] .faq-arrow svg { transform: rotate(180deg); }
details[open] .faq-arrow svg path { stroke: white; }
.faq-a {
  padding: 0 1.6rem 1.4rem; font-size: .97rem; line-height: 1.78;
  border-top: 1px solid var(--gray-light);
  padding-top: 1.1rem;
}
.faq-a p { margin-bottom: .8rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--navy); }
.faq-cta-inline {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--navy); text-decoration: none; letter-spacing: .02em;
  border-bottom: 2px solid var(--red); padding-bottom: .1rem; transition: color .2s;
}
.faq-cta-inline:hover { color: var(--red); }

/* ── ADHERIRSE + FORMULARIO ── */
#adherirse { padding: 8rem 6%; background: var(--gray-bg); }
.adherirse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.adherirse-text .section-lead { font-size: 1.05rem; line-height: 1.82; margin-bottom: 2rem; }
.argument-cards { display: flex; flex-direction: column; gap: 1rem; }
.arg-card {
  background: var(--white); border-radius: 12px; padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--red); box-shadow: 0 2px 10px rgba(28,58,99,.05);
  transition: box-shadow .2s, transform .2s;
}
.arg-card:hover { box-shadow: 0 6px 20px rgba(28,58,99,.1); transform: translateX(4px); }
.arg-card h4 {
  font-family: 'Montserrat', sans-serif; font-size: .86rem; font-weight: 700;
  color: var(--navy); margin-bottom: .35rem;
}
.arg-card p { font-size: .88rem; line-height: 1.65; }

/* Formulario — Google Forms embed */
.contacto-form-wrap { position: sticky; top: 88px; }
.contacto-form-card {
  background: var(--navy-deep); border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(13,30,53,.28);
}
.contacto-form-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 2rem 2.2rem 1.6rem;
}
.contacto-form-header h3 {
  font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--white); line-height: 1.4; margin: 0;
}
.gform-wrap { position: relative; }
.gform-iframe {
  width: 100%; min-height: 640px; display: block;
  border: none; background: var(--white);
}
/* Placeholder visible cuando no hay URL real en el iframe */
.gform-placeholder {
  display: none; /* JS lo muestra si el iframe no carga */
  padding: 3rem 2rem; text-align: center;
  background: rgba(255,255,255,.04);
}
.gform-placeholder p {
  color: rgba(255,255,255,.55); font-size: .97rem; line-height: 1.65; margin: .8rem 0 0;
}
.gform-hint {
  font-size: .82rem !important; color: rgba(255,255,255,.35) !important; margin-top: .5rem !important;
}
.gform-hint code {
  background: rgba(255,255,255,.08); border-radius: 4px; padding: .1rem .4rem;
  font-family: monospace; font-size: .8rem; color: var(--red-light);
}
.gform-mailto {
  display: inline-block; margin-top: 1.4rem;
  font-family: 'Montserrat', sans-serif; font-size: .84rem; font-weight: 700;
  color: var(--white); text-decoration: none; letter-spacing: .02em;
  border-bottom: 2px solid var(--red); padding-bottom: .15rem;
  transition: color .2s;
}
.gform-mailto:hover { color: var(--red-light); }
.form-disclaimer {
  font-size: .78rem; color: rgba(255,255,255,.3);
  padding: .8rem 2.2rem 1.4rem; text-align: center; line-height: 1.5;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-deep); padding: 4rem 6%;
  border-top: 3px solid var(--red);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.footer-logo img { height: 72px; display: block; margin-bottom: .9rem; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.48); max-width: 300px; line-height: 1.65; }
.footer-links-group h5 {
  font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.36); margin-bottom: 1rem;
}
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links-group a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links-group a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .78rem; color: rgba(255,255,255,.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner { padding: 4rem 6%; }
  .hero-logo-wrap img { height: 120px; }
  .impacto-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .impacto-cell { border-right: none; padding: 0 !important; }
  .quienes-grid, .faq-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .adherirse-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contacto-form-wrap { position: static; }
  .pilares-grid { grid-template-columns: 1fr; }
  .gremios-grid { grid-template-columns: repeat(2,1fr); }
  .empresas-banner { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .hero-inner { padding: 3rem 5%; }
  .hero-logo-wrap img { height: 96px; }
  .nav-links { display: none; }
  .gremios-grid { grid-template-columns: repeat(2,1fr); }
  .hero-btns { flex-direction: column; }
  .impacto-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  h1 { font-size: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
