/* ==========================================================
   HANKA CARGO — capa de personalización sobre style.css
   Paleta: Azul #00254F (Pantone 7463C) · Naranja #FF9B01 (Pantone 144C)
   ========================================================== */

:root {
  --hanka-blue: #00254F;
  --hanka-orange: #FF9B01;
  --hanka-whatsapp: #25D366;
}

/* ---------- Mega menú de Servicios: 6 columnas, título + imagen ---------- */
.header .main-menu li div.sub-menu.six-col {
  display: none;
  padding: 30px 19px 22px;
  margin: 0 -15px;
}
.header .main-menu li:hover > div.sub-menu.six-col { display: flex; flex-wrap: wrap; }
.header .main-menu li div.sub-menu.six-col .menu-col {
  width: 16.6667%;
  padding: 0 12px;
}
.header .main-menu li div.sub-menu.six-col .menu-col > a { display: block; padding: 0; }
.header .main-menu li div.sub-menu.six-col .menu-col h6 {
  font-size: 14px;
  line-height: 20px;
  min-height: 40px;
  margin-bottom: 12px !important;
  color: var(--hanka-blue);
  transition: color .2s;
}
.header .main-menu li div.sub-menu.six-col .menu-col .menu-image {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 705 / 429;
}
.header .main-menu li div.sub-menu.six-col .menu-col .menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.header .main-menu li div.sub-menu.six-col .menu-col > a:hover h6 { color: var(--hanka-orange); }
.header .main-menu li div.sub-menu.six-col .menu-col > a:hover .menu-image img { transform: scale(1.06); }

/* ---------- Logos de certificaciones ---------- */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 44px;
}
.cert-row img {
  height: 62px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.cert-card {
  height: 100%;
  background: #fff;
  border: 1px solid #E0E6ED;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 37, 79, .1); }
.cert-card img { height: 64px; width: auto; max-width: 100%; margin-bottom: 18px; object-fit: contain; }

/* ---------- Tarjetas de servicio (home) ---------- */
.card-offer .card-info .link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--hanka-blue);
}
.card-offer .card-info .link-more:hover { color: var(--hanka-orange); }
a.card-offer-link { display: block; color: inherit; }

/* ---------- Bloques reutilizables en páginas internas ---------- */
.hanka-feature {
  height: 100%;
  background: #fff;
  border: 1px solid #E0E6ED;
  border-left: 4px solid var(--hanka-orange);
  border-radius: 8px;
  padding: 26px 24px;
}
.hanka-feature .num {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  color: var(--hanka-orange);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.hanka-cta {
  background: var(--hanka-blue);
  border-radius: 14px;
  padding: 48px 44px;
  color: #fff;
}
.hanka-cta h3 { color: #fff; }
.hanka-cta p { color: rgba(255, 255, 255, .85); }
.service-mini {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E0E6ED;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.service-mini:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 37, 79, .12); }
.service-mini img { width: 100%; aspect-ratio: 705 / 429; object-fit: cover; display: block; }
.service-mini span { display: block; padding: 14px 16px; font-weight: 700; color: var(--hanka-blue); }
.service-mini:hover span { color: var(--hanka-orange); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 0 0 12px 32px;
  color: #041C2F;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--hanka-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300254F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.pageheader-hanka .btn-tag { text-transform: uppercase; letter-spacing: .06em; }

/* Podcast */
.podcast-cover {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--hanka-blue) 0%, #003a78 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.podcast-cover::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--hanka-orange);
  opacity: .9;
}
.podcast-cover img { width: 70%; position: relative; z-index: 1; }
.podcast-cover strong { position: relative; z-index: 1; margin-top: 18px; letter-spacing: .14em; font-size: 14px; }
.episode {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #E0E6ED;
  border-radius: 10px;
  margin-bottom: 16px;
}
.episode .ep-num {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hanka-blue);
  color: var(--hanka-orange);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.episode .ep-tag {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: #FFF1D6;
  color: #8a5300;
}

/* Tarifas */
.rate-card {
  height: 100%;
  background: #fff;
  border: 1px solid #E0E6ED;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rate-card img { width: 100%; aspect-ratio: 705 / 429; object-fit: cover; }
.rate-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.rate-card .body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Footer ---------- */
.footer-1 .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background .2s, transform .2s;
}
.footer-1 .footer-social a:hover { background: var(--hanka-orange); transform: translateY(-3px); }
.footer-1 .footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-cert { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer-cert span {
  background: #fff;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-cert img { max-height: 30px; width: auto; max-width: 100%; }
.footer-contact li { color: #fff; margin-bottom: 10px; font-size: 14px; line-height: 22px; }
.footer-contact li a { color: #fff; }
.footer-contact li a:hover { color: var(--hanka-orange); }

/* ---------- Botón flotante de WhatsApp (en todas las páginas) ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 12px;
  text-decoration: none;
}
.wa-float .wa-btn {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--hanka-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  transition: transform .2s;
}
.wa-float .wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--hanka-whatsapp);
  opacity: .55;
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}
.wa-float .wa-btn svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover .wa-btn { transform: scale(1.08); }
.wa-float .wa-label {
  background: #fff;
  color: var(--hanka-blue);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 37, 79, .18);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  white-space: nowrap;
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label { opacity: 1; transform: none; }
.wa-float:focus-visible .wa-btn { outline: 3px solid var(--hanka-blue); outline-offset: 3px; }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .55; }
  80%, 100% { transform: scale(1.65); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float .wa-btn::before { animation: none; display: none; }
}
/* el botón "subir" queda encima del de WhatsApp */
#scrollUp { right: 30px !important; bottom: 98px !important; }

@media (max-width: 991px) {
  .hanka-cta { padding: 34px 24px; }
  .episode { flex-wrap: wrap; }
  .episode .ep-tag { margin-left: 76px; }
}
@media (max-width: 575px) {
  .wa-float { right: 14px; bottom: 14px; }
  .wa-float .wa-label { display: none; }
  #scrollUp { right: 22px !important; bottom: 88px !important; }
}

/* ---------- Cabecera: 7 opciones de menú caben en una sola línea ---------- */
.header .main-header .header-left .header-nav { flex: 1 1 auto; width: auto; padding-left: 40px; }
.header .main-header .header-left .header-right { flex: 0 0 auto; width: auto; min-width: 0; }
.header .main-menu li { padding-right: 6px; }
.header .main-menu > li > a { padding-right: 14px; white-space: nowrap; }

/* Servicios: el submenú también se abre con clic (clase .open puesta por hanka.js) */
.header .main-menu li.open > div.sub-menu { display: flex; flex-wrap: wrap; opacity: 1; visibility: visible; }
.header .main-menu li.has-children > a[aria-haspopup] { cursor: pointer; }
/* Banner de página con foto del servicio */
.pageheader-hanka[style*="url("] { background-size: cover; background-position: center; padding: 110px 0; }

/* Icono HK sin fondo; versión clara sobre secciones de color */
.bg-customers-say .title-favicon,
.title-favicon.color-white {
  background-image: url(../imgs/template/favicon-hanka-white.png);
}

/* ---------- Slider principal: imágenes compuestas (1920x700) ----------
   El sujeto va a la derecha; se ancla a la derecha para que no se recorte en pantallas medianas. */
.banner-hanka { background-color: #00254F; background-size: auto 100%; background-repeat: no-repeat;
  /* anclado a la derecha; en pantallas menores a 1920 se desplaza un poco para que el sujeto no pise el texto */
  background-position: calc(100% + (1920px - 100vw) * 0.4) center; position: relative; }
.banner-hanka h1 { font-size: clamp(2.1rem, 3vw, 3.6rem); line-height: 1.15; }
@media (min-width: 1920px) { .banner-hanka { background-position: right center; background-size: cover; } }
@media (max-width: 1199px) {
  /* en pantallas angostas el texto queda sobre la imagen: se refuerza el contraste */
  .banner-hanka::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 22, 52, .88) 0%, rgba(0, 22, 52, .55) 100%); }
  .banner-hanka .container { position: relative; z-index: 1; }
}

/* evita scroll horizontal por elementos decorativos de la plantilla */
html, body { overflow-x: clip; }

/* ---------- Podcast: tarjetas de episodios (miniatura de YouTube) ---------- */
.episode-card { display: block; background: #fff; border: 1px solid #E0E6ED; border-radius: 12px; overflow: hidden; transition: transform .25s, box-shadow .25s; height: 100%; }
.episode-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 37, 79, .12); }
.episode-card .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #00254F; overflow: hidden; }
.episode-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.episode-card:hover .thumb img { transform: scale(1.05); }
.episode-card .play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 155, 1, .95); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.episode-card .play svg { width: 28px; height: 28px; fill: #00254F; margin-left: 3px; }
.episode-card .ep-title { display: block; padding: 16px 18px 20px; font-weight: 700; color: #00254F; line-height: 1.35; }
.episode-card:hover .ep-title { color: #FF9B01; }

/* ---------- Contacto: formulario ancho y modal "Trabaja con nosotros" ---------- */
.contact-wide { padding: 60px 40px; border-radius: 12px; }
@media (max-width: 575px) { .contact-wide { padding: 36px 18px; } }
.cv-modal { border: 0; border-radius: 14px; }
.cv-modal .modal-header { border-bottom: 3px solid #FF9B01; }
.cv-file { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed #98A2B3; border-radius: 6px; cursor: pointer; margin: 0; }
.cv-file:hover { border-color: #FF9B01; background: #FFFBF2; }
.cv-file-btn { background: #00254F; color: #fff; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 4px; white-space: nowrap; }
.cv-file-name { font-size: 13px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-status.ok { color: #067647; font-weight: 600; }
.cv-status.err { color: #B42318; font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cv-cancel { position: static; background: transparent; border: 1px solid #00254F; color: #00254F; padding: 8px 18px; border-radius: 0; font-weight: 600; }
.cv-cancel:hover { background: #00254F; color: #fff; }

/* ---------- Noticias (LinkedIn) ---------- */
.news-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.news-card .card-image img { width: 100%; aspect-ratio: 800 / 520; object-fit: cover; display: block; }
.news-date { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: #FF9B01; margin-bottom: 6px; }
.news-li { font-size: 13px; font-weight: 700; color: #00254F; text-decoration: none; border-bottom: 2px solid #FF9B01; padding-bottom: 1px; }
.news-li:hover { color: #FF9B01; }
.news-empty { text-align: center; padding: 60px 24px; background: #F7F9FC; border: 1px dashed #C8D1DC; border-radius: 14px; }
.news-dialog { max-width: 580px; }
.news-modal-body { background: #F3F6FA; padding: 16px; }
.news-frame { max-width: 504px; margin: 0 auto; background: #fff; border-radius: 8px; overflow: hidden; min-height: 320px; }
.news-frame iframe { width: 100%; border: 0; display: block; }

/* ---------- Podcast: vista previa de 1 minuto ---------- */
.episode-card .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.episode-card.has-preview { cursor: default; }
.episode-card .ep-body { padding: 16px 18px 20px; }
.episode-card .ep-body .ep-title { padding: 0; }
.episode-card .ep-yt { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: #00254F; text-decoration: none; border-bottom: 2px solid #FF9B01; }
.episode-card .ep-yt:hover { color: #FF9B01; }
.episode-card .preview-tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #00254F; background: #FF9B01; border-radius: 4px; padding: 3px 8px; pointer-events: none; }

/* ---------- Popup de inicio ---------- */
.hk-popup { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 20, 50, .62); }
.hk-popup.open { display: flex; animation: hk-fade .25s ease; }
.hk-popup-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 36px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border-top: 6px solid #FF9B01; animation: hk-pop .3s ease; }
.hk-popup-box img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hk-popup-body { padding: 26px 28px 28px; }
.hk-popup-body h3 { margin: 0 0 12px; color: #00254F; font-size: 24px; line-height: 1.25; }
.hk-popup-body p { margin: 0 0 20px; color: #344054; font-size: 16px; line-height: 1.6; white-space: pre-line; }
.hk-popup-close { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #00254F; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.hk-popup-close:hover { background: #FF9B01; }
.hk-popup-ok { display: inline-block; border: 0; background: #00254F; color: #fff; font: inherit; font-weight: 700; padding: 11px 26px; border-radius: 6px; cursor: pointer; }
.hk-popup-ok:hover { background: #0b3a73; }
@keyframes hk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hk-pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hk-popup.open, .hk-popup-box { animation: none; } }
.news-li { white-space: nowrap; }
.news-actions { gap: 8px; flex-wrap: wrap; }
