/*
Theme Name:  TrámiteConsular CA
Theme URI:   https://tramiteconsular.ca
Description: Tema hijo para tramiteconsular.ca — Directorio consular en Canadá
Author:      seofune.es
Template:    asap
Version:     3.0.0
Text Domain: tramiteconsular-ca
*/

/* =====================================================
   VARIABLES
===================================================== */
:root {
  --tc-navy:      #0D1F3C;
  --tc-blue:      #1A3A6B;
  --tc-gold:      #C9A84C;
  --tc-gold-light:#e0c06e;
  --tc-white:     #ffffff;
  --tc-offwhite:  #f5f6f8;
  --tc-border:    #dde1ea;
  --tc-muted:     #5a6480;
  --tc-dark:      #07111f;
  --tc-font-head: 'DM Serif Display', Georgia, serif;
  --tc-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =====================================================
   RESET BÁSICO
===================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--tc-font-body) !important;
  color: var(--tc-navy) !important;
  background: #fff !important;
  line-height: 1.65;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

a { color: var(--tc-blue); text-decoration: none; }
a:hover { color: var(--tc-gold); }
img { max-width: 100%; height: auto; display: block; }

/* =====================================================
   CONTENEDOR
===================================================== */
.tc-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   OCULTAR ELEMENTOS DEL TEMA PADRE QUE NO QUEREMOS
===================================================== */
.site-header,
.main-navigation,
#masthead,
#colophon,
.site-footer {
  display: none !important;
}

/* =====================================================
   FOOTER PROPIO
===================================================== */
.tc-site-footer {
  background: var(--tc-dark);
  border-top: 1px solid rgba(201,168,76,.15);
  padding: 48px 0 28px;
  color: rgba(255,255,255,.7);
}

.tc-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 36px;
}

.tc-footer-logo {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  margin-bottom: 14px;
  font-family: var(--tc-font-head);
}

.tc-footer-logo span { color: var(--tc-gold); }

.tc-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  max-width: 360px;
  margin: 0;
}

.tc-footer-nav {
  display: flex;
  gap: 40px;
}

.tc-footer-nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.6) !important;
  text-decoration: none !important;
  transition: color .15s;
  white-space: nowrap;
}

.tc-footer-nav a:hover { color: var(--tc-gold) !important; }

.tc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
}

.tc-footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .tc-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tc-footer-nav {
    flex-wrap: wrap;
    gap: 24px;
  }
}

/* =====================================================
   HERO
===================================================== */
.tc-hero {
  background: linear-gradient(135deg, var(--tc-navy) 0%, var(--tc-blue) 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.tc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.tc-hero-eyebrow {
  display: inline-block;
  background: rgba(201,168,76,.18);
  color: var(--tc-gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(201,168,76,.3);
}

.tc-hero h1 {
  font-family: var(--tc-font-head) !important;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #fff !important;
}

.tc-hero h1 em { color: var(--tc-gold-light); font-style: normal; }

.tc-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.tc-hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.tc-hero-trust-item { font-size: 14px; color: rgba(255,255,255,.75); }
.tc-hero-trust-item strong { color: #fff; }
.tc-hero-trust-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }

/* Hero variantes */
.tc-hero-pais-inner,
.tc-hero-ficha-inner,
.tc-hero-tramite-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.tc-hero-pais-flag,
.tc-ficha-hero-flag,
.tc-tramite-hero-icon { font-size: 72px; line-height: 1; flex-shrink: 0; }

.tc-tramite-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tc-tramite-meta-item { display: flex; flex-direction: column; gap: 2px; }
.tc-tramite-meta-label { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .8px; }
.tc-tramite-meta-item strong { font-size: 15px; color: #fff; }

/* Search bar */
.tc-search-bar {
  display: flex;
  max-width: 560px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.tc-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 15px;
  color: #fff;
  font-family: var(--tc-font-body);
}

.tc-search-bar input::placeholder { color: rgba(255,255,255,.55); }

.tc-search-bar button {
  background: var(--tc-gold);
  color: var(--tc-navy);
  border: none;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.tc-search-bar button:hover { background: var(--tc-gold-light); }

/* =====================================================
   SECCIONES
===================================================== */
.tc-section { padding: 64px 0; }
.tc-section-alt { background: var(--tc-offwhite); padding: 64px 0; }

.tc-section-head { text-align: center; margin-bottom: 48px; }

.tc-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tc-gold);
  margin-bottom: 10px;
}

.tc-section-head h2 {
  font-family: var(--tc-font-head) !important;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: normal;
  color: var(--tc-navy) !important;
  margin: 0 0 12px !important;
}

.tc-section-head p { color: var(--tc-muted); max-width: 560px; margin: 0 auto; }

/* =====================================================
   GRIDS
===================================================== */
.tc-paises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.tc-tramites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tc-fichas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* =====================================================
   TARJETAS PAÍS
===================================================== */
.tc-pais-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 12px 18px;
  background: #fff;
  border: 1.5px solid var(--tc-border);
  border-radius: 10px;
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  gap: 8px;
  color: var(--tc-navy) !important;
}

.tc-pais-card:hover {
  border-color: var(--tc-gold);
  box-shadow: 0 4px 20px rgba(13,31,60,.1);
  transform: translateY(-2px);
  color: var(--tc-navy) !important;
}

.tc-flag { font-size: 32px; line-height: 1; display: block; }
.tc-pais-name { font-size: 13px; font-weight: 600; color: var(--tc-navy); line-height: 1.3; }

/* =====================================================
   TARJETAS TRÁMITE
===================================================== */
.tc-tramite-card {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1.5px solid var(--tc-border);
  border-radius: 10px;
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--tc-navy) !important;
}

.tc-tramite-card:hover {
  border-color: var(--tc-gold);
  box-shadow: 0 4px 20px rgba(13,31,60,.1);
  transform: translateY(-2px);
}

.tc-tramite-icon { font-size: 32px; line-height: 1; }

.tc-tramite-card h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--tc-navy) !important;
  margin: 0 !important;
}

.tc-tramite-card p { font-size: 14px; color: var(--tc-muted); line-height: 1.6; flex: 1; margin: 0; }
.tc-card-link { font-size: 13px; font-weight: 600; color: var(--tc-gold); margin-top: auto; }

/* =====================================================
   TARJETAS FICHA
===================================================== */
.tc-ficha-card {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: #fff;
  border: 1.5px solid var(--tc-border);
  border-radius: 10px;
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--tc-navy) !important;
}

.tc-ficha-card:hover {
  border-color: var(--tc-gold);
  box-shadow: 0 4px 20px rgba(13,31,60,.1);
  transform: translateY(-2px);
}

.tc-ficha-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tc-ficha-tipo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--tc-gold); }
.tc-ficha-ciudad { font-size: 12px; color: var(--tc-muted); }

.tc-ficha-card h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--tc-navy) !important;
  margin: 0 !important;
  line-height: 1.4;
}

.tc-ficha-dir, .tc-ficha-tel { font-size: 13px; color: var(--tc-muted); margin: 0; }

/* =====================================================
   SINGLE FICHA
===================================================== */
.tc-ficha-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.tc-ficha-section-title {
  font-family: var(--tc-font-head) !important;
  font-size: 22px;
  font-weight: normal;
  color: var(--tc-navy);
  margin: 0 0 20px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tc-border);
}

.tc-contact-list { display: flex; flex-direction: column; gap: 16px; }
.tc-contact-item { display: flex; align-items: flex-start; gap: 14px; }
.tc-contact-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.tc-contact-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--tc-muted); font-weight: 600; margin-bottom: 3px; }
.tc-contact-item strong { font-size: 15px; display: block; color: var(--tc-navy); }
.tc-contact-item a { color: var(--tc-blue); }
.tc-contact-item a:hover { color: var(--tc-gold); }
.tc-contact-link { font-size: 13px; color: var(--tc-gold); font-weight: 600; display: block; margin-top: 4px; }

.tc-servicios-list { list-style: none !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0 !important; padding: 0 !important; }
.tc-servicios-list li {
  font-size: 13px;
  background: var(--tc-offwhite);
  border: 1px solid var(--tc-border);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--tc-navy);
}

.tc-cita-box {
  background: linear-gradient(135deg, var(--tc-navy), var(--tc-blue));
  color: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-top: 32px;
}

.tc-cita-box h3 { font-size: 18px !important; font-weight: 700 !important; margin-bottom: 10px !important; color: #fff !important; }
.tc-cita-box p { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6; margin: 0; }

.tc-mapa { border-radius: 10px; overflow: hidden; }
.tc-mapa-link { display: block; text-align: center; font-size: 13px; font-weight: 600; color: var(--tc-gold); margin-top: 10px; }

/* =====================================================
   SIDEBAR
===================================================== */
.tc-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }

.tc-sidebar-box {
  background: #fff;
  border: 1.5px solid var(--tc-border);
  border-radius: 10px;
  padding: 20px;
}

.tc-sidebar-box h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--tc-muted) !important;
  margin: 0 0 14px !important;
}

.tc-sidebar-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--tc-border); }
.tc-sidebar-stat:last-child { border-bottom: none; }
.tc-sidebar-stat-label { font-size: 13px; color: var(--tc-muted); }
.tc-sidebar-stat strong { font-size: 14px; color: var(--tc-navy); text-align: right; }
.tc-sidebar-aviso { background: #fffbf0; border-color: #f0d080; }
.tc-sidebar-aviso p { font-size: 13px; color: #7a5c00; line-height: 1.5; margin: 0; }

/* =====================================================
   BOTONES
===================================================== */
.tc-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
}

.tc-btn-primary { background: var(--tc-gold) !important; color: var(--tc-navy) !important; }
.tc-btn-primary:hover { background: var(--tc-gold-light) !important; color: var(--tc-navy) !important; }
.tc-btn-outline { background: transparent !important; color: var(--tc-navy) !important; border: 1.5px solid var(--tc-border) !important; }
.tc-btn-outline:hover { border-color: var(--tc-navy) !important; background: var(--tc-offwhite) !important; }
.tc-btn-hero { padding: 14px 28px; font-size: 15px; }

/* =====================================================
   PROSE / CONTENIDO EDITORIAL
===================================================== */
.tc-prose { max-width: 780px; }

.tc-prose h2 {
  font-family: var(--tc-font-head) !important;
  font-size: 24px !important;
  font-weight: normal !important;
  color: var(--tc-navy) !important;
  margin: 40px 0 16px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tc-border);
}

.tc-prose p { font-size: 16px; color: #2a2f3d; line-height: 1.75; margin-bottom: 18px; }
.tc-prose strong { color: var(--tc-navy); }

.tc-prose-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* =====================================================
   PASOS
===================================================== */
.tc-pasos { display: flex; flex-direction: column; gap: 0; }

.tc-paso {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--tc-border);
}

.tc-paso:last-child { border-bottom: none; }

.tc-paso-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tc-gold);
  color: var(--tc-navy);
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-paso-content h3 { font-size: 16px !important; font-weight: 700 !important; color: var(--tc-navy) !important; margin-bottom: 6px !important; }
.tc-paso-content p { font-size: 14px; color: var(--tc-muted); line-height: 1.6; margin: 0; }

/* =====================================================
   DOCS BOX
===================================================== */
.tc-docs-box {
  background: #f0f4ff;
  border: 1.5px solid #c5d0f0;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 32px;
}

.tc-docs-box h2 { font-family: var(--tc-font-head) !important; font-size: 20px !important; font-weight: normal !important; color: var(--tc-navy) !important; margin-bottom: 16px !important; border: none !important; padding: 0 !important; }
.tc-docs-list { list-style: none !important; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px !important; padding: 0 !important; }
.tc-docs-list li { font-size: 14px; color: var(--tc-navy); padding-left: 20px; position: relative; }
.tc-docs-list li::before { content: '✓'; position: absolute; left: 0; color: var(--tc-gold); font-weight: 700; }
.tc-docs-nota { font-size: 13px; color: var(--tc-muted); border-top: 1px solid #c5d0f0; padding-top: 14px; margin: 0; }

/* =====================================================
   FAQ
===================================================== */
.tc-faq { display: flex; flex-direction: column; gap: 0; }
.tc-faq-item { border-bottom: 1px solid var(--tc-border); }
.tc-faq-item:first-child { border-top: 1px solid var(--tc-border); }

.tc-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tc-navy);
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.tc-faq-q::-webkit-details-marker { display: none; }
.tc-faq-q::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--tc-gold); flex-shrink: 0; }
details[open] .tc-faq-q::after { content: '−'; }
.tc-faq-a { padding: 0 4px 18px; font-size: 14px; color: var(--tc-muted); line-height: 1.7; }

/* =====================================================
   STEPS HOME
===================================================== */
.tc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.tc-step {
  padding: 28px;
  background: #fff;
  border: 1.5px solid var(--tc-border);
  border-radius: 10px;
}

.tc-step h3 { font-size: 16px !important; font-weight: 700 !important; color: var(--tc-navy) !important; margin-bottom: 8px !important; }
.tc-step p { font-size: 14px; color: var(--tc-muted); line-height: 1.6; margin: 0; }

/* =====================================================
   CTA BANNER
===================================================== */
.tc-cta-banner {
  background: linear-gradient(135deg, var(--tc-navy), var(--tc-blue));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.tc-cta-banner h2 {
  font-family: var(--tc-font-head) !important;
  font-size: clamp(22px, 3vw, 34px) !important;
  font-weight: normal !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}

.tc-cta-banner p { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 32px; }

/* =====================================================
   AD
===================================================== */
.ad-rectangle { display: block; margin: 0 auto; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .tc-ficha-grid,
  .tc-prose-grid { grid-template-columns: 1fr; }

  .tc-hero-pais-inner,
  .tc-hero-ficha-inner,
  .tc-hero-tramite-inner { flex-direction: column; gap: 16px; }

  .tc-hero-pais-flag,
  .tc-ficha-hero-flag,
  .tc-tramite-hero-icon { font-size: 48px; }

  .tc-sidebar { position: static; }
}

@media (max-width: 600px) {
  .tc-paises-grid { grid-template-columns: repeat(3, 1fr); }
  .tc-tramites-grid,
  .tc-fichas-grid { grid-template-columns: 1fr; }
  .tc-section, .tc-section-alt { padding: 40px 0; }
  .tc-hero { padding: 48px 0 40px; }
  .tc-cta-banner { padding: 40px 0; }
}

/* =====================================================
   HEADER PROPIO (v3)
===================================================== */
.tc-header {
  background: var(--tc-dark);
  border-bottom: 2px solid rgba(201,168,76,.2);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 62px;
  display: flex;
  align-items: center;
}
.tc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.tc-header-logo {
  font-family: var(--tc-font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.tc-header-logo span { color: var(--tc-gold); }
.tc-header-logo:hover { color: var(--tc-gold-light) !important; }

.tc-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tc-header-nav li a {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  text-decoration: none !important;
}
.tc-header-nav li a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.tc-header-nav li.tc-nav-cta a {
  background: var(--tc-gold);
  color: var(--tc-dark) !important;
  padding: 6px 16px;
}
.tc-header-nav li.tc-nav-cta a:hover { background: var(--tc-gold-light); }

.tc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.tc-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.tc-mobile-nav {
  display: none;
  background: var(--tc-dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 20px 16px;
}
.tc-mobile-nav.tc-open { display: block; }
.tc-mobile-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tc-mobile-nav ul li a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background .15s;
}
.tc-mobile-nav ul li a:hover { background: rgba(255,255,255,.08); }
.tc-mobile-nav ul li.tc-nav-cta a {
  background: var(--tc-gold);
  color: var(--tc-dark) !important;
  margin-top: 6px;
  text-align: center;
}

/* Tabs países */
.tc-paises-search-wrap { margin-bottom: 18px; }
.tc-paises-search-wrap input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  border: 1.5px solid var(--tc-border);
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
  font-family: var(--tc-font-body);
  box-sizing: border-box;
}
.tc-paises-search-wrap input:focus { border-color: var(--tc-blue, #1A3A6B); }
.tc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tc-tab {
  padding: 7px 16px;
  border: 1.5px solid var(--tc-border);
  background: transparent;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--tc-navy);
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
  font-family: var(--tc-font-body);
}
.tc-tab:hover { background: #e8f0fe; border-color: var(--tc-blue, #1A3A6B); color: var(--tc-blue, #1A3A6B); }
.tc-tab-active { background: var(--tc-blue, #1A3A6B) !important; border-color: var(--tc-blue, #1A3A6B) !important; color: #fff !important; }
.tc-paises-panel { display: none; }
.tc-panel-active  { display: block; }

@media (max-width: 768px) {
  .tc-header-nav { display: none; }
  .tc-hamburger  { display: flex; }
}



/* ── Fix: submenú móvil — texto oscuro sobre fondo claro ── */
.tc-mobile-submenu li a,
.tc-mobile-submenu li a:visited {
    color: #1f2937 !important;
    background: transparent;
}
.tc-mobile-submenu li a:hover {
    background: #f0fdf4 !important;
    color: #166534 !important;
}
.tc-mobile-submenu .tc-dropdown-all a {
    color: #166534 !important;
    font-weight: 700;
}
.tc-mobile-sub-toggle {
    color: rgba(255,255,255,.85) !important;
    background: none !important;
}
.tc-mobile-sub-toggle:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}
/* ═══════════════════════════════════════════════
   DESPLEGABLE TRÁMITES — escritorio
═══════════════════════════════════════════════ */

/* Contenedor del ítem con desplegable */
.tc-has-dropdown {
    position: relative;
}

/* Flecha ▾ */
.tc-dropdown-arrow {
    font-size: .7em;
    margin-left: 3px;
    display: inline-block;
    transition: transform .2s;
    vertical-align: middle;
}
.tc-has-dropdown.tc-open .tc-dropdown-arrow {
    transform: rotate(180deg);
}

/* Panel desplegable */
.tc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    padding: 8px 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
}
.tc-has-dropdown.tc-open .tc-dropdown {
    display: block;
    animation: tcDropIn .18s ease;
}
@keyframes tcDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Pseudo-triángulo arriba del panel */
.tc-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #e5e7eb;
}
.tc-dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

/* Ítems del desplegable */
.tc-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tc-dropdown li a {
    display: block;
    padding: 9px 20px;
    font-size: .9rem;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.tc-dropdown li a:hover {
    background: #f0fdf4;
    color: var(--tc-green, #166534);
}

/* Último ítem — "Ver todos" destacado */
.tc-dropdown .tc-dropdown-all {
    border-top: 1px solid #e5e7eb;
    margin-top: 6px;
    padding-top: 2px;
}
.tc-dropdown .tc-dropdown-all a {
    font-weight: 600;
    color: var(--tc-green, #166534);
}
.tc-dropdown .tc-dropdown-all a:hover {
    background: #dcfce7;
}

/* ═══════════════════════════════════════════════
   SUBMENU TRÁMITES — móvil
═══════════════════════════════════════════════ */

/* Botón accordion que reemplaza al <a> en móvil */
.tc-mobile-sub-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tc-mobile-sub-toggle:hover {
    background: #f0fdf4;
    color: var(--tc-green, #166534);
}

/* Submenú móvil */
.tc-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 4px 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.tc-mobile-submenu li a {
    display: block;
    padding: 10px 32px;
    font-size: .9rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}
.tc-mobile-submenu li a:hover {
    background: #f0fdf4;
    color: var(--tc-green, #166534);
}
.tc-mobile-submenu .tc-dropdown-all {
    border-top: 1px solid #e5e7eb;
}
.tc-mobile-submenu .tc-dropdown-all a {
    font-weight: 600;
    color: var(--tc-green, #166534);
}


/* ═══════════════════════════════════════════════
   FILTROS DE TIPO DE TRÁMITE — barra de chips
═══════════════════════════════════════════════ */

.tc-tramites-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 28px;
    align-items: center;
}

.tc-filtro-btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid #d1fae5;
    background: #f0fdf4;
    color: #166534;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.tc-filtro-btn:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
}
.tc-filtro-btn.tc-filtro-active {
    background: var(--tc-green, #166534);
    border-color: var(--tc-green, #166534);
    color: #fff;
    font-weight: 600;
}

@media (max-width: 600px) {
    .tc-tramites-filtros {
        gap: 6px;
    }
    .tc-filtro-btn {
        font-size: .8rem;
        padding: 6px 12px;
    }
}
