:root {
  color-scheme: light;
  --electric: #00a6f6;
  --surface: #fff;
  --heading: #111318;
  --tint: #eaf5ff;
}

:root:not([data-theme="dark"]) {
  --blue: #17638e;
  --blue-dark: #104e72;
  --electric: #60bff7;
  --tint: #e9f6ff;
  --button-ink: #0b3047;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #56baff;
  --blue-dark: #8ed1ff;
  --white: #0a0c10;
  --surface: #151a22;
  --heading: #f5f8ff;
  --ink: #e0e7f1;
  --muted: #aebacc;
  --soft: #11151c;
  --line: #334152;
  --tint: #132b40;
  --shadow: 0 16px 45px #0006;
}

header, .card, .step, details, .join-form, input, select, textarea {
  background: var(--surface);
}
h2, .card h3, summary, .join-form, .menu-btn { color: var(--heading); }
.card-icon, .contact-band { background: var(--tint); }
.hero h1 span, .hero .dot { color: var(--electric); }
.hero .dot, .bar i { background: var(--electric); }
.photo-page {
  position: relative;
  isolation: isolate;
  --page-photo: url("industria.jpg");
  --photo-shade: linear-gradient(110deg, #f6faffee, #f6faffae);
}
.photo-substation { --page-photo: url("subestacion.jpg"); }
.photo-factory { --page-photo: url("fabrica.jpg"); }
:root[data-theme="dark"] .photo-page {
  --photo-shade: linear-gradient(110deg, #0a101bef, #0a101baf);
}
.photo-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--photo-shade), var(--page-photo) 62% center / cover no-repeat;
}
.photo-page.photo-home::before { background: var(--page-photo) 62% center / cover no-repeat; }
.photo-home main > section {
  background: color-mix(in srgb, var(--white) 85%, transparent);
}
.photo-home main > .soft {
  background: color-mix(in srgb, var(--soft) 88%, transparent);
}
.hero-home { background: linear-gradient(90deg, #07101df2, #091422bd 48%, #0a162720); }
.hero-home::after { content: none; }
@media (max-width: 850px) {
  .hero-home { background: linear-gradient(#07101ded, #091422b8 62%, #0a162754); }
}
.btn-primary { background: #0059c7; color: #fff; }
.btn-primary:hover { background: #004aa5; }
.btn-outline { background: var(--surface); color: var(--heading); }
.recruit h2 { color: #fff; }
.crm-window { background: var(--surface); color: var(--heading); }
.crm-pill { background: var(--soft); border-color: var(--line); }
.form-message { color: var(--blue); }
#formAsesor { margin: 24px auto 48px; scroll-margin-top: 96px; }

.access-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(195px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding: 8px 6px 12px;
}
.access-options .access-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 16px;
  border-color: #476281;
  background-color: #122139;
  background-image: linear-gradient(180deg, #0a142526 12%, #080f1ce8 72%, #080f1c), var(--option-photo);
  background-size: cover;
  background-position: center;
}
.access-options .access-card h3 { color: #fff; line-height: 1.2; }
.access-options .access-card p { color: #e2edf9; }
.access-options .access-featured { border: 2px solid var(--electric); }
.access-options .access-featured h3 { color: #9bddff; }
.residential-service { margin-bottom: 18px; border-color: var(--blue); }

.reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reason { padding: 22px; }
.reason-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1074 / 407;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--tint);
}
.reason h3 { margin-bottom: 4px; font-size: 1.24rem; }
.reason .reason-motto { margin-bottom: 9px; color: var(--blue); font-weight: 800; }

@media (max-width: 700px) {
  .reasons { grid-template-columns: 1fr; }
}

.brand { flex: 0 0 auto; width: fit-content; }
.brand img {
  display: block;
  width: 118px;
  height: 34px;
  box-sizing: content-box;
  padding: 3px 9px;
  object-fit: contain;
  background: #000;
  border-radius: 9px;
}
.nav { gap: 14px; }
.navlinks { gap: 14px; }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--heading);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.25rem;
}
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }
#leadForm { min-width: 0; }
#leadForm .field[hidden] { display: none; }
main:has(#leadForm):not(:has(.hero-invoice-form)) { padding: clamp(32px, 6vw, 76px) 0; }
.hero-invoice-form { scroll-margin-top: 95px; }
.hero-invoice-form > .field:first-of-type { margin-top: 0; }
.hero-invoice-form .bill-drop-copy { gap: 6px; }
.hero-invoice-form #billLabel { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.hero-invoice-form .form-grid { gap: 0 12px; }
.hero-invoice-form .form-grid .field { margin: 7px 0; min-width: 0; }
#leadForm .checkline { color: #d5deea; }
.bill-drop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  min-height: 168px;
  padding: clamp(16px, 3vw, 26px);
  border: 2px dashed #0059c7;
  border-radius: 15px;
  background: #fff;
  color: #101b2a;
  cursor: pointer;
}
.bill-drop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #fff 45%, #ffffff36), url("factura.jpg") right center / auto 135% no-repeat;
  opacity: .23;
  filter: blur(2px);
}
.bill-drop:hover, .bill-drop[data-dragging="true"] {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px #00a6f655;
}
.bill-drop:focus-within { outline: 3px solid #9bddff; outline-offset: 3px; }
.bill-drop input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.bill-drop-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--electric);
  color: #071525;
  box-shadow: 0 0 18px #00a6f655;
}
.bill-drop-copy { display: grid; gap: 2px; min-width: 0; font-weight: 500; }
.bill-drop-copy strong { font-size: clamp(1.22rem, 2vw, 1.55rem); line-height: 1.2; }
.bill-drop-copy small { color: #45556a; }
.bill-drop-select { color: #004ba8; text-decoration: underline; }
.bill-status { margin: 0; color: #9bddff; font-size: .85rem; overflow-wrap: anywhere; }
.bill-status:empty { margin-top: -7px; }
.bill-status[data-error="true"] { color: #ffb9c7; }
#leadForm button:disabled { opacity: .65; cursor: wait; }
.result[data-error="true"] { background: #4b2533; color: #ffe2ea; }

:root:not([data-theme="dark"]) .brand img {
  content: url("logoclaro.jpg");
  background: #fff;
}
:root:not([data-theme="dark"]) .btn-primary {
  background: var(--electric);
  color: var(--button-ink);
  box-shadow: 0 9px 22px #60bff74d;
}
:root:not([data-theme="dark"]) .btn-primary:hover { background: #49ade7; }
:root:not([data-theme="dark"]) .btn-outline {
  border-color: #8cc8eb;
  color: var(--blue-dark);
}
:root:not([data-theme="dark"]) .bill-drop { border-color: var(--blue); }
:root:not([data-theme="dark"]) :is(.bill-drop-select, .bill-status) { color: var(--blue); }
:root:not([data-theme="dark"]) :focus-visible { outline-color: var(--blue); }
:root:not([data-theme="dark"]) .hero-home {
  background: linear-gradient(115deg, #f6fafff5 0%, #f6faffdf 45%, #f6faff45 100%);
  color: var(--heading);
}
:root:not([data-theme="dark"]) :is(.hero-home h1 span, .hero-home .eyebrow, .crm-highlight .eyebrow) {
  color: var(--blue);
}
:root:not([data-theme="dark"]) :is(.hero-copy, .hero-note, .crm-highlight p, .crm-feature span, #leadForm .checkline, #leadForm .fineprint) {
  color: #45556a;
}
:root:not([data-theme="dark"]) :is(.savings-panel, .crm-highlight, .crm-feature) {
  background: #f6faff;
  color: var(--heading);
  border: 1px solid #c8dbea;
}
:root:not([data-theme="dark"]) :is(.crm-feature b, .recruit h2) { color: var(--heading); }
:root:not([data-theme="dark"]) .recruit { background: #f0f6fc; color: var(--ink); }
:root:not([data-theme="dark"]) .recruit .section-head p { color: var(--muted); }
:root:not([data-theme="dark"]) .savings-panel :is(input, select) { border-color: #aabed2; }
:root:not([data-theme="dark"]) :is(.result, .result strong) { background: #e6f3ff; color: #123b64; }
:root:not([data-theme="dark"]) :is(.result[data-error="true"], .bill-status[data-error="true"]) { color: #8a1b37; }
:root:not([data-theme="dark"]) .result[data-error="true"] { background: #fff0f3; }
:root:not([data-theme="dark"]) .access-options .access-card {
  background-color: #fff;
  background-image: linear-gradient(180deg, #ffffff08 25%, #ffffffed 68%, #fff 91%), var(--option-photo);
  border-color: #aabed2;
}
:root:not([data-theme="dark"]) .access-options .access-card h3 { color: var(--heading); }
:root:not([data-theme="dark"]) .access-options .access-card p { color: #34475e; }
:root:not([data-theme="dark"]) .access-options .access-featured { border-color: var(--blue); }
:root:not([data-theme="dark"]) .access-options .access-featured h3 { color: var(--blue); }

@media (max-width: 850px) {
  :root:not([data-theme="dark"]) .hero-home {
    background: linear-gradient(180deg, #f6fafff5, #f6faffe8 40%, #f6faff72);
  }
}

@media (max-width: 1060px) {
  .navlinks {
    display: none;
    position: absolute;
    inset: 76px 0 auto;
    background: var(--surface);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .navlinks.open, .menu-btn { display: flex; }
  .menu-btn { margin-left: auto; cursor: pointer; }
  .nav-cta { display: none; }
}
