/* ==========================================================================
   Grupo Tresner — Electrolineras. Plantilla estática (HTML + CSS puro).
   Fuente del diseño: Landing Tresner.dc.html (Tresner Design System)
   ========================================================================== */

/* ---- Tipografía: Poppins (display) y Roboto (body), servidas localmente ---- */
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-800.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/Roboto-300.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/Roboto-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/Roboto-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/Roboto-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens (Tresner Design System) ---- */
:root {
  /* escalas de color */
  --teal-50: #f2f8f9;
  --teal-100: #dcedf1;
  --teal-500: #047995;
  --teal-600: #046885;
  --teal-700: #035871;
  --teal-900: #023642;

  --ink-300: #9fb0b5;
  --ink-500: #6b8189;
  --ink-700: #3c545c;
  --ink-900: #12222a;

  --yellow-100: #fff9d6;
  --yellow-500: #fed700;
  --green-100: #eef6df;
  --green-500: #96c740;
  --cyan-100: #dbf2f7;
  --cyan-500: #00accd;
  --coral-100: #fbe6e6;
  --coral-500: #e57373;

  --white: #ffffff;

  /* alias semánticos */
  --brand-primary: var(--teal-500);
  --brand-primary-hover: var(--teal-600);

  --accent-solar: var(--yellow-500);
  --accent-reciclaje: var(--green-500);
  --accent-reciclaje-surface: var(--green-100);
  --accent-info: var(--cyan-500);
  --accent-electrica: var(--coral-500);
  --accent-electrica-surface: var(--coral-100);

  --ink-900-on-solar: var(--ink-900);

  --surface-card: #ffffff;
  --surface-page: #f5f8f9;
  --surface-sunken: #eaf0f2;

  --border-strong: #b9cdd2;
  --border-subtle: #dbe6e9;

  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-700);
  --text-muted: var(--ink-500);
  --text-link: var(--teal-600);
  --text-link-hover: var(--teal-700);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 34, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(18, 34, 42, 0.10);
  --shadow-lg: 0 12px 32px rgba(18, 34, 42, 0.14);

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;

  --font-body: 'Roboto', sans-serif;
  --font-display: 'Poppins', sans-serif;
}

/* ---- Reset & base ---- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--text-link);
}
a:hover {
  color: var(--text-link-hover);
}
h1, h2, h3, p {
  margin: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

details[open] summary ~ * {
  animation: fadeInUp 0.25s ease-out;
}

.hl-green-5 {
  text-decoration: underline;
  text-decoration-color: var(--accent-reciclaje);
  text-decoration-thickness: 5px;
  text-underline-offset: 8px;
}
.hl-green-4 {
  text-decoration: underline;
  text-decoration-color: var(--accent-reciclaje);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.btn-arrow {
  flex: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.t-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}
.t-header__logo {
  height: 46px;
}
.t-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.t-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.t-nav a:hover {
  color: var(--brand-primary);
}
.t-header__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.t-phone-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

/* ---- Botón pill amarillo (CTA) ---- */
.btn-solar {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-900);
  background: var(--accent-solar);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
}
.btn-solar:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--ink-900);
}
.btn-solar--sm {
  font-size: var(--text-sm);
  padding: 10px 22px;
  gap: 8px;
}
.btn-solar--lg {
  font-size: var(--text-md);
  padding: 16px 32px;
  gap: 10px;
}
.btn-solar--lg:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.t-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
  padding: 72px 40px;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-600) 100%);
}
.t-hero__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: center;
}
.t-hero h1 {
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  animation: fadeInUp 0.6s ease-out both;
}
.t-hero__subtitle {
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.5;
  color: var(--teal-100);
  max-width: 520px;
  animation: fadeInUp 0.6s ease-out 0.08s both;
}
.t-hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.16s both;
}
.t-hero-form {
  min-width: 0;
  width: 100%;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}
.t-hero-form .t-form-card {
  max-width: none;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Sección genérica
   ========================================================================== */
.t-sec {
  padding: 80px 40px;
}
.t-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.t-services {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
}
.t-services .t-eyebrow {
  color: var(--teal-100);
}
.t-services h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 10px 0 40px;
  max-width: 900px;
}
.t-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.t-service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--card-accent, var(--accent-info));
  transition: transform 0.2s ease;
}
.t-service-card:hover {
  transform: translateY(-4px);
}
.t-service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--card-accent, var(--accent-info));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent, var(--accent-info));
}
.t-service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #fff;
}
.t-service-card p {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--teal-100);
  line-height: 1.5;
}
.t-service-card__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--card-accent, var(--accent-info));
  text-decoration: none;
  transition: padding-left 0.15s ease;
}
.t-service-card__link:hover {
  padding-left: 4px;
  color: var(--card-accent, var(--accent-info));
}

/* ==========================================================================
   Diferenciadores (¿Por qué Tresner?)
   ========================================================================== */
.t-why {
  padding: 88px 40px 44px;
  background: #fff;
}
.t-why h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 36px;
}
.t-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.t-diff-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-page);
  border-top: 4px solid var(--card-accent, var(--accent-info));
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.t-diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--brand-primary);
  color: #fff;
}
.t-diff-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card-accent, var(--accent-info));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-diff-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
}
.t-diff-card p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: inherit;
  opacity: 0.8;
}

/* ==========================================================================
   Formulario
   ========================================================================== */
.t-form-card {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.t-form-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.t-form-card__intro {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  line-height: 1.5;
}
.t-alert {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: var(--text-base);
}
.t-alert--success {
  background: var(--accent-reciclaje-surface);
  border: 1px solid var(--accent-reciclaje);
  color: #3f5c17;
}
.t-alert--error {
  background: var(--accent-electrica-surface);
  border: 1px solid var(--accent-electrica);
  color: #a83f3f;
  font-size: var(--text-sm);
  padding: 14px 18px;
}

.t-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.t-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.t-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.t-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.t-field label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.t-field input[type="text"],
.t-field input[type="tel"],
.t-field input[type="email"],
.t-field select,
.t-field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  outline: none;
  background: var(--white);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.t-field input:focus,
.t-field select:focus,
.t-field textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(4, 121, 149, 0.22);
}
.t-field .t-field__error {
  font-size: var(--text-xs);
  color: var(--accent-electrica);
}
.t-field--error input,
.t-field--error select {
  border-color: var(--accent-electrica);
}

.t-captcha {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.t-captcha label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.t-captcha input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  outline: none;
  background: var(--white);
  max-width: 220px;
}
.t-captcha input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(4, 121, 149, 0.22);
}

.t-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.t-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-primary);
  flex: none;
}
.t-checkbox label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

.t-privacy-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-link);
  margin-top: -8px;
}

body.landing-tresner-electrolineras .btn-submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink-900);
  background: var(--accent-solar);
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-submit:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.t-faq {
  background: var(--surface-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.t-faq .t-eyebrow {
  color: var(--brand-primary);
}
.t-faq h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 10px 0 32px;
}
.t-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  width: 100%;
  text-align: left;
}
.t-faq__item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.15s ease;
}
.t-faq__item:hover {
  border-color: var(--brand-primary);
}
.t-faq__item summary {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.t-faq__item p {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.t-footer {
  padding: 40px 40px 28px;
  background: var(--teal-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-body);
}
.t-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.t-footer__logo {
  height: 42px;
  margin-bottom: 14px;
}
.t-footer__about {
  color: var(--teal-100);
  font-size: 17px;
  margin: 0;
  line-height: 1.6;
}
.t-footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
  color: var(--teal-100);
  line-height: 1.5;
}
.t-footer__col-title {
  color: #fff;
  font-weight: 600;
}
.t-footer__col a {
  color: var(--teal-100);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.t-footer__col a:hover {
  color: #fff;
}
.t-footer__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.t-footer__icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 0.8;
  flex: none;
}
.t-footer__address .t-footer__icon {
  margin-top: 3px;
}
.t-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--teal-700);
  padding-top: 20px;
  font-size: var(--text-xs);
  color: var(--teal-100);
}
.t-footer__bottom-links {
  display: flex;
  gap: 16px;
}
.t-footer__bottom-links a {
  color: var(--teal-100);
  text-decoration: none;
}
.t-footer__bottom-links a:hover {
  color: #fff;
}

/* ==========================================================================
   Responsive — breakpoint único 1024px
   ========================================================================== */
@media (max-width: 1024px) {
  .t-hero {
    grid-template-columns: 1fr;
    padding: 56px 24px;
  }
  .t-hero h1 {
    font-size: 44px;
  }
  .t-sec,
  .t-why,
  .t-faq {
    padding: 56px 24px;
  }
  .t-form-row {
    grid-template-columns: 1fr;
  }
  .t-services h2,
  .t-why h2 {
    font-size: 28px;
  }
  .t-header {
    padding: 12px 20px;
  }
  .t-form-card {
    padding: 24px;
  }
  .t-footer {
    padding: 32px 24px 24px;
  }
  .t-nav {
    display: none;
  }
}

/* ==========================================================================
   Página de agradecimiento (gracias.html)
   ========================================================================== */
.t-thanks {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 40px;
  background: #fff;
}
.t-thanks__inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.t-thanks h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}
.t-thanks h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 12px;
}
.t-thanks p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.t-thanks .t-thanks__lead {
  font-size: 22px;
  font-weight: 500;
  color: var(--brand-primary);
}
.t-thanks .btn-solar {
  margin-top: 14px;
}

.t-footer--full {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: space-between;
}
.t-footer--full .t-footer__grid {
  margin: auto 0;
}

@media (max-width: 1024px) {
  .t-thanks {
    padding: 48px 24px;
  }
  .t-thanks h1 {
    font-size: 34px;
  }
}

/* ==========================================================================
	WhatsApp button
	========================================================================= */

.btn-whatsapp {
	position: fixed;
	width: 60px;
	height: 60px;
	bottom: 20px;
	right: 20px;
	background-color: #25d366;
	color: #FFF;
	border-radius: 50px;
	text-align: center;
	font-size: 35px;
	box-shadow: 2px 2px 3px #999;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: ease all 0.3s;
}

.btn-whatsapp:hover {
	background-color: #128c7e;
	transform: scale(1.1);
}

.btn-whatsapp img {
	width: 35px;
	height: 35px;
}