/**
 * TANIK · Hoja de estilos principal
 * ---------------------------------------------------------------------------
 * Todo el layout se apoya en la grilla de Bootstrap (container/row/col).
 * Aquí sólo viven los tokens de marca, componentes propios, estados hover
 * y animaciones. No se usan clases nativas de WordPress.
 * ---------------------------------------------------------------------------
 */

/* =========================================================================
   1. TOKENS DE MARCA (Manual TANIK)
   ========================================================================= */
:root {
  /* Paleta oficial */
  --tk-blanco: #F5F5F3;   /* Blanco cálido */
  --tk-verde:  #4A5439;   /* Verde        */
  --tk-acento: #C96A3D;   /* Acento       */
  --tk-grafito:#2B2B2B;   /* Grafito      */
  --tk-white:  #FFFFFF;

  /* Variantes hover (oscurecidas ~12-15%) */
  --tk-acento-hover: #AB5A34;
  --tk-verde-hover:  #3F4731;
  --tk-grafito-hover:#1C1C1C;

  /* Neutros de apoyo derivados del grafito */
  --tk-text:       #2B2B2B;
  --tk-text-muted: #6B6B6B;
  --tk-border:     #E3E1DC;
  --tk-border-soft:#ECEAE5;

  /* Tipografía */
  --tk-font-primary:   "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tk-font-secondary: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala tipográfica */
  --tk-h1: clamp(2rem, 4vw, 3rem);
  --tk-h2: clamp(1.6rem, 3vw, 2.25rem);
  --tk-h3: clamp(1.25rem, 2.2vw, 1.6rem);

  /* Ritmo / radios / sombras */
  --tk-radius: 10px;
  --tk-radius-lg: 16px;
  --tk-shadow: 0 10px 30px rgba(43, 43, 43, .08);
  --tk-shadow-hover: 0 16px 40px rgba(43, 43, 43, .14);
  --tk-transition: .25s ease;
  --tk-header-h: 84px;
}

/* =========================================================================
   2. BASE
   ========================================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tanik {
  font-family: var(--tk-font-primary);
  color: var(--tk-text);
  background: var(--tk-white);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tanik h1, .tanik h2, .tanik h3, .tanik h4, .tanik h5, .tanik h6 {
  font-family: var(--tk-font-primary);
  color: var(--tk-grafito);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
}
.tanik h1 { font-size: var(--tk-h1); }
.tanik h2 { font-size: var(--tk-h2); }
.tanik h3 { font-size: var(--tk-h3); }

.tanik p { margin: 0 0 1rem; }

.tanik a { color: inherit; text-decoration: none; transition: color var(--tk-transition); }
.tanik a:hover { color: var(--tk-acento); }

.tanik img { max-width: 100%; height: auto; }

/* Textos legales / etiquetas: tipografía secundaria (Inter) */
.tk-font-secondary,
.tanik .legal,
.tanik .tk-caption { font-family: var(--tk-font-secondary); }

/* Utilidades de color de marca */
.tk-bg-blanco  { background-color: var(--tk-blanco) !important; }
.tk-bg-verde   { background-color: var(--tk-verde)  !important; color: #fff; }
.tk-bg-acento  { background-color: var(--tk-acento) !important; color: #fff; }
.tk-bg-grafito { background-color: var(--tk-grafito)!important; color: #fff; }
.tk-text-verde { color: var(--tk-verde)  !important; }
.tk-text-acento{ color: var(--tk-acento) !important; }
.tk-text-muted { color: var(--tk-text-muted) !important; }

/* Eyebrow / antetítulo con guion (se ve en varios mockups) */
.tk-eyebrow {
  font-family: var(--tk-font-secondary);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--tk-text-muted);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.tk-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--tk-acento);
  display: inline-block;
}

/* Título de sección con subrayado acento (ej. "Contacto", "La tienda") */
.tk-title-underline { position: relative; padding-bottom: .55rem; margin-bottom: 1.25rem; }
.tk-title-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--tk-acento);
}

/* Breadcrumb (INICIO / TIENDA / ...) */
.tk-breadcrumb {
  font-family: var(--tk-font-secondary);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  color: var(--tk-text-muted);
  margin-bottom: 1.25rem;
}
.tk-breadcrumb a:hover { color: var(--tk-acento); }
.tk-breadcrumb .sep { margin: 0 .4rem; }

/* =========================================================================
   3. BOTONES (hover = oscurecer un poco el color)
   ========================================================================= */
.tk-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--tk-font-primary);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--tk-transition), color var(--tk-transition),
              border-color var(--tk-transition), transform var(--tk-transition);
  line-height: 1;
}
.tk-btn:hover { transform: translateY(-1px); }

/* Primario = acento (CTA principal, siempre naranja) */
.tk-btn--acento { background: var(--tk-acento); color: #fff; }
.tk-btn--acento:hover { background: var(--tk-acento-hover); color: #fff; }

/* Verde */
.tk-btn--verde { background: var(--tk-verde); color: #fff; }
.tk-btn--verde:hover { background: var(--tk-verde-hover); color: #fff; }

/* Outline acento (ej. "Ver ficha técnica") */
.tk-btn--outline { background: transparent; color: var(--tk-acento); border-color: var(--tk-acento); }
.tk-btn--outline:hover { background: var(--tk-acento); color: #fff; }

/* Enlace con flecha */
.tk-btn--link {
  padding: 0; background: none; color: var(--tk-grafito);
  border: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem;
}
.tk-btn--link .tk-arrow { transition: transform var(--tk-transition); }
.tk-btn--link:hover { color: var(--tk-acento); }
.tk-btn--link:hover .tk-arrow { transform: translateX(4px); }

/* =========================================================================
   4. HEADER / NAV
   ========================================================================= */
.tk-header {
  background: var(--tk-blanco);
  border-bottom: 1px solid var(--tk-border-soft);
  position: sticky; top: 0; z-index: 1030;
}
.tk-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--tk-header-h);
  gap: 1.5rem;
}
.tk-logo { display: inline-flex; align-items: center; }
.tk-logo img,
.tk-logo .custom-logo { height: 30px; width: auto; display: block; }
.tk-logo .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }

.tk-nav { display: flex; align-items: center; gap: 1.75rem; }
.tk-nav__menu {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.tk-nav__menu a {
  position: relative;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tk-grafito);
  padding: .35rem 0;
}
/* Hover en menú principal: subrayado que crece desde el centro */
.tk-nav__menu a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--tk-acento);
  transition: width var(--tk-transition);
}
.tk-nav__menu a:hover { color: var(--tk-grafito); }
.tk-nav__menu a:hover::after { width: 100%; }
/* Ítem activo: subrayado fijo */
.tk-nav__menu li.current-menu-item > a::after,
.tk-nav__menu li.current-menu-parent > a::after,
.tk-nav__menu a.is-active::after { width: 100%; background: var(--tk-grafito); }

.tk-nav__icons { display: flex; align-items: center; gap: 1.1rem; }
.tk-nav__icons a { position: relative; display: inline-flex; color: var(--tk-grafito); }
.tk-nav__icons a:hover { color: var(--tk-acento); }
.tk-cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--tk-acento); color: #fff;
  font-family: var(--tk-font-secondary);
  font-size: .6rem; font-weight: 600;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Toggle móvil */
.tk-nav-toggle { display: none; background: none; border: 0; color: var(--tk-grafito); padding: .25rem; }

@media (max-width: 991.98px) {
  .tk-nav-toggle { display: inline-flex; }
  .tk-nav__menu {
    position: fixed; inset: var(--tk-header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--tk-blanco);
    border-bottom: 1px solid var(--tk-border);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    transition: transform var(--tk-transition);
    z-index: 1029;
  }
  .tk-header.is-open .tk-nav__menu { transform: translateY(0); }
  .tk-nav__menu li { width: 100%; border-bottom: 1px solid var(--tk-border-soft); }
  .tk-nav__menu a { display: block; padding: .9rem 0; }
}

/* =========================================================================
   5. HERO
   ========================================================================= */
.tk-hero { position: relative; }
.tk-hero__media { position: relative; overflow: hidden; }
.tk-hero__media img { width: 100%; height: clamp(340px, 46vw, 560px); object-fit: cover; display: block; }
.tk-hero--overlay .tk-hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.tk-hero__content h1 { max-width: 15ch; }

/* Franja de sección con corte irregular (borde "papel roto" del mockup) */
.tk-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.tk-section--soft { background: var(--tk-blanco); }

/* =========================================================================
   6. TARJETA DE PRODUCTO (grilla tienda / home / relacionados)
   ========================================================================= */
.tk-product {
  background: #fff;
  height: 100%;
  display: flex; flex-direction: column;
  text-align: center;
  transition: transform var(--tk-transition);
}
.tk-product__media {
  background: var(--tk-blanco);
  border-radius: var(--tk-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.tk-product__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 12% 22%;
  transition: transform .4s ease;
}
.tk-product:hover .tk-product__media img { transform: scale(1.05); }
.tk-product__brand {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--tk-grafito);
}
.tk-product__name {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--tk-grafito); margin: .1rem 0 .3rem;
}
.tk-product__variety {
  font-family: var(--tk-font-secondary);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--tk-text-muted);
}
.tk-product__price {
  font-family: var(--tk-font-secondary);
  font-size: .85rem; color: var(--tk-grafito); margin: .5rem 0 .9rem;
}
.tk-product__price small { color: var(--tk-text-muted); }
.tk-product__cart {
  margin-top: auto;
  font-family: var(--tk-font-primary);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tk-grafito);
  background: none; border: 0; border-top: 1px solid var(--tk-border);
  padding: .85rem 0 .2rem; width: 100%; cursor: pointer;
  transition: color var(--tk-transition);
}
.tk-product__cart:hover { color: var(--tk-acento); }

/* =========================================================================
   7. FICHA DE PRODUCTO (single)
   ========================================================================= */
.tk-single__gallery img { width: 100%; border-radius: var(--tk-radius); }
.tk-single__brand { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tk-grafito); }
.tk-single__title { margin-top: .35rem; }
.tk-single__subtitle { letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--tk-grafito); }
.tk-single__origin {
  font-family: var(--tk-font-secondary);
  letter-spacing: .1em; text-transform: uppercase; font-size: .7rem;
  color: var(--tk-text-muted); margin-bottom: 1.25rem;
}
.tk-single__price {
  font-size: 1.5rem; color: var(--tk-grafito);
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 1.25rem; margin: 1.25rem 0;
}
.tk-single__price small { font-family: var(--tk-font-secondary); font-size: .85rem; color: var(--tk-text-muted); }

/* Selector cantidad */
.tk-qty { display: inline-flex; align-items: center; border: 1px solid var(--tk-border); border-radius: 2px; }
.tk-qty button { background: none; border: 0; width: 40px; height: 46px; font-size: 1.1rem; cursor: pointer; color: var(--tk-grafito); }
.tk-qty input { width: 44px; height: 46px; border: 0; text-align: center; font-family: var(--tk-font-secondary); }
.tk-qty input::-webkit-outer-spin-button,
.tk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Maridaje */
.tk-pairing { background: var(--tk-blanco); }
.tk-pairing__list { list-style: none; padding: 0; margin: 0; }
.tk-pairing__list li { position: relative; padding-left: 1.1rem; margin-bottom: .5rem; }
.tk-pairing__list li::before { content: "•"; color: var(--tk-acento); position: absolute; left: 0; }

/* Tabla ficha técnica */
.tk-tech { width: 100%; border-collapse: collapse; font-family: var(--tk-font-secondary); font-size: .9rem; }
.tk-tech th, .tk-tech td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--tk-border); }
.tk-tech th { width: 40%; color: var(--tk-text-muted); font-weight: 500; }

/* =========================================================================
   8. TIENDA · SIDEBAR DE FILTROS
   ========================================================================= */
.tk-filters__group { border-bottom: 1px solid var(--tk-border-soft); padding: 1rem 0; }
.tk-filters__title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tk-grafito); cursor: pointer; margin: 0;
}
.tk-filters__list { list-style: none; padding: .8rem 0 0; margin: 0; }
.tk-filters__list li { margin-bottom: .5rem; }
.tk-filters label {
  font-family: var(--tk-font-secondary); font-size: .82rem; color: var(--tk-text);
  display: flex; align-items: center; gap: .5rem; cursor: pointer;
}
.tk-filters input[type="checkbox"] { accent-color: var(--tk-verde); }
.tk-shop__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--tk-font-secondary); font-size: .8rem; color: var(--tk-text-muted);
  margin-bottom: 1.5rem;
}

/* Paginación */
.tk-pagination { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: 2.5rem; }
.tk-pagination a, .tk-pagination span {
  font-family: var(--tk-font-secondary); font-size: .85rem;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px; color: var(--tk-text-muted);
}
.tk-pagination .current { background: var(--tk-verde); color: #fff; }
.tk-pagination a:hover { color: var(--tk-acento); }

/* =========================================================================
   9. PRODUCTORES
   ========================================================================= */
.tk-producer {
  background: #fff; border: 1px solid var(--tk-border-soft);
  border-radius: var(--tk-radius); overflow: hidden; height: 100%;
  transition: box-shadow var(--tk-transition), transform var(--tk-transition);
}
.tk-producer:hover { box-shadow: var(--tk-shadow-hover); transform: translateY(-3px); }
.tk-producer__media { aspect-ratio: 16 / 10; background: var(--tk-blanco); overflow: hidden; }
.tk-producer__media img { width: 100%; height: 100%; object-fit: cover; }
.tk-producer__body { padding: 1.4rem 1.5rem 1.6rem; }
.tk-producer__name { font-size: 1.15rem; margin-bottom: .4rem; }
.tk-producer__logo { max-height: 46px; width: auto; margin-bottom: .9rem; }

/* =========================================================================
   10. CHECKOUT · CROSS-SELL "completa tu compra"
   ========================================================================= */
.tk-crosssell { border: 1px solid var(--tk-border-soft); border-radius: var(--tk-radius); padding: 1.5rem; background: #fff; }
.tk-crosssell__item {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--tk-border-soft);
}
.tk-crosssell__item:last-child { border-bottom: 0; }
.tk-crosssell__item img { width: 54px; height: 54px; object-fit: contain; background: var(--tk-blanco); border-radius: 6px; }
.tk-crosssell__meta { flex: 1; min-width: 0; }
.tk-crosssell__meta strong { display: block; font-size: .85rem; }
.tk-crosssell__meta span { font-family: var(--tk-font-secondary); font-size: .78rem; color: var(--tk-text-muted); }

/* =========================================================================
   11. FORMULARIOS (Contact Form 7 + Woo)
   ========================================================================= */
.tk-form-card { background: var(--tk-blanco); border-radius: var(--tk-radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--tk-shadow); }
.tk-field { margin-bottom: 1.1rem; }
.tk-field label { display: block; font-size: .8rem; color: var(--tk-grafito); margin-bottom: .35rem; }
.tanik input[type="text"],
.tanik input[type="email"],
.tanik input[type="tel"],
.tanik input[type="number"],
.tanik input[type="search"],
.tanik textarea,
.tanik select,
.tanik .wpcf7 input,
.tanik .wpcf7 textarea {
  width: 100%;
  font-family: var(--tk-font-secondary);
  font-size: .9rem;
  color: var(--tk-text);
  background: #fff;
  border: 1px solid var(--tk-border);
  border-radius: 6px;
  padding: .7rem .85rem;
  transition: border-color var(--tk-transition), box-shadow var(--tk-transition);
}
.tanik textarea { min-height: 130px; resize: vertical; }
.tanik input:focus, .tanik textarea:focus, .tanik select:focus {
  outline: none; border-color: var(--tk-acento);
  box-shadow: 0 0 0 3px rgba(201, 106, 61, .12);
}
.tanik .wpcf7-submit { /* CF7 usa este botón; le damos el estilo de CTA */
  font-family: var(--tk-font-primary); font-weight: 500; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--tk-acento); color: #fff;
  border: 0; border-radius: 2px; padding: .85rem 1.6rem; cursor: pointer;
  transition: background-color var(--tk-transition);
}
.tanik .wpcf7-submit:hover { background: var(--tk-acento-hover); }

/* =========================================================================
   12. FOOTER
   ========================================================================= */
.tk-footer { background: var(--tk-blanco); position: relative; overflow: hidden; }
.tk-footer__inner { position: relative; z-index: 2; padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem; }
.tk-footer__logo img,
.tk-footer__logo .tk-footer__logo-img { height: 46px; width: auto; display: block; }
.tk-footer__sep { width: 64px; height: 1px; background: var(--tk-border); margin: 1.2rem 0; }
.tk-footer__social { display: flex; gap: 1rem; }
.tk-footer__social a { color: var(--tk-verde); transition: color var(--tk-transition), transform var(--tk-transition); }
.tk-footer__social a:hover { color: var(--tk-acento); transform: translateY(-2px); }
.tk-footer__col-title {
  font-family: var(--tk-font-secondary); font-style: italic;
  font-size: .9rem; color: var(--tk-grafito); margin-bottom: 1rem;
  border-bottom: 1px solid var(--tk-border); padding-bottom: .5rem; display: inline-block;
}
.tk-footer__col ul { list-style: none; padding: 0; margin: 0; }
.tk-footer__col li { margin-bottom: .55rem; }
.tk-footer__col a { font-family: var(--tk-font-secondary); font-size: .85rem; color: var(--tk-text-muted); }
.tk-footer__col a:hover { color: var(--tk-acento); }
.tk-footer__bottom {
  border-top: 1px solid var(--tk-border); margin-top: 2.5rem; padding-top: 1.25rem;
  font-family: var(--tk-font-secondary); font-size: .72rem; color: var(--tk-text-muted);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
/* Ilustración de fondo (viñedo) opcional: se setea vía inline style con la imagen del cliente */
.tk-footer__art {
  position: absolute; left: 0; right: 0; bottom: 0; height: 220px;
  background-repeat: no-repeat; background-position: bottom center; background-size: cover;
  opacity: .12; z-index: 1; pointer-events: none;
}

/* =========================================================================
   13. ANIMACIONES · aparición al hacer scroll (fade / rise)
   ========================================================================= */
.tk-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.tk-reveal.is-visible { opacity: 1; transform: none; }
.tk-reveal--fade { transform: none; }
.tk-reveal--left { transform: translateX(-28px); }
.tk-reveal--right{ transform: translateX(28px); }
.tk-reveal--zoom { transform: scale(.96); }
/* Retardos escalonados para grillas */
.tk-reveal[data-delay="1"] { transition-delay: .08s; }
.tk-reveal[data-delay="2"] { transition-delay: .16s; }
.tk-reveal[data-delay="3"] { transition-delay: .24s; }
.tk-reveal[data-delay="4"] { transition-delay: .32s; }

/* Respeto por usuarios con "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tk-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tk-btn:hover { transform: none; }
}

/* =========================================================================
   14. ACCESIBILIDAD
   ========================================================================= */
.tk-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.tanik a:focus-visible, .tanik button:focus-visible, .tanik input:focus-visible {
  outline: 2px solid var(--tk-acento); outline-offset: 2px;
}

/* =========================================================================
   BLOQUES LAZY BLOCKS — Hero Home, Media+Cita, Media+Texto+CTA
   ========================================================================= */

/* Utilidad de ancho completo (breakout, funciona dentro o fuera de .container) */
.tk-fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Línea decorativa reutilizable */
.tk-rule { display: block; width: 56px; height: 2px; background: var(--tk-acento); }
.tk-rule--top   { margin-bottom: 1.1rem; }
.tk-rule--below { margin-top: 1.3rem; }

/* ---- Header transparente + menú blanco (sólo cuando hay Hero Home) ------- */
.tk-transparent-header .tk-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; border-bottom: 0;
  z-index: 1030;
}
.tk-transparent-header .tk-nav__icons a,
.tk-transparent-header .tk-nav__search,
.tk-transparent-header .tk-nav-toggle { color: #fff; }
@media (min-width: 992px) {
  .tk-transparent-header .tk-nav__menu a { color: #fff; }
  .tk-transparent-header .tk-nav__menu a:hover { color: #fff; }
  .tk-transparent-header .tk-nav__menu li.current-menu-item > a::after,
  .tk-transparent-header .tk-nav__menu a.is-active::after { background: #fff; }
}

/* ---- 1) Hero Home -------------------------------------------------------- */
.tk-hero-home {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: center; overflow: hidden;
}
.tk-hero-home__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(245,245,243,.94) 0%,
    rgba(245,245,243,.62) 34%,
    rgba(245,245,243,0) 62%);
}
.tk-hero-home .container { position: relative; z-index: 2; }
.tk-hero-home__inner { max-width: 34rem; padding-top: var(--tk-header-h); }
.tk-hero-home__title {
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 400; line-height: 1.2; margin: 0;
  color: var(--tk-grafito);
}
.tk-hero-home__title strong { font-weight: 600; }
.tk-rule--home { width: 64px; background: var(--tk-grafito); margin: 1.4rem 0; }

/* ---- 2) y 3) Bloques de media + texto ----------------------------------- */
.tk-mediablk { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.tk-mediablk__row {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.tk-mediablk__media img { width: 100%; height: auto; display: block; border-radius: 0; }

@media (min-width: 992px) {
  /* 50/50 por defecto (Media + Cita) */
  .tk-mediablk__row { grid-template-columns: 1fr 1fr; }
  /* 60/40 (Media + Texto + CTA) */
  .tk-mediablk__row--6040.tk-mediablk__row--left  { grid-template-columns: 60fr 40fr; }
  .tk-mediablk__row--6040.tk-mediablk__row--right { grid-template-columns: 40fr 60fr; }
  /* Imagen a la derecha → invertir el orden visual */
  .tk-mediablk__row--right .tk-mediablk__media { order: 2; }
  .tk-mediablk__row--right .tk-mediablk__text  { order: 1; }
}

.tk-mediablk__title { margin: 0 0 .5rem; }
.tk-mediablk__lead  { margin: 0; font-size: 1rem; line-height: 1.7; }
.tk-mediablk__cta   { margin-top: 1.4rem; }

/* Cita (bloque Media + Cita): texto en itálica, línea debajo */
.tk-quote {
  font-family: var(--tk-font-primary);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.4;
}
.tk-quote p { margin: 0; }
