/* Luz Consciente — hoja de estilos propia. No reproduce la identidad gráfica de CFE. */
:root {
  --navy: #14213d;
  --navy-2: #1d3557;
  --ink: #1c1917;
  --muted: #57534e;
  --paper: #faf6ef;
  --paper-2: #f1e6d6;
  --white: #ffffff;
  --gold: #e09f3e;
  --gold-2: #f4a261;
  --terracotta: #bc4749;
  --ok: #3d5a3d;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 18px 40px rgba(20, 33, 61, 0.08);
  --radius: 18px;
  --max: 1120px;
  --header: 4.5rem;
  font-size: 100%;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-2); }
a:hover { color: var(--terracotta); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* Disclaimer persistente: Google Ads / no suplantación */
.disclaimer-bar {
  background: var(--navy);
  color: #f8f1e4;
  font-size: 0.9rem;
  padding: 0.7rem 1.25rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.disclaimer-bar p { margin: 0 auto; max-width: var(--max); }
.disclaimer-bar strong { color: var(--gold-2); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #faf6ef;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}
.brand img { width: 44px; height: 44px; }
.brand-name { font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.brand-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
}

.nav-list {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-list a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--navy);
}

.hero {
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(900px 320px at 90% -10%, rgba(244, 162, 97, 0.28), transparent 60%),
    linear-gradient(180deg, #fff8ee 0%, var(--paper) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.kicker {
  display: inline-block;
  background: var(--paper-2);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.35rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.hero-card h2 { font-size: 1.15rem; font-family: inherit; }
.official-list { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.official-list li { margin: 0.45rem 0; }
.official-list a { font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 750;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-official {
  background: var(--ok);
  color: var(--white);
}
.btn-official:hover { color: var(--white); filter: brightness(1.08); }
.btn-warn {
  background: var(--terracotta);
  color: var(--white);
}

.ext::after {
  content: " ↗";
  font-weight: 700;
  font-size: 0.85em;
}

.section { padding: 3.2rem 0; }
.section-alt { background: #fffdf8; }
.section-navy {
  background: var(--navy);
  color: #f4efe6;
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p, .section-navy li { color: #d9d1c4; }

.center { text-align: center; }
.center .lede { margin-inline: auto; }

.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.card { box-shadow: var(--shadow); height: 100%; text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); transition: transform 0.2s ease; }
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.prose { max-width: 46rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }

.callout {
  border-left: 4px solid var(--gold);
  background: #fff7ea;
  padding: 1rem 1.1rem;
  border-radius: 0 12px 12px 0;
  margin: 1.2rem 0;
}
.callout-danger {
  border-left-color: var(--terracotta);
  background: #fdecec;
}
.callout-ok {
  border-left-color: var(--ok);
  background: #eef6ee;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.2rem 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 4.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0.8rem 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.bill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  background: var(--white);
  border: 1px dashed #cbbfaa;
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.2rem 0;
}
.bill div {
  background: var(--paper);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
.bill strong { display: block; color: var(--navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

.checklist label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin: 0.5rem 0;
  cursor: pointer;
}
.checklist input { margin-top: 0.3rem; accent-color: var(--navy); }

.calc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}
.calc label { font-weight: 700; font-size: 0.88rem; color: var(--navy); display: block; }
.calc input, .form input, .form select, .form textarea {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #d6cdc0;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: var(--white);
}
.calc-result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
}
.calc-result strong { color: var(--gold-2); }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.6rem 0;
}
.faq summary { font-weight: 750; color: var(--navy); cursor: pointer; }
.faq p { margin: 0.7rem 0 0.2rem; }

.form { display: grid; gap: 0.85rem; max-width: 36rem; }
.form label { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.form label:not(.consent) { display: block; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
}
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--white); font-size: 0.88rem; }

.site-footer {
  background: #0f1728;
  color: #d7d0c4;
  padding: 2.4rem 0 1.4rem;
  margin-top: 1rem;
}
.site-footer h2, .site-footer h3 { color: var(--white); font-family: inherit; font-size: 1rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer a { color: #f4e6c8; }
.footer-note {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  max-width: 720px;
  margin-inline: auto;
  display: none;
}
.cookie-bar.is-on { display: block; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }

.page-hero { padding: 2.2rem 0 0.4rem; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.8rem; }
.crumbs a { color: var(--muted); }

.alert-config {
  background: #fff3cd;
  border: 1px solid #e0c36a;
  color: #5c4813;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
}

@media (max-width: 900px) {
  .hero-grid, .grid-4, .grid-3, .grid-2, .footer-grid, .bill, .calc, .form .row {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card:hover { transform: none; }
}

@media print {
  .disclaimer-bar, .site-header, .cookie-bar, .site-footer, .nav-toggle, .actions { display: none !important; }
  body { background: white; color: black; }
}
