/*
Theme Name: Ofiserco Child Theme
Description: This is a custom child theme
Template: salient
Version: 1.0
*/

/*GENERAL*/
:root {
  --light: #ffffff;
  --dark: #001337;
  --dark-blue: #12183e;
  --grey: #494949;
  --light-grey: #d9d9d9;
  --accent: #0024f8;
  --secondary: #2ce7fe;

  --current-color: var(--light);
  --base: 1440;

  --primary-font: 'Roobert', sans-serif;
  --mono-font: 'Space Mono', monospace;

  --fnt-size-huge: calc(110 / 1280 * 100vw);
  --fnt-size-big: calc(50 / 1280 * 100vw);
  --fnt-size-medium: calc(39 / 1280 * 100vw);
  --fnt-size-small: calc(25 / 1280 * 100vw);
  --fnt-size-body: calc(18 / 1280 * 100vw);
  --fnt-size-toggle: calc(14 / 1280 * 100vw);
  --fnt-size-huge-mb: calc(46 / 1280 * 100vw);
  --fnt-size-big-mb: calc(46 / 390 * 100vw);
  --fnt-size-medium-mb: calc(32 / 390 * 100vw);
  --fnt-size-small-mb: calc(22 / 390 * 100vw);
  --fnt-size-body-mb: calc(16 / 390 * 100vw);
}

::selection {
  background-color: var(--dark);
  color: var(--light);
  text-shadow: none;
}

@font-face {
  font-family: 'Roobert';
  src:
    url('/wp-content/themes/ofiserco-child/fonts/Roober-Regular.woff2') format('woff2'),
    url('/wp-content/themes/ofiserco-child/fonts/Roober-Regular.woff') format('woff'),
    url('/wp-content/themes/ofiserco-child/fonts/Roober-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roobert';
  src:
    url('/wp-content/themes/ofiserco-child/fonts/Roobert-Medium.woff2') format('woff2'),
    url('/wp-content/themes/ofiserco-child/fonts/Roobert-Medium.woff') format('woff'),
    url('/wp-content/themes/ofiserco-child/fonts/Roobert-Medium.ttf') format('ttf');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src:
    url('/wp-content/themes/ofiserco-child/fonts/SpaceMono.woff2') format('woff2'),
    url('/wp-content/themes/ofiserco-child/fonts/SpaceMono.woff') format('woff'),
    url('/wp-content/themes/ofiserco-child/fonts/SpaceMono.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*WRAPPERS*/
@media (min-width: 1000px) {
  .full-width-content:not(.no-padding, .special-padding) > .row_col_wrap_12 {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .no-padding {
    padding: 0 !important;
  }

  .no-padding > .row_col_wrap_12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 1000px) {
  .full-width-content:not(.no-padding) > .row_col_wrap_12 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .no-padding > .row_col_wrap_12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/*NAV*/
.site-header {
  position: relative;
  width: 100%;
}

/* BACKDROP: base de color detrás de logo + botón, desde arriba */
.site-header__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.site-header__backdrop-layer {
  position: absolute;
  inset: 0;
  background-color: var(--dark);
  transform: translateX(-101%);
}

.site-header__backdrop-layer.is--2 {
  background-color: var(--accent);
}

/* Grid de 12 columnas (referencia: logo en col 1-2, acciones en col 7-12) */
.site-header__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  padding: 1.5em 1.94em;
}

@media (min-width: 1000px) {
  .site-header__backdrop {
    display: none !important;
  }
}

@media only screen and (min-width: 1px) and (max-width: 999px) {
  body #header-outer {
    padding: 0 !important;
  }
}

@media only screen and (min-width: 1000px) {
  #header-outer #logo,
  #header-outer .logo-clone,
  #header-outer .logo-spacing {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    justify-content: center;
  }

  #header-outer #logo img,
  #header-outer .logo-clone img,
  #header-outer .logo-spacing img {
    height: 3vw;
  }
}

/* LOGO -------------------------------------------------- */
.site-header__logo {
  grid-column: 1 / span 2;
  display: flex;
  align-items: stretch;
}

.site-header__logo #logo {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--accent);
}

.site-header__actions {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
}

.site-header__menu-group {
  grid-column: 1 / 4;
  justify-self: start;
  position: relative;
  display: flex;
}

.site-header__menu-btn,
.site-header__cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--light);
  border: none;
  color: var(--accent);
  font-family: var(--mono-font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: calc(14 / 1280 * 100vw);
  line-height: 1;
  padding: 0.6em 1.1em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.site-header__menu-btn::before,
.site-header__cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--accent);
  transition: height 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}

.site-header__menu-btn:hover,
.site-header__cta:hover,
.site-header__menu-group[data-menu-open='true'] .site-header__menu-btn {
  color: var(--light);
}

.site-header__menu-btn:hover::before,
.site-header__cta:hover::before,
.site-header__menu-group[data-menu-open='true'] .site-header__menu-btn::before {
  height: 100%;
}

.site-header__menu-btn-text {
  position: relative;
  height: 1.5em;
  overflow: hidden;
  display: flex;
  flex-flow: column;
}

.site-header__menu-btn-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5em;
  line-height: 1.5;
}

.site-header__cta-group {
  grid-column: 4 / 7;
  display: flex;
  align-items: stretch;
}

.site-header__cta-group .site-header__cta {
  flex: 1;
}

/* CTA + icono duplicados dentro del panel: solo se muestran en mobile */
.site-header__panel-cta-group {
  display: none;
}

.site-header__cta--panel {
  display: none;
  width: 100%;
  margin-top: 1em;
  padding: 0.9em 1.5em;
  background-color: var(--light);
  border: none;
  color: var(--accent);
  text-align: center;
}

.site-header__cta--panel span {
  color: var(--accent);
}

@media (max-width: 1000px) {
  .site-header__menu-btn {
    border: 1px solid var(--accent);
  }

  .site-header__menu-group[data-menu-open='true'] .site-header__menu-btn {
    border-color: var(--light);
  }

  .site-header__account.site-header__account--panel {
    border: 1px solid var(--light);
  }

  .site-header__actions {
    display: flex;
    justify-content: end;
  }
}

/* Botón cuenta / portal cliente -------------------------- */
.site-header__account {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--accent);
  color: var(--light);
  flex-shrink: 0;
  transition: background-color 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.site-header__account:hover {
  background-color: var(--dark);
}

/* PANEL DESPLEGABLE --------------------------------------------- */
.site-header__panel {
  position: absolute;
  top: 0;
  left: calc(100% + 0.75em);
  width: 20em;
  max-width: calc(100vw - 4em);
  overflow: hidden;
  z-index: 5;
}

.site-header__panel[data-nav-state='closed'] {
  pointer-events: none;
}

.site-header__panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.site-header__panel-layer {
  position: absolute;
  inset: 0;
  background-color: var(--dark);
}

.site-header__panel-layer.is--2 {
  background-color: var(--accent);
}

.site-header__panel-nav {
  position: relative;
  z-index: 1;
  padding: 0.5em 0;
  display: block !important;
}

#header-outer #top nav.site-header__panel-nav {
  display: block !important;
}

.site-header__menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__menu-list-item {
  overflow: hidden;
}

.site-header__menu-list-item:last-child {
  border-bottom: none;
}

.site-header__menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.85em 1.25em !important;
  text-decoration: none;
  color: var(--light);
}

.site-header__menu-link-heading-wrap {
  display: block;
  overflow: hidden;
  line-height: 1.2;
}

.site-header__menu-link-heading {
  display: block;
  position: relative;
  font-family: var(--primary-font);
  font-weight: 600;
  font-size: calc(14 / 1280 * 100vw);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--light);
  text-shadow: 0 1.2em 0 currentColor;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}

.site-header__menu-link:hover .site-header__menu-link-heading {
  transform: translateY(-100%);
}

body #header-outer,
body[data-header-color='dark'] #header-outer {
  background-color: transparent;
}

#header-outer:not([data-format='left-header']) #top nav > ul {
  float: none;
  display: flex;
  vertical-align: middle;
  flex-flow: column;
}

/* MOBILE -------------------------------------------------- */
@media (max-width: 1000px) {
  .site-header__inner {
    position: relative;
    padding: 0;
    column-gap: 0.5em;
  }

  .site-header__logo {
    grid-column: auto;
  }

  .site-header__menu-btn,
  .site-header__cta {
    padding: 1em;
    font-size: 14px;
  }
  .site-header__account {
    width: 3.4em;
  }

  .site-header__account-icon {
    width: 0.95em;
    height: 0.95em;
  }

  .site-header__menu-group {
    position: static;
  }

  .site-header__cta-group {
    display: none;
  }

  .site-header__panel-cta-group {
    display: flex;
    align-items: stretch;
    margin-top: 1em;
  }

  .site-header__cta--panel {
    display: flex;
    flex: 1;
    margin-top: 0;
    font-size: 14px;
    padding: 0.9em 1.5em;
  }

  .site-header__account--panel {
    flex-shrink: 0;
  }

  .site-header__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }

  .site-header__panel-nav {
    max-height: calc(100vh - 4em);
    padding: 2em;
    overflow-y: auto;
  }

  .site-header__menu-list {
    width: 100%;
  }

  .site-header__menu-link-heading {
    font-size: 1.6em;
  }

  .site-header__menu-link {
    padding: 0.85em 0 !important;
  }
}

/*PRELOADER*/
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: clip;
}

html:not(.preloader-active) .preloader {
  display: none;
}

.preloader__panel {
  display: flex;
  flex-flow: column;
  width: 100%;
  height: 105%;
  position: absolute;
  top: 0;
  left: 0;
}

.preloader__shutter {
  background-color: var(--light);
  width: 100%;
  height: 105%;
}

/*TITLES*/

.custom-title *,
.custom-title {
  margin-bottom: 0 !important;
}

.custom-title strong {
  font-weight: 600;
}
.custom-title.regular,
.custom-title.regular * {
  font-weight: 400;
}
.custom-title.semibold,
.custom-title.semibold * {
  font-weight: 500;
}

.custom-title.bold,
.custom-title.bold * {
  font-weight: 600;
}

.custom-title.uppercase .custom-title.uppercase * {
  text-transform: uppercase !important;
}

.custom-title.lowercase,
.custom-title.lowercase * {
  text-transform: initial !important;
}

.custom-title.black,
.custom-title.black * {
  color: var(--black);
}
.custom-title.light,
.custom-title.light * {
  color: var(--light);
}

.custom-title.dark,
.custom-title.dark * {
  color: var(--dark);
}

.custom-title.accent,
.custom-title.accent * {
  color: var(--accent);
}

.custom-title.secondary-color,
.custom-title.secondary-color * {
  color: var(--secondary);
}

a.toggle-heading {
  font-family: var(--primary-font) !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  color: var(--dark) !important;
}
span.open-quote,
span.close-quote {
  display: none !important;
}

.custom-title.space-bottom {
  margin-bottom: 40px !important;
}

/*1vw = 14.4 en 1440px*/
@media (min-width: 1000px) {
  .custom-title.huge *,
  .custom-title.huge {
    font-size: var(--fnt-size-huge) !important;
    line-height: 0.95 !important;
  }
  .custom-title.big *,
  .custom-title.big {
    font-size: var(--fnt-size-big) !important;
    line-height: 0.95 !important;
  }

  .custom-title.medium *,
  .custom-title.medium {
    font-size: var(--fnt-size-medium) !important;
    line-height: 1.1 !important;
  }
  .custom-title.small *,
  .custom-title.small {
    font-size: var(--fnt-size-small) !important;
    line-height: 1.1 !important;
  }

  .custom-title.body *,
  .custom-title.body {
    font-size: var(--fnt-size-body) !important;
    line-height: 1.4 !important;
  }

  .custom-title.tiny *,
  .custom-title.tiny,
  .nectar-button.medium {
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  a.toggle-heading {
    font-size: var(--fnt-size-toggle) !important;
  }
}

@media (max-width: 1000px) {
  .custom-title.huge *,
  .custom-title.huge {
    font-size: var(--fnt-size-huge-mb) !important;
    line-height: 1 !important;
  }
  .custom-title.big *,
  .custom-title.big {
    font-size: var(--fnt-size-big-mb) !important;
    line-height: 1 !important;
  }
  .custom-title.medium *,
  .custom-title.medium {
    font-size: var(--fnt-size-medium-mb) !important;
    line-height: 1.1 !important;
  }
  .custom-title.small *,
  .custom-title.small,
  a.toggle-heading {
    font-size: var(--fnt-size-small-mb) !important;
    line-height: 1.3 !important;
  }

  .custom-title.tiny *,
  .custom-title.tiny,
  .nectar-button.medium {
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  .custom-title.body *,
  .custom-title.body {
    font-size: var(--fnt-size-body-mb) !important;
    line-height: 1.4 !important;
  }
}
.custom-title.primary,
.custom-title.primary * {
  font-family: var(--primary-font) !important;
}

.custom-title.mono,
.custom-title.mono * {
  font-family: var(--mono-font) !important;
}

.custom-title strong,
.custom-title strong * {
  color: var(--secondary) !important;
}

/*TITLE ANIMATION*/

/*Fix lines*/
.animated.lines:before,
.animated.lines:after,
.splitting-lines.lines:after,
.splitting.lines:before {
  display: none !important;
}

.splitting-lines.lines {
  background-color: transparent;
  width: fit-content;
  height: auto !important;
}

.animated.lines {
  width: auto !important;
  height: auto;
  background-color: transparent;
}

.splitting-lines {
  opacity: 0;
}

.line-wrapper {
  display: block;
}

.line {
  display: block;
}

.word {
  display: inline-block;
}

.char {
  display: inline-block;
  will-change: transform, opacity;
}

/*FOOTER*/
.footer-logo {
  max-width: 43px !important;
}

.legals .wpb_wrapper {
  display: flex;
  padding: 3rem 0 1rem 0;
  gap: 2rem;
}

#footer a:hover {
  color: #ffffff;
}

@media (max-width: 1000px) {
  .legals .wpb_wrapper {
    flex-flow: column;
  }

  #footer img {
    max-width: 140px !important;
  }
}

/*BTN*/
a.nectar-button.medium.see-through.extra-color-2:before {
  content: '';
  height: 0;
  background: var(--dark);
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  transition: all 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: -1;
}

a.nectar-button.medium.see-through.extra-color-2.light:before {
  background: var(--light);
}

.submit-wrapper {
  position: relative;
}

a.nectar-button.medium.see-through.extra-color-2 {
  position: relative;
  z-index: 99;
  transition: all 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  border-width: 1px;
  color: var(--dark);
  border: 1px solid var(--dark);
}

a.nectar-button.medium.see-through.extra-color-2.light {
  color: var(--light);
  border: 1px solid var(--light);
}

a.nectar-button.medium.see-through.extra-color-2 span {
  color: var(--dark);
}

a.nectar-button.medium.see-through.extra-color-2:hover span {
  color: var(--light);
}

a.nectar-button.medium.see-through.extra-color-2.light span {
  color: var(--light);
}

a.nectar-button.medium.see-through.extra-color-2.light:hover span {
  color: var(--dark);
}

a.nectar-button.medium.see-through.extra-color-2:hover:before,
.submit-wrapper:hover .submit-hover {
  height: 100%;
}

.footer-bottom-social .wpb_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1000px) {
  span.not-break {
    white-space: nowrap;
  }
}

/*HERO HOME*/
.hero-home {
  min-height: 100svh;
}

/*LINEAS*/
:root {
  --line-color: var(--dark);
}

.u-border-t {
  border-top: 1px solid var(--line-color);
}
.u-border-b {
  border-bottom: 1px solid var(--line-color);
}
.u-border-l {
  border-left: 1px solid var(--line-color);
}
.u-border-r {
  border-right: 1px solid var(--line-color);
}

.u-border-t-inset {
  border-top: 1px solid var(--line-color);
  padding-top: 1.5em;
}
.u-border-b-inset {
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 1.5em;
}
.u-border-l-inset {
  border-left: 1px solid var(--line-color);
  padding-left: 1.5em;
}
.u-border-r-inset {
  border-right: 1px solid var(--line-color);
  padding-right: 1.5em;
}

/*LINE-DRAW (scroll fill)*/
.line-draw-wrap {
  position: relative;
  overflow: hidden;
}

.line-draw-wrap.is--h {
  width: 100%;
  height: 1px;
}

.line-draw-wrap.is--v {
  width: 1px;
  height: 100%;
}

.line-draw-el {
  position: absolute;
  inset: 0;
  background-color: var(--line-color);
  transform-origin: left center;
}

.line-draw-wrap.is--v .line-draw-el {
  transform-origin: top center;
}

.line-draw-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-draw-path {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 1;
}

/*LINE-GRID (overlay de líneas independiente del contenido)*/
.u-relative {
  position: relative;
}

.line-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 100%;
  padding: 0 1.94em;
  pointer-events: none;
  z-index: 1;
}

.line-grid__v {
  grid-row: 1;
  border-left: 1px solid var(--line-color);
  height: 100%;
  align-self: stretch;
}

.line-grid__v.is--short {
  height: auto;
  align-self: start;
}

.line-grid__h {
  grid-row: 1;
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-color);
  align-self: start;
}

/*LINE-MASK (tapa el tramo de línea que pasa por detrás de un texto)*/
.line-mask-wrap {
  position: relative;
  display: inline-block;
  padding: 0.3em 0.6em;
  margin: -0.3em -0.6em;
}

.line-mask {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--mask-bg, var(--light));
}

.border-left-white {
  border-left: 1px solid var(--light);
}
