/* ==================================================
   HEADER
================================================== */

.header-clean {
  background: linear-gradient(#ffffff, #fafafa);
  border-bottom: 1px solid #eaeaea;
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 25px;

  display: flex;
  align-items: center;
  gap: 30px;
}

/* ================= LOGO ================= */

.hc-logo {
  flex: 0 0 auto;
}

.hc-logo img {
  height: 68px;
  display: block;
}

/* ==================================================
   MENU
================================================== */

.hc-menu {
  margin-left: auto;
  padding-right: 20px;
}

.hc-menu ul {
  margin: 0;
  padding: 0;
  gap: 34px;
  align-items: center;
}

/* Reset legacy */
.hc-menu li,
.hc-menu li:hover {
  background: transparent !important;
}

/* Links */
.hc-menu a {
  font-size: 15px !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #334;
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover */
.hc-menu a:hover {
  background: rgba(244, 192, 77, 0.25);
  color: #000;
}

/* Activo estilo pill */
.hc-menu .active > a,
.hc-menu .current > a {
  background: #f4c04d;
  color: #000;
  border-radius: 999px;
}

/* Elimina línea animada */
.hc-menu a::after {
  display: none !important;
}

/* Submenu */
.hc-menu ul ul {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.hc-menu ul ul li a {
  border-radius: 8px;
  padding: 8px 12px;
}

.hc-menu ul ul li a:hover {
  background: rgba(244, 192, 77, 0.25);
}

/* ==================================================
   SEARCH HEADER
================================================== */

.hc-search {
  flex: 0 0 360px;
}

.hc-search .search,
.hc-search .search-inner,
.hc-search input.inputbox {
  width: 100%;
  box-sizing: border-box;
}

.hc-search .search-inner {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #ddd;
}

.hc-search input.inputbox {
  padding: 9px 14px;
  font-size: 13px;
  border: none;
}

.hc-search input.inputbox:focus {
  outline: none;
}

/* ==================================================
   HERO
================================================== */

.global-hero {
  background: #eef7f9;
  padding: 60px 20px 70px;
  display: flex;
  justify-content: center;
}

.global-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.global-hero h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0a6c73;
  line-height: 1.2;
  margin-bottom: 8px;
}

.global-hero p {
  font-size: 16px;
  color: #556;
  margin-bottom: 36px;
}

.hero-location {
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  color: #f4c04d;
}

/* Hero search */
.hero-search-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  overflow: hidden;
}

.hero-search-form input[type="text"] {
  flex: 1;
  border: none;
  padding: 18px 26px;
  font-size: 16px;
}

.hero-search-form input:focus {
  outline: none;
}

.hero-search-form button {
  border: none;
  background: #f4c04d;
  color: #000;
  padding: 0 32px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.hero-search-form button:hover {
  background: #eab63f;
}

/* ==================================================
   BLOG / ARTÍCULOS
================================================== */

.blog .item-page h2,
.blog .item-page h3,
.blog .item h2,
.blog .item h3,
.item-page h2,
.item-page h3 {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #0f6c6d !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-top: 48px !important;
  margin-bottom: 16px !important;
  border: none !important;
  position: relative;
}

/* Línea amarilla */
.blog .item-page h2::after,
.blog .item-page h3::after,
.blog .item h2::after,
.blog .item h3::after,
.item-page h2::after,
.item-page h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #f5c15c;
  margin-top: 0.4rem;
}

/* Listas */
.blog ul,
.blog ul::before,
.blog ul::after,
.item-page ul,
.item-page ul::before,
.item-page ul::after {
  border: none !important;
}

.blog ul,
.item-page ul {
  max-width: 820px;
  margin: 12px 0 24px 0;
  padding-left: 0;
  list-style: none;
}

/*.blog ul li,
.item-page ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1.3rem;
}

.blog ul li::before,
.item-page ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f5c15c;
  font-size: 1.2rem;
  line-height: 1;
}

.blog p,
.item-page p {
  font-size: 1.3rem;
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #333;
}*/

.blog strong,
.item-page strong {
  font-weight: 600;
}

/* ==================================================
   BADGES
================================================== */

.badge-year {
  background: #e6f4f1;
  color: #0f766e;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.badge-year--title {
  margin-left: 12px;
  padding: 6px 12px;
  font-size: 1rem;
  vertical-align: middle;
}

.badge-year--title .badge-icon {
  font-size: 0.75rem;
}

.badge-year--outdated {
  background: #fef3c7;
  color: #92400e;
}

.badge-year--future {
  background: #e0f2fe;
  color: #0369a1;
}

/* ==================================================
   MODAL – TENÉS CONSULTAS
================================================== */

#contact-link-div {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.btn-consulta {
  background: #f2c04d;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
}

.modal-consulta {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  max-width: 620px;
  position: absolute;
}

.modal-title {
  margin: 0;
  font-size: 1.4rem;
  color: #0f766e;
  line-height: 1.2;
}

.modal-title-inst {
  display: block;
  margin-top: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
}

.consulta-form .form-group {
  margin-bottom: 18px;
}

.consulta-form input,
.consulta-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.consulta-form textarea {
  resize: vertical;
}

.consulta-form input:focus,
.consulta-form textarea:focus {
  outline: none;
  border-color: #f2c04d;
  box-shadow: 0 0 0 3px rgba(242,192,77,0.25);
}

.btn-primary {
  background: #f2c04d;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
}

/* Override específico modal */
#contact-form-popup .consulta-form input,
#contact-form-popup .consulta-form textarea {
  width: 100%;
  padding: 14px 18px !important;
  font-size: 15px !important;
  border-radius: 14px;
  border: 1px solid #e3e3e3;
  box-sizing: border-box;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {

  .header-top {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .hc-logo {
    text-align: center;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid rgba(244, 185, 74, 0.25);
  }

  .hc-logo img {
    height: 80px;
    padding: 20px;
    filter: contrast(1.1);
  }

  .hc-search,
  .hc-menu {
    flex: 1 1 100%;
  }

  .hc-menu ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 768px) {

  .global-hero h1 {
    font-size: 26px;
  }

  .hero-search-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search-form button {
    padding: 14px;
  }
}
