/* Tecrion Energía — estilos
   Colores y tipografía según el Manual de Imagen de Feníe Energía para Empresas Delegadas:
   verdes #477626 y #61A60E, gris #7A7A78, tipografía Calibri (Carlito como equivalente web). */

:root {
  --green: #477626;
  --green-dark: #37601C;
  --green-light: #61A60E;
  --green-50: #F1F6EA;
  --green-100: #E2EDD3;
  --ink: #1D2419;
  --text: #3A4235;
  --muted: #6B7166;
  --grey: #7A7A78;
  --line: #DDE2D6;
  --paper: #FFFFFF;
  --paper-2: #F7F8F4;
  --wa: #1FA855;
  --wa-dark: #178A45;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 36, 25, 0.06), 0 8px 24px rgba(29, 36, 25, 0.08);
  --gut: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --font: Calibri, Carlito, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4, p { margin: 0; }
strong { color: var(--ink); }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

/* ---------- Tipografía ---------- */
.h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.h1--legal { font-size: clamp(34px, 5vw, 48px); margin: 8px 0 32px; }
.h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.h3 { font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.h4 { font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.kicker--pill { padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--green-50); letter-spacing: 0.04em; }
.kicker--pill .icon { width: 18px; height: 18px; }
.kicker--light { color: #CFE7A9; }
.hl { color: var(--green); }
.note { margin-top: 20px; font-size: 15px; color: var(--muted); }
.note--light { color: rgba(255, 255, 255, 0.72); }
.center { display: flex; justify-content: center; margin-top: 40px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link .icon { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; font: inherit; font-size: 18px; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(71, 118, 38, 0.28); }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--wa { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--wa .icon { color: var(--wa); }
.btn--wa:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--wa); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 19px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gut); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 24px; font-weight: 700; letter-spacing: 0.06em; color: #3B3F42; }
.brand__sub { margin-top: 3px; font-size: 13px; font-weight: 700; letter-spacing: 0.34em; color: var(--green); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; }
.nav a:hover { background: var(--green-50); color: var(--green-dark); }
.header__cta { display: flex; align-items: center; gap: 16px; }
.header__tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header__tel .icon { width: 18px; height: 18px; color: var(--green); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 520px at 85% -10%, var(--green-100), transparent 60%), linear-gradient(180deg, var(--paper-2), #fff); }
.hero__in { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gut) clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { font-size: 16px; color: var(--muted); }
.hero__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; }
.hero__ede { padding: 4px 0 20px; border-bottom: 1px solid var(--line); }
.hero__ede .ede { width: 250px; margin: 0 auto; }
.hero__card-title { margin: 20px 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mini-steps li { display: flex; gap: 14px; align-items: flex-start; }
.mini-steps li > span { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--green-50); color: var(--green); font-weight: 700; display: grid; place-items: center; }
.mini-steps strong { display: block; font-size: 19px; }
.mini-steps small { display: block; font-size: 16px; color: var(--muted); }
.hero__card-link { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.hero__card-link .icon { width: 18px; height: 18px; }

/* ---------- Franja de ventajas ---------- */
.trust { background: var(--green); color: #fff; }
.trust__in { max-width: var(--max); margin: 0 auto; padding: 18px var(--gut); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.trust__item { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.25; }
.trust__item strong { color: #fff; }
.trust__item .icon { color: #CFE7A9; }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gut); }
.section--tint, .section--green { max-width: none; }
.section--tint { background: var(--paper-2); }
.section--tint > *, .section--green > * { max-width: calc(var(--max) - 2 * var(--gut)); margin-left: auto; margin-right: auto; }
.section--green { background: linear-gradient(160deg, #3E6A20, var(--green) 55%, #54901A); color: #fff; }
.section--green .h2, .section--green .h4, .section--green strong { color: #fff; }
.section--green .lead { color: rgba(255, 255, 255, 0.88); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--green-50); color: var(--green); display: grid; place-items: center; }
.card__icon .icon { width: 30px; height: 30px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 3; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.step__n { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; font-size: 24px; font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split .head { margin-bottom: 28px; }
.tramites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tramite { padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); border-left: 4px solid var(--green-light); display: flex; flex-direction: column; gap: 8px; }
.tramite p { font-size: 17px; }
.aside-card { position: sticky; top: 100px; background: var(--green-50); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.aside-card img { width: 72px; height: 72px; }
.aside-card__title { font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--ink); }

.split--fenie { align-items: center; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.split--fenie .h2 { margin: 12px 0 16px; }
.reasons { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.reason { display: flex; gap: 14px; align-items: flex-start; }
.reason > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.reason p { color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.products { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.product { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; background: #fff; border-radius: 999px; }
.product img { width: 44px; height: 44px; }
.product span { font-weight: 700; color: var(--ink); }
.fenie-figure { margin: 0; background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18); }
.fenie-figure img { width: 100%; max-width: 380px; margin: 0 auto; }

.about { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.about__badge { width: 200px; height: 200px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; }
.about__badge img { width: 110px; }
.about .h2 { margin: 8px 0 14px; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { padding: 10px 18px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; line-height: 1.2; }
.facts span { font-size: 14px; color: var(--muted); }
.facts strong { font-size: 19px; }

/* ---------- Preguntas ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 19px; font-weight: 700; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { color: var(--green); transition: transform 0.2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; }

/* ---------- Formulario ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-intro { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.contact-list { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.contact-list > a, .contact-list > div { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.contact-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--green-50); color: var(--green); }
.contact-list small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(22px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-size: 16px; font-weight: 700; color: var(--ink); padding: 0; }
.field__help { font-size: 15px; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 18px; color: var(--ink); }
textarea.input { resize: vertical; min-height: 96px; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.input::placeholder { color: #A2A89C; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 16px; font-weight: 700; cursor: pointer; user-select: none; }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--green-light); outline-offset: 2px; }
.dropzone { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border: 2px dashed #C3CDB6; border-radius: var(--radius); background: var(--paper-2); cursor: pointer; }
.dropzone:hover { border-color: var(--green); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone__icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--green); color: #fff; }
.dropzone__text { display: flex; flex-direction: column; gap: 2px; }
.dropzone__hint { font-size: 15px; color: var(--muted); }
.dropzone__files { font-size: 15px; font-weight: 700; color: var(--green-dark); word-break: break-word; }
.dropzone__files.is-error { color: #B42318; }
.consents { display: flex; flex-direction: column; gap: 12px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.consent em { font-style: normal; color: var(--muted); }
.data-info { font-size: 14px; line-height: 1.5; color: var(--muted); padding: 14px 16px; background: var(--paper-2); border-radius: var(--radius-sm); }
.data-info strong { color: var(--text); }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Gracias y legal ---------- */
.thanks { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.legal { max-width: 820px; }
.legal h2 { margin: 36px 0 12px; font-size: 24px; color: var(--ink); }
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 22px; margin: 0; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Pie ---------- */
.footer { background: #1F2A18; color: rgba(255, 255, 255, 0.78); }
.footer a { color: #fff; }
.footer__in { max-width: var(--max); margin: 0 auto; padding: 56px var(--gut) 28px; }
.footer__brands { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer .brand__mark { background: #fff; border-radius: 8px; padding: 4px; width: 52px; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #9ED05A; }
.footer__sep { width: 1px; height: 44px; background: rgba(255, 255, 255, 0.2); }
.ede--footer { width: 210px; }
.footer__cols { padding: 32px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; font-size: 16px; }
.footer__h { margin-bottom: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9ED05A; }
.footer__legal { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.wa-float:hover { background: var(--wa-dark); color: #fff; }
.wa-float .icon { width: 32px; height: 32px; }

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .trust__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__in, .split, .split--fenie, .form-wrap { grid-template-columns: minmax(0, 1fr); }
  .aside-card, .form-intro { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .fenie-figure { max-width: 420px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .header__in { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand__mark { width: 38px; }
  .brand__name { font-size: 20px; }
  .brand__sub { font-size: 11px; }
  .header__tel { display: none; }
  .btn--sm { padding: 8px 14px; font-size: 15px; min-height: 40px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero__card { padding: 22px; }
  .hero__ede .ede { width: 210px; }
  .trust__in { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .grid-2, .tramites, .fields { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__badge { width: 120px; height: 120px; }
  .about__badge img { width: 68px; }
  .footer__sep { display: none; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
