/* ============================================
   TRADEDATA ECUADOR — Drupal 11 theme styles
   ============================================ */

:root {
  --td-dark: #0d0d0d;
  --td-dark-2: #1a1a1a;
  --td-dark-3: #2a2a2a;
  --td-gold: #c9a961;
  --td-gold-bright: #d4b76a;
  --td-gold-soft: #e0c074;
  --td-cream: #f5f1e8;
  --td-cream-2: #faf6ec;
  --td-text: #2a2a2a;
  --td-muted: #6b6b6b;
  --td-border: #e6dfd0;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body.td-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--td-text);
  background: var(--td-cream-2);
  line-height: 1.6;
  margin: 0;
}

.text-gold { color: var(--td-gold) !important; }

/* ============== NAVBAR ============== */
.td-navbar {
  background: var(--td-dark);
  padding: 18px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  transition: all .3s ease;
}
.td-navbar.scrolled {
  padding: 12px 0;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(10px);
}
.td-brand,
.td-navbar .navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: #fff;
  text-decoration: none;
}
.brand-white { color: #fff; }
.brand-gold { color: var(--td-gold); margin-left: 6px; }

/* Menú: ataca cualquier UL/LI dentro del navbar para sobreescribir defaults
   de Drupal y de bloques sin importar el markup envolvente. */
.td-navbar h2,
.td-navbar .visually-hidden { display: none !important; }

.td-navbar ul {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0 !important;
  padding: 0 !important;
}
.td-navbar ul li {
  list-style: none !important;
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}
.td-navbar ul li::marker { content: '' !important; }
.td-navbar ul a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin: 0 14px !important;
  padding: 8px 4px !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: color .3s !important;
}
.td-navbar ul a:hover,
.td-navbar ul a.is-active,
.td-navbar ul a.active { color: var(--td-gold) !important; }
.td-navbar .block { background: transparent !important; padding: 0 !important; margin: 0 !important; }

/* ============== HERO ============== */
.td-hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  color: #fff;
  display: flex;
  align-items: center;
  margin-top: 30px;
  overflow: hidden;
  background: var(--td-dark);
}
.td-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.td-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.15) 100%);
}
.td-hero-content { position: relative; z-index: 2; }
.td-hero-subtitle p { margin-bottom: 0.5rem; }
.td-hero-subtitle p:last-child { margin-bottom: 0; }
.td-hero-flex {
  display: flex;
  align-items: stretch;
  gap: 28px;
}
.td-hero-bar {
  width: 5px;
  background: var(--td-gold);
  align-self: stretch;
  min-height: 220px;
  flex-shrink: 0;
}
.td-hero-text { max-width: 620px; }
.td-hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 4.6rem;
  line-height: 1.05;
  margin: 0 0 28px;
  letter-spacing: 1px;
}
.td-hero-title .line-white,
.td-hero-title .line-gold { display: block; }
.td-hero-title .line-white { color: #fff; }
.td-hero-title .line-gold { color: var(--td-gold); }
.td-hero-subtitle {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin: 0;
}

/* ============== STATS BAR ============== */
.td-stats-bar {
  background: var(--td-dark);
  padding: 60px 0;
  color: #fff;
}
.td-stat-item { padding: 12px 24px; }
.td-stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--td-gold);
  line-height: 1;
  margin-bottom: 14px;
}
.td-stat-number .pct { font-size: 3rem; }
.td-stat-label {
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  line-height: 1.5;
}

/* ============== SECTIONS ============== */
.td-section {
  padding: 90px 0;
  background: var(--td-cream-2);
}
.td-section-cream { background: var(--td-cream); }

.td-section-head {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.td-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--td-dark);
  letter-spacing: 2px;
  margin-bottom: 0;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
.td-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--td-gold);
  border-radius: 2px;
}

.td-title-row {
  display: inline-flex;
  align-items: stretch;
  gap: 16px;
  justify-content: center;
}
.td-title-bar {
  width: 4px;
  background: var(--td-gold);
  border-radius: 2px;
  align-self: stretch;
}
.td-section-title-plain {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--td-dark);
  letter-spacing: 2px;
  margin: 0;
}

.td-section-subtitle {
  color: var(--td-muted);
  font-size: 0.95rem;
  /*margin-top: 18px;*/
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.td-section-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.td-esc-desc {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.td-subtitle-gold {
  color: var(--td-gold) !important;
  font-weight: 600;
}

.td-tag {
  display: inline-block;
  background: var(--td-gold-soft);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.td-mini-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--td-dark);
  margin-top: 24px;
  margin-bottom: 16px;
}

.td-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--td-dark);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.td-paragraph {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ============== EXPORTACIONES CARDS ============== */
.td-card {
  background: #fff;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  padding: 30px 28px;
  height: 100%;
  transition: all .3s;
  box-shadow: 0 2px 14px rgba(0,0,0,0.03);
}
.td-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.td-card-label {
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  color: var(--td-gold);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 700;
}
.td-card-value {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--td-dark);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.5px;
}
.td-card-value .pct { font-size: 1.7rem; }
.td-card-text {
  font-size: 0.85rem;
  color: var(--td-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.td-aside-card {
  background: #fff;
  border: 1px solid var(--td-gold-soft);
  border-radius: 12px;
  padding: 26px 28px;
  height: auto;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.8;
}

/* ============== BADGES ============== */
.td-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.td-badge {
  background: var(--td-dark);
  color: var(--td-gold-bright);
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: 30px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: inline-block;
}

/* ============== TABLE ============== */
.td-table-wrap {
  background: #fff;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  overflow-x: auto;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  -webkit-overflow-scrolling: touch;
}
.td-table-wrap .td-table {
  min-width: 600px;
}
.td-table-wrap-bar { border-top: 3px solid var(--td-gold); }

.td-table-header-light {
  color: var(--td-dark);
  padding: 18px 22px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  background: #fff;
  position: relative;
}
.td-table-header-light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--td-gold);
}

.td-table { margin-bottom: 0; width: 100%; border-collapse: collapse; }
.td-table thead th {
  background: #fff;
  color: var(--td-gold);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 22px;
  border-top: 1px solid var(--td-border);
  border-bottom: 1px solid var(--td-border);
  font-weight: 700;
  text-align: left;
}
.td-table tbody td {
  padding: 18px 22px;
  font-size: 0.9rem;
  color: #444;
  border-color: var(--td-border);
  border-top: 1px solid var(--td-border);
  vertical-align: middle;
}
.td-table tbody tr:hover { background: rgba(201, 169, 97, 0.04); }
.td-table .td-key { color: var(--td-gold); font-weight: 700; }

.td-table-bars tbody tr td:first-child {
  position: relative;
  padding-left: 28px;
}
.td-table-bars tbody tr td:first-child::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--td-gold);
  border-radius: 2px;
}

/* ============== QUOTE ============== */
.td-quote {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 1rem;
  color: #444;
  border-left: 4px solid var(--td-gold);
  padding: 18px 26px;
  margin: 24px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  line-height: 1.7;
}

/* ============== DARK CARD (GII) ============== */
.td-dark-card {
  background: var(--td-dark);
  color: #fff;
  border-radius: 12px;
  padding: 38px 36px 42px;
  position: relative;
  overflow: hidden;
}
.td-dark-card::before {
  content: 'GII';
  position: absolute;
  right: 20px;
  bottom: -40px;
  font-family: 'Inter', sans-serif;
  font-size: 14rem;
  color: rgba(201, 169, 97, 0.06);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.td-dark-tag {
  display: inline-block;
  background: var(--td-gold);
  color: #fff;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
  text-transform: uppercase;
  border-radius: 4px;
}
.td-dark-text {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}
.td-inner-card {
  background: transparent;
  border-left: 3px solid var(--td-gold);
  padding: 4px 22px;
  position: relative;
  z-index: 2;
}
.td-inner-card h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--td-gold);
}
.td-inner-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.6;
}

/* ============== RANK CARD ============== */
.td-rank-card {
  background: #fff;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  padding: 32px 24px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.td-rank-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--td-dark);
  font-weight: 700;
}
.td-rank-pill {
  display: inline-block;
  background: var(--td-gold);
  color: #fff;
  padding: 8px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 18px 0;
}
.td-rank-card p {
  font-size: 0.85rem;
  color: var(--td-muted);
  margin: 0;
  line-height: 1.7;
}

/* ============== PROBLEMAS ============== */
.td-problem-wrap {
  background: #fff;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  padding: 26px 28px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  counter-reset: problem-counter;
}
.td-problem-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  counter-increment: problem-counter;
}
.td-problem-num:empty::before {
  content: counter(problem-counter, decimal-leading-zero);
}
.td-problem-num {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--td-gold);
  min-width: 28px;
  line-height: 1;
}
.td-problem-item h6 {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--td-dark);
  margin-bottom: 6px;
}
.td-problem-item p {
  font-size: 0.82rem;
  color: var(--td-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============== MINI CARDS (4 strategies) ============== */
.td-mini-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px 26px;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  border-bottom: 4px solid var(--td-gold);
  transition: all .3s;
}
.td-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}
.td-mini-pill {
  display: block;
  border: 1.5px solid var(--td-gold);
  color: var(--td-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  padding: 9px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
  background: #fff;
}
.td-mini-card ul {
  padding-left: 18px;
  margin: 0;
  list-style: disc;
}
.td-mini-card ul li {
  font-size: 0.8rem;
  color: var(--td-muted);
  line-height: 1.55;
  margin-bottom: 6px;
}

/* ============== SECTORES ============== */
.td-sector-card {
  background: #fff;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  padding: 28px;
  height: 100%;
  transition: all .3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.td-sector-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.td-sector-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.td-sector-card p {
  color: var(--td-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ============== PUBLICATIONS ============== */
.td-pub-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: all .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border-bottom: 4px solid var(--td-gold);
  position: relative;
}
.td-pub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}
.td-pub-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.td-pub-body { padding: 24px 28px 30px; }
.td-pub-tag {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--td-gold);
  font-weight: 700;
  text-transform: uppercase;
}
.td-pub-body h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 10px 0 14px;
  color: var(--td-dark);
  letter-spacing: -0.2px;
}
.td-pub-body p {
  color: var(--td-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 22px;
}
.td-btn-outline {
  display: inline-block;
  border: 1.5px solid var(--td-gold);
  color: var(--td-dark);
  padding: 10px 26px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all .3s;
  background: #fff;
}
.td-btn-outline:hover {
  background: var(--td-gold);
  color: #fff;
}

/* ============== CURIOSITY ============== */
.td-curiosity-section {
  background: var(--td-dark);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.td-curiosity-inner {
  display: inline-flex;
  align-items: stretch;
  gap: 22px;
  margin: 0 auto 24px;
}
.td-curiosity-bar {
  width: 4px;
  background: var(--td-gold);
  border-radius: 2px;
  align-self: stretch;
  min-height: 80px;
}
.td-curiosity-content { text-align: left; }
.td-curiosity-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.3px;
}
.td-curiosity-text {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

/* ============== RESEARCHERS ============== */
.td-researcher-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px 26px;
  text-align: center;
  transition: all .3s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  border-bottom: 4px solid var(--td-gold);
  position: relative;
}
.td-researcher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.td-researcher-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 2px solid var(--td-gold);
  padding: 3px;
}
.td-researcher-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.td-researcher-card h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--td-dark);
  margin-bottom: 12px;
}
.td-researcher-links {
  font-size: 0.78rem;
  color: var(--td-muted);
}
.td-researcher-links a {
  color: var(--td-gold);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: color .2s;
}
.td-researcher-links a:hover { color: var(--td-dark); }
.td-researcher-links .sep { margin: 0 8px; color: black; }

/* ============== CONTACTO ============== */
.td-contact-intro {
  font-size: 0.9rem;
  color: var(--td-muted);
  margin-bottom: 15px;
  font-weight: 500;
}
.td-contact-datos {
  display: flex;
  flex-direction: column;
}
.td-contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--td-border);
}
.td-contact-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--td-gold);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 16px;
}
.td-contact-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--td-dark);
}
.td-contact-text p {
  font-size: 0.85rem;
  color: var(--td-muted);
  margin-bottom: 4px;
  line-height: 1.6;
}
.td-contact-text a {
  color: var(--td-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.td-contact-text a:hover { color: var(--td-dark); }
.td-contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--td-border);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.td-contact-form .webform-submission-form .form-item {
  margin-bottom: 20px;
}
.td-contact-form .webform-submission-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--td-dark);
}
.td-contact-form .webform-submission-form .form-control,
.td-contact-form .webform-submission-form input[type="text"],
.td-contact-form .webform-submission-form input[type="email"],
.td-contact-form .webform-submission-form textarea,
.td-contact-form .webform-submission-form select {
  font-size: 0.88rem;
  border: 1px solid var(--td-border);
  border-radius: 4px;
  padding: 10px 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
}
.td-contact-form .webform-submission-form .form-control:focus,
.td-contact-form .webform-submission-form input:focus,
.td-contact-form .webform-submission-form textarea:focus {
  border-color: var(--td-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.td-contact-form .webform-submission-form .form-submit,
.td-contact-form .webform-submission-form button[type="submit"] {
  background: var(--td-gold);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;
}
.td-contact-form .webform-submission-form .form-submit:hover,
.td-contact-form .webform-submission-form button[type="submit"]:hover {
  background: var(--td-dark);
  color: var(--td-gold);
}

/* ============== AUTOCOMPLETE & THROBBER ============== */
.ui-autocomplete {
  background: #fff !important;
  border: 1px solid var(--td-border) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  padding: 6px 0 !important;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10000 !important;
  list-style: none !important;
  margin: 4px 0 0 !important;
}
.ui-autocomplete .ui-menu-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ui-autocomplete .ui-menu-item-wrapper,
.ui-autocomplete .ui-menu-item a {
  display: block !important;
  padding: 10px 16px !important;
  font-size: 0.88rem !important;
  color: var(--td-text) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s;
  border: none !important;
  background: transparent !important;
}
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item a.ui-state-active,
.ui-autocomplete .ui-menu-item a:hover {
  background: var(--td-cream) !important;
  color: var(--td-dark) !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ============== MODAL / DIALOG ============== */
.ui-dialog {
  background: #fff !important;
  border: 1px solid var(--td-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18) !important;
  padding: 0 !important;
  overflow: hidden;
  max-width: 90vw;
}
.ui-dialog .ui-dialog-titlebar {
  background: var(--td-dark) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 18px 24px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.ui-dialog .ui-dialog-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.5px;
}
.ui-dialog .ui-dialog-titlebar-close {
  position: static !important;
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
}
.ui-dialog .ui-dialog-titlebar-close:hover {
  background: var(--td-gold) !important;
  border-color: var(--td-gold) !important;
}
.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon {
  display: none !important;
}
.ui-dialog .ui-dialog-titlebar-close::after {
  content: '\00d7';
  font-size: 1.3rem;
  color: #fff;
  line-height: 1;
  font-weight: 300;
}
.ui-dialog .ui-dialog-content {
  padding: 30px 28px !important;
  font-size: 0.95rem;
  color: var(--td-text);
  line-height: 1.7;
}
.ui-widget-overlay {
  background: rgba(0,0,0,0.5) !important;
  opacity: 1 !important;
}

/* ============== FOOTER ============== */
.td-site-footer {
  background: var(--td-dark);
  background-image: url(../../images/dotted-map.png);
  background-size: contain;
  position: relative;
}
.td-footer-main {
  padding-top: 3.125rem;
  padding-bottom: 1.875rem;
}
@media screen and (min-width: 768px) {
  .td-footer-main { padding-top: 5rem; }
}

.td-footer-top {
  margin-bottom: 2.5rem;
}
@media screen and (min-width: 768px) {
  .td-footer-top { margin-bottom: 3.125rem; }
}
.td-footer-logo img {
  max-width: 16.5rem;
  height: auto;
}

.td-footer-middle {
  padding-top: 1.875rem;
  padding-bottom: 1.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
@media screen and (min-width: 768px) {
  .td-footer-middle { padding-top: 3.125rem; padding-bottom: 2.1875rem; }
}
@media screen and (max-width: 767px) {
  .td-footer-middle { padding: 0; }
}

.td-footer-col {
  width: 100%;
  margin-bottom: 1.5rem;
}
@media screen and (min-width: 768px) {
  .td-footer-col { width: 25%; margin-bottom: 0; padding-right: 1rem; }
}

.td-footer-col h3 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.td-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.td-footer-col ul li {
  margin-bottom: 0.625rem;
}
.td-footer-col ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color .2s;
}
.td-footer-col ul li a:hover {
  color: var(--td-gold);
}

.td-footer-services a i {
  width: 20px;
  text-align: center;
  margin-right: 6px;
  font-size: 0.8125rem;
  opacity: 0.7;
  transition: opacity .2s;
}
.td-footer-services a:hover i { opacity: 1; }

.td-footer-social-col {
  display: flex;
  align-items: flex-start;
}
.td-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}
.td-social a {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity .2s;
}
.td-social a:hover { opacity: 0.7; }
.td-social a i {
  color: #fff;
  font-size: 1.25rem;
}
@media screen and (min-width: 768px) {
  .td-social a i { font-size: 1.375rem; }
}
.td-social a.td-social-img img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.td-footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.td-footer-copyright p {
  font-size: 0.75rem;
  line-height: 2;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.td-footer-copyright p a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color .2s;
}
.td-footer-copyright p a:hover { color: #fff; }

/* ============== RESPONSIVE ============== */
@media (max-width: 991px) {
  .td-hero-title { font-size: 3rem; }
  .td-hero-bar { min-height: 160px; }
  .td-stat-item { margin-bottom: 30px; }
  .td-section-title, .td-section-title-plain { font-size: 1.6rem; }
  .td-curiosity-title { font-size: 1.6rem; }
  .td-stat-number { font-size: 2.8rem; }
  .td-card-value { font-size: 1.9rem; }
}
@media (max-width: 576px) {
  .td-hero-title { font-size: 2.2rem; }
  .td-hero-bar { min-height: 130px; width: 4px; }
  .td-section { padding: 60px 0; }
  .td-card, .td-aside-card, .td-dark-card { padding: 22px 18px; }
  .td-curiosity-title { font-size: 1.3rem; }
  .td-section-subtitle { font-size: 0.85rem; max-width: 100%; padding: 0 10px; }
  .td-section-narrow { max-width: 100%; padding: 0 10px; }
  .td-esc-desc { max-width: 100%; padding: 0 10px; }
  .td-contact-form { padding: 20px 16px; }
}

/* ============== SCROLL TO TOP ============== */
.td-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--td-gold);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.td-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.td-scroll-top:hover {
  background: var(--td-dark);
  color: var(--td-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.td-scroll-top:focus { outline: 2px solid var(--td-gold-bright); outline-offset: 3px; }

/* ============== ANIMATIONS ============== */
.td-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.td-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== LOGIN PAGE ============== */
#td-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--td-dark);
}
.td-login-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.td-login-brand {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 32px;
}
.td-login-brand .brand-white { color: #fff; }
.td-login-brand .brand-gold  { color: var(--td-gold); }
.td-login-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: 4px;
}
#td-login form {
  margin-top: 16px;
}
#td-login label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  display: block;
  font-size: .9rem;
}
#td-login .description,
#td-login .form-item .description {
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
#td-login .form-item {
  margin-bottom: 16px;
}
#td-login input[type="text"],
#td-login input[type="password"],
#td-login input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 1rem;
  color: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#td-login input[type="text"]::placeholder,
#td-login input[type="password"]::placeholder,
#td-login input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
#td-login input[type="text"]:focus,
#td-login input[type="password"]:focus,
#td-login input[type="email"]:focus {
  border-color: var(--td-gold);
  box-shadow: 0 0 0 3px rgba(191, 155, 48, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}
#td-login input[type="submit"],
#td-login button[type="submit"] {
  margin-top: 8px;
  margin-bottom: 0;
  width: 100%;
  padding: 13px 25px;
  background: var(--td-gold);
  color: var(--td-dark);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: .5px;
}
#td-login input[type="submit"]:hover,
#td-login button[type="submit"]:hover {
  background: var(--td-gold-bright);
  transform: translateY(-1px);
}
.td-login-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
}
.td-login-divider::before,
.td-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.td-login-divider span {
  padding: 0 14px;
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.td-login-social {
  text-align: center;
}
.td-btn-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.td-btn-google:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.td-btn-google i {
  font-size: 1.1rem;
  color: var(--td-gold);
}
#td-login a {
  color: var(--td-gold);
  text-decoration: none;
}
#td-login a:hover {
  color: var(--td-gold-bright);
  text-decoration: underline;
}
@media (max-width: 576px) {
  .td-login-card {
    padding: 32px 24px;
  }
  .td-login-brand {
    font-size: 1.8rem;
  }
}
