/*
Theme Name:   Tekton
Theme URI:    https://tekton.polanetwork.com
Author:       Polanetwork
Author URI:   https://polanetwork.com
Description:  Theme base corporativo para Tekton Ingeniería y Construcción S.L.
Version:      1.0.0
License:      Private
Text Domain:  tekton
*/

/* ── Variables globales ─────────────────────────────────── */
:root {
  --tk-primary:       #ED6A4C;
  --tk-primary-soft:  rgba(237, 106, 76, 0.12);
  --tk-dark:          #1a1a1a;
  --tk-dark-2:        #2d2d2d;
  --tk-text:          #1a1a1a;
  --tk-text-mid:      #555;
  --tk-text-light:    #888;
  --tk-text-muted:    #b0b0b0;
  --tk-border:        #eee;
  --tk-border-alt:    #e8e8e4;
  --tk-bg-alt:        #f8f8f6;
  --tk-bg-pill:       #f0f0ee;
  --tk-white:         #ffffff;
  --tk-max-width:     1100px;
  --tk-radius:        6px;
  --tk-radius-lg:     10px;
  --tk-radius-xl:     12px;
  --tk-font:          'Inter', sans-serif;
}

/* ── Reset mínimo ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tk-font);
  color: var(--tk-text);
  background: var(--tk-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--tk-font); }

/* ── Hero shortcode ─────────────────────────────────────── */
.tk-hero {
  background: linear-gradient(135deg, var(--tk-dark) 60%, var(--tk-dark-2) 100%);
  color: var(--tk-white);
  position: relative;
  overflow: hidden;
}
.tk-hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--tk-primary-soft);
  pointer-events: none;
}
.tk-hero-inner {
  max-width: var(--tk-max-width);
  margin: 0 auto;
  padding: 80px 2rem 72px;
  position: relative;
}
.tk-hero-25 {
  position: absolute;
  right: 2rem; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  opacity: 0;
  animation: tkFadeScaleIn 1s cubic-bezier(.22,1,.36,1) .3s forwards;
}
.tk-hero-25-num {
  font-size: clamp(80px, 10vw, 130px);
  font-weight: 700; line-height: 1;
  color: var(--tk-primary);
  letter-spacing: -4px;
  text-shadow: 0 0 60px rgba(237,106,76,.3);
}
.tk-hero-25-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.5); text-align: center;
}
.tk-hero-25-line {
  width: 2px; height: 40px;
  background: linear-gradient(to bottom, var(--tk-primary), transparent);
  margin-bottom: 4px;
  transform-origin: top;
  animation: tkLineGrow .6s cubic-bezier(.22,1,.36,1) 1.1s both;
}
@keyframes tkFadeScaleIn {
  from { opacity:0; transform: translateY(-50%) scale(.6); }
  to   { opacity:1; transform: translateY(-50%) scale(1); }
}
@keyframes tkLineGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.tk-hero-tag {
  display: inline-block;
  background: rgba(237,106,76,.22); color: #f5a08c;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 1.2rem;
}
.tk-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; line-height: 1.15;
  margin: 0 0 1.2rem; max-width: 600px;
}
.tk-hero h1 em { font-style: normal; color: var(--tk-primary); }
.tk-hero-desc {
  font-size: 16px; color: var(--tk-text-muted);
  max-width: 520px; line-height: 1.7; margin: 0 0 2rem;
}
.tk-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.tk-btn-primary {
  background: var(--tk-primary); color: var(--tk-white);
  padding: 12px 28px; border-radius: var(--tk-radius);
  font-size: 14px; font-weight: 600; border: none;
  transition: opacity .15s; display: inline-block;
}
.tk-btn-primary:hover { opacity: .88; color: var(--tk-white); }
.tk-btn-outline {
  background: transparent; color: var(--tk-white);
  padding: 12px 28px; border-radius: var(--tk-radius);
  font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.3);
  transition: border-color .15s; display: inline-block;
}
.tk-btn-outline:hover { border-color: rgba(255,255,255,.6); color: var(--tk-white); }
.tk-hero-stats {
  display: flex; gap: 2.5rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap; align-items: center;
}
.tk-stat-num { font-size: 28px; font-weight: 700; color: var(--tk-white); }
.tk-stat-label {
  font-size: 12px; color: #888; margin-top: 2px;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ── Helpers globales usados por Elementor ───────────────── */
.tk-section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--tk-primary); margin-bottom: 8px;
  display: block;
}
.tk-pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0rem; }
.tk-pill {
  background: var(--tk-bg-pill); color: #444;
  font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 20px;
}
body .elementor-widget-text-editor a.tk-pill {
  text-decoration: none;
  color: var(--tk-dark);
  transition: background .15s, color .15s;
  font-weight: 500;
}
body .elementor-widget-text-editor a.tk-pill:hover {
  background: var(--tk-primary);
  color: #fff;
}
.tk-obra-icon {
  width: 44px; height: 44px;
  background: #fdf1ee; border-radius: var(--tk-radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.tk-obra-icon svg { width: 22px; height: 22px; }

/* ── Responsive hero ────────────────────────────────────── */
@media (max-width: 700px) {
  .tk-hero-25 { display: none; }
}

/* ── WordPress helpers ──────────────────────────────────── */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.aligncenter { margin-left: auto; margin-right: auto; }

/* ── Enlaces dentro de Text Editor de Elementor ─────────── */
.elementor-widget-text-editor a {
  color: #ED6A4C;
  text-decoration: none;
  transition: text-decoration .15s;
  font-weight: 600;
}
.elementor-widget-text-editor a:hover {
  text-decoration: underline;
}

/* ── Footer legal menu ───────────────────────────────────── */
.tk-footer-legal ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.tk-footer-legal ul li { list-style: none; }

/* ── Submenú desplegable desktop ─────────────────────────── */
.tk-nav-links li { position: relative; }
.tk-nav-links li::after {
  content: '';
  position: absolute;
  top: 100%; left: 0;
  width: 100%; height: 12px;
}
.tk-nav-links .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 220px;
  padding: 6px 0;
  z-index: 500;
  list-style: none;
  margin: 0;
}
.tk-nav-links li:hover > .sub-menu { display: block; }
.tk-nav-links .sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px; font-weight: 400;
  color: #555; white-space: nowrap;
}
.tk-nav-links .sub-menu li a:hover { color: #ED6A4C; background: #fdf5f3; }

/* Submenú nivel 3 desktop */
.tk-nav-links .sub-menu .sub-menu { top: 0; left: 100%; }
.tk-nav-links .sub-menu li:hover > .sub-menu { display: block; }

/* ── Overlay ─────────────────────────────────────────────── */
.tk-nav-overlay { pointer-events: none; }
.tk-nav-overlay.open { pointer-events: auto; }

/* ── Botón cerrar y CTA móvil ────────────────────────────── */
.tk-mobile-cta { color: #ffffff !important; }
.tk-mobile-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 20px; color: #555;
  cursor: pointer; line-height: 1; padding: 4px 8px;
}
.tk-mobile-close:hover { color: #ED6A4C; }

/* ── Submenú móvil ───────────────────────────────────────── */
.tk-mobile-links .sub-menu {
  display: none;
  list-style: none; margin: 0; padding: 0;
  background: #f8f8f6;
}
.tk-mobile-links .menu-item-has-children.tk-expanded > .sub-menu { display: block; }
.tk-mobile-links .sub-menu li { position: relative; }
.tk-mobile-links .sub-menu li a {
  padding: 11px 2rem 11px 3rem;
  font-size: 14px; color: #777;
  border-bottom: 1px solid #eee;
}
.tk-mobile-links .sub-menu li a:hover { color: #ED6A4C; }
.tk-mobile-links .sub-menu .sub-menu li a {
  padding-left: 4rem;
  font-size: 13px; color: #999;
}

/* ── Contact Form 7 ──────────────────────────────────────── */
.wpcf7 p { margin: 0 0 16px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%; padding: 10px 14px;
  font-family: var(--tk-font); font-size: 14px;
  color: var(--tk-text); background: #fff;
  border: 1px solid #ddd; border-radius: var(--tk-radius);
  outline: none; transition: border-color .15s; box-sizing: border-box;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus { border-color: var(--tk-primary); }
.wpcf7 textarea { height: 120px; resize: vertical; }
.wpcf7 input[type="submit"] {
  background: var(--tk-primary); color: #fff;
  font-family: var(--tk-font); font-size: 14px; font-weight: 600;
  padding: 12px 32px; border: none; border-radius: var(--tk-radius);
  cursor: pointer; transition: opacity .15s;
}
.wpcf7 input[type="submit"]:hover { opacity: .88; }
.wpcf7 .wpcf7-acceptance { font-size: 12px; color: #666; }
.wpcf7 .wpcf7-acceptance a { color: var(--tk-primary); }
.wpcf7 .wpcf7-not-valid-tip { font-size: 12px; color: #e53e3e; margin-top: 4px; }
.wpcf7 .wpcf7-response-output {
  margin-top: 16px; padding: 10px 16px;
  border-radius: var(--tk-radius); font-size: 13px;
}

/* ── Cards de obras con imagen ───────────────────────────── */
.tk-obras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.tk-obra-card {
  background: #fff; border: 1px solid var(--tk-border-alt);
  border-radius: var(--tk-radius-lg); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.tk-obra-card:hover { border-color: var(--tk-primary); box-shadow: 0 4px 20px rgba(237,106,76,.1); }
.tk-obra-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.tk-obra-body { padding: 1.25rem 1.5rem 1.5rem; }
.tk-obra-body h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: var(--tk-dark); }
.tk-obra-body p { font-size: 13px; color: #777; line-height: 1.6; margin: 0; }

/* ── CTA strip ───────────────────────────────────────────── */
.tk-cta-strip { background: var(--tk-primary) !important; }
.tk-cta-inner {
  max-width: var(--tk-max-width); margin: 0 auto;
  padding: 56px 2rem; text-align: center; color: #fff;
}
.tk-cta-inner h2 { font-size: clamp(20px, 3vw, 30px); font-weight: 700; margin: 0 0 .75rem; color: #fff; }
.tk-cta-inner p { font-size: 15px; opacity: .85; margin: 0 auto 1.75rem; max-width: 480px; color: #fff; }
.tk-btn-white {
  background: #fff; color: var(--tk-primary);
  padding: 13px 32px; border-radius: var(--tk-radius);
  font-size: 14px; font-weight: 700; border: none;
  display: inline-block; text-decoration: none; transition: opacity .15s;
}
.tk-btn-white:hover { opacity: .9; color: var(--tk-primary); }

/* ── Sección genérica ────────────────────────────────────── */
.tk-section-wrap-alt { background: var(--tk-bg-alt); }
.tk-section { padding: 64px 2rem; max-width: var(--tk-max-width); margin: 0 auto; }
.tk-section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; }
.tk-section-desc { font-size: 15px; color: #666; max-width: 560px; line-height: 1.7; margin: 0 0 2.5rem; }

/* ── Blog single ─────────────────────────────────────────── */
.tk-blog-wrap { max-width: var(--tk-max-width); margin: 0 auto; padding: 48px 2rem 64px; }
.tk-blog-inner { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }

.tk-post-header { margin-bottom: 1.5rem; }
.tk-post-meta-top { margin-bottom: .75rem; }
.tk-post-cat {
  display: inline-block; background: var(--tk-primary-soft); color: var(--tk-primary);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; text-decoration: none; margin-right: 6px;
}
.tk-post-cat:hover { background: var(--tk-primary); color: #fff; }
.tk-post-title { font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.2; color: var(--tk-dark); margin: 0 0 1rem; }
.tk-post-meta { display: flex; gap: 1.25rem; font-size: 13px; color: var(--tk-text-light); align-items: center; flex-wrap: wrap; }
.tk-post-meta span { display: flex; align-items: center; gap: 5px; }

.tk-post-thumb { margin-bottom: 2rem; border-radius: var(--tk-radius-xl); overflow: hidden; }
.tk-post-thumb-img { width: 100%; height: auto; display: block; }

.tk-post-content { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 2rem; }
.tk-post-content p { margin: 0 0 1.2rem; }
.tk-post-content h2 { font-size: 22px; font-weight: 700; margin: 2rem 0 .75rem; color: var(--tk-dark); }
.tk-post-content h3 { font-size: 18px; font-weight: 600; margin: 1.5rem 0 .5rem; color: var(--tk-dark); }
.tk-post-content img { border-radius: var(--tk-radius-lg); margin: 1.5rem 0; max-width: 100%; }
.tk-post-content a { color: var(--tk-primary); }
.tk-post-content a:hover { text-decoration: underline; }
.tk-post-content ul,
.tk-post-content ol { padding-left: 1.5rem; margin: 0 0 1.2rem; list-style: initial; }
.tk-post-content ol { list-style: decimal; }
.tk-post-content li { margin-bottom: .4rem; }
.tk-post-content blockquote {
  border-left: 3px solid var(--tk-primary); margin: 1.5rem 0;
  padding: .75rem 1.5rem; background: var(--tk-bg-alt);
  border-radius: 0 var(--tk-radius) var(--tk-radius) 0;
  font-style: italic; color: #555;
}

.tk-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--tk-border); }
.tk-tag {
  background: var(--tk-bg-pill); color: #555;
  font-size: 12px; font-weight: 500; padding: 4px 12px;
  border-radius: 20px; text-decoration: none; transition: background .15s, color .15s;
}
.tk-tag:hover { background: var(--tk-primary); color: #fff; }

.tk-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--tk-border); }
.tk-post-nav-prev, .tk-post-nav-next { display: flex; flex-direction: column; gap: 4px; }
.tk-post-nav-next { text-align: right; align-items: flex-end; }
.tk-post-nav-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tk-text-muted); }
.tk-post-nav a { font-size: 14px; font-weight: 500; color: var(--tk-dark); text-decoration: none; transition: color .15s; line-height: 1.4; }
.tk-post-nav a:hover { color: var(--tk-primary); }

/* ── Sidebar ─────────────────────────────────────────────── */
.tk-blog-sidebar { position: sticky; top: 90px; }
.tk-widget { margin-bottom: 2rem; }
.tk-widget-title,
.tk-blog-sidebar .widget-title,
.tk-blog-sidebar h2 {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--tk-dark); margin: 0 0 1rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--tk-primary);
}
.tk-blog-sidebar .widget { margin-bottom: 2rem; }
.tk-blog-sidebar ul { list-style: none; margin: 0; padding: 0; }
.tk-blog-sidebar ul li { padding: 6px 0; border-bottom: 1px solid #f2f2f2; font-size: 13px; }
.tk-blog-sidebar ul li:last-child { border-bottom: none; }
.tk-blog-sidebar ul li a { color: #555; text-decoration: none; transition: color .15s; }
.tk-blog-sidebar ul li a:hover { color: var(--tk-primary); }

.tk-blog-sidebar .search-form { display: flex; border: 1px solid #ddd; border-radius: var(--tk-radius); overflow: hidden; }
.tk-blog-sidebar .search-field { flex: 1; padding: 8px 12px; font-size: 13px; font-family: var(--tk-font); border: none; outline: none; color: var(--tk-text); }
.tk-blog-sidebar .search-submit { background: var(--tk-primary); color: #fff; border: none; padding: 8px 14px; cursor: pointer; font-size: 13px; font-family: var(--tk-font); transition: opacity .15s; }
.tk-blog-sidebar .search-submit:hover { opacity: .88; }

.tk-blog-sidebar .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-blog-sidebar .tagcloud a {
  background: var(--tk-bg-pill); color: #555; font-size: 12px !important;
  font-weight: 500; padding: 4px 10px; border-radius: 20px;
  text-decoration: none; transition: background .15s, color .15s;
}
.tk-blog-sidebar .tagcloud a:hover { background: var(--tk-primary); color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 800px) {
  .tk-blog-inner { grid-template-columns: 1fr; }
  .tk-blog-sidebar { position: static; }
  .tk-post-nav { grid-template-columns: 1fr; }
  .tk-post-nav-next { text-align: left; align-items: flex-start; }
}
@media (max-width: 700px) {
  .tk-obras-grid { grid-template-columns: 1fr; }
}

/* ── Archive / Blog grid ─────────────────────────────────── */
.tk-archive-header {
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
}
.tk-archive-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--tk-dark);
  margin: 4px 0 0;
  line-height: 1.2;
}
.tk-archive-desc {
  font-size: 15px;
  color: var(--tk-text-mid);
  margin: .75rem 0 0;
  line-height: 1.6;
}

/* Grid */
.tk-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

/* Card */
.tk-post-card {
  background: #fff;
  border: 1px solid var(--tk-border-alt);
  border-radius: var(--tk-radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.tk-post-card:hover {
  border-color: var(--tk-primary);
  box-shadow: 0 4px 20px rgba(237,106,76,.08);
}

/* Imagen */
.tk-post-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--tk-bg-alt);
}
.tk-post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.tk-post-card:hover .tk-post-card-img {
  transform: scale(1.03);
}
.tk-post-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}
.tk-post-card-img-placeholder svg {
  width: 48px;
  height: 48px;
}

/* Body */
.tk-post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tk-post-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: .75rem;
}
.tk-post-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .75rem;
}
.tk-post-card-title a {
  color: var(--tk-dark);
  text-decoration: none;
  transition: color .15s;
}
.tk-post-card-title a:hover { color: var(--tk-primary); }
.tk-post-card-excerpt {
  font-size: 13px;
  color: var(--tk-text-mid);
  line-height: 1.65;
  margin: 0 0 1rem;
  flex: 1;
}
.tk-post-card-meta {
  font-size: 12px;
  color: var(--tk-text-muted);
  margin-top: auto;
}

/* Paginación */
.tk-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.tk-pagination .nav-links {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.tk-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--tk-border-alt);
  border-radius: var(--tk-radius);
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: all .15s;
}
.tk-pagination .page-numbers:hover,
.tk-pagination .page-numbers.current {
  background: var(--tk-primary);
  border-color: var(--tk-primary);
  color: #fff;
}
.tk-pagination .page-numbers.dots {
  border: none;
  background: none;
}

.tk-no-posts {
  font-size: 15px;
  color: var(--tk-text-mid);
  text-align: center;
  padding: 3rem 0;
}
/* ── Título página Blog ──────────────────────────────────── */
.tk-archive-title--blog {
    font-size: clamp(32px, 4vw, 42px);
    color: var(--tk-primary);
}
/* ── Filtro categorías clientes ──────────────────────────── */
.tk-proyectos-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2rem;
  padding: 1.25rem 0;
}
.tk-proyectos-cat-link {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--tk-border-alt);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.tk-proyectos-cat-link:hover,
.tk-proyectos-cat-link.active {
  background: var(--tk-primary);
  border-color: var(--tk-primary);
  color: #fff;
}
/* Responsive archive */
@media (max-width: 900px) {
  .tk-posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tk-posts-grid { grid-template-columns: 1fr; }
}
/* ── Carousel ────────────────────────────────────────────── */
.tk-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: var(--tk-radius-xl);
  overflow: hidden;
  background: #000;
}
.tk-carousel-track { position: relative; }
.tk-carousel-slide { display: none; }
.tk-carousel-slide.active { display: block; }
.tk-carousel-slide img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
}
.tk-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.tk-carousel-btn:hover { background: var(--tk-primary); }
.tk-carousel-prev { left: 1rem; }
.tk-carousel-next { right: 1rem; }
.tk-carousel-dots {
  position: absolute;
  bottom: .75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.tk-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}
.tk-carousel-dot.active { background: var(--tk-primary); }
.tk-carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f0f0f0;
  overflow-x: auto;
}
.tk-carousel-thumb {
  flex-shrink: 0;
  width: 80px; height: 56px;
  border: 2px solid transparent;
  border-radius: var(--tk-radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color .15s;
}
.tk-carousel-thumb.active { border-color: var(--tk-primary); }
.tk-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 600px) {
  .tk-carousel-slide img { max-height: 260px; }
  .tk-carousel-thumb { width: 60px; height: 42px; }
}

/* ── Formulario presupuesto ──────────────────────────────── */
.tk-form-section {
  margin-bottom: 2rem;
}
.tk-form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tk-dark);
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--tk-primary);
}
.tk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}
.tk-form-col p {
  margin: 0 0 1rem;
  min-height: 72px;
}
.tk-form-col .wpcf7-form-control-wrap {
  margin-top: 4px;
  display: block;
}
.tk-form-col label {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  display: block;
}
.tk-form-unit {
  font-size: 12px;
  color: var(--tk-primary);
  font-weight: 600;
  margin-left: 4px;
}
@media (max-width: 600px) {
  .tk-form-grid { grid-template-columns: 1fr; }
}
.tk-footer-address-link {
  text-decoration: none;
  color: inherit;
}
.tk-footer-address-link:hover .tk-footer-address {
  color: var(--tk-primary);
}
@media (min-width: 1024px) {
.tk-nav-links li.current-page-ancestor > a,
.tk-nav-links li.current-post-ancestor > a,
.tk-nav-links li.current-menu-ancestor > a {
  color: var(--tk-primary);
}
}