/* ============================
   TRANSCARIBE S.A. - Estilos
   ============================ */

/* Fuente Museo (misma que el sitio original) */
@font-face {
  font-family: 'Museo';
  src: url('/wp-content/uploads/2021/11/Museo300-Regular.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Museo';
  src: url('/wp-content/uploads/2021/11/Museo700-Regular.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --tc-orange: #FF4600;
  --tc-orange-dark: #cc3800;
  --tc-orange-light: #FFBC82;
  --tc-nav-bg: #EE860B;
  --tc-teal: #116877;
  --tc-gray: #f4f6f9;
  --tc-text: #333;
}

* { box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--tc-text); }
a { text-decoration: none; color: var(--tc-orange); }
a:hover { color: var(--tc-orange-dark); }

/* ===== CABECERA ===== */
.site-header { box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.header-top {
  background-color: #1c1c1c;
  background-image: url('/wp-content/uploads/2021/11/header-scaled.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-bottom: none;
}
.logo-figure { margin: 0; }
.logo-img { height: 90px; width: auto; object-fit: contain; }
.logo-caption {
  font-family: 'Roboto', sans-serif;
  font-size: 0.52em;
  color: #F8F8F8;
  text-align: left;
  margin-top: 2px;
  font-weight: 400;
}
@media (max-width: 767px) { .logo-img { height: 60px; } }
.govco-logo { height: 40px; object-fit: contain; }
.search-form { max-width: 280px; margin-left: auto; }
.search-input {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 0 !important;
  font-size: .9rem;
  padding: .4rem 1rem;
  background: rgba(255,255,255,.95);
  color: #E3600F;
}
.search-input::placeholder { color: #aaa; }
.btn-search {
  background: var(--tc-nav-bg);
  color: #fff;
  border: none;
  border-radius: 0 !important;
  padding: .4rem .9rem;
}
.btn-search:hover { background: #EE860B; }

/* ===== NAV PRINCIPAL ===== */
.main-nav {
  background: var(--tc-nav-bg) !important;
  padding: 0 60px;
}
.main-nav .container-fluid { padding: 0; }
.main-nav .navbar-toggler { border-color: rgba(255,255,255,.5); }
.main-nav .navbar-toggler-icon { filter: brightness(10); }
/* Distribuir items en todo el ancho (justify) */
.main-nav .navbar-nav {
  width: 100%;
  justify-content: space-between;
}
.main-nav .nav-link {
  color: #ffffff !important;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 13px 10px !important;
  transition: background .2s;
  white-space: nowrap;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #fff !important;
  background: rgba(0,0,0,.15);
}
.main-nav .dropdown-toggle::after { border-color: rgba(255,255,255,.8) transparent transparent; }

/* ===== DROPDOWNS ===== */
.dropdown-menu {
  border: none; border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  font-size: .88rem;
  min-width: 220px;
  max-height: 500px; overflow-y: auto;
}
.dropdown-item { padding: .5rem 1.2rem; color: var(--tc-text); transition: all .15s; }
.dropdown-item:hover { background: var(--tc-orange); color: #fff; }
.dropdown-header { font-size: .75rem; font-weight: 700; color: var(--tc-orange); text-transform: uppercase; }
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu {
  top: 0; left: 100%;
  display: none; border-radius: 4px;
}
.dropdown-submenu:hover > .dropdown-menu { display: block; }

/* ===== HERO / BANNER SECTION ===== */
.page-hero {
  background: linear-gradient(135deg, var(--tc-orange) 0%, #cc3800 50%, #8b2700 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: .15;
}
.page-hero h1, .page-hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  position: relative;
}

/* ===== BREADCRUMB ===== */
.site-breadcrumb {
  background: #f8f9fa;
  padding: .7rem 0;
  border-bottom: 1px solid #e9ecef;
  font-size: .85rem;
}
.breadcrumb-item a { color: var(--tc-orange); }
.breadcrumb-item.active { color: #666; }
.breadcrumb-item + .breadcrumb-item::before { color: #999; }

/* ===== TABLA DE DOCUMENTOS ===== */
.doc-table-wrapper { overflow-x: auto; }
.doc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
}
.doc-table thead th {
  background: var(--tc-orange);
  color: #fff;
  font-weight: 600;
  padding: .8rem 1rem;
  border: none;
}
.doc-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background .15s;
}
.doc-table tbody tr:hover { background: #fff8f5; }
.doc-table tbody td { padding: .75rem 1rem; vertical-align: middle; border: none; }
.doc-title-link { color: var(--tc-orange); font-weight: 600; }
.doc-title-link:hover { color: var(--tc-orange-dark); text-decoration: underline; }
.doc-table .highlighted { border: 2px solid var(--tc-orange); background: #fff8f5; }
.pdf-icon { color: var(--tc-orange); font-size: 1.4rem; }

/* ===== ACORDEÓN TRANSPARENCIA ===== */
.transparency-accordion .accordion-button {
  background: var(--tc-orange);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
}
.transparency-accordion .accordion-button::after {
  filter: brightness(10);
}
.transparency-accordion .accordion-button:not(.collapsed) {
  background: var(--tc-orange-dark);
  color: #fff;
  box-shadow: none;
}
.transparency-accordion .accordion-body {
  background: #fff;
  padding: 1.2rem 1.5rem;
}
.transparency-accordion .accordion-body a {
  color: var(--tc-orange);
}
.transparency-accordion .accordion-body a:hover {
  text-decoration: underline;
}
.transparency-accordion .sub-section-title {
  font-weight: 700;
  color: var(--tc-text);
  margin-top: .5rem;
}
.transparency-accordion .accordion-item { border: 1px solid #e9ecef; margin-bottom: .4rem; border-radius: 4px !important; overflow: hidden; }

/* ===== TARJETAS NOTICIAS ===== */
.news-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.news-card .card-img-top { height: 200px; object-fit: cover; }
.news-card .card-body { padding: 1.2rem; }
.news-card .card-title { font-weight: 700; font-size: 1rem; color: var(--tc-text); }
.news-card .card-text { font-size: .88rem; color: #666; }
.news-date { font-size: .78rem; color: #999; }
.btn-news { background: var(--tc-orange); color: #fff; border-radius: 20px; font-size: .85rem; padding: .35rem .9rem; }
.btn-news:hover { background: var(--tc-orange-dark); color: #fff; }

/* ===== FOOTER ===== */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,.8); }
.footer-main { padding: 0; }
.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  border-bottom: 2px solid var(--tc-orange);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { margin-bottom: .6rem; font-size: .85rem; display: flex; align-items: flex-start; gap: 8px; }
.footer-contact-list i { color: var(--tc-orange); margin-top: 3px; min-width: 16px; }
.footer-contact-list a { color: rgba(255,255,255,.8); }
.footer-contact-list a:hover { color: var(--tc-orange); }
.footer-logo { height: 70px; object-fit: contain; filter: brightness(10); }
.footer-links { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--tc-orange); }
.footer-social { display: flex; justify-content: center; gap: .8rem; margin-top: .5rem; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; transition: all .2s;
}
.social-icon:hover { transform: translateY(-3px); color: #fff; }
.social-icon.youtube { background: #ff0000; }
.social-icon.twitter { background: #000; }
.social-icon.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-icon.facebook { background: #1877f2; }
.footer-social-title { color: rgba(255,255,255,.7); font-size: .85rem; }
.footer-bottom { background: rgba(0,0,0,.3); color: rgba(255,255,255,.5); font-size: .8rem; }

/* ===== MENÚ FLOTANTE ===== */
.floating-menu {
  position: fixed;
  left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.floating-btn {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: width .25s;
}
.floating-btn a { color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.floating-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.85); color: #fff;
  padding: .3rem .7rem;
  border-radius: 4px;
  font-size: .78rem;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  margin-left: 4px;
}
.floating-btn:hover::before { opacity: 1; }
.floating-btn:hover { background: #000 !important; width: 52px; }

/* ===== FORMULARIO PQRSD ===== */
.pqrsd-form .form-label { font-weight: 600; font-size: .88rem; color: #444; }
.pqrsd-form .form-control, .pqrsd-form .form-select {
  border-radius: 7px;
  border: 1px solid #ddd;
  font-size: .9rem;
  padding: .55rem .9rem;
}
.pqrsd-form .form-control:focus, .pqrsd-form .form-select:focus {
  border-color: var(--tc-orange);
  box-shadow: 0 0 0 3px rgba(255,70,0,.15);
}
.btn-pqrsd {
  background: var(--tc-orange); color: #fff; border: none;
  border-radius: 30px; padding: .7rem 2rem;
  font-weight: 700; font-size: 1rem; transition: all .2s;
}
.btn-pqrsd:hover { background: var(--tc-orange-dark); color: #fff; transform: translateY(-1px); }

/* ===== HOME PAGE ===== */
.hero-section {
  background: linear-gradient(135deg, rgba(255,70,0,.9), rgba(100,20,0,.9)),
              url('/wp-content/uploads/2021/11/bg-home.jpg') center/cover no-repeat;
  min-height: 60vh;
  display: flex; align-items: center;
  color: #fff;
}
.home-cards-section { padding: 3rem 0; background: #f8f9fa; }
.home-card {
  background: #fff; border-radius: 12px;
  padding: 2rem 1.5rem; text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: all .3s;
  border-top: 4px solid var(--tc-orange);
}
.home-card:hover { transform: translateY(-6px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.home-card .card-icon { font-size: 2.5rem; color: var(--tc-orange); margin-bottom: 1rem; }
.home-card h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; color: var(--tc-text); }
.home-card p { font-size: .85rem; color: #666; }
.btn-home-card {
  background: var(--tc-orange); color: #fff; border-radius: 20px;
  font-size: .82rem; padding: .4rem 1rem; font-weight: 600;
}
.btn-home-card:hover { background: var(--tc-orange-dark); color: #fff; }

/* ===== GALERIA ===== */
.gallery-img {
  height: 200px; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.gallery-img:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .logo-img { height: 45px; }
  .govco-logo { height: 28px; }
  .search-form { max-width: 180px; }
  .floating-menu { display: none; }
  .page-hero { padding: 2.5rem 1rem; }
}
