/* ═══════════════════════════════════════════════════════════
   Termos Promocionales – Landing Page Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --tp-accent: #b94d28;
  --tp-accent-light: rgba(185, 77, 40, 0.12);
  --tp-accent-glow: rgba(185, 77, 40, 0.22);
  --tp-dark: #0d1c29;
  --tp-dark-mid: #142736;
  --tp-surface: rgba(255, 252, 246, 0.92);
  --tp-surface-glass: rgba(255, 255, 255, 0.68);
  --tp-line: rgba(16, 35, 61, 0.1);
  --tp-shadow: 0 24px 60px rgba(16, 35, 61, 0.1);
  --tp-radius: 28px;
  --tp-radius-sm: 18px;
}

.termos-page {
  overflow-x: clip;
}

/* Isotipo horizontal (MK + MARKEKINT): más ancho que el logo estándar del sitio,
   se agranda para que el wordmark sea legible en la navbar */
.termos-page .navbar-brand-logo {
  height: 62px;
  width: auto;
}

@media (max-width: 767.98px) {
  .termos-page .navbar-brand-logo {
    height: 58px;
  }
}

/* ── HERO ──────────────────────────────────────────────── */
.tp-hero {
  position: relative;
  min-height: clamp(520px, 80vh, 720px);
  padding: 8rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(185, 77, 40, 0.22), transparent 42%),
    radial-gradient(ellipse at 80% 70%, rgba(18, 60, 85, 0.18), transparent 38%),
    linear-gradient(155deg, #0e2132 0%, #0d1c29 50%, #152d40 100%);
  color: #fff8ef;
}

.tp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 30% 20%, rgba(185, 77, 40, 0.08), transparent),
    radial-gradient(400px circle at 75% 80%, rgba(0, 178, 226, 0.04), transparent);
  pointer-events: none;
  animation: tpMeshDrift 12s ease-in-out infinite alternate;
}

@keyframes tpMeshDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, -15px); }
}

.tp-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.tp-hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  animation: fadeInUp 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(185, 77, 40, 0.18);
  border: 1px solid rgba(255, 236, 222, 0.14);
  color: #ffdbc8;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tp-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
}

.tp-hero h1 .accent {
  background: linear-gradient(135deg, #f6b087, #e86d3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tp-hero-sub {
  max-width: 580px;
  margin-bottom: 1.6rem;
  color: rgba(255, 248, 239, 0.88);
  font-size: 1.05rem;
  line-height: 1.65;
}

.tp-hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: 0.7rem;
}

.tp-hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: rgba(255, 248, 239, 0.94);
}

.tp-hero-benefits li i {
  color: #f6b087;
  font-size: 1rem;
}

.tp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero visual mosaic */
.tp-hero-visual {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0.75rem;
  animation: scaleIn 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hilera de termos ejecutivos — solo imagen + etiqueta de precio + nombre,
   sin el chrome de tarjeta (sin borde/padding/fondo de card) */
.tp-hero-exec-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 0.6rem;
}

.tp-hero-exec-item {
  position: relative;
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 32px rgba(4, 16, 29, 0.24);
  transition: transform 0.35s ease;
}

.tp-hero-exec-item:hover {
  transform: translateY(-3px);
}

.tp-hero-exec-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.tp-hero-exec-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tp-hero-exec-item:hover img {
  transform: scale(1.06);
}

.tp-hero-exec-name {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  max-width: calc(100% - 0.8rem);
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(13, 28, 41, 0.72);
  backdrop-filter: blur(4px);
  color: #fff8ef;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.tp-hero-exec-item .tp-price-tag {
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.4rem;
  padding: 0.3rem 0.4rem;
  border-radius: 10px;
  pointer-events: none;
}

.tp-hero-exec-item .tp-price-tag strong {
  font-size: 0.7rem;
}

.tp-hero-exec-item .tp-price-tag em {
  font-size: 0.56rem;
}

.tp-hero-visual-note {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 248, 239, 0.82);
  text-align: center;
}

.tp-hero-visual-note i {
  color: #f6b087;
  font-size: 0.9rem;
}

.tp-hero-img {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(4, 16, 29, 0.22);
  transition: transform 0.4s ease;
}

/* 4ª imagen: solo visible en móvil para llenar el grid 2×2 */
.tp-hero-img--mobile {
  display: none;
}

.tp-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fotos de producto de estudio (fondo blanco): "contain" en vez de "cover"
   para que nunca se corte el producto, sea cual sea el tamaño de pantalla */
.tp-hero-img--contain {
  aspect-ratio: 1 / 1;
  background: #ffffff;
}

.tp-hero-img--contain img {
  box-sizing: border-box;
  object-fit: contain;
  padding: 1.4rem;
}

.tp-hero-img:hover img {
  transform: scale(1.05);
}

/* Caption sobre la imagen — legible, sin robar espacio */
.tp-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.6rem 0.95rem 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  background: linear-gradient(to top, rgba(9, 19, 27, 0.85), rgba(9, 19, 27, 0.4) 55%, transparent);
  pointer-events: none;
}

/* Label de nombre — mismas tiles del mosaico que ya traen etiqueta de precio */
.tp-hero-img-name {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  max-width: calc(100% - 1.2rem);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(13, 28, 41, 0.72);
  backdrop-filter: blur(4px);
  color: #fff8ef;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.tp-hero-img .tp-price-tag {
  z-index: 2;
}

.tp-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.22) 28%, transparent 44%);
  transform: translateX(-140%);
  pointer-events: none;
}

.tp-hero-img:hover::after {
  animation: tpShineSweep 1s ease;
}

/* Precios de mayoreo dentro del hero */
.tp-hero-pricing {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0.5rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tp-hero-pricing .tp-section-head h2 {
  color: #fff8ef;
}

.tp-hero-pricing .tp-section-head p {
  color: rgba(245, 240, 232, 0.76);
}

.tp-hero-pricing .tp-kicker {
  color: #ffdbc8;
  background: rgba(185, 77, 40, 0.2);
  border-color: rgba(255, 200, 170, 0.14);
}

.tp-hero-pricing .tp-price-note {
  color: rgba(245, 240, 232, 0.68);
}

.tp-hero-pricing .tp-price-note i {
  color: #f6b087;
}

@keyframes tpShineSweep {
  from { transform: translateX(-140%) skewX(-18deg); }
  to { transform: translateX(220%) skewX(-18deg); }
}

/* ── SECTION COMMON ────────────────────────────────────── */
.tp-section {
  position: relative;
  padding: clamp(64px, 8vw, 100px) 0;
}

.tp-section--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(135deg, rgba(18, 60, 85, 0.02) 0, rgba(18, 60, 85, 0.02) 12px, transparent 12px, transparent 34px);
}

.tp-section--dark {
  background:
    radial-gradient(circle at top left, rgba(185, 77, 40, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(18, 60, 85, 0.2), transparent 30%),
    linear-gradient(155deg, #142736 0%, #0d1c29 55%, #132433 100%);
  color: #f5f0e8;
}

.tp-section-head {
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.tp-section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.46rem 0.85rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-accent);
  background: var(--tp-accent-light);
  border: 1px solid rgba(185, 77, 40, 0.16);
}

.tp-section--dark .tp-kicker {
  color: #ffdbc8;
  background: rgba(185, 77, 40, 0.2);
  border-color: rgba(255, 200, 170, 0.14);
}

.tp-section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--tp-dark);
  margin-bottom: 0.8rem;
}

.tp-section--dark .tp-section-head h2 {
  color: #fff8ef;
}

.tp-section-head p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.tp-section--dark .tp-section-head p {
  color: rgba(245, 240, 232, 0.76);
}

/* ── SECTION 2 – Trust / Logos Carousel ────────────────── */
.tp-trust-track {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  margin-bottom: 2rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.tp-trust-slider {
  display: flex;
  gap: 3.5rem;
  animation: tpLogoScroll 28s linear infinite;
  width: max-content;
}

.tp-trust-slider img {
  height: 46px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
}

.tp-trust-slider img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes tpLogoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Projects carousel */
.tp-projects-track {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.tp-projects-slider {
  display: flex;
  gap: 1.2rem;
  animation: tpProjectScroll 32s linear infinite;
  width: max-content;
}

.tp-projects-slider:hover {
  animation-play-state: paused;
}

.tp-project-card {
  flex-shrink: 0;
  width: 280px;
  height: 260px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(18, 60, 85, 0.08);
  box-shadow: 0 16px 40px rgba(16, 35, 61, 0.08);
  position: relative;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tp-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(16, 35, 61, 0.14);
}

.tp-project-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.2rem;
  display: block;
  transition: transform 0.5s ease;
}

.tp-project-card:hover img {
  transform: scale(1.06);
}

@keyframes tpProjectScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECTION 3 – Categories ───────────────────────────────*/
.tp-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.tp-cat-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--tp-surface));
  box-shadow: var(--tp-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tp-cat-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -140%;
  width: 38%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.tp-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(24, 33, 47, 0.15);
  border-color: rgba(185, 77, 40, 0.2);
}

.tp-cat-card:hover::after {
  opacity: 1;
  animation: tpShineSweep 0.65s ease forwards;
}

/* Imagen de categoría — sangra hasta los bordes superiores del card */
.tp-cat-img {
  width: calc(100% + 3.2rem);
  margin: -1.6rem -1.6rem 1.4rem;
  height: 220px;
  overflow: hidden;
  border-radius: calc(var(--tp-radius) - 2px) calc(var(--tp-radius) - 2px) 0 0;
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1.2rem 1.8rem;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-cat-card:hover .tp-cat-img img {
  transform: scale(1.07);
}

.tp-cat-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  color: var(--tp-dark);
  margin-bottom: 0.5rem;
}

.tp-cat-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.tp-cat-card .btn {
  margin-top: auto;
}

/* Banner: explorar más promocionales */
.tp-explore-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.8rem;
  padding: 1.6rem 2rem;
  border-radius: var(--tp-radius);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(185, 77, 40, 0.28), transparent 42%),
    linear-gradient(135deg, #142736 0%, #0d1c29 55%, #16304380 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(9, 19, 27, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tp-explore-banner::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -140%;
  width: 38%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.tp-explore-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 66px rgba(9, 19, 27, 0.3);
}

.tp-explore-banner:hover::after {
  opacity: 1;
  animation: tpShineSweep 0.75s ease forwards;
}

.tp-explore-banner-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.tp-explore-banner-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(185, 77, 40, 0.2);
  border: 1px solid rgba(255, 200, 170, 0.18);
}

.tp-explore-banner-icon i {
  font-size: 1.4rem;
  color: #f6b087;
}

/* Collage de artículos promocionales dentro del banner — mosaico 4×2 */
.tp-explore-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 336px;
  flex-shrink: 0;
  padding: 6px;
}

.tp-explore-collage img {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid #fff8ef;
  box-shadow: 0 10px 22px rgba(9, 19, 27, 0.42);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

/* Ligera inclinación alterna para look de collage, sin descontrolar el grid */
.tp-explore-collage img:nth-child(4n + 1) { transform: rotate(-3deg); }
.tp-explore-collage img:nth-child(4n + 2) { transform: rotate(2deg); }
.tp-explore-collage img:nth-child(4n + 3) { transform: rotate(-2deg); }
.tp-explore-collage img:nth-child(4n + 4) { transform: rotate(3deg); }

.tp-explore-banner:hover .tp-explore-collage img {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 14px 28px rgba(9, 19, 27, 0.48);
}

.tp-explore-banner-text h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  color: #fff8ef;
  margin: 0 0 0.2rem;
}

.tp-explore-banner-text p {
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.72);
  margin: 0;
  line-height: 1.5;
}

.tp-explore-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tp-accent), #d5643d);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(185, 77, 40, 0.24);
  transition: gap 0.25s ease;
}

.tp-explore-banner:hover .tp-explore-banner-cta {
  gap: 0.95rem;
}

/* ── SECTION 3.5 – Precios destacados ─────────────────────*/
.tp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.2rem;
}

.tp-product-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--tp-surface));
  box-shadow: var(--tp-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tp-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(24, 33, 47, 0.15);
  border-color: rgba(185, 77, 40, 0.2);
}

.tp-product-img {
  position: relative;
  width: calc(100% + 2.4rem);
  margin: -1.2rem -1.2rem 1rem;
  height: 190px;
  overflow: hidden;
  border-radius: calc(var(--tp-radius) - 2px) calc(var(--tp-radius) - 2px) 0 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
}

/* Precio llamativo sobre la imagen */
.tp-price-tag {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tp-accent), #d5643d);
  box-shadow: 0 10px 24px rgba(185, 77, 40, 0.32);
}

.tp-price-tag strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.tp-price-tag em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffe6d8;
  letter-spacing: 0.01em;
}

.tp-product-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  color: var(--tp-dark);
  margin: 0;
}

.tp-price-note {
  margin: 1.8rem auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.tp-price-note i {
  color: var(--tp-accent);
  margin-right: 0.4rem;
}

/* ── SECTION 4 – Personalization Technique Switcher ─────── */
.tp-techniques {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Selector panel */
.tp-tech-selector {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tp-tech-btn {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  border: 1.5px solid var(--tp-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.2rem 1.3rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.tp-tech-btn:hover {
  border-color: rgba(185, 77, 40, 0.28);
  box-shadow: 0 10px 28px rgba(16, 35, 61, 0.09);
  background: rgba(255, 255, 255, 0.96);
}

.tp-tech-btn.is-active {
  border-color: var(--tp-accent);
  background: #fff;
  box-shadow: 0 16px 40px rgba(185, 77, 40, 0.13);
}

/* Barra de progreso del auto-ciclo */
.tp-tech-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--tp-accent), #e07045);
  border-radius: 0 3px 0 0;
}

.tp-tech-btn.is-running .tp-tech-progress {
  animation: tpTechProgress 4s linear forwards;
}

@keyframes tpTechProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

.tp-tech-btn-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tp-tech-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tp-accent-light);
  border: 1px solid rgba(185, 77, 40, 0.14);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tp-tech-btn.is-active .tp-tech-icon {
  background: var(--tp-accent);
  border-color: var(--tp-accent);
}

.tp-tech-icon i {
  font-size: 1.05rem;
  color: var(--tp-accent);
  transition: color 0.3s ease;
}

.tp-tech-btn.is-active .tp-tech-icon i {
  color: #fff;
}

.tp-tech-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tp-tech-name {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tp-dark);
}

.tp-tech-desc {
  display: block;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease,
              margin-top 0.35s ease;
}

.tp-tech-btn.is-active .tp-tech-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.4rem;
}

/* Visor de imagen */
.tp-tech-display {
  position: relative;
  height: 420px;
  border-radius: var(--tp-radius);
  overflow: hidden;
  border: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow);
  background: #ffffff;
}

.tp-tech-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: #ffffff;
  opacity: 0;
  transform: scale(0.94) translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.tp-tech-slide.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.tp-tech-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(16, 35, 61, 0.14));
}

/* ── SECTION 5 – Use Cases ────────────────────────────── */
.tp-usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tp-usecase {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border-radius: 24px;
  border: 1px solid var(--tp-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--tp-surface));
  box-shadow: 0 16px 40px rgba(16, 35, 61, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tp-usecase::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -140%;
  width: 38%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.tp-usecase:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(16, 35, 61, 0.14);
  border-color: rgba(185, 77, 40, 0.18);
}

.tp-usecase:hover::after {
  opacity: 1;
  animation: tpShineSweep 0.65s ease forwards;
}

.tp-usecase-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 241, 233, 0.98));
  border: 1px solid rgba(18, 60, 85, 0.08);
  box-shadow: 0 10px 24px rgba(16, 35, 61, 0.07);
}

.tp-usecase-icon i {
  font-size: 1.4rem;
  color: #8b3e21;
}

.tp-usecase h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  color: var(--tp-dark);
  margin-bottom: 0.35rem;
}

.tp-usecase p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── SECTION 6 – Why Markekint ────────────────────────── */
.tp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tp-why-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.tp-why-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -140%;
  width: 38%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.tp-why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 77, 40, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.tp-why-card:hover::after {
  opacity: 1;
  animation: tpShineSweep 0.65s ease forwards;
}

.tp-why-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.9rem;
  border-radius: 16px;
  background: rgba(185, 77, 40, 0.12);
  border: 1px solid rgba(185, 77, 40, 0.16);
}

.tp-why-icon i {
  font-size: 1.3rem;
  color: #f6b087;
}

.tp-why-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: #fff8ef;
  margin-bottom: 0.4rem;
}

.tp-why-card p {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.68);
  line-height: 1.55;
  margin: 0;
}

/* ── SECTION 7 – Mayoreo (CTA-like) ──────────────────── */
.tp-mayoreo-box {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.2rem);
  border-radius: var(--tp-radius);
  background:
    radial-gradient(ellipse at top left, rgba(185, 77, 40, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--tp-surface));
  border: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.tp-mayoreo-copy {
  min-width: 0;
}

.tp-mayoreo-box h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  color: var(--tp-dark);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.tp-mayoreo-box p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.tp-mayoreo-box .tp-hero-actions {
  margin-top: 0;
}

.tp-mayoreo-img {
  flex-shrink: 0;
  width: 260px;
}

.tp-mayoreo-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(16, 35, 61, 0.12));
}

@media (max-width: 767.98px) {
  .tp-explore-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.6rem 1.3rem;
  }
  .tp-explore-banner-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tp-explore-collage {
    width: 268px;
    margin: 0 auto;
    padding: 6px 0 12px;
  }
  .tp-explore-banner-cta {
    width: 100%;
    justify-content: center;
  }

  .tp-mayoreo-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .tp-mayoreo-img {
    width: 180px;
    margin: 0 auto;
  }
  .tp-mayoreo-box .tp-hero-actions {
    justify-content: center;
    flex-direction: column;
  }
}

/* ── SECTION 8 – Process ──────────────────────────────── */
.tp-process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}

.tp-process-track::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, rgba(185, 77, 40, 0.25), rgba(18, 60, 85, 0.15));
  border-radius: 999px;
  z-index: 0;
}

.tp-process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.tp-step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-accent), #d5643d);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(185, 77, 40, 0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tp-process-step:hover .tp-step-num {
  transform: scale(1.12);
  box-shadow: 0 16px 36px rgba(185, 77, 40, 0.32);
}

.tp-process-step h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  color: var(--tp-dark);
  margin-bottom: 0.3rem;
}

.tp-process-step p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── SECTION 9 – FAQ ──────────────────────────────────── */
.tp-faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.tp-faq-item {
  border: 1px solid var(--tp-line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--tp-surface));
  box-shadow: 0 14px 34px rgba(16, 35, 61, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tp-faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(16, 35, 61, 0.1);
  border-color: rgba(185, 77, 40, 0.16);
}

.tp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.3rem;
  border: none;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--tp-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.tp-faq-q:hover {
  background: rgba(18, 60, 85, 0.03);
}

.tp-faq-q i {
  font-size: 0.82rem;
  color: var(--tp-accent);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.tp-faq-item.is-open .tp-faq-q i {
  transform: rotate(180deg);
}

.tp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease;
}

.tp-faq-item.is-open .tp-faq-a {
  padding: 0 1.3rem 1.2rem;
}

.tp-faq-a p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ── SECTION 10 – Final CTA ──────────────────────────── */
.tp-final-cta {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  border-radius: var(--tp-radius);
  background:
    radial-gradient(circle at center, rgba(185, 77, 40, 0.12), transparent 38%),
    linear-gradient(155deg, #142736 0%, #0d1c29 55%, #132433 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 34px 80px rgba(9, 19, 27, 0.28);
  color: #fff8ef;
  overflow: hidden;
  animation: ctaGlow 6s ease-in-out infinite;
}

.tp-final-cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  color: #fff8ef;
}

.tp-final-cta p {
  max-width: 560px;
  margin: 0 auto 1.8rem;
  color: rgba(245, 240, 232, 0.78);
  font-size: 1.06rem;
}

.tp-final-cta .tp-hero-actions {
  justify-content: center;
}

/* ── FOOTER SEO ───────────────────────────────────────── */
.tp-footer-seo {
  padding: clamp(48px, 6vw, 80px) 0 0;
  margin-top: 0;
}

.tp-footer-seo-content {
  max-width: 900px;
  margin: 0 auto;
  column-count: 2;
  column-gap: 2.5rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

.tp-footer-seo-content h2,
.tp-footer-seo-content h3 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--tp-dark);
  margin: 1.2rem 0 0.6rem;
  column-span: all;
}

.tp-footer-seo-content h2 {
  font-size: 1.3rem;
}

.tp-footer-seo-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.tp-footer-seo-content h2:first-child,
.tp-footer-seo-content h3:first-child {
  margin-top: 0;
}

.tp-footer-seo-content p {
  margin-bottom: 1rem;
}

/* ── Reveal Staggering ────────────────────────────────── */
.reveal.visible .tp-cat-card,
.reveal.visible .tp-usecase,
.reveal.visible .tp-why-card,
.reveal.visible .tp-process-step,
.reveal.visible .tp-faq-item {
  opacity: 0;
  animation: tpStaggerFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.reveal.visible .tp-cat-card:nth-child(1),
.reveal.visible .tp-usecase:nth-child(1),
.reveal.visible .tp-why-card:nth-child(1),
.reveal.visible .tp-process-step:nth-child(1),
.reveal.visible .tp-faq-item:nth-child(1) { animation-delay: 0.05s; }

.reveal.visible .tp-cat-card:nth-child(2),
.reveal.visible .tp-usecase:nth-child(2),
.reveal.visible .tp-why-card:nth-child(2),
.reveal.visible .tp-process-step:nth-child(2),
.reveal.visible .tp-faq-item:nth-child(2) { animation-delay: 0.12s; }

.reveal.visible .tp-cat-card:nth-child(3),
.reveal.visible .tp-usecase:nth-child(3),
.reveal.visible .tp-why-card:nth-child(3),
.reveal.visible .tp-process-step:nth-child(3),
.reveal.visible .tp-faq-item:nth-child(3) { animation-delay: 0.19s; }

.reveal.visible .tp-cat-card:nth-child(4),
.reveal.visible .tp-usecase:nth-child(4),
.reveal.visible .tp-why-card:nth-child(4),
.reveal.visible .tp-process-step:nth-child(4),
.reveal.visible .tp-faq-item:nth-child(4) { animation-delay: 0.26s; }

.reveal.visible .tp-cat-card:nth-child(5),
.reveal.visible .tp-usecase:nth-child(5),
.reveal.visible .tp-why-card:nth-child(5),
.reveal.visible .tp-process-step:nth-child(5),
.reveal.visible .tp-faq-item:nth-child(5) { animation-delay: 0.33s; }

.reveal.visible .tp-cat-card:nth-child(6),
.reveal.visible .tp-usecase:nth-child(6),
.reveal.visible .tp-why-card:nth-child(6),
.reveal.visible .tp-process-step:nth-child(6),
.reveal.visible .tp-faq-item:nth-child(6) { animation-delay: 0.40s; }

.reveal.visible .tp-usecase:nth-child(7) { animation-delay: 0.47s; }
.reveal.visible .tp-usecase:nth-child(8) { animation-delay: 0.54s; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991.98px) {
  .tp-hero .container {
    grid-template-columns: 1fr;
  }

  .tp-hero-copy,
  .tp-hero-visual,
  .tp-hero-pricing {
    grid-column: 1;
  }

  .tp-hero-visual {
    grid-row: 2;
    max-width: 520px;
    margin: 0 auto;
  }

  .tp-hero-pricing {
    grid-row: 3;
  }

  .tp-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-techniques {
    gap: 2rem;
  }

  .tp-tech-display {
    height: 340px;
  }

  .tp-usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-process-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .tp-process-track::before {
    display: none;
  }

  .tp-footer-seo-content {
    column-count: 1;
  }
}

@media (max-width: 767.98px) {
  .tp-hero {
    padding: 6.5rem 0 3rem;
    min-height: auto;
  }

  .tp-hero .container {
    gap: 1.5rem;
  }

  .tp-hero-visual {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    max-width: 100%;
  }

  .tp-hero-img {
    aspect-ratio: 1 / 1;
  }

  .tp-hero-img--mobile {
    display: block;
  }

  .tp-hero-exec-row {
    flex-wrap: wrap;
  }

  .tp-hero-exec-item {
    flex: 1 1 calc(50% - 0.3rem);
  }

  .tp-hero-caption {
    font-size: 0.82rem;
    padding: 1.3rem 0.8rem 0.65rem;
  }

  .tp-hero-pricing {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .tp-hero-actions {
    flex-direction: column;
  }

  .tp-categories-grid,
  .tp-why-grid {
    grid-template-columns: 1fr;
  }

  .tp-techniques {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tp-tech-display {
    height: 280px;
    order: -1;
  }

  .tp-usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-process-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .tp-project-card {
    width: 210px;
    height: 230px;
  }

}

@media (max-width: 479.98px) {
  .tp-usecases-grid {
    grid-template-columns: 1fr;
  }

  .tp-process-track {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
