/* HT Cleaning - estilos base del sitio (reemplazan el tema de Marketing 360).
   Los estilos propios de cada página (colores y fondos de cada bloque) están en css/pages/. */

:root {
  --navy: #00005c;
  --navy-dark: #000045;
  --red: #850000;
  --red-dark: #640000;
  --blue: #294ca3;
  --footer: #0c2940;
  --text: #585858;
  --light: #e8e8e8;
  --font-title: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", Arial, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  position: relative;
  background-color: #f0f0f0;
  background-position: 50% 0;
  background-repeat: no-repeat;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 1024px) {
  html { background-attachment: scroll !important; background-size: cover !important; }
}
body {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4, dt { font-family: var(--font-title); }
p { margin: 0 0 1.6em; }
ul, ol { margin: 0 0 1.6em; padding-left: 1.3em; }
li > p { margin: 0 0 .4em; }
.siteWrapper { position: relative; z-index: 1; }

.skipLink { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: var(--navy); padding: 8px 14px; }
.skipLink:focus { left: 8px; top: 8px; }

/* ---------- Encabezado y menú ---------- */
.headerAndNavContainer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff linear-gradient(rgba(7, 147, 255, .37), rgba(255, 255, 123, .54));
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.headerAndNavContent {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { width: 72px; height: 72px; }
.navToggle {
  display: none;
  font: 700 18px var(--font-title);
  color: var(--navy);
  background: rgba(255, 255, 255, .6);
  border: 3px solid var(--navy);
  border-radius: 9px;
  padding: 6px 14px;
  cursor: pointer;
}
.navContent ul { list-style: none; margin: 0; padding: 0; }
#navTopLevel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 22px;
}
#navTopLevel > li { position: relative; }
#navTopLevel > li > a,
.navLabel {
  display: inline-block;
  font: 800 20px var(--font-title);
  color: var(--navy);
  text-decoration: none;
  padding: 5px 0;
  cursor: pointer;
  background: none;
  border: 0;
}
#navTopLevel > li > a:hover, .navLabel:hover, .navContent .selected { color: var(--red); }
.dropArrow { font-size: .7em; vertical-align: middle; }
.subNav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--light);
  border: 3px solid #d1d1d1;
  z-index: 10;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
#navTopLevel > li:hover > .subNav,
#navTopLevel > li:focus-within > .subNav,
#navTopLevel > li.open > .subNav { display: block; }
.subNav a {
  display: block;
  padding: 10px 20px;
  font: 800 18px var(--font-title);
  color: var(--red);
  text-decoration: none;
}
.subNav a:hover, .subNav a.selected { background: #fff; color: var(--navy); }
#navTopLevel .navButton {
  display: inline-block;
  font: 400 18px var(--font-body);
  color: var(--light);
  background: linear-gradient(var(--red), var(--red-dark));
  border: 4px solid var(--navy);
  border-radius: 9px;
  padding: 3px 18px;
  text-decoration: none;
}
#navTopLevel .navButton:hover, #navTopLevel .navButton:focus { color: #ffff29; }

@media (max-width: 1100px) {
  .navToggle { display: inline-block; }
  .navContent { position: static; }
  #navTopLevel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 10px 20px 20px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
  }
  .navOpen #navTopLevel { display: flex; }
  #navTopLevel > li { border-bottom: 1px solid #e3e3e3; }
  #navTopLevel > li > a, .navLabel { display: block; width: 100%; text-align: left; padding: 10px 0; }
  .subNav { position: static; display: block; border: 0; box-shadow: none; background: transparent; min-width: 0; padding-left: 14px; }
  .subNav a { padding: 6px 0; font-size: 17px; }
  .subNav a:hover { background: none; }
  #navTopLevel > li.navButtonItem { border: 0; padding-top: 10px; }
  #navTopLevel .navButton { display: block; text-align: center; }
}

/* ---------- Bloques de contenido (misma estructura que Marketing 360) ---------- */
.primaryContent { display: block; }
.blockContainer, .pageTitleContainer, .itemsCollectionContainer, .definitionListContainer {
  position: relative;
  padding: 50px 0;
  background-size: cover;
  background-position: 50% 50%;
}
.blockContainer > .blockContent, .pageTitleContainer > .blockContent,
.itemsCollectionContainer > .blockContent { position: relative; z-index: 1; }
.blockContent { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.pageTitleContainer { padding: 100px 0 10px; }
.pageTitle {
  margin: 0 0 .5em;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  text-transform: uppercase;
  text-align: center;
}
.pageSubtitle { font-size: 26px; text-align: center; margin: 0 0 .8em; color: var(--navy); }
.contentTitle {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  text-transform: uppercase;
}
h3.contentTitle { font-size: 22px; }
.contentTitle a { color: inherit; text-decoration: none; }
.txa1, .txa1 .blockText, .txa1 .blockInnerContent { text-align: center; }
.maxWidth--content { margin-left: auto; margin-right: auto; }
.blockInnerContent > :last-child, .maxWidth--content > :last-child { margin-bottom: 0; }

/* Imagen arriba y texto abajo */
.layoutA.hasImg .blockImg, .layoutB .blockImg { text-align: center; margin-bottom: 24px; }
.layoutB.imgOnly .blockImg, .layoutA.imgOnly .blockImg { margin-bottom: 0; }
.layoutB.hasText .blockText { margin-bottom: 24px; text-align: center; }
/* Imagen a un lado y texto al otro */
.layoutC.hasImg, .layoutD.hasImg { display: flex; align-items: flex-start; gap: 50px; }
.layoutC--vAlign1, .layoutD--vAlign1 { align-items: center !important; }
.layoutC.hasImg .blockImg, .layoutD.hasImg .blockImg { flex: 0 0 45%; text-align: center; }
.layoutC.hasImg .blockText, .layoutD.hasImg .blockText { flex: 1 1 auto; min-width: 0; }
.layoutD.hasImg .blockImg { order: 2; }
@media (max-width: 767px) {
  .layoutC.hasImg, .layoutD.hasImg { flex-direction: column; gap: 24px; }
  .layoutD.hasImg .blockImg { order: 0; }
  .layoutC.hasImg .blockImg, .layoutD.hasImg .blockImg { flex-basis: auto; }
}

/* Imágenes redondas y efectos */
.imgShape.circleImg { display: inline-block; border-radius: 50%; overflow: hidden; aspect-ratio: 1 / 1; max-width: 100%; }
.imgShape.circleImg img { width: 100%; height: 100%; object-fit: cover; }
.imgHover { position: relative; display: inline-block; }
.imgHover-overlay { display: none; }
.imgHover--grayscale img { transition: filter .3s; }
.imgHover--grayscale:hover img { filter: grayscale(100%); }

/* Botones */
.button, button.button, input[type=submit] {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 4.5px 18px;
  font: 700 18px var(--font-body);
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(var(--navy), var(--navy-dark));
  border: 3px solid var(--navy);
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, .button:focus, input[type=submit]:hover {
  color: #ffff29;
  background: linear-gradient(#0793ff, #006fc4);
  border-color: #ffff29;
}

/* Colecciones de elementos (tarjetas) */
.itemsCollectionContent.gridView { display: grid; gap: 30px; }
.gridView.cols1 { grid-template-columns: 1fr; }
.gridView.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gridView.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gridView.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .gridView.cols3, .gridView.cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .itemsCollectionContent.gridView { grid-template-columns: 1fr; }
}
.listView .item { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 30px; }
.listView .itemImg { flex: 0 0 30%; }
@media (max-width: 560px) { .listView .item { flex-direction: column; } }
.item .itemImg { text-align: center; margin-bottom: 14px; }
.item .itemContent .contentTitle { font-size: 22px; }
.simpleList .item { text-align: center; }
.simpleList .itemImg .circleImg { width: 158px; }
.fixedAspectRatioImages .itemImg img, .ratio16x9Img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Preguntas frecuentes (lista de definiciones) */
.definitionList { margin: 24px 0 0; }
.definitionList dt { font-size: 22px; text-transform: none; margin: 0 0 8px; text-align: left; }
.definitionList dd { margin: 0 0 28px; text-align: left; }

/* Llamado a la acción */
.ctaContainer { max-width: 900px; margin: 0 auto; padding: 40px; text-align: center; }
.ctaContainer .contentTitle { color: #fff; font-size: 28px; text-transform: capitalize; text-align: center; }
.ctaContainer .blockInnerContent { color: #fff; font-size: 18px; text-align: center; }
.ctaFeaturedButtonContainer { margin-top: 10px; }

/* ---------- Blog ---------- */
.blogsPermalink-featuredImage { background: #fff; }
.blogsPermalink-featuredImage img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.blogsPermalink-meta { text-align: left; }
.blogsPermalink-meta .pageTitle { text-align: left; text-transform: none; font-size: 36px; margin-top: 10px; }
.authorDateMeta { color: #777; font-size: 16px; }
.blogsPermalink-media { margin: 0 0 1.6em; text-align: center; }
.blockWrap_blogsCollection { padding-top: 40px; }
.blockWrap_blogsCollection .blockText { margin-top: 10px; }
.blogBack { margin-top: 30px; }
.blogsColl-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.blogsColl-item .itemImg { margin: 0; }
.blogsColl-item .itemImg img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blogsColl-item .itemContent { padding: 18px 20px 20px; text-align: left; }
.blogsColl-item .itemInnerContent p { margin: 0; }
.blogsColl-item .contentTitle { font-size: 21px; text-transform: none; }
.blogsColl-item .itemDate { font-size: 15px; color: #777; margin: 0 0 8px; }
.blogsColl-item .itemInnerContent p { font-size: 16px; }

/* ---------- Formularios ---------- */
.htForm { max-width: 640px; margin: 0 auto; text-align: left; background: #fff; padding: 28px; border-radius: 10px; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); color: #222; }
.htForm .field { margin-bottom: 18px; }
.htForm label, .htForm legend { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.htForm fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.htForm input[type=text], .htForm input[type=email], .htForm input[type=tel], .htForm select, .htForm textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 10px 12px;
  border: 1px solid #b5b5b5;
  border-radius: 6px;
  background: #fff;
}
.htForm textarea { min-height: 130px; resize: vertical; }
.htForm .choices label { display: flex; gap: 8px; align-items: center; font-weight: 400; color: #222; margin: 4px 0; }
.htForm .choices input { width: 18px; height: 18px; }
.htForm .note { font-size: 14px; color: #555; margin: 6px 0 0; }
.htForm .hp { position: absolute; left: -9999px; }
.htForm .formStatus { margin: 14px 0 0; font-weight: 700; }
.htForm .formStatus.ok { color: #1b6e1b; }
.htForm .formStatus.error { color: var(--red); }

/* ---------- Oficina y pie de página ---------- */
.officeBlock { position: relative; z-index: 1; background: #fff; color: #222; text-align: center; padding: 40px 16px 50px; }
.officeBlock h2 { font: 700 30px var(--font-title); color: #0b1f4d; margin: 0 0 10px; }
.officeBlock p { margin: 0; line-height: 1.7; }
.officeBlock a { color: #0b1f4d; font-weight: 700; }
.officeBlock iframe { display: block; border: 0; border-radius: 8px; margin: 18px auto 0; width: 100%; max-width: 900px; height: 380px; }
@media (max-width: 600px) { .officeBlock iframe { height: 300px; } }

.footerContainer { position: relative; z-index: 1; background: var(--footer); color: #fff; padding: 60px 16px; text-align: center; }
.footerContainer a { color: #fff; }
.footerContainer p { margin: 0 0 14px; }
.socialIcons { list-style: none; margin: 0 0 20px; padding: 0; display: flex; justify-content: center; gap: 22px; }
.socialIcons a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
.socialIcons svg { width: 30px; height: 30px; fill: #fff; }
.socialIcons a:hover svg { fill: #ffff29; }

@media (max-width: 767px) {
  body { font-size: 17px; }
  .blockContent { padding: 0 20px; }
  .blockContainer, .itemsCollectionContainer, .definitionListContainer { padding: 36px 0; }
  .pageTitleContainer { padding: 60px 0 10px; }
  .pageTitle { font-size: 30px; }
  .contentTitle { font-size: 26px; }
  .logo img { width: 58px; height: 58px; }
  .headerAndNavContent { padding: 6px 16px; }
  .ctaContainer { padding: 24px 0; }
}
