/* Capa editorial para las paginas internas. Campus Virtual queda excluido en PHP. */
body.ee-editorial-internal {
  --ee-orange: #e05a1b;
  --ee-orange-dark: #b8420d;
  --ee-ink: #151515;
  --ee-copy: #5f636b;
  --ee-paper: #fff;
  --ee-soft: #ededeb;
  --ee-rule: #b8b8b8;
  --ee-max: 1600px;
  overflow-x: hidden;
  color: var(--ee-ink);
  background: var(--ee-paper);
  font-family: Calibri, "Segoe UI", system-ui, sans-serif;
}

body.ee-editorial-internal :where(h1, h2, h3, h4, p, a, button, input, textarea, select) {
  font-family: Calibri, "Segoe UI", system-ui, sans-serif;
}

/* Cabecera heredada del tema */
body.ee-editorial-internal :where(.top-bar-area, .topbar-area, .header-top, .top-header) {
  display: none !important;
}

body.ee-editorial-internal :where(header, .header-area, .header-one-area, #sticky) {
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: none !important;
}

body.ee-editorial-internal :where(.header-area, .header-one-area, #sticky) {
  position: sticky !important;
  z-index: 9999 !important;
  top: 0 !important;
  border-bottom: 1px solid var(--ee-rule) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.ee-editorial-internal :where(.header-area, .header-one-area, #sticky) :where(.container, .container-fluid, .nav-shell) {
  width: min(calc(100% - 48px), var(--ee-max)) !important;
  max-width: var(--ee-max) !important;
  min-height: 82px;
  margin-inline: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(28px, 3vw, 56px) !important;
  flex-wrap: nowrap !important;
}

body.ee-editorial-internal :where(.logo, .site-logo, .custom-logo-link, .navbar-brand) {
  flex: 0 0 auto !important;
}

body.ee-editorial-internal :where(.logo img, .custom-logo, .site-logo img, .navbar-brand img) {
  width: auto !important;
  max-width: min(330px, 42vw) !important;
  height: 54px !important;
  object-fit: contain !important;
}

body.ee-editorial-internal :where(.stellarnav > ul, .main-navigation > ul, .navbar-nav) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(12px, 1.15vw, 22px) !important;
  min-width: 0;
  margin-left: auto !important;
  flex-wrap: nowrap !important;
}

body.ee-editorial-internal :where(.stellarnav > ul > li > a, .main-navigation > ul > li > a, .navbar-nav > li > a) {
  position: relative;
  padding: 30px 0 26px !important;
  color: #292524 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

body.ee-editorial-internal :where(.stellarnav > ul > li > a, .main-navigation > ul > li > a, .navbar-nav > li > a)::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--ee-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

body.ee-editorial-internal :where(.stellarnav > ul > li.current-menu-item > a, .main-navigation > ul > li.current-menu-item > a, .navbar-nav > li.current-menu-item > a)::after,
body.ee-editorial-internal :where(.stellarnav > ul > li > a, .main-navigation > ul > li > a, .navbar-nav > li > a):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Contenido editorial */
body.ee-editorial-internal :where(.site-main, main, .content-area, #content) {
  background: var(--ee-paper);
}

body.ee-editorial-internal .ee-internal-content {
  width: min(calc(100% - 48px), var(--ee-max));
  margin-inline: auto;
  padding-block: clamp(42px, 6vw, 86px);
}

body.ee-editorial-internal .ee-internal-content :where(.container, .container-fluid) {
  width: 100% !important;
  max-width: none !important;
}

body.ee-editorial-internal .ee-internal-content h1 {
  max-width: 1200px;
  margin: 0 0 clamp(28px, 4vw, 52px);
  color: var(--ee-ink);
  font-size: clamp(2.7rem, 5.2vw, 5.4rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.045em;
  line-height: .96 !important;
  text-wrap: balance;
}

body.ee-editorial-internal .ee-internal-content h1::before {
  display: block;
  margin-bottom: 16px;
  color: var(--ee-orange);
  content: attr(data-ee-kicker);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.ee-editorial-internal .ee-internal-content :where(h2, h3) {
  max-width: 980px;
  color: var(--ee-ink);
  font-weight: 700 !important;
  letter-spacing: -.025em;
  line-height: 1.08 !important;
}

body.ee-editorial-internal .ee-internal-content h2 {
  margin-block: clamp(38px, 6vw, 76px) 24px;
  font-size: clamp(2rem, 3.7vw, 4rem) !important;
}

body.ee-editorial-internal .ee-internal-content h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.25rem) !important;
}

body.ee-editorial-internal .ee-internal-content :where(p, li) {
  color: var(--ee-copy);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem) !important;
  line-height: 1.42 !important;
}

body.ee-editorial-internal .ee-internal-content :where(p, ul, ol) {
  max-width: 76ch;
}

body.ee-editorial-internal .ee-internal-content img {
  max-width: 100%;
  height: auto;
}

body.ee-editorial-internal .ee-internal-content .ee-feature-image {
  display: block;
  width: 100% !important;
  max-height: min(68vh, 720px);
  margin: 0 0 clamp(38px, 6vw, 78px) !important;
  object-fit: cover;
  object-position: center;
}

body.ee-editorial-internal .ee-internal-content :where(.row, .kc_row, .vc_row) {
  row-gap: clamp(26px, 4vw, 54px);
}

body.ee-editorial-internal .ee-internal-content :where(.kc_column_inner, .vc_column-inner, article, .service-item, .feature-item) {
  border-color: #dededb !important;
}

body.ee-editorial-internal .ee-internal-content :where(.btn, .button, button, input[type="submit"], a.kc_button) {
  min-height: 48px;
  padding: 13px 22px !important;
  border: 1px solid var(--ee-orange) !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: var(--ee-orange) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.ee-editorial-internal .ee-internal-content :where(.btn, .button, button, input[type="submit"], a.kc_button):hover {
  border-color: var(--ee-orange-dark) !important;
  background: var(--ee-orange-dark) !important;
  transform: translateY(-2px);
}

body.ee-editorial-internal .ee-internal-content :where(input:not([type="submit"]), textarea, select) {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbc9c5;
  border-radius: 0;
  color: var(--ee-ink);
  background: #fff;
  font-size: 17px;
}

/* Variantes por pagina */
body.ee-editorial-nosotros .ee-internal-content :where(.kc_row, .vc_row, .row):nth-of-type(even),
body.ee-editorial-objetivos .ee-internal-content :where(.kc_row, .vc_row, .row):nth-of-type(even),
body.ee-editorial-transformacion-digital .ee-internal-content :where(.kc_row, .vc_row, .row):nth-of-type(even),
body.ee-editorial-accesibilidad-universal .ee-internal-content :where(.kc_row, .vc_row, .row):nth-of-type(even) {
  background: var(--ee-soft);
}

body.ee-editorial-contacto .ee-internal-content :where(form, .nf-form-cont, .wpcf7) {
  max-width: 900px;
  padding: clamp(24px, 4vw, 52px);
  background: var(--ee-soft);
}

/* Footer heredado */
body.ee-editorial-internal :where(footer, .footer-area, .footer-bottom-area) {
  color: #f5f5f4 !important;
  background: #1c1c1f !important;
}

body.ee-editorial-internal :where(footer, .footer-area, .footer-bottom-area) :where(h2, h3, h4, p, li, a) {
  color: inherit !important;
}

body.ee-editorial-internal :where(footer, .footer-area, .footer-bottom-area) a:hover {
  color: #ff7a36 !important;
}

body.ee-editorial-internal .ee-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.22, 1, .36, 1);
}

body.ee-editorial-internal .ee-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1399px) {
  body.ee-editorial-internal :where(.logo img, .custom-logo, .site-logo img, .navbar-brand img) {
    max-width: 280px !important;
    height: 48px !important;
  }

  body.ee-editorial-internal :where(.header-area, .header-one-area, #sticky) :where(.container, .container-fluid, .nav-shell) {
    gap: 22px !important;
  }

  body.ee-editorial-internal :where(.stellarnav > ul, .main-navigation > ul, .navbar-nav) {
    gap: 12px !important;
  }

  body.ee-editorial-internal :where(.stellarnav > ul > li > a, .main-navigation > ul > li > a, .navbar-nav > li > a) {
    font-size: 16px !important;
  }
}

@media (max-width: 991px) {
  body.ee-editorial-internal :where(.header-area, .header-one-area, #sticky) :where(.container, .container-fluid, .nav-shell),
  body.ee-editorial-internal .ee-internal-content {
    width: min(calc(100% - 32px), var(--ee-max)) !important;
  }

  body.ee-editorial-internal :where(.stellarnav > ul, .main-navigation > ul, .navbar-nav) {
    gap: 0 !important;
  }

  body.ee-editorial-internal :where(.stellarnav > ul > li > a, .main-navigation > ul > li > a, .navbar-nav > li > a) {
    padding-block: 13px !important;
    font-size: 17px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ee-editorial-internal .ee-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
