/* Wally Herramientas — estilos aislados con prefijo .wt-
   Cambia los colores de marca aquí: */
.wt-wrap {
	--wt-accent: #e8483b;      /* rojo Wally */
	--wt-accent-2: #ffc93c;    /* amarillo */
	--wt-ink: #1d1d1f;
	--wt-muted: #5f6368;
	--wt-bg: #ffffff;
	--wt-soft: #fff6ec;
	--wt-line: #ece4da;
	--wt-radius: 16px;
	--wt-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
	color: var(--wt-ink);
	max-width: 960px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.6;
}
.wt-wrap *, .wt-wrap *::before, .wt-wrap *::after { box-sizing: border-box; }

.wt-head { text-align: center; margin: 0 0 18px; }
.wt-emoji { display: block; font-size: 52px; line-height: 1; margin-bottom: 6px; }
.wt-lead { color: var(--wt-muted); font-size: 1.08em; margin: 0 auto 18px; max-width: 720px; text-align: center; }

/* Tarjeta principal de la herramienta */
.wt-app {
	background: var(--wt-soft);
	border: 1px solid var(--wt-line);
	border-radius: var(--wt-radius);
	padding: 22px;
	margin: 0 0 32px;
}
.wt-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.wt-row.one { grid-template-columns: 1fr; }
.wt-field label { display: block; font-weight: 700; font-size: .9em; margin-bottom: 6px; }
.wt-field input, .wt-field select, .wt-field textarea {
	width: 100%; font: inherit; color: inherit;
	padding: 11px 13px; border: 1.5px solid var(--wt-line); border-radius: 12px; background: #fff;
}
.wt-field textarea { min-height: 96px; resize: vertical; }
.wt-field input:focus, .wt-field select:focus, .wt-field textarea:focus { outline: none; border-color: var(--wt-accent); box-shadow: 0 0 0 3px rgba(232,72,59,.15); }

.wt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-chip {
	font: inherit; font-size: .92em; cursor: pointer;
	padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--wt-line); background: #fff; color: var(--wt-ink);
	transition: border-color .15s, background .15s;
}
.wt-chip:hover { border-color: var(--wt-accent); }
.wt-chip[aria-pressed="true"] { background: var(--wt-accent); border-color: var(--wt-accent); color: #fff; }
.wt-chip small { opacity: .75; font-size: .82em; }

.wt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-weight: 800; font-size: 1em; cursor: pointer; text-decoration: none;
	padding: 13px 22px; border-radius: 12px; border: 0;
	background: var(--wt-accent); color: #fff;
	box-shadow: 0 3px 0 #b8342a; transition: transform .08s, box-shadow .08s;
}
.wt-btn:hover { color: #fff; filter: brightness(1.05); }
.wt-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #b8342a; }
.wt-btn.ghost { background: #fff; color: var(--wt-ink); box-shadow: 0 0 0 1.5px var(--wt-line) inset; }
.wt-btn.ghost:active { transform: translateY(1px); }
.wt-btn.block { width: 100%; }

/* Resultado */
.wt-result {
	margin-top: 18px; background: #fff; border-radius: var(--wt-radius);
	box-shadow: var(--wt-shadow); padding: 22px; position: relative;
	animation: wt-pop .28s ease-out;
}
.wt-result[hidden] { display: none; }
@keyframes wt-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.wt-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .74em; font-weight: 800; color: var(--wt-accent); margin: 0 0 6px; }
.wt-big { font-size: 1.35em; font-weight: 800; line-height: 1.3; margin: 0 0 8px; }
.wt-huge { font-size: 2.6em; font-weight: 900; line-height: 1; margin: 4px 0 10px; color: var(--wt-accent); }
.wt-text { font-size: 1.12em; margin: 0 0 6px; }
.wt-note { color: var(--wt-muted); font-size: .92em; margin: 8px 0 0; }
.wt-meter { height: 12px; background: #f1ebe4; border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.wt-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--wt-accent-2), var(--wt-accent)); border-radius: 99px; transition: width .6s ease; }
.wt-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.wt-fact { background: var(--wt-soft); border-radius: 12px; padding: 10px; text-align: center; font-size: .9em; }
.wt-fact b { display: block; font-size: 1.1em; }

/* Compartir */
.wt-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--wt-line); }
.wt-share button, .wt-share a {
	font: inherit; font-size: .88em; font-weight: 700; cursor: pointer; text-decoration: none;
	padding: 8px 13px; border-radius: 10px; border: 1.5px solid var(--wt-line); background: #fff; color: var(--wt-ink);
}
.wt-share .wa { background: #25d366; border-color: #25d366; color: #fff; }
.wt-share button:hover, .wt-share a:hover { border-color: var(--wt-accent); }
.wt-share .wa:hover { border-color: #1da851; color: #fff; }
.wt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--wt-ink, #1d1d1f); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 15px; z-index: 99999; animation: wt-pop .2s; }

/* Quiz */
.wt-progress { font-size: .85em; color: var(--wt-muted); font-weight: 700; margin-bottom: 6px; }
.wt-q { font-size: 1.2em; font-weight: 800; margin: 0 0 14px; line-height: 1.35; }
.wt-opts { display: grid; gap: 10px; }
.wt-opt {
	font: inherit; text-align: left; cursor: pointer; padding: 13px 16px; border-radius: 12px;
	border: 1.5px solid var(--wt-line); background: #fff; color: var(--wt-ink); transition: border-color .12s, transform .08s;
}
.wt-opt:hover { border-color: var(--wt-accent); }
.wt-opt:active { transform: scale(.99); }

/* Diploma */
.wt-canvas-preview { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--wt-shadow); display: block; margin-top: 4px; }

/* Caja «Hoy» */
.wt-hoy { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.wt-hoy-item { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--wt-shadow); }
.wt-hoy-item .wt-kicker { margin-bottom: 4px; }
.wt-hoy-item p { margin: 0; font-size: .96em; }
.wt-hoy-item a { font-size: .85em; font-weight: 700; color: var(--wt-accent); display: inline-block; margin-top: 8px; }
.wt-hoy-title { font-weight: 900; font-size: 1.15em; margin: 0 0 12px; }

/* Tarjetas e índice */
.wt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wt-card {
	display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px;
	background: #fff; border: 1px solid var(--wt-line); color: var(--wt-ink); text-decoration: none;
	transition: transform .12s, box-shadow .12s, border-color .12s;
}
.wt-card:hover { transform: translateY(-2px); box-shadow: var(--wt-shadow); border-color: var(--wt-accent); color: var(--wt-ink); }
.wt-card-ico { font-size: 30px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--wt-soft); border-radius: 12px; flex: none; }
.wt-card-txt strong { display: block; font-size: 1em; line-height: 1.25; }
.wt-card-txt span { display: block; color: var(--wt-muted); font-size: .86em; line-height: 1.35; margin-top: 2px; }
.wt-group { margin: 0 0 28px; }
.wt-group h2, .wt-related h2 { font-size: 1.25em; margin: 0 0 12px; }
.wt-related { margin-top: 36px; }
.wt-all { text-align: right; margin: 12px 0 0; }
.wt-all a { font-weight: 700; color: var(--wt-accent); }

/* Texto SEO */
.wt-seo h2 { font-size: 1.45em; margin: 1.4em 0 .5em; }
.wt-seo h3 { font-size: 1.15em; margin: 1.3em 0 .4em; }
.wt-seo a { color: var(--wt-accent); }
.wt-faq details { border: 1px solid var(--wt-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; background: #fff; }
.wt-faq summary { cursor: pointer; font-weight: 700; }
.wt-faq details p { margin: 8px 0 0; color: var(--wt-muted); }

@media (max-width: 640px) {
	.wt-wrap { font-size: 16px; }
	.wt-app { padding: 16px; }
	.wt-row, .wt-grid, .wt-hoy { grid-template-columns: 1fr; }
	.wt-facts { grid-template-columns: repeat(3, 1fr); }
	.wt-huge { font-size: 2.2em; }
}
.wt-h2 { font-size: 1.4em; text-align: center; margin: 8px 0 14px; }
.wt-list { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }
.wt-list .wt-note { display: inline; margin: 0; }

/* Tablas y listas de los textos SEO */
.wt-table-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--wt-line); border-radius: 12px; }
.wt-table { width: 100%; border-collapse: collapse; font-size: .95em; margin: 0; }
.wt-table th, .wt-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--wt-line); vertical-align: top; }
.wt-table th { background: var(--wt-soft); font-weight: 700; font-size: .9em; }
.wt-table tr:last-child td { border-bottom: 0; }
.wt-zone { border: 1px solid var(--wt-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
.wt-zone summary { cursor: pointer; font-weight: 700; }
.wt-zone summary span { color: var(--wt-muted); font-weight: 400; }
.wt-zone .wt-table-wrap { margin-bottom: 4px; }
.wt-jokes { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 10px; }
.wt-jokes li { background: var(--wt-soft); border-radius: 12px; padding: 12px 16px; margin: 0; }
.wt-jokes time { display: block; font-size: .78em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wt-accent); margin-bottom: 4px; }
.wt-jokes p { margin: 0; }


/* Páginas de herramientas en PC: más anchas desde el primer momento (sin esperar al JS).
   Si la columna del tema es estrecha, crece hacia la derecha; si el JS detecta una barra lateral, añade .wt-narrow y vuelve al ancho normal. */
@media (min-width: 1100px) {
	.wt-tool-page .wt-wrap:not(.wt-narrow) { width: min(960px, calc(100vw - 80px)); max-width: none; }
	.wt-tool-page .wtp .wt-wrap { width: auto; }
}

/* =========================================================================
   Herramientas en directo
   ====================================================================== */
.wt-live { display: flex; flex-direction: column; gap: 16px; }
.wt-live > .wt-result { margin-top: 0; }
.wt-live h2 { font-size: 1.2em; margin: 0 0 10px; line-height: 1.25; }
.wt-live-sec { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: var(--wt-shadow); }
.wt-live-sec ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.wt-live-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wt-credit { font-size: .82em; color: var(--wt-muted); margin: 0; }
.wt-credit a { color: inherit; }
.wt-nodata { background: #fff; border-radius: 12px; padding: 16px; margin: 0; color: var(--wt-muted); }
.wt-more { background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: var(--wt-shadow); }
.wt-more summary { cursor: pointer; font-weight: 700; }
.wt-more[open] summary { margin-bottom: 10px; }
.wt-more .wt-years { padding-left: 0; }

.wt-daynav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95em; }
.wt-daynav a { color: var(--wt-accent); font-weight: 700; text-decoration: none; }
.wt-daynav strong { font-size: 1.15em; }
.wt-years { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.wt-years li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; line-height: 1.45; }
.wt-years b { color: var(--wt-accent); font-variant-numeric: tabular-nums; }
.wt-cumple { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
.wt-cumple li { display: flex; gap: 12px; align-items: center; background: var(--wt-soft); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.wt-age { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wt-accent); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.wt-cumple strong { display: block; line-height: 1.25; }
.wt-cumple em { display: block; font-style: normal; font-size: .85em; color: var(--wt-muted); line-height: 1.3; }
.wt-cal details { border-top: 1px solid var(--wt-line); padding: 8px 0; }
.wt-cal summary { cursor: pointer; font-weight: 700; }
.wt-cal-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-top: 8px; }
.wt-cal-days a { display: grid; place-items: center; height: 36px; border-radius: 8px; background: var(--wt-soft); color: var(--wt-ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.wt-cal-days a:hover { background: var(--wt-accent); color: #fff; }

/* Puentes */
.wt-fest-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wt-fest-list li { background: #fff; border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2px 14px; border-left: 5px solid #d9d2cb; }
.wt-fest-list li.is-puente { border-left-color: #2e9e5b; }
.wt-fest-list li.is-acueducto { border-left-color: #1f7a45; }
.wt-fest-list li.is-finde { border-left-color: #f2b632; }
.wt-fest-list time { font-weight: 700; grid-row: span 2; color: var(--wt-ink); }
.wt-fest-list span { color: var(--wt-muted); font-size: .9em; }
.wt-fest-list small { color: var(--wt-muted); font-weight: 400; }

/* Cuentas atrás */
.wt-cd-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wt-cd-list li { background: #fff; border-radius: 14px; padding: 14px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.wt-cd-n { flex: none; width: 72px; text-align: center; }
.wt-cd-n b { display: block; font-size: 1.9em; line-height: 1; color: var(--wt-accent); font-variant-numeric: tabular-nums; }
.wt-cd-n small { color: var(--wt-muted); font-size: .8em; }
.wt-cd-t { min-width: 0; }
.wt-cd-t strong { display: block; }
.wt-cd-t em { display: block; font-style: normal; font-size: .82em; color: var(--wt-muted); }
.wt-cd-t span { display: block; font-size: .88em; margin-top: 3px; }

/* Luz */
.wt-luz-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.wt-luz-now { margin: 0 !important; border-top: 6px solid #f2b632; }
.wt-luz-now.is-barato { border-top-color: #2e9e5b; }
.wt-luz-now.is-caro { border-top-color: #d93a2e; }
.wt-luz-now .wt-huge small { font-size: .4em; color: var(--wt-muted); font-weight: 700; }
.wt-luz-facts { grid-template-columns: 1fr !important; margin: 0 !important; align-content: center; }
.wt-luz-facts .wt-fact { background: #fff; text-align: left; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; }
.wt-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; background: #fff; border-radius: 14px; padding: 14px 12px 8px; }
.wt-bar { flex: 1; border-radius: 4px 4px 0 0; background: #f2b632; min-width: 0; }
.wt-bar.is-b { background: #2e9e5b; }
.wt-bar.is-c { background: #d93a2e; }
.wt-bar.is-now { outline: 3px solid var(--wt-ink); outline-offset: 1px; }
.wt-bars-x { display: flex; justify-content: space-between; font-size: .78em; color: var(--wt-muted); padding: 0 12px; margin-top: -10px; }

/* Tiempo */
.wt-tiempo-out { transition: opacity .2s; }
.wt-tiempo-next { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wt-tiempo-next li { background: #fff; border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.wt-tiempo-next span { color: var(--wt-muted); font-size: .9em; }
.wt-huge small { font-size: .45em; color: var(--wt-muted); }

/* Universo */
.wt-universo .wt-big { margin: 0; }
.wt-apod { margin: 0; }
.wt-apod img { width: 100%; height: auto; border-radius: 14px; display: block; }
.wt-apod figcaption { font-size: .82em; color: var(--wt-muted); margin-top: 6px; }
.wt-apod-text { background: #fff; border-radius: 14px; padding: 16px 18px; }
.wt-apod-text p { margin: 0 0 6px; }

/* Tarjetas «Hoy también» */
.wt-live-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.wt-live-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--wt-line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--wt-ink); }
.wt-live-card:hover { border-color: var(--wt-accent); color: var(--wt-ink); }
.wt-live-card .wt-kicker { margin: 0; }
.wt-live-card-t { font-weight: 600; line-height: 1.4; }
.wt-live-card-l { margin-top: auto; font-size: .85em; font-weight: 700; color: var(--wt-accent); }

@media (max-width: 640px) {
	.wt-live-cols, .wt-cumple, .wt-cd-list, .wt-luz-top, .wt-tiempo-next { grid-template-columns: 1fr !important; }
	.wt-fest-list li { grid-template-columns: 1fr; }
	.wt-fest-list time { grid-row: auto; }
	.wt-years li { grid-template-columns: 52px minmax(0, 1fr); }
	.wt-bars { height: 120px; gap: 2px; padding: 10px 8px 6px; }
}
@media (max-width: 760px) { .wt-live-cards { grid-template-columns: 1fr; } }
