/* Combined artwork preserves the supplied ONAC mark and accreditation code. */
.header__logo {
  flex-shrink: 0;
}
.header__logo .crsas-logo {
  display: block;
  width: 260px;
  height: auto;
  padding-block: 20px;
  max-height: 115px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: left center;
}
.header-area .header__nav { padding-left: 24px; }
.offset-logo { width: 240px; max-width: calc(100% - 40px); }
.offset-logo .crsas-logo {
  display: block;
  height: auto;
  mix-blend-mode: multiply;
}
@media (max-width: 1199px) {
  .header__logo .crsas-logo { max-height: 100px; }
}
.transformed .header__logo .crsas-logo { max-height: 80px; }
@media (max-width: 767px) {
  .header__logo .crsas-logo { width: clamp(160px, calc(100vw - 150px), 210px); }
  .header-area .header__nav { padding-left: 0; }
  .header-area .header__button { gap: 8px; }
  .header-area .header-call-box { display: none; }
  .offset-button { display: block; }
}

/* Public contact channels published by crsas.co and certificadosretie.com. */
.header-area .top-bar .crsas-contact-bar { flex-wrap: nowrap; gap: 20px; }
.header-area .header-call-box { text-decoration: none; }
.crsas-contact-bar a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 22px; color: #0a0a0a; }
.crsas-contact-bar a i { color: var(--action); }
.crsas-contact-bar a:hover { color: var(--action); }
.crsas-contact-section .contact-section__icon i { font-size: 32px; color: var(--action); }
.crsas-contact-section .location a { overflow-wrap: anywhere; }

/* Keep the current top-level page highlighted without styling its submenu as active. */
.header-area .main-menu > ul > li.active > a { color: var(--action); }
.header-area .main-menu > ul > li.active > ul.dp-menu a { color: var(--primary); }
.header-area .main-menu > ul > li.active > ul.dp-menu a::before { content: none; }
.header-area .main-menu > ul > li.active > ul.dp-menu a:hover { color: var(--action); }
.header-area .main-menu > ul > li.active.menu-item-has-children::after { color: var(--action); }

/* Restore comfortable spacing now that the client menu has fewer items. */
.header-area .header__nav { padding-left: 24px; }
.header-area .main-menu > ul > li > a { padding: 48px 12px; font-size: 15px; white-space: nowrap; }
@media only screen and (max-width: 1399px) {
  .header-area .main-menu > ul > li > a { padding: 45px 8px; font-size: 14px; }
}
@media only screen and (max-width: 1199px) {
  .header-area .main-menu > ul { display: none; }
  .header-area .header__nav { padding-left: 0; }
  .offset-button { display: block; }
}
@media (min-width: 1200px) {
  .main-menu > ul > .mobile-dictamen-item { display: none !important; }
}
@media only screen and (max-width: 991px) {
  .header-area .top-bar .crsas-contact-bar { display: none; }
}

/* Footer content tailored to the CRSAS visual proposal. */
.footer__widgets-box {
  align-items: center;
  justify-content: flex-start;
}
.footer__widgets-box .logo img {
  display: block;
  width: min(270px, 100%);
  height: auto;
}
.crsas-footer-description {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}
.footer__widgets__inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 767px) {
  .footer__widgets__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (max-width: 575px) {
  .footer__widgets__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
.footer__bottom-item .copyright a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__bottom-item .copyright a:hover {
  color: var(--action);
}
.footer__bottom-item {
  justify-content: center;
  text-align: center;
}
.footer__bottom-item .content {
  width: 100%;
}
.footer__bottom-item .content .copyright {
  margin-bottom: 0;
}

/* Keep the localized CTA within the template's original panel and button row. */
.cta-section__content .section-title__wrapper .text {
  white-space: nowrap;
}
.cta-section__content .section-title__wrapper .title {
  max-width: 500px;
}
.cta-section__btn {
  flex-wrap: nowrap;
  gap: 14px;
}
.cta-section__btn .rr-btn {
  padding-inline: 24px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .cta-section__btn {
    flex-wrap: wrap;
  }
}

/* Shared internal-page content for the local CRSAS visual proposal. */
.breadcrumb-section__wrapper[data-background*="crsas-editorial"] { background-position: center 35px; }
.crsas-intro { max-width: 760px; margin: 14px auto 0; color: #555; line-height: 1.65; }
.crsas-contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 36px; align-items: stretch; margin-top: 42px; }
.crsas-contact-form-wrap, .crsas-contact-detail { padding: 34px; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px rgba(16, 24, 32, .07); }
.crsas-contact-form-wrap h3, .crsas-contact-detail h3 { margin: 0 0 10px; }
.crsas-contact-form-wrap > p { margin-bottom: 24px; color: #555; }
.crsas-contact-form-wrap .contact-page__form-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.crsas-contact-form-wrap .contact-page__input input, .crsas-contact-form-wrap .contact-page__textarea textarea, .crsas-contact-form-wrap .contact-page__select select { width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid #e2e2e2; border-radius: 6px; background: #fff; }
.crsas-contact-form-wrap .contact-page__textarea textarea { min-height: 136px; margin: 16px 0 22px; }
.crsas-contact-visual { display: flex; flex-direction: column; gap: 18px; }
.crsas-contact-visual > img { width: 100%; min-height: 260px; max-height: 340px; object-fit: cover; border-radius: 12px; }
.crsas-contact-detail { flex: 1; }
.crsas-contact-detail p { margin: 12px 0; color: #454545; }
.crsas-contact-detail p i { width: 24px; color: var(--action); }
.crsas-contact-detail > span { display: block; margin-top: 20px; font-weight: 700; }
.blog-section__meta { display: flex; flex-wrap: wrap; gap: 14px; }
.blog-section__meta li { display: inline-flex; align-items: center; gap: 7px; }
.blog-section__meta li i { color: var(--action); }
.crsas-read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--action); font-weight: 700; }
.crsas-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.crsas-pagination a { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #f3f3f3; color: #1a2027; font-weight: 700; }
.crsas-pagination a[aria-current="page"] { background: var(--action); color: #fff; }
.crsas-article-heading { margin: 28px 0 12px; font-size: 25px; }
.crsas-article-quote { margin: 28px 0; padding: 24px 28px; border-left: 4px solid var(--action); background: #fff5ef; font-size: 20px; font-weight: 600; }
.crsas-article-contact { margin-top: 36px; padding: 28px; border-radius: 10px; background: #f5f5f5; }
.crsas-article-contact p { margin: 10px 0 20px; }
@media (max-width: 767px) {
  .crsas-contact-layout { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .crsas-contact-form-wrap, .crsas-contact-detail { padding: 24px; }
  .crsas-contact-form-wrap .contact-page__form-group { grid-template-columns: 1fr; }
  .crsas-intro { padding-inline: 12px; }
}

/* Crop editorial imagery consistently so generated aspect ratios do not change card geometry. */
.blog-section__thumb { overflow: hidden; aspect-ratio: 3 / 2; }
.blog-section__thumb > a { display: block; width: 100%; height: 100%; }
.blog-section__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.blog-details__img-box { align-items: stretch; }
.blog-details__img-box .thumb { flex: 1 1 0; min-width: 0; aspect-ratio: 3 / 2; }
.blog-details__img-box .thumb img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.blog-details__sidebar__post-thumb { flex: 0 0 112px; width: 112px; height: 80px; min-width: 112px; min-height: 80px; overflow: hidden; border-radius: 5px; }
.blog-details__sidebar__post-thumb a { display: block; width: 100%; height: 100%; }
.blog-details__sidebar__post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 575px) {
  .blog-details__img-box .thumb { flex-basis: 100%; }
}

/* Dictamen lookup visual for the local proposal (submission remains inactive). */
.crsas-dictamen-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f6f7f8 0%, #fff 58%, #fff2e9 100%); }
.crsas-dictamen-heading { max-width: 850px; margin: 0 auto 42px; text-align: center; }
.crsas-dictamen-eyebrow { display: inline-block; margin-bottom: 12px; color: var(--action); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.crsas-dictamen-heading h1 { margin: 0 0 14px; color: #1a2027; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.crsas-dictamen-heading p { max-width: 700px; margin: auto; color: #555; font-size: 17px; line-height: 1.65; }
.crsas-dictamen-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr); gap: 26px; align-items: stretch; }
.crsas-dictamen-search { padding: clamp(24px, 4vw, 46px); border: 1px solid #e6e8eb; border-radius: 16px; background: #fff; box-shadow: 0 18px 55px rgba(26,32,39,.08); }
.crsas-dictamen-search__intro { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.crsas-dictamen-search__icon { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; border-radius: 50%; background: #fff1e8; color: var(--action); font-size: 22px; }
.crsas-dictamen-search__intro h2 { margin: 0 0 6px; font-size: 25px; }
.crsas-dictamen-search__intro p { margin: 0; color: #62676c; }
.crsas-dictamen-form label { display: block; margin-bottom: 9px; color: #1a2027; font-weight: 700; }
.crsas-dictamen-form__row { display: flex; gap: 12px; }
.crsas-dictamen-form__row input { min-width: 0; min-height: 58px; flex: 1 1 auto; padding: 14px 16px; border: 1px solid #dfe2e5; border-radius: 7px; background: #fff; color: #1a2027; }
.crsas-dictamen-form__row input:focus { border-color: var(--action); outline: 3px solid rgba(244,118,41,.14); }
.crsas-dictamen-form__row .rr-btn { min-height: 58px; padding-inline: 22px; white-space: nowrap; }
.crsas-dictamen-form__row .rr-btn i { margin-right: 7px; }
.crsas-dictamen-empty { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 20px; border: 1px dashed #d9dde1; border-radius: 10px; background: #f8f9fa; }
.crsas-dictamen-empty__icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 50%; background: #fff; color: var(--action); font-size: 19px; }
.crsas-dictamen-empty h3 { margin: 0 0 5px; font-size: 17px; }
.crsas-dictamen-empty p { margin: 0; color: #62676c; font-size: 14px; line-height: 1.5; }
.crsas-dictamen-help { margin: 19px 0 0; color: #62676c; font-size: 14px; }
.crsas-dictamen-help a { color: var(--action); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.crsas-dictamen-trust { padding: clamp(25px, 3vw, 38px); border-radius: 16px; background: #1a2027; color: #fff; }
.crsas-dictamen-trust > img { display: block; width: min(230px, 100%); height: auto; margin: 0 0 26px; }
.crsas-dictamen-trust__label { color: #ff9b60; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.crsas-dictamen-trust h2 { margin: 10px 0 12px; color: #fff; font-size: 26px; line-height: 1.2; }
.crsas-dictamen-trust > p { color: rgba(255,255,255,.76); line-height: 1.6; }
.crsas-dictamen-trust__code { display: grid; gap: 3px; margin: 21px 0; padding: 16px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(255,255,255,.06); }
.crsas-dictamen-trust__code span, .crsas-dictamen-trust__code small { color: rgba(255,255,255,.68); font-size: 13px; }
.crsas-dictamen-trust__code strong { color: #fff; font-size: 20px; }
.crsas-dictamen-steps { display: grid; gap: 13px; }
.crsas-dictamen-steps span { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.88); font-size: 14px; }
.crsas-dictamen-steps b { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: var(--action); color: #fff; font-size: 12px; }
@media (max-width: 767px) {
  .crsas-dictamen-grid { grid-template-columns: 1fr; }
  .crsas-dictamen-heading { margin-bottom: 28px; }
  .crsas-dictamen-form__row { flex-direction: column; }
  .crsas-dictamen-form__row .rr-btn { width: 100%; justify-content: center; }
  .crsas-dictamen-trust > img { margin-inline: auto; }
}

/* Floating WhatsApp contact button, matching CRSAS's current green pulse style. */
.crsas-whatsapp-float {
  position: fixed;
  z-index: 1000;
  bottom: 24px;
  left: 24px;
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.crsas-whatsapp-float:hover { transform: scale(1.05); background: #20bd5a; color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); }
.crsas-whatsapp-float:active { transform: scale(.95); background: #1da851; }
.crsas-whatsapp-float:focus-visible { outline: 4px solid rgba(37, 211, 102, .5); outline-offset: 3px; }
.crsas-whatsapp-float > svg { position: relative; z-index: 2; width: 28px; height: 28px; fill: currentColor; }
.crsas-whatsapp-float__pulse { position: absolute; inset: 0; z-index: 0; border-radius: 50%; background: #25d366; opacity: .65; pointer-events: none; animation: crsas-whatsapp-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.crsas-whatsapp-float__pulse--delayed { opacity: .4; animation-delay: .5s; }
@keyframes crsas-whatsapp-ping { 75%, 100% { transform: scale(1.65); opacity: 0; } }
@media (min-width: 768px) { .crsas-whatsapp-float { width: 64px; height: 64px; } .crsas-whatsapp-float > svg { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .crsas-whatsapp-float__pulse { animation: none; } }
