/* ============================================================
   Tres resultados (05-12-2026): megamenú, tarjetas «Tres resultados», casos, el primer paso agrupado,
   «Lo esencial, bien hecho» y diapositiva «Abrir mercados» con banda más ancha.
   Mismo lenguaje que the17300.css: papel, tinta, rojo solo en botones, banda diagonal y cifras.
   Va en archivo aparte (se carga después de the17300.css) para no pisar otros cambios del tema.
   ============================================================ */

/* ---------- Megamenú: común ---------- */
.t-menu .t-mega { list-style: none; margin: 0; padding: 0; }
.t-menu .t-mega__panel ul { list-style: none; margin: 0; padding: 0; display: block; }
.t-mega__fila { display: flex; align-items: center; }
.t-mega__abrir { appearance: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.t-mega__abrir::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.t-mega__abrir[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.t-mega__abrir:hover, .t-mega__abrir[aria-expanded="true"] { color: var(--red-web); }
.t-menu .t-mega__enlace[aria-current="page"] { color: var(--red-web); }
.t-mega__panel { display: none; }
.t-mega__grupo { margin: 0 0 .6rem; font-family: var(--f-etiqueta); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--concrete-text); display: flex; align-items: center; gap: .5rem; }
.t-mega__grupo::before { content: ""; width: 1.4rem; height: 3px; background: var(--red); }
.t-mega__nota { display: block; font-family: var(--f-texto); font-size: .86rem; line-height: 1.35; color: var(--concrete-text); text-transform: none; letter-spacing: 0; }
.t-menu .t-mega__panel .t-mega__enlace { font-family: var(--f-titular); font-weight: 400; letter-spacing: .01em; white-space: normal; }
.t-mega__titulo { font-family: var(--f-titular); text-transform: uppercase; line-height: 1; margin: 0 0 .5rem; }
.t-mega__frase { margin: 0; }

/* ---------- Megamenú: escritorio (≥1101 px): paneles a todo el ancho bajo la cabecera ---------- */
@media (min-width: 1101px) {
	.t-cabecera__fila { align-items: stretch; }
	.t-cabecera__fila > .t-logo, .t-cabecera__fila > .t-idiomas { align-self: center; }
	.t-menu { display: flex; }
	.t-menu .t-mega { display: flex; align-items: stretch; gap: 1.15rem; }
	.t-mega__item { display: flex; align-items: center; }
	.t-mega__abrir { width: 22px; height: 40px; margin-left: .1rem; }
	.t-mega__panel { position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 60; background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 4px solid var(--ink); box-shadow: 0 18px 30px rgba(21,21,21,.16); }
	.t-mega__item:hover > .t-mega__panel, .t-mega__item:focus-within > .t-mega__panel, .t-mega__item.is-abierto > .t-mega__panel { display: block; animation: t-mega-entra .22s cubic-bezier(.2,.7,.2,1); }
	.t-mega__item:hover > .t-mega__fila .t-mega__raiz, .t-mega__item.is-abierto > .t-mega__fila .t-mega__raiz { color: var(--red-web); }
	.t-mega__item:hover > .t-mega__fila, .t-mega__item.is-abierto > .t-mega__fila { box-shadow: inset 0 -4px 0 var(--red); }
	.t-mega__fila { height: 100%; }
	.t-mega__dentro { width: min(100% - 2.5rem, var(--t-ancho)); margin-inline: auto; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 2.5rem; padding: 2rem 0 2.25rem; }
	.t-mega__portada { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: 1.5rem 1.6rem 1.7rem; min-height: 190px; }
	.t-mega__portada > * { position: relative; z-index: 1; }
	.t-mega__num { display: block; font-family: var(--f-titular); font-size: 3.2rem; line-height: 1; color: var(--red); margin-bottom: .6rem; }
	.t-mega__titulo { font-size: 2rem; max-width: 12ch; color: var(--paper); }
	.t-mega__frase { color: #DCD3C1; font-size: .98rem; max-width: 34ch; }
	.t-mega__banda { position: absolute !important; z-index: 0 !important; top: -20%; bottom: -20%; right: 10%; width: 46px; background: var(--red); transform: skewX(-34deg); opacity: .9; }
	.t-mega__item--mundo .t-mega__banda { width: 100px; right: -6%; opacity: 1; }
	.t-mega__item--mundo .t-mega__num { color: var(--paper); }
	.t-mega__programas li, .t-mega__ofertas li { padding: .55rem 0; border-bottom: 1px solid rgba(21,21,21,.16); }
	.t-mega__programas li:first-child, .t-mega__ofertas li:first-child { border-top: 2px solid var(--ink); }
	.t-menu .t-mega__programas .t-mega__enlace { font-size: 1.5rem; line-height: 1.05; display: inline-block; }
	.t-menu .t-mega__ofertas .t-mega__enlace { font-size: 1.2rem; line-height: 1.1; display: inline-block; }
	.t-menu .t-mega__panel .t-mega__enlace:hover { color: var(--red-web); }
	.t-mega__guia { margin-top: .4rem; }
	.t-menu .t-mega__guia .t-mega__enlace { font-family: var(--f-etiqueta); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--red-web); }
	.t-menu .t-mega__guia .t-mega__enlace::after { content: " →"; }
	/* Servicios: una fila de cinco */
	.t-mega__panel--lista .t-mega__dentro { display: block; }
	.t-menu .t-mega__servicios { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
	.t-mega__servicios li { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.1rem 1.25rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
	.t-mega__num-s { font-family: var(--f-titular); color: var(--red); font-size: 1.6rem; line-height: 1; }
	.t-menu .t-mega__servicios .t-mega__enlace { font-size: 1.35rem; line-height: 1.05; }
	.t-menu .t-mega__servicios .t-mega__enlace::after { content: ""; position: absolute; inset: 0; }
	.t-mega__servicios li { position: relative; transition: background .2s ease; }
	.t-mega__servicios li:hover { background: var(--ink); }
	.t-menu .t-mega__servicios li:hover .t-mega__enlace { color: var(--paper); }
}
@media (min-width: 1101px) and (max-width: 1300px) {
	.t-menu .t-mega { gap: .8rem; }
	.t-mega__abrir { width: 18px; }
	.t-mega__dentro { gap: 1.75rem; }
}
@keyframes t-mega-entra { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .t-mega__panel { animation: none !important; } }

/* ---------- Megamenú: móvil y tableta (≤1100 px): acordeón dentro del panel del menú ---------- */
@media (max-width: 1100px) {
	.t-menu .t-mega { display: block; }
	.t-mega__item { border-bottom: 1px solid rgba(21,21,21,.18); }
	.t-mega__fila { justify-content: space-between; gap: .5rem; }
	.t-menu .t-mega__raiz { flex: 1; }
	.t-mega__abrir { width: 48px; height: 48px; flex: none; box-shadow: inset 0 0 0 2px var(--ink); }
	.t-mega__abrir[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
	.t-mega__item.is-abierto > .t-mega__panel { display: block; }
	.t-mega__panel { padding: .25rem 0 1rem .9rem; margin: 0 0 .5rem; border-left: 4px solid var(--ink); }
	.t-mega__item--mundo .t-mega__panel { border-left-color: var(--red); }
	.t-mega__num, .t-mega__banda, .t-mega__titulo, .t-mega__num-s { display: none; }
	.t-mega__frase { font-size: .95rem; color: var(--concrete-text); margin: .35rem 0 .75rem; }
	.t-mega__columna + .t-mega__columna { margin-top: .75rem; }
	.t-menu .t-mega__panel .t-mega__enlace { font-size: 1.1rem; min-height: 40px; display: flex; align-items: center; }
	.t-mega__nota { margin: -.35rem 0 .35rem; font-size: .82rem; }
	.t-mega__guia .t-mega__enlace { color: var(--red-web) !important; }
}

/* ---------- Tres resultados ---------- */
.t-resultados__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.t-resultado { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 1.75rem 1.6rem 1.6rem; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); min-width: 0; }
.t-resultado > *:not(.t-resultado__banda) { position: relative; z-index: 1; }
.t-resultado--vender { background: var(--paper-2); }
.t-resultado--mundo { background: var(--ink); color: var(--paper); box-shadow: none; }
.t-resultado__banda { position: absolute; z-index: 0; top: 0; right: 18px; width: 60px; height: 118px; background: var(--red); transform: skewX(-34deg); transform-origin: top; } /* arriba a la derecha, junto al 03, sin pasar por debajo del texto */
.t-resultado--mundo { border-bottom: 8px solid var(--red); }
.t-resultado__num { font-family: var(--f-titular); font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: .9; color: var(--red); margin-bottom: .8rem; }
.t-resultado--mundo .t-resultado__num { color: var(--paper); }
.t-resultado__corto { margin: 0 0 .35rem; font-family: var(--f-etiqueta); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-web); }
.t-resultado--mundo .t-resultado__corto { color: #F0A49F; }
.t-resultado__titulo { font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1; margin: 0 0 .9rem; max-width: 13ch; }
.t-resultado__titulo a { color: inherit; text-decoration: none; }
.t-resultado__titulo a:hover { color: var(--red-web); }
.t-resultado--mundo .t-resultado__titulo a:hover { color: #F0A49F; }
.t-resultado__frase { font-size: 1.06rem; line-height: 1.5; margin: 0 0 1.5rem; max-width: 30ch; }
.t-resultado__grupo { margin: 0 0 .5rem; padding-top: .9rem; border-top: 2px solid currentColor; font-family: var(--f-etiqueta); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--concrete-text); }
.t-resultado--mundo .t-resultado__grupo { color: #CFC7B6; border-top-color: rgba(239,231,214,.5); }
.t-resultado__programas, .t-resultado__ofertas { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.t-resultado__programas a { display: block; padding: .35rem 0 .6rem; color: inherit; text-decoration: none; }
.t-resultado__icono { display: block; width: 190px; max-width: 100%; height: auto; transition: transform .2s ease; }
.t-resultado--mundo .t-resultado__icono { background: var(--paper); padding: .3rem .5rem; box-sizing: content-box; max-width: calc(100% - 1rem); }
.t-resultado__programas a:hover .t-resultado__icono { transform: translateX(4px); }
.t-resultado__programa { font-family: var(--f-titular); text-transform: uppercase; font-size: 1.4rem; }
.t-resultado__nota { display: block; margin-top: .3rem; font-size: .92rem; color: var(--concrete-text); }
.t-resultado--mundo .t-resultado__nota { color: #DCD3C1; }
.t-resultado__ofertas a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem .75rem; padding: .55rem 0; min-height: 44px; border-bottom: 1px dashed currentColor; color: inherit; text-decoration: none; }
.t-resultado__ofertas li:first-child a { padding-top: .2rem; }
.t-resultado__oferta { font-family: var(--f-etiqueta); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; }
.t-resultado__precio { font-size: .9rem; font-weight: 600; }
.t-resultado__ofertas a:hover .t-resultado__oferta { color: var(--red-web); }
.t-resultado--mundo .t-resultado__ofertas a:hover .t-resultado__oferta { color: #F0A49F; }
.t-resultado__ir { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.2rem; background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--f-etiqueta); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; transition: background .2s ease; }
.t-resultado__ir:hover { background: var(--red-web); }
.t-resultado--mundo .t-resultado__ir { background: var(--red-web); }
.t-resultado--mundo .t-resultado__ir:hover { background: var(--paper); color: var(--ink); }
.t-resultado--mundo :focus-visible { outline-color: var(--paper); }
/* Escalera ascendente: cada resultado un peldaño más arriba (solo en ancho) */
@media (min-width: 981px) {
	.t-resultado--mercado { margin-top: 4.5rem; }
	.t-resultado--vender { margin-top: 2.25rem; }
	.t-resultados__lista { position: relative; padding-bottom: 1.5rem; }
	.t-resultados__lista::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ink); }
}
@media (max-width: 980px) {
	.t-resultados__lista { grid-template-columns: 1fr; max-width: 640px; }
	.t-resultado__banda { width: 50px; height: 100px; right: 14px; }
}
.t-anim .t-resultados .t-resultado.t-pieza { transform: translateY(48px); }
.t-anim .t-resultados.t-visible .t-resultado.t-pieza { transform: none; }
/* Hub /programas/: bajo el título, antes del texto */
.t-resultados--hub { margin-block: 3rem 4rem; }

/* ---------- Casos en portada ---------- */
.t-casos-portada__lista { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.t-caso-tarjeta a { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .7rem; height: 100%; padding: 1.5rem 1.4rem 1.4rem; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); border-top: 8px solid var(--ink); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.t-caso-tarjeta a:hover { transform: translate(-4px, -4px); box-shadow: inset 0 0 0 2px var(--ink), 8px 8px 0 var(--ink); }
.t-caso-tarjeta--vender a { background: var(--paper-2); }
.t-caso-tarjeta--mundo a { background: var(--ink); color: var(--paper); border-top-color: var(--red); box-shadow: none; }
.t-caso-tarjeta--mundo a:hover { box-shadow: 8px 8px 0 var(--red); }
.t-caso-tarjeta--mundo a::after { content: ""; position: absolute; top: -10%; bottom: -10%; right: -40px; width: 70px; background: var(--red); transform: skewX(-34deg); }
.t-caso-tarjeta a > * { position: relative; z-index: 1; }
.t-caso-tarjeta__resultado { font-family: var(--f-etiqueta); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-web); }
.t-caso-tarjeta--mundo .t-caso-tarjeta__resultado { color: #F0A49F; }
.t-caso-tarjeta__titulo { font-family: var(--f-titular); text-transform: uppercase; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.05; }
.t-caso-tarjeta__texto { font-size: .98rem; line-height: 1.5; color: var(--concrete-text); }
.t-caso-tarjeta--mundo .t-caso-tarjeta__texto { color: #DCD3C1; max-width: 92%; }
.t-caso-tarjeta__ir { margin-top: auto; padding-top: .5rem; font-family: var(--f-etiqueta); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--red-web); }
.t-caso-tarjeta--mundo .t-caso-tarjeta__ir { color: var(--paper); }
@media (max-width: 900px) { .t-casos-portada__lista { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- El primer paso: Diagnóstico arriba y ofertas agrupadas por resultado ---------- */
.t-primeros__entrada { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; grid-template-areas: "etq resumen datos" "nombre resumen precio"; gap: .3rem 2rem; align-items: center; margin-bottom: 1.25rem; padding: 1.5rem 1.75rem; background: var(--ink); color: var(--paper); border-left: 10px solid var(--red); text-decoration: none; transition: background .2s ease; }
.t-primeros__entrada:hover { background: #24221F; }
.t-primeros__entrada .t-primeros__etq { grid-area: etq; font-family: var(--f-etiqueta); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #F0A49F; }
.t-primeros__entrada .t-primeros__nombre { grid-area: nombre; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.t-primeros__entrada .t-primeros__resumen { grid-area: resumen; color: #DCD3C1; font-size: 1.02rem; line-height: 1.5; }
.t-primeros__entrada .t-primeros__datos { grid-area: datos; color: #CFC7B6; justify-self: end; }
.t-primeros__entrada .t-primeros__precio { grid-area: precio; justify-self: end; font-family: var(--f-titular); font-weight: 400; font-size: 1.5rem; color: var(--paper); white-space: nowrap; }
.t-primeros__grupos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.t-primeros__resultado { margin: 0; padding: .8rem 1rem; background: var(--ink); color: var(--paper); font-family: var(--f-titular); text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.t-primeros__resultado span { color: var(--red); margin-right: .25rem; }
.t-primeros__grupo--mundo .t-primeros__resultado { background: var(--red); }
.t-primeros__grupo--mundo .t-primeros__resultado span { color: var(--ink); }
.t-primeros__grupo .t-primeros__lista { grid-template-columns: 1fr; border-top: 0; }
.t-primeros__grupo .t-primeros__precio { color: var(--red-web); }
.t-primeros__grupo .t-primeros__lista a:hover .t-primeros__precio { color: #F0A49F; }
@media (max-width: 900px) {
	.t-primeros__entrada { grid-template-columns: 1fr; grid-template-areas: "etq" "nombre" "resumen" "datos" "precio"; padding: 1.25rem 1.25rem 1.4rem; }
	.t-primeros__entrada .t-primeros__datos, .t-primeros__entrada .t-primeros__precio { justify-self: start; }
	.t-primeros__grupos { grid-template-columns: 1fr; max-width: 640px; }
}

/* ---------- Lo esencial, bien hecho: fila de cinco servicios ---------- */
.t-esencial__lista { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.t-esencial__lista a { position: relative; display: flex; flex-direction: column; gap: .6rem; height: 100%; min-height: 170px; padding: 1.25rem 1.2rem 1.3rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); color: var(--ink); text-decoration: none; transition: background .2s ease, color .2s ease; }
.t-esencial__lista a:hover { background: var(--ink); color: var(--paper); }
.t-esencial__num { font-family: var(--f-titular); font-size: 2rem; line-height: 1; color: var(--red); }
.t-esencial__nombre { font-family: var(--f-titular); text-transform: uppercase; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.05; }
.t-esencial__flecha { margin-top: auto; font-size: 1.5rem; color: var(--red-web); transition: transform .2s ease; }
.t-esencial__lista a:hover .t-esencial__flecha { color: var(--paper); transform: translateX(6px); }
@media (max-width: 980px) { .t-esencial__lista { grid-template-columns: repeat(2, 1fr); } .t-esencial__lista a { min-height: 130px; } }
@media (max-width: 480px) { .t-esencial__lista { grid-template-columns: 1fr; } .t-esencial__lista a { min-height: 0; flex-direction: row; align-items: center; } .t-esencial__flecha { margin: 0 0 0 auto; } }

/* ---------- Carrusel: «Abrir mercados» con la banda roja más ancha ---------- */
.t-slide--mundo .t-slide__banda { width: clamp(120px, 15vw, 250px); }
@media (max-width: 700px) { .t-slide--mundo .t-slide__banda { width: 92px; right: -18vw; } }
/* Título largo («Ferias, distribuidores y nuevos países»): un punto más pequeño para no partir «distribuidores». */
.t-slide--mundo .t-slide__titulo { font-size: clamp(2.2rem, 5.4vw, 4.9rem); max-width: 14ch; overflow-wrap: normal; }
@media (max-width: 700px) { .t-slide--mundo .t-slide__titulo { font-size: clamp(1.9rem, 9.4vw, 2.9rem); } }
/* Con «reducir movimiento» la palabra de fondo salía opaca (regla !important de 0.3.0): vuelve a ser una marca de agua. */
@media (prefers-reduced-motion: reduce) {
	.t-slide__palabra { opacity: .2 !important; }
	.t-slide--tinta .t-slide__palabra { opacity: .13 !important; }
}
