/* ==========================================================================
   TuKit Solar — Calculadora de autoconsumo (página única)
   v3.1: interfaz fina y compacta. Blanco dominante, verde oscuro #051F03
   para jerarquía, fosfi #c2f32c solo como microacento.
   - Ninguna selección se rellena de oscuro: siempre borde + tinte suave.
   - Método de consumo como control segmentado sobre pista gris.
   - Estados hover/focus/visited definidos explícitamente (y con !important
     en color/fondo de botones) para que el tema no los pise.
   ========================================================================== */

.tk-calc {
	--tk-dark: #051F03;
	--tk-dark-2: #0e3a10;
	--tk-lime: #c2f32c;
	--tk-lime-ink: #1f3a04;       /* texto sobre fosfi */
	--tk-green: #1f7a34;          /* verde sólido para datos/iconos */
	--tk-tint: #e8f3d8;           /* fondo de opción seleccionada */
	--tk-track: #edf0e9;          /* pista del control segmentado */
	--tk-ink: #1a241d;
	--tk-muted: #68746a;
	--tk-borde: #e3e7df;
	--tk-bg: #f6f8f3;
	--tk-rojo: #c0392b;

	max-width: 880px;
	margin: clamp(24px, 5vw, 56px) auto;
	background: #fff;
	border-radius: 16px;
	border-top: 5px solid var(--tk-dark);   /* filo de marca */
	box-shadow: 0 14px 44px rgba(5, 31, 3, .09);
	color: var(--tk-ink);
	font-size: 14px;
	line-height: 1.55;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}
.tk-calc * { box-sizing: border-box; }
.tk-calc [hidden] { display: none !important; }
.tk-calc label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 12.5px; color: var(--tk-ink); }
.tk-calc label small { color: var(--tk-muted); font-weight: 500; }

/* Neutraliza estilos de botón del tema dentro de la calculadora */
.tk-calc button { -webkit-appearance: none; appearance: none; text-shadow: none; letter-spacing: normal; box-shadow: none; }
.tk-calc button:focus { outline: none; }
/* Radio uniforme y contenido en TODOS los controles y estados: el tema no
   debe convertirlos en píldoras al cambiar de estado */
.tk-calc .tk-tile, .tk-calc .tk-tile:hover, .tk-calc .tk-tile.is-active,
.tk-calc .tk-chip, .tk-calc .tk-chip:hover, .tk-calc .tk-chip.is-active,
.tk-calc .tk-size-btn, .tk-calc .tk-size-btn:hover, .tk-calc .tk-size-btn.active,
.tk-calc .tk-btn, .tk-calc .tk-btn:hover, .tk-calc .tk-btn:focus { border-radius: 9px !important; }
.tk-calc .tk-tiles-4 .tk-tile, .tk-calc .tk-tiles-4 .tk-tile:hover,
.tk-calc .tk-tiles-4 .tk-tile.is-active { border-radius: 8px !important; }
/* Blindaje del estado focus frente al tema (Astra pinta fondo/sombra propios
   en button:focus y, como el botón conserva el focus tras el clic, los estados
   seleccionado/deseleccionado se veían mal hasta hacer clic fuera).
   Selectores con :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) + !important: fondo, borde y sombra quedan fijados
   en cada estado y el tema no puede tocarlos. */
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile:focus, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip:focus,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-size-btn:focus, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn:focus { outline: none !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile:focus,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip:focus,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-size-btn:focus {
	background: #fff !important; color: var(--tk-ink) !important;
	border-color: var(--tk-borde) !important; box-shadow: none !important;
}
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile:hover:focus,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip:hover:focus,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-size-btn:hover:focus { border-color: #b3bfae !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile.is-active:focus,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip.is-active:focus,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-size-btn.active:focus {
	background: var(--tk-tint) !important;
	border-color: var(--tk-dark) !important; box-shadow: inset 0 0 0 1px var(--tk-dark) !important;
}
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip.is-active:focus { color: var(--tk-lime-ink) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tiles-4 .tk-tile:focus { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tiles-4 .tk-tile.is-active:focus { background: #fff !important; box-shadow: 0 1px 4px rgba(5, 31, 3, .14) !important; }
/* Blindaje de bordes en reposo y hover: Astra pinta border-color con su
   color de acento (fosfi) sobre los botones; aquí queda fijado el nuestro
   en todos los estados. */
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile { border-color: var(--tk-borde) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile:hover { border-color: #b3bfae !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile.is-active,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile.is-active:hover { border-color: var(--tk-dark) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tiles-4 .tk-tile,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tiles-4 .tk-tile:hover,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tiles-4 .tk-tile.is-active { border-color: transparent !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip { border-color: var(--tk-borde) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip:hover { border-color: #b3bfae !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip.is-active,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip.is-active:hover { border-color: var(--tk-dark) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-size-btn { border-color: var(--tk-borde) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-size-btn:hover { border-color: #b3bfae !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-size-btn.active { border-color: var(--tk-dark) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn-main, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn-secondary, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn-cart { border-color: var(--tk-dark) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn-outline { border-color: #cdd6cb !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn-outline:hover, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn-outline:focus { border-color: var(--tk-dark) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn-lime { border-color: var(--tk-lime) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-btn-ghost-line { border-color: transparent !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-kit-card.recommended .tk-btn-cart { border-color: var(--tk-lime) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-kit-card.recommended .tk-btn-outline { border-color: rgba(255, 255, 255, .4) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-kit-card.recommended .tk-btn-outline:hover { border-color: #fff !important; }
/* Inputs y selects: Astra cambia el borde de focus a su azul/acento */
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) input, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-select, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) textarea { border-color: var(--tk-borde) !important; }
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) input:focus, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-select:focus, :is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) textarea:focus {
	border-color: var(--tk-dark) !important;
	box-shadow: 0 0 0 3px rgba(5, 31, 3, .10) !important; outline: none !important;
}
/* Teclado (Tab): borde oscuro discreto como indicador */
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-tile:focus-visible,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-chip:focus-visible,
:is(#tk-calc,#tk-bateria,#tk-cargador,#tk-amortizacion) .tk-size-btn:focus-visible { border-color: var(--tk-dark) !important; }

/* Iconos SVG de línea (heredan currentColor) */
.tk-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 0; }
.tk-ico svg { width: 18px; height: 18px; display: block; }

/* Marca de selección: SVG real en el DOM (render idéntico en todo dispositivo).
   Oculta por defecto; visible solo cuando el control está .is-active */
.tk-sel {
	display: none; width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto;
	background: var(--tk-dark); color: var(--tk-lime);
	align-items: center; justify-content: center;
}
.tk-sel .tk-ico svg { width: 8px; height: 8px; stroke-width: 4.5; }
.tk-tile.is-active > .tk-sel, .tk-chip.is-active > .tk-sel { display: inline-flex; animation: tkPop .16s ease; }
@keyframes tkPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   CABECERA (hero) — blanca con filo verde arriba y chip de marca (sello),
   para no repetir la banda verde del menú del tema.
   ========================================================================== */
.tk-hero {
	position: relative; text-align: center; padding: 36px 26px 32px;
	background: #fff;
	border-bottom: 1px solid var(--tk-borde);
}
.tk-hero::after {
	content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
	width: 56px; height: 3px; border-radius: 3px; background: var(--tk-lime);
}
/* Chip de marca/categoría (sello lima) */
.tk-eyebrow {
	display: inline-flex; align-items: center; gap: 7px; margin-bottom: 15px;
	font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
	color: var(--tk-lime-ink); background: var(--tk-lime); padding: 5px 13px; border-radius: 50px;
}
.tk-logo {
	display: inline-block; font-size: 18px; font-weight: 800; letter-spacing: -.01em;
	color: var(--tk-ink) !important; margin-bottom: 14px; text-decoration: none;
}
.tk-logo span { color: var(--tk-green) !important; }
.tk-title { margin: 0 0 10px !important; color: var(--tk-ink) !important; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; font-size: clamp(23px, 3.4vw, 32px); }
.tk-title span { color: var(--tk-ink) !important; font-weight: 800; }
.tk-subtitle { max-width: 480px; margin: 0 auto !important; color: var(--tk-muted) !important; font-size: clamp(13.5px, 1.8vw, 14.5px); }
.tk-hero-points { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin-top: 18px; }
.tk-hero-points span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tk-muted); }
.tk-hero-points span::before { content: "✓"; color: var(--tk-dark); font-weight: 900; margin-right: 6px; }

/* ==========================================================================
   CUERPO + SECCIONES
   ========================================================================== */
.tk-body { background: var(--tk-bg); padding: clamp(16px, 3vw, 28px); }

.tk-card {
	background: #fff; border: 1px solid var(--tk-borde); border-radius: 12px;
	padding: clamp(18px, 2.5vw, 24px); margin-bottom: 12px;
	box-shadow: 0 1px 2px rgba(5, 31, 3, .03);
}
.tk-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid #f1f4ee; }
.tk-card-num {
	width: 26px; height: 26px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	border-radius: 8px; background: var(--tk-dark); color: var(--tk-lime); font-weight: 800; font-size: 12.5px;
}
.tk-card-head h3 { margin: 0 !important; font-size: 15.5px; color: var(--tk-ink) !important; font-weight: 800; letter-spacing: -.01em; }
.tk-card-head p { margin: 1px 0 0 !important; font-size: 12px; color: var(--tk-muted) !important; }

/* ---- Tiles base (selección = borde + tinte, nunca relleno oscuro) ---- */
.tk-tiles { display: grid; gap: 9px; }
.tk-tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tk-tiles-orient { grid-template-columns: repeat(3, 1fr); }
.tk-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
	padding: 12px 10px; border: 1px solid var(--tk-borde); border-radius: 11px;
	background: #fff !important; color: var(--tk-ink) !important;
	cursor: pointer; font-family: inherit; font-size: inherit; line-height: 1.4;
	transition: border-color .14s, background .14s, box-shadow .14s;
}
.tk-tile:hover { border-color: #b3bfae; }
.tk-tile > .tk-ico { color: var(--tk-green); }
.tk-tile b { font-size: 13px; font-weight: 700; color: inherit; }
.tk-tile small { font-size: 11px; color: var(--tk-muted); }
.tk-tile.is-active {
	background: var(--tk-tint) !important; color: var(--tk-ink) !important;
	border-color: var(--tk-dark); box-shadow: inset 0 0 0 1px var(--tk-dark);
}
.tk-tile.is-active b, .tk-tile.is-active small { color: var(--tk-lime-ink); }
/* En tiles grandes (perfil), la marca va en la esquina superior derecha */
.tk-tile:not(.tk-tile-sm) > .tk-sel { position: absolute; top: 6px; right: 6px; width: 15px; height: 15px; }

/* ---- Método de consumo: control segmentado sobre pista gris ---- */
.tk-tiles-4 {
	display: flex; gap: 4px; background: var(--tk-track); border-radius: 12px; padding: 4px;
}
.tk-tiles-4 .tk-tile {
	flex: 1 1 0; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 0;
	align-items: center; text-align: left; padding: 8px 11px;
	background: transparent !important; border: none; border-radius: 9px; box-shadow: none;
}
.tk-tiles-4 .tk-tile > .tk-ico { grid-row: 1 / span 2; color: #8a967f; }
.tk-tiles-4 .tk-tile b { font-size: 12.5px; color: #55615a; }
.tk-tiles-4 .tk-tile small { font-size: 10.5px; }
.tk-tiles-4 .tk-tile:hover { background: rgba(255, 255, 255, .55) !important; }
.tk-tiles-4 .tk-tile.is-active {
	background: #fff !important; border: none; box-shadow: 0 1px 4px rgba(5, 31, 3, .14);
}
.tk-tiles-4 .tk-tile.is-active > .tk-ico { color: var(--tk-green); }
.tk-tiles-4 .tk-tile.is-active b { color: var(--tk-ink); }
.tk-tiles-4 .tk-tile > .tk-sel { display: none !important; }

/* ---- Perfil de uso: tarjeta horizontal con icono en chip ---- */
.tk-tiles-3 .tk-tile {
	display: grid; grid-template-columns: auto 1fr; column-gap: 11px; row-gap: 0;
	align-items: center; text-align: left; padding: 11px 13px;
}
.tk-tiles-3 .tk-tile > .tk-ico {
	grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 9px;
	background: var(--tk-tint); color: var(--tk-green);
}
.tk-tiles-3 .tk-tile.is-active > .tk-ico { background: var(--tk-dark); color: var(--tk-lime); }

/* ---- Orientación: pastillas finas ---- */
.tk-tile-sm {
	display: flex; flex-direction: row; justify-content: center;
	padding: 8px 9px; font-size: 12.5px; font-weight: 600; gap: 7px; white-space: nowrap;
}
.tk-tile-sm > .tk-ico { color: var(--tk-green); }
.tk-tile-sm > .tk-ico svg { width: 13px; height: 13px; stroke-width: 2.3; }
/* Al seleccionar, el check ocupa el hueco del icono: el botón no cambia de tamaño */
.tk-tile.is-active.tk-tile-sm > .tk-ico { display: none; }

/* Pregunta monofásica / trifásica */
.tk-tiles-red { grid-template-columns: repeat(3, minmax(120px, 1fr)); max-width: 520px; }

/* Inputs */
.tk-panel { margin-top: 14px; }
.tk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-grid-roof { grid-template-columns: 1fr 1.35fr; gap: 22px; align-items: start; }
.tk-meses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.tk-meses-grid label { margin: 0 0 3px; font-size: 11px; color: var(--tk-muted); }
.tk-hint { font-size: 11.5px; color: var(--tk-muted); background: var(--tk-bg); padding: 9px 11px; border-radius: 8px; margin: 12px 0 0; border-left: 2px solid var(--tk-lime); }

.tk-select,
.tk-calc input[type=number],
.tk-calc input[type=text],
.tk-calc input[type=tel],
.tk-calc input[type=email],
.tk-calc textarea {
	display: block; width: 100%; height: auto; min-height: 0; padding: 10px 13px; margin: 0;
	border: 1px solid var(--tk-borde); border-radius: 8px;
	font-size: 14px; line-height: 1.45; font-family: inherit; background-color: #fff; color: var(--tk-ink);
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; vertical-align: middle;
}
.tk-calc .tk-select {
	line-height: 1.45; padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23051F03' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 13px center; background-size: 12px;
}
.tk-select:focus, .tk-calc input:focus, .tk-calc textarea:focus {
	outline: none; border-color: var(--tk-dark); box-shadow: 0 0 0 3px rgba(5, 31, 3, .10);
}
.tk-input-group { display: flex; }
.tk-input-group input { border-radius: 8px 0 0 8px; }
.tk-input-group span {
	display: flex; align-items: center; padding: 0 14px; background: #eef1ea; color: #49544b;
	border: 1px solid var(--tk-borde); border-left: 0; border-radius: 0 8px 8px 0;
	font-weight: 600; font-size: 12.5px; white-space: nowrap;
}

/* Chips (toggle) */
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--tk-borde);
	cursor: pointer; font-weight: 600;
	background: #fff !important; color: var(--tk-ink) !important;
	font-family: inherit; font-size: 12.5px; transition: all .15s;
}
.tk-chip:hover { border-color: #b3bfae; }
.tk-chip.is-active {
	background: var(--tk-tint) !important; color: var(--tk-lime-ink) !important;
	border-color: var(--tk-dark); box-shadow: inset 0 0 0 1px var(--tk-dark);
}
.tk-chip .tk-ico { color: var(--tk-green); }
.tk-chip .tk-ico svg { width: 13px; height: 13px; }
/* Al seleccionar, el check ocupa el hueco del icono: el chip no cambia de tamaño */
.tk-chip.is-active > .tk-ico { display: none; }

/* Botones (color y fondo con !important: el tema no debe pisarlos) */
.tk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
	cursor: pointer; font-weight: 700; padding: 10px 18px; font-size: 13.5px; text-decoration: none !important; line-height: 1.2; border-radius: 9px;
	font-family: inherit; text-transform: none; transition: transform .12s, box-shadow .15s, filter .15s, background .15s, color .15s, border-color .15s;
}
.tk-btn:active { transform: translateY(1px); }
.tk-btn-main, .tk-btn-main:visited { background: var(--tk-dark) !important; color: #fff !important; border-color: var(--tk-dark); box-shadow: 0 5px 14px rgba(5, 31, 3, .14); }
.tk-btn-main:hover, .tk-btn-main:focus { background: var(--tk-dark-2) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(5, 31, 3, .20); transform: translateY(-1px); }
.tk-btn-calc { width: 100%; padding: 13px; font-size: 14.5px; margin-top: 4px; }
.tk-btn-calc::after { content: "→"; font-weight: 700; color: var(--tk-lime); }
.tk-btn-secondary, .tk-btn-secondary:visited { background: var(--tk-dark) !important; color: #fff !important; border-color: var(--tk-dark); }
.tk-btn-secondary:hover, .tk-btn-secondary:focus { background: var(--tk-dark-2) !important; color: #fff !important; }
.tk-btn-outline, .tk-btn-outline:visited { background: #fff !important; color: var(--tk-dark) !important; border-color: #cdd6cb; }
.tk-btn-outline:hover, .tk-btn-outline:focus { background: #fff !important; color: var(--tk-dark) !important; border-color: var(--tk-dark); }
.tk-btn-cart, .tk-btn-cart:visited { background: var(--tk-dark) !important; color: #fff !important; border-color: var(--tk-dark); }
.tk-btn-cart:hover, .tk-btn-cart:focus { background: var(--tk-dark-2) !important; color: #fff !important; }
.tk-btn-ghost-line, .tk-btn-ghost-line:visited { background: transparent !important; color: var(--tk-muted) !important; border-color: transparent; font-weight: 600; }
.tk-btn-ghost-line:hover, .tk-btn-ghost-line:focus { background: transparent !important; color: var(--tk-dark) !important; text-decoration: underline !important; }
.tk-btn-lime, .tk-btn-lime:visited { background: var(--tk-lime) !important; color: var(--tk-lime-ink) !important; border-color: var(--tk-lime); font-weight: 800; }
.tk-btn-lime:hover, .tk-btn-lime:focus { background: var(--tk-lime) !important; color: var(--tk-lime-ink) !important; filter: brightness(1.04); }

.tk-error { margin-top: 14px; background: #fdecea; color: var(--tk-rojo); padding: 11px 13px; border-radius: 9px; font-weight: 600; font-size: 13px; }

/* ==========================================================================
   RESULTADOS
   ========================================================================== */
#tk-resultados, #tkb-resultados, #tkc-resultados, #tka-resultados { margin-top: 26px; animation: tkFade .45s ease; }
@keyframes tkFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Aviso de estudio desactualizado (lo inyecta el JS al cambiar el formulario) */
.tk-stale {
	display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap;
	background: #fff7e0; border: 1px solid #efe0ac; color: #7a5c00;
	font-weight: 600; font-size: 12.5px; padding: 9px 14px; border-radius: 10px; margin-bottom: 16px;
}
.tk-stale-btn {
	background: var(--tk-dark) !important; color: #fff !important; border: none; border-radius: 8px !important;
	padding: 7px 14px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 12px;
}
.tk-stale-btn:hover { background: var(--tk-dark-2) !important; }

.tk-res-hero { text-align: center; margin-bottom: 22px; }
.tk-res-eyebrow { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--tk-green); margin-bottom: 6px; }
.tk-res-hero h2 { color: var(--tk-ink) !important; margin: 0 0 4px !important; font-size: clamp(20px, 2.8vw, 25px); font-weight: 800; letter-spacing: -.02em; }
.tk-res-hero p { color: var(--tk-muted) !important; margin: 0 !important; font-size: 13.5px; }

/* Métricas: tarjetas blancas; solo la destacada va en oscuro */
.tk-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.tk-metric { background: #fff; border: 1px solid var(--tk-borde); border-radius: 11px; padding: 16px 10px 13px; text-align: center; }
.tk-metric-icon { display: flex; justify-content: center; color: var(--tk-green); }
.tk-metric-icon .tk-ico svg { width: 18px; height: 18px; stroke-width: 1.7; }
.tk-metric-value { font-size: 19px; font-weight: 800; margin: 6px 0 2px; color: var(--tk-ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tk-metric-label { font-size: 10px; color: var(--tk-muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tk-metric.highlight { background: var(--tk-dark); border-color: var(--tk-dark); }
.tk-metric.highlight .tk-metric-icon { color: var(--tk-lime); }
.tk-metric.highlight .tk-metric-value { color: var(--tk-lime); }
.tk-metric.highlight .tk-metric-label { color: rgba(255, 255, 255, .60); }

/* Gráfico (claro) */
.tk-chart-card { background: #fff; border: 1px solid var(--tk-borde); border-radius: 12px; padding: 18px 18px 12px; margin-bottom: 24px; }
.tk-chart-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.tk-chart-title { color: var(--tk-ink); font-weight: 700; font-size: 13.5px; }
.tk-chart-legend { display: flex; gap: 15px; }
.tk-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #5a675a; }
.tk-leg::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.tk-leg-cons::before { background: #d4dccf; }
.tk-leg-prod::before { background: linear-gradient(180deg, #2f9e4a, #1c6e2f); }
.tk-chart { background: transparent; }
.tk-chart-note { margin: 9px 0 0 !important; font-size: 12px; color: var(--tk-muted) !important; text-align: center; border-top: 1px solid var(--tk-bg); padding-top: 9px; }
.tk-chart-note:empty { display: none; }

.tk-size { margin-bottom: 24px; }
.tk-size-label { font-weight: 700; margin-bottom: 9px; color: var(--tk-ink); font-size: 13px; }
.tk-size-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-size-btn {
	display: flex; flex-direction: column; align-items: center; padding: 6px 8px; border: 1px solid var(--tk-borde);
	border-radius: 9px; background: #fff !important; color: var(--tk-ink) !important;
	cursor: pointer; font-weight: 800; min-width: 46px; font-size: 12.5px; font-family: inherit; transition: all .12s;
	font-variant-numeric: tabular-nums;
}
.tk-size-btn span { font-size: 9px; font-weight: 600; color: var(--tk-muted); margin-top: 1px; }
.tk-size-btn:hover { border-color: #b3bfae; }
.tk-size-btn.active {
	background: var(--tk-tint) !important; color: var(--tk-ink) !important;
	border-color: var(--tk-dark); box-shadow: inset 0 0 0 1px var(--tk-dark);
}
.tk-size-btn.active span { color: var(--tk-green); }

.tk-section-title { font-size: 16.5px; font-weight: 800; text-align: center; margin: 8px 0 18px; color: var(--tk-ink); letter-spacing: -.01em; }

/* Tarjetas de kit */
.tk-kits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.tk-kit-card { border: 1px solid var(--tk-borde); border-radius: 12px; padding: 20px 16px; position: relative; display: flex; flex-direction: column; background: #fff; transition: transform .15s, box-shadow .15s; }
.tk-kit-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(5, 31, 3, .08); }
.tk-kit-card.recommended { background: var(--tk-dark); color: #fff; border-color: var(--tk-dark); box-shadow: 0 12px 30px rgba(5, 31, 3, .20); }
.tk-kit-card.recommended::after { content: "RECOMENDADO"; position: absolute; top: 13px; right: 13px; background: var(--tk-lime); color: var(--tk-lime-ink); font-size: 8.5px; font-weight: 800; letter-spacing: .05em; padding: 4px 7px; border-radius: 5px; }
.tk-badge { display: inline-block; align-self: flex-start; font-size: 9.5px; font-weight: 800; padding: 4px 9px; border-radius: 5px; color: #fff; margin-bottom: 12px; position: relative; cursor: help; letter-spacing: .04em; }
.tk-badge-ahorro { background: #6c7a66; }
.tk-badge-equilibrio { background: var(--tk-green); }
.tk-badge-premium { background: #2e4d2f; }
.tk-tooltip { display: none; position: absolute; top: 130%; left: 0; z-index: 5; width: 230px; background: #0a1f08; color: #fff; font-weight: 400; font-size: 11.5px; letter-spacing: 0; padding: 10px 12px; border-radius: 9px; line-height: 1.5; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.tk-badge:hover .tk-tooltip, .tk-badge:focus .tk-tooltip { display: block; }
.tk-kit-marca { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.tk-kit-subt { color: var(--tk-muted); font-size: 12px; margin-bottom: 9px; }
.tk-kit-card.recommended .tk-kit-subt { color: rgba(255, 255, 255, .65); }
.tk-kit-precio { font-size: 24px; font-weight: 800; color: var(--tk-ink); margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tk-kit-card.recommended .tk-kit-precio { color: var(--tk-lime); }
.tk-kit-precio-nota { font-size: 10px; color: #9aa896; margin-bottom: 10px; }
.tk-kit-card.recommended .tk-kit-precio-nota { color: rgba(255, 255, 255, .5); }
.tk-kit-amort { display: inline-block; font-size: 11.5px; font-weight: 700; margin-bottom: 13px; color: var(--tk-green); background: #eef6ea; padding: 4px 9px; border-radius: 6px; }
.tk-kit-card.recommended .tk-kit-amort { background: rgba(194, 243, 44, .14); color: var(--tk-lime); }
.tk-kit-bullets { list-style: none; padding: 0; margin: 0 0 16px; font-size: 12.5px; }
.tk-kit-bullets li { padding: 3.5px 0 3.5px 20px; position: relative; }
.tk-kit-bullets li::before { content: "✓"; position: absolute; left: 0; top: 4px; color: var(--tk-green); font-weight: 900; font-size: 11.5px; }
.tk-kit-card.recommended .tk-kit-bullets li::before { color: var(--tk-lime); }
.tk-kit-actions { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.tk-kit-actions .tk-btn { width: 100%; font-size: 13px; padding: 10px; }
.tk-kit-card.recommended .tk-btn-cart, .tk-kit-card.recommended .tk-btn-cart:visited { background: var(--tk-lime) !important; color: var(--tk-lime-ink) !important; border-color: var(--tk-lime); }
.tk-kit-card.recommended .tk-btn-cart:hover, .tk-kit-card.recommended .tk-btn-cart:focus { background: var(--tk-lime) !important; color: var(--tk-lime-ink) !important; filter: brightness(1.04); }
.tk-kit-card.recommended .tk-btn-outline, .tk-kit-card.recommended .tk-btn-outline:visited { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .4); }
.tk-kit-card.recommended .tk-btn-outline:hover, .tk-kit-card.recommended .tk-btn-outline:focus { background: transparent !important; color: #fff !important; border-color: #fff; }
.tk-kit-card.recommended .tk-btn-ghost-line, .tk-kit-card.recommended .tk-btn-ghost-line:visited { color: rgba(255, 255, 255, .7) !important; }
.tk-kit-card.recommended .tk-btn-ghost-line:hover, .tk-kit-card.recommended .tk-btn-ghost-line:focus { color: #fff !important; }
.tk-empty { grid-column: 1/-1; text-align: center; color: var(--tk-muted); background: #fff; border: 1px solid var(--tk-borde); padding: 26px; border-radius: 12px; font-weight: 600; }

.tk-reassurance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 24px 0; text-align: center; font-size: 12px; font-weight: 600; color: var(--tk-ink); }
.tk-reassurance div { background: #fff; padding: 13px 9px 11px; border-radius: 11px; border: 1px solid var(--tk-borde); }
.tk-reassurance .tk-ico { display: flex; justify-content: center; margin: 0 auto 6px; color: var(--tk-green); }
.tk-reassurance .tk-ico svg { width: 17px; height: 17px; }

/* Sección WhatsApp */
.tk-wa { background: linear-gradient(165deg, #0d3512, var(--tk-dark)); color: #fff; padding: clamp(28px, 4vw, 40px) clamp(18px, 3.5vw, 30px); border-radius: 14px; text-align: center; }
.tk-wa h3 { margin: 0 0 6px !important; font-size: clamp(18px, 2.5vw, 21px); font-weight: 800; color: #fff !important; letter-spacing: -.01em; }
.tk-wa h3 span { color: var(--tk-lime) !important; }
.tk-wa-sub { max-width: 460px; margin: 0 auto 24px !important; color: rgba(255, 255, 255, .72) !important; font-size: 13.5px; }
.tk-wa-card { max-width: 480px; margin: 0 auto; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: clamp(24px, 3vw, 30px) 24px; }
.tk-wa-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tk-lime); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.tk-wa-icon svg { width: 34px; height: 34px; }
.tk-wa-phone { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.tk-wa-note { color: rgba(255, 255, 255, .68) !important; margin: 6px 0 18px !important; font-size: 13px; }
.tk-wa-btn { font-size: 14px; padding: 12px 24px; }
.tk-wa-call, .tk-wa-call:visited { display: inline-block; margin-top: 14px; color: rgba(255, 255, 255, .85) !important; font-weight: 600; text-decoration: none; font-size: 13px; }
.tk-wa-call:hover { text-decoration: underline; color: #fff !important; }
.tk-wa-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 22px; }
.tk-wa-chips span { border: 1px solid rgba(255, 255, 255, .20); color: rgba(255, 255, 255, .82); padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.tk-modal { position: fixed; inset: 0; background: rgba(5, 31, 3, .6); display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; z-index: 99999; overflow-y: auto; backdrop-filter: blur(3px); }
.tk-modal-box { background: #fff; border-radius: 15px; padding: 28px; max-width: 540px; width: 100%; position: relative; animation: tkFade .3s ease; }
.tk-modal-box h3 { color: var(--tk-ink) !important; margin: 0 0 4px !important; font-size: 19px; }
.tk-modal-box > p { color: var(--tk-muted) !important; margin: 0 0 15px !important; }
.tk-modal-close { position: absolute; top: 11px; right: 15px; background: none; border: none; font-size: 27px; cursor: pointer; color: var(--tk-muted); line-height: 1; }
.tk-modal-close:hover { color: var(--tk-dark); }
.tk-check { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; font-size: 12px; margin-top: 15px; }
.tk-check input { width: auto; accent-color: var(--tk-dark); }
.tk-form-msg { padding: 11px; border-radius: 9px; margin: 13px 0; font-weight: 700; }
.tk-form-msg.ok { background: #eef6ea; color: var(--tk-green); }
.tk-form-msg.err { background: #fdecea; color: var(--tk-rojo); }

/* ==========================================================================
   PÁGINA "HERRAMIENTAS" (hub) — rejilla de tarjetas
   ========================================================================== */
.tk-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.tk-tool-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--tk-borde); border-radius: 14px;
	padding: 26px 22px 22px; text-decoration: none !important; color: var(--tk-ink) !important;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.tk-tool-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(5, 31, 3, .10); border-color: #cdd6cb; }
a.tk-tool-card:focus-visible { outline: none; border-color: var(--tk-dark); box-shadow: 0 0 0 3px rgba(5, 31, 3, .12); }

.tk-tool-icon {
	width: 48px; height: 48px; border-radius: 13px; flex: 0 0 auto;
	background: var(--tk-tint); color: var(--tk-green);
	display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.tk-tool-icon .tk-ico svg { width: 25px; height: 25px; }
.tk-tool-card h3 { margin: 0 0 7px !important; font-size: 17px; font-weight: 800; color: var(--tk-ink) !important; letter-spacing: -.01em; line-height: 1.25; }
.tk-tool-desc { margin: 0 0 18px !important; font-size: 13px; color: var(--tk-muted) !important; flex: 1 1 auto; line-height: 1.5; }

.tk-tool-cta {
	display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
	font-size: 13.5px; font-weight: 800; color: var(--tk-dark);
	background: var(--tk-lime); padding: 9px 16px; border-radius: 9px;
}
.tk-tool-cta .tk-ico svg { width: 16px; height: 16px; stroke-width: 2.2; }
a.tk-tool-card:hover .tk-tool-cta { filter: brightness(1.04); }

/* Tarjeta "próximamente": atenuada, sin enlace */
.tk-tool-card.is-soon { background: var(--tk-bg); border-style: dashed; }
.tk-tool-card.is-soon .tk-tool-icon { background: #e7ebe2; color: #97a394; }
.tk-tool-card.is-soon h3 { color: #5d685e !important; }
.tk-tool-badge {
	position: absolute; top: 16px; right: 16px;
	font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
	color: #6c7a66; background: #fff; border: 1px solid var(--tk-borde);
	padding: 4px 9px; border-radius: 50px;
}
.tk-tool-cta-soon { background: transparent; color: #97a394; font-weight: 700; padding: 0; font-size: 12.5px; }

.tk-tools-foot { text-align: center; margin: 22px 0 2px !important; font-size: 13px; color: var(--tk-muted) !important; }
.tk-tools-foot a { color: var(--tk-green) !important; font-weight: 700; text-decoration: none; }
.tk-tools-foot a:hover { text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 760px) {
	.tk-calc { border-radius: 13px; }
	.tk-tiles-4 { display: grid; grid-template-columns: 1fr 1fr; }
	.tk-grid-roof { grid-template-columns: 1fr; gap: 8px; }
	.tk-kits-grid { grid-template-columns: 1fr; }
	.tk-metrics { grid-template-columns: 1fr 1fr; }
	.tk-reassurance { grid-template-columns: 1fr 1fr; }
	.tk-meses-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
	.tk-tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
	.tk-tiles-3, .tk-tiles-orient { grid-template-columns: 1fr; }
	.tk-tiles-red { grid-template-columns: 1fr; }
	.tk-grid-2 { grid-template-columns: 1fr; }
}
