/* ===================================================================
   Orwell Power — web
   Hoja de estilos compartida (todas las páginas)
   Identidad: cercana y clara, en la línea de las webs del grupo.
   Amarillo = luz · Azul = gas · Tinta = texto y estructura
   =================================================================== */

/* --- Reset mínimo --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.25rem; }
img, svg { max-width: 100%; display: block; }

/* --- Tokens --- */
:root {
  --c-ink:        #172033;   /* texto, footer */
  --c-ink-soft:   #3E4A61;   /* texto secundario */
  --c-muted:      #6B7488;
  --c-paper:      #FFFFFF;
  --c-mist:       #F2F5FA;   /* fondos de sección */
  --c-line:       #DDE3EE;

  --c-luz:        #FFC940;   /* amarillo luz */
  --c-luz-soft:   #FFF4D2;
  --c-luz-deep:   #8A5A00;   /* texto sobre amarillo claro */
  --c-gas:        #2F66F5;   /* azul gas */
  --c-gas-soft:   #E6EDFF;
  --c-gas-deep:   #1C44B3;

  --f-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --f-sans:    'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --space-xs: .5rem;  --space-sm: 1rem;  --space-md: 1.5rem;
  --space-lg: 2.5rem; --space-xl: 4rem;  --space-2xl: 6rem;

  --container-wide: 1180px;
  --container-read: 760px;

  --r-lg: 28px;   /* bloques grandes */
  --r-md: 18px;   /* tarjetas */
  --r-sm: 10px;   /* detalles */
  --r-pill: 999px;
  --ease: 180ms cubic-bezier(.4,0,.2,1);
}

/* --- Base --- */
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink-soft);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }
a { color: var(--c-gas-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-gas); }
strong { color: var(--c-ink); font-weight: 600; }
li { margin-bottom: .35rem; }

:focus-visible { outline: 3px solid var(--c-gas); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-ink); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.container, .container-read { width: 100%; margin-inline: auto; padding-inline: 1.25rem; }
.container { max-width: var(--container-wide); }
.container-read { max-width: var(--container-read); }
@media (min-width: 768px) { .container, .container-read { padding-inline: 2rem; } }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 600 1rem/1 var(--f-sans);
  padding: .95rem 1.5rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--c-ink); color: #fff; }
.btn--primary:hover { background: #2A3550; color: #fff; }
.btn--ghost { border-color: var(--c-ink); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }
.btn--luz { background: var(--c-luz); color: var(--c-ink); }
.btn--luz:hover { background: #FFD76A; color: var(--c-ink); }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-lg);
  min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 1.35rem/1 var(--f-display);
  letter-spacing: -0.03em;
  color: var(--c-ink); text-decoration: none;
}
.brand:hover { color: var(--c-ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__power { font-weight: 400; }

.site-nav { display: flex; gap: .25rem; margin-right: auto; }
.site-nav a {
  font-weight: 600; font-size: .98rem;
  color: var(--c-ink); text-decoration: none;
  padding: .55rem .9rem; border-radius: var(--r-pill);
  white-space: nowrap;
}
.site-nav a:hover { background: var(--c-mist); color: var(--c-ink); }

.site-header__cta { padding: .7rem 1.15rem; font-size: .98rem; }

@media (max-width: 880px) {
  .site-header__inner { flex-wrap: wrap; gap: 0 var(--space-sm); padding-block: .6rem 0; }
  .brand { margin-right: auto; }
  .site-nav {
    order: 3; width: calc(100% + 1.8rem); margin: .4rem -.9rem 0;
    overflow-x: auto; scrollbar-width: none; padding-bottom: .4rem;
  }
  .site-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 420px) {
  .site-header__cta span { display: none; }
  .site-header__cta { padding: .7rem; }
}

/* ===================================================================
   Pictogramas (SVG en línea, dos tintas)
   =================================================================== */
.picto { width: 56px; height: 56px; flex: none; }
.picto--sm { width: 44px; height: 44px; }

/* ===================================================================
   Hero (home)
   =================================================================== */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}
.hero__title span { display: block; text-wrap: balance; }
.hero__lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55; max-width: 34ch;
  margin-bottom: var(--space-lg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__note { margin-top: var(--space-sm); font-size: .95rem; color: var(--c-muted); }

/* Tarjetas de producto: el elemento protagonista de la home */
.products { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

.product {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1.75rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 380px;
  overflow: hidden;
}
.product--luz { background: var(--c-luz); color: var(--c-ink); }
.product--gas { background: var(--c-gas); color: #fff; margin-top: 3rem; }
@media (max-width: 560px) { .product--gas { margin-top: 0; } .product { min-height: 0; } }

.product::after {                 /* halo: luz que irradia / llama que sube */
  content: ""; position: absolute; pointer-events: none;
  width: 260px; height: 260px; border-radius: 50%;
  right: -90px; bottom: -110px;
}
.product--luz::after { background: radial-gradient(circle, rgba(255,255,255,.65), rgba(255,255,255,0) 70%); }
.product--gas::after { background: radial-gradient(circle, rgba(140,180,255,.55), rgba(47,102,245,0) 70%); }

.product h2 { font-size: 2rem; color: inherit; }
.product p { font-size: 1.02rem; line-height: 1.5; }
.product ul { list-style: none; padding: 0; margin: 0; font-size: .98rem; }
.product li { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .4rem; }
.product li::before { content: "✓"; font-weight: 700; }
.product--gas h2, .product--gas strong { color: #fff; }
.product__foot { margin-top: auto; position: relative; z-index: 1; }

.status {
  align-self: flex-start;
  font-size: .85rem; font-weight: 700;
  padding: .3rem .75rem; border-radius: var(--r-pill);
}
.product--luz .status { background: var(--c-ink); color: var(--c-luz); }
.product--gas .status { background: #fff; color: var(--c-gas-deep); }

.product a.product__link { color: inherit; font-weight: 700; }

/* ===================================================================
   Secciones genéricas
   =================================================================== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--mist { background: var(--c-mist); }
.section__head { max-width: 40rem; margin-bottom: var(--space-lg); }
.section__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-sm); }
.section__head p { font-size: 1.12rem; }

/* Pasos del cambio: sí es una secuencia, de ahí la numeración */
.steps {
  list-style: none; padding: 0; margin: 0 0 var(--space-lg);
  display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  margin: 0; background: var(--c-paper);
  border-radius: var(--r-md); padding: 1.6rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-luz); color: var(--c-ink);
  font: 700 1.2rem/1 var(--f-display);
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.steps p { font-size: 1rem; }

/* Compromisos */
.values { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value h3 { font-size: 1.35rem; margin: 1rem 0 .4rem; }
.value p { font-size: 1.02rem; }

/* Preguntas frecuentes (sin JavaScript: <details>) */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0;
  font: 600 1.15rem/1.35 var(--f-sans); color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-mist); color: var(--c-ink);
  font: 500 1.4rem/1 var(--f-sans);
  transition: transform var(--ease), background var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--c-luz); }
.faq details > div { padding: 0 3.5rem 1.5rem 0; }
@media (max-width: 560px) { .faq details > div { padding-right: 0; } }

/* Bloque de contacto */
.contact {
  background: var(--c-ink); color: #C9D1E0;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .75rem; }
.contact__phone {
  display: inline-block; margin: .75rem 0 .5rem;
  font: 700 clamp(2.2rem, 5vw, 3.4rem)/1 var(--f-display);
  letter-spacing: -0.03em;
  color: var(--c-luz); text-decoration: none;
}
.contact__phone:hover { color: #FFE08A; }
.contact__hours { font-size: .98rem; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.contact__list li {
  margin: 0; background: rgba(255,255,255,.06);
  border-radius: var(--r-md); padding: 1.1rem 1.25rem;
}
.contact__label { display: block; font-size: .9rem; color: #97A2B8; margin-bottom: .15rem; }
.contact__list a, .contact__list address { color: #fff; font-style: normal; font-weight: 600; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--c-luz); }

/* ===================================================================
   Páginas legales (lectura larga)
   =================================================================== */
.legal-page { padding-top: var(--space-xl); padding-bottom: var(--space-2xl); }
.legal-header {
  margin-bottom: var(--space-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--c-mist);
  border-radius: var(--r-lg);
}
.legal-header__eyebrow {
  display: inline-block;
  font-size: .9rem; font-weight: 700;
  color: var(--c-ink);
  background: var(--c-luz);
  padding: .25rem .75rem; border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.legal-header__title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .75rem; }
.legal-header__meta { font-size: .95rem; color: var(--c-muted); }

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: var(--space-xl); margin-bottom: var(--space-sm);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.2rem; margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: var(--space-sm); }
.legal-content li { margin-bottom: .5rem; }
.legal-content li::marker { color: var(--c-muted); }

.legal-meta-footer {
  margin-top: var(--space-xl); padding-top: var(--space-md);
  border-top: 1px solid var(--c-line);
  font-size: .9rem; color: var(--c-muted);
}

.table-wrap { overflow-x: auto; margin: var(--space-md) 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: var(--space-md) 0; }
.legal-table th, .legal-table td {
  text-align: left; padding: .8rem 1rem;
  border-bottom: 1px solid var(--c-line); vertical-align: top;
}
.legal-table thead th { background: var(--c-mist); color: var(--c-ink); font-weight: 700; }
.legal-table thead th:first-child { border-top-left-radius: var(--r-sm); }
.legal-table thead th:last-child  { border-top-right-radius: var(--r-sm); }
.legal-table code {
  background: var(--c-mist); padding: 1px 6px; border-radius: 4px;
  font-size: .88rem; color: var(--c-ink);
}

/* ===================================================================
   Marcas de "pendiente" y "nota interna"
   (eliminar / sustituir antes de publicar)
   =================================================================== */
.pending {
  background: #FFF1B8; color: #6B4700;
  padding: 1px 8px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .85em; font-weight: 500;
  border: 1px dashed #D9A100;
}
.pending::before { content: "⚑ "; opacity: .6; }

.review-note {
  background: #FFFBEA;
  border: 1px dashed #D9A100; border-left-width: 4px;
  padding: 1rem 1.25rem; margin: var(--space-md) 0;
  border-radius: var(--r-sm);
  font-size: .95rem; color: #5E4300;
  font-family: var(--f-sans);
}
.review-note::before {
  content: "Nota interna · eliminar antes de publicar";
  display: block; font-weight: 700; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .5rem; color: #8A5A00;
}
.review-note p { margin-bottom: .5rem; }
.review-note p:last-child { margin-bottom: 0; }
.review-note ol, .review-note ul { padding-left: 1.5rem; margin: .5rem 0; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: var(--c-ink); color: #A7B1C4;
  padding: var(--space-2xl) 0 var(--space-lg);
  font-size: .95rem;
}
.site-footer a { color: #E4E9F2; text-decoration: none; }
.site-footer a:hover { color: var(--c-luz); }

.site-footer__grid {
  display: grid; gap: var(--space-lg);
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin-bottom: var(--space-xl);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand { color: #fff; margin-bottom: var(--space-md); }
.site-footer__brand:hover { color: #fff; }
.site-footer__company { line-height: 1.7; }
.site-footer__company strong { color: #fff; font-weight: 600; }

.site-footer__col h4 {
  font: 700 1rem/1.2 var(--f-display); color: #fff;
  letter-spacing: 0; margin-bottom: var(--space-sm);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: .6rem; }

.site-footer__bar {
  border-top: 1px solid #2B3650; padding-top: var(--space-md);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm);
  font-size: .88rem; color: #8390A8;
}
.site-footer__bar nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.product__note { font-size: .85rem; color: var(--c-luz-deep); margin-top: .25rem; }
