/* =====================================================================
   Dekla Web · Dekla Electric
   Para cambiar el rojo de la marca, edita --d-red y --d-red-dark.
   ===================================================================== */

html.dk-html { scroll-behavior: smooth; }
html.dk-snap { scroll-snap-type: y proximity; }
html.dk-lock { overflow: hidden; }
body.dekla-web { margin: 0 !important; padding: 0 !important; background: #fff; }

.dk {
  --d-red: #D7141A;        /* rojo de la marca */
  --d-red-dark: #B30F14;   /* rojo al pasar el mouse */
  --d-ink: #16181D;        /* texto principal */
  --d-text: #3A3E45;       /* texto secundario */
  --d-muted: #6C717A;
  --d-claro: #F4F4F5;
  --d-card: #F4F5F6;
  --d-line: #E5E6E8;
  --d-ease: cubic-bezier(.2,.7,.2,1);

  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--d-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.dk, .dk * { box-sizing: border-box; }
.dk ul, .dk ol { list-style: none; margin: 0; padding: 0; }
.dk li { margin: 0; padding: 0; }
.dk p { margin: 0; }
.dk img { max-width: 100%; height: auto; border: 0; }
.dk a { text-decoration: none; }
.dk .dk-wrap { width: 100%; max-width: 1160px; margin: 0 auto; }

/* ---------- Cabecera ---------- */
.dk .dk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 68px;
  padding: 0 clamp(16px, 3.2vw, 48px);
  color: var(--d-ink);
  background: transparent;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.admin-bar .dk .dk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dk .dk-header { top: 46px; } }

.dk .dk-header.is-solid {
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--d-line);
}
.dk .dk-header[data-tone="oscuro"] { color: #fff; }

.dk .dk-logo { display: inline-flex; align-items: center; justify-self: start; color: var(--d-ink); }
.dk .dk-header .dk-logo { color: inherit; }
.dk .dk-logo-img { display: block; width: auto; height: 40px; max-width: 200px; object-fit: contain; transition: filter .3s ease; }
.dk .dk-header[data-tone="oscuro"] .dk-logo-img { filter: brightness(0) invert(1); }
.dk .dk-logo-text { font-size: 17px; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.dk .dk-logo-text b { font-weight: 700; color: var(--d-red); }
.dk .dk-header[data-tone="oscuro"] .dk-logo-text b { color: #fff; }

.dk .dk-nav { justify-self: center; }
.dk .dk-header .dk-menu { display: flex; align-items: center; gap: 2px; }
.dk .dk-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }

.dk .dk-header .dk-menu a,
.dk .dk-link {
  display: block;
  padding: 7px 13px;
  border-radius: 6px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .25s ease;
}
.dk .dk-header .dk-menu a:hover,
.dk .dk-link:hover { background: rgba(0,0,0,.06); color: inherit; }
.dk .dk-header .dk-menu a[aria-current="page"],
.dk .dk-link[aria-current="page"] { background: rgba(0,0,0,.06); }
.dk .dk-header[data-tone="oscuro"] .dk-menu a:hover,
.dk .dk-header[data-tone="oscuro"] .dk-link:hover { background: rgba(255,255,255,.14); }

.dk .dk-cta-top {
  display: block;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--d-red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .25s ease;
}
.dk .dk-cta-top:hover { background: var(--d-red-dark); color: #fff; }

.dk .dk-burger,
.dk .dk-close {
  appearance: none;
  -webkit-appearance: none;
  display: none;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: rgba(0,0,0,.06);
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.dk .dk-burger:hover, .dk .dk-burger:focus,
.dk .dk-close:hover, .dk .dk-close:focus { background: rgba(0,0,0,.1); color: inherit; }
.dk .dk-header[data-tone="oscuro"] .dk-burger { background: rgba(255,255,255,.16); }

/* Menú a pantalla completa (celular y tablet) */
.dk .dk-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 14px 24px 32px;
  background: #fff;
  color: var(--d-ink);
  overflow-y: auto;
}
.dk .dk-panel[hidden] { display: none; }
.dk .dk-panel-top { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.dk .dk-panel .dk-close { display: block; }
.dk .dk-panel .dk-menu a {
  display: block;
  padding: 14px 12px;
  border-radius: 8px;
  color: var(--d-ink);
  font-size: 18px;
  font-weight: 500;
}
.dk .dk-panel .dk-menu a:hover { background: var(--d-card); }
.dk .dk-panel .dk-btn { width: 100%; margin-top: 20px; }

/* ---------- Tipografía común ---------- */
.dk .dk-h {
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: none;
}
.dk .dk-h--left { text-align: left; }
.dk .dk-h2 {
  margin: 0 0 clamp(24px, 4vh, 40px);
  padding: 0;
  color: var(--d-ink);
  font-family: inherit;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  text-transform: none;
}
.dk .dk-h3 {
  margin: 0 0 6px;
  padding: 0;
  color: var(--d-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.dk .dk-lead {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--d-text);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
}

/* ---------- Botones ---------- */
.dk .dk-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
}
.dk .dk-cta--left { justify-content: flex-start; margin-top: 28px; }
.dk .dk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 44px;
  padding: 11px 24px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color .25s ease, color .25s ease, transform .25s var(--d-ease);
}
.dk .dk-cta--left .dk-btn { min-width: 200px; }
.dk .dk-btn:active { transform: scale(.985); }
.dk .dk-btn--1 { background: var(--d-red); color: #fff; }
.dk .dk-btn--1:hover { background: var(--d-red-dark); color: #fff; }
.dk .dk-btn--2 { background: #FFFFFF; color: var(--d-ink); }
.dk .dk-btn--2:hover { background: #E8E9EB; color: var(--d-ink); }
.dk .dk-sec--blanco .dk-btn--2 { background: #ECEDEF; }
.dk .dk-sec--blanco .dk-btn--2:hover { background: #DFE0E3; }
.dk .dk-sec--oscuro .dk-btn--2 {
  background: rgba(255,255,255,.18);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dk .dk-sec--oscuro .dk-btn--2:hover { background: rgba(255,255,255,.28); color: #fff; }
.dk .dk-btn--blanco { background: #fff; color: var(--d-red-dark); }
.dk .dk-btn--blanco:hover { background: #FBE9EA; color: var(--d-red-dark); }
.dk .dk-btn--linea { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.dk .dk-btn--linea:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Inicio: secciones a pantalla completa ---------- */
.dk .dk-sec {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(100px, 15vh, 150px) 24px clamp(40px, 8vh, 84px);
  text-align: center;
  overflow: hidden;
  scroll-snap-align: start;
}
.dk .dk-sec--claro { background: var(--d-claro); }
.dk .dk-sec--blanco { background: #fff; }
.dk .dk-sec--oscuro { background: #14161A; color: #fff; }

.dk .dk-top { position: relative; z-index: 1; max-width: 900px; }
.dk .dk-sub {
  margin-top: 10px;
  color: var(--d-text);
  font-size: clamp(14px, 1.3vw, 17px);
}
.dk .dk-sec--oscuro .dk-sub { color: rgba(255,255,255,.88); }

.dk .dk-media {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vh, 32px) 0;
}
.dk .dk-media img {
  display: block;
  width: auto;
  max-width: min(92vw, 1040px);
  max-height: 54vh;
  max-height: 54svh;
  object-fit: contain;
}
.dk .dk-sec--claro .dk-media img,
.dk .dk-sec--blanco .dk-media img,
.dk .dk-hero-media img { mix-blend-mode: multiply; }
.dk .dk-ph { display: block; width: auto; height: min(46vh, 420px); }

.dk .dk-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.dk .dk-sec--full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.05) 36%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.52) 100%);
  pointer-events: none;
}

.dk .dk-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 1;
  display: block;
  margin-left: -13px;
  line-height: 0;
  opacity: .55;
  animation: dk-hint 2.2s ease-in-out infinite;
}
@keyframes dk-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Entrada suave de cada sección */
.dk.dk-js .dk-sec .dk-top,
.dk.dk-js .dk-sec .dk-media,
.dk.dk-js .dk-sec .dk-cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .9s var(--d-ease);
}
.dk.dk-js .dk-sec .dk-media { transition-delay: .12s; }
.dk.dk-js .dk-sec .dk-cta { transition-delay: .24s; }
.dk.dk-js .dk-sec.is-in .dk-top,
.dk.dk-js .dk-sec.is-in .dk-media,
.dk.dk-js .dk-sec.is-in .dk-cta { opacity: 1; transform: none; }
.dk.dk-js .dk-sec:first-child .dk-top,
.dk.dk-js .dk-sec:first-child .dk-media,
.dk.dk-js .dk-sec:first-child .dk-cta {
  opacity: 1;
  transform: none;
  transition: none;
  animation: dk-in .9s var(--d-ease) both;
}
.dk.dk-js .dk-sec:first-child .dk-media { animation-delay: .12s; }
.dk.dk-js .dk-sec:first-child .dk-cta { animation-delay: .24s; }
@keyframes dk-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.dk .dk-end { scroll-snap-align: start; }

/* ---------- Subpáginas ---------- */
.dk .dk-hero {
  padding: clamp(120px, 18vh, 170px) 24px clamp(48px, 8vh, 88px);
  background: var(--d-claro);
}
.dk .dk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.dk .dk-hero-media { display: grid; place-items: center; }
.dk .dk-hero-media img { display: block; max-height: 460px; width: auto; object-fit: contain; }
.dk .dk-hero-media .dk-ph { height: min(52vh, 400px); }
.dk .dk-hero--texto { padding-bottom: clamp(40px, 7vh, 72px); }

.dk .dk-block { padding: clamp(56px, 9vh, 104px) 24px; background: #fff; }
.dk .dk-block--claro { background: var(--d-claro); }
.dk .dk-block--marcas { padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--d-line); }

.dk .dk-marcas-h { font-size: 13px; font-weight: 600; color: var(--d-muted); }
.dk .dk-marcas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dk .dk-marcas li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--d-card);
  font-size: 14px;
  font-weight: 600;
}

.dk .dk-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px) clamp(24px, 4vw, 56px);
}
.dk .dk-feats li { padding-top: 18px; border-top: 2px solid var(--d-red); }
.dk .dk-feats p { color: var(--d-text); }

.dk .dk-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dk .dk-steps li {
  padding: 24px 22px 26px;
  border-radius: 12px;
  background: #fff;
}
.dk .dk-steps p { color: var(--d-text); font-size: 14.5px; }
.dk .dk-step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--d-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dk .dk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.dk .dk-cards a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 170px;
  padding: 24px;
  border-radius: 12px;
  background: var(--d-card);
  color: var(--d-ink);
  transition: background-color .25s ease;
}
.dk .dk-cards a:hover { background: #E9EAEC; color: var(--d-ink); }
.dk .dk-card-name { font-size: 18px; font-weight: 600; line-height: 1.25; }
.dk .dk-card-text { color: var(--d-text); font-size: 14.5px; }
.dk .dk-card-more { margin-top: auto; padding-top: 14px; color: var(--d-red); font-size: 14px; font-weight: 600; }

.dk .dk-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.dk .dk-contact li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--d-card);
  font-size: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.dk .dk-contact a { color: var(--d-ink); }
.dk .dk-contact a:hover { color: var(--d-red); }
.dk .dk-contact-k { color: var(--d-muted); font-size: 13px; font-weight: 600; }

/* ---------- Banda roja ---------- */
.dk .dk-band { padding: clamp(48px, 8vh, 84px) 24px; background: var(--d-red); color: #fff; }
.dk .dk-band-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.dk .dk-band-h {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-transform: none;
}
.dk .dk-band p { margin-top: 10px; max-width: 48ch; color: rgba(255,255,255,.92); font-size: 16px; }
.dk .dk-band-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dk .dk-band .dk-btn { min-width: 200px; }

/* ---------- Pie ---------- */
.dk .dk-footer { padding: clamp(48px, 7vh, 72px) 24px 28px; background: #fff; color: var(--d-text); font-size: 14px; }
.dk .dk-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.dk .dk-footer-text { margin-top: 14px; max-width: 36ch; }
.dk .dk-footer-h { margin-bottom: 12px; color: var(--d-ink); font-size: 14px; font-weight: 600; }
.dk .dk-footer li { padding: 4px 0; overflow-wrap: anywhere; }
.dk .dk-footer a { color: var(--d-text); }
.dk .dk-footer a:hover { color: var(--d-red); }
.dk .dk-footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--d-line);
  color: var(--d-muted);
  font-size: 12.5px;
}

/* ---------- Teclado ---------- */
.dk a:focus-visible,
.dk button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------- Tablet y celular ---------- */
@media (max-width: 1100px) {
  .dk .dk-header { grid-template-columns: 1fr auto; }
  .dk .dk-nav,
  .dk .dk-link { display: none; }
  .dk .dk-burger { display: block; }
}
@media (max-width: 900px) {
  .dk .dk-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .dk .dk-hero-media { order: -1; }
  .dk .dk-hero-media .dk-ph { height: 220px; }
  .dk .dk-hero-media img { max-height: 280px; }
  .dk .dk-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk .dk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk .dk-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dk .dk-header { height: 58px; }
  .dk .dk-logo-img { height: 32px; }
  .dk .dk-logo-text { font-size: 15px; }
  .dk .dk-sec { padding-left: 20px; padding-right: 20px; }
  .dk .dk-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: 10px; }
  .dk .dk-cta--left { max-width: none; }
  .dk .dk-btn,
  .dk .dk-cta--left .dk-btn,
  .dk .dk-band .dk-btn { min-width: 0; width: 100%; }
  .dk .dk-band-cta { width: 100%; }
  .dk .dk-hint { display: none; }
  .dk .dk-feats,
  .dk .dk-steps,
  .dk .dk-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html.dk-html { scroll-behavior: auto; }
  .dk *, .dk *::before, .dk *::after { animation: none !important; transition: none !important; }
  .dk.dk-js .dk-sec .dk-top,
  .dk.dk-js .dk-sec .dk-media,
  .dk.dk-js .dk-sec .dk-cta { opacity: 1; transform: none; }
}
