/** 
 * @file
 * Estilos para el componente Hero Section
 */

:root {
  --component-nexods-hero-title-font-size-desktop: var(--typeface-title-display-font-size-display, 80px);
  --component-nexods-hero-title-line-height-desktop: var(--typeface-title-display-line-height-display, 80px);
  --component-nexods-hero-title-font-size-mobile: 40px;
  --component-nexods-hero-title-line-height-mobile: 40px;
  --efects-max-width: 950px;
  --efects-max-width-not-home: 1200px;
}

/* Seguridad para prevenir overflow horizontal */
.nexods-section-hero,
.nexods-section-hero__content,
.nexods-section-hero__explainer {
  box-sizing: border-box;
  max-width: 100vw;
}

/* Sección principal del hero */
.nexods-section-hero {
  display: flex;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-left: var(--hero-left-offset, 171px);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .nexods-section-hero {
    min-height: var(--hero-min-height, 889px);
  }
}

/* Vídeo de fondo */
.nexods-section-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Contenedor del contenido del hero */
.nexods-section-hero__content {
  position: relative;
  max-width: var(--efects-max-width);
  padding-left: 68px;
  padding-right: 104px;
  display: flex;
  align-items: flex-end;
  color: var(--nexo-color-on-dark);
  font-weight: 600;
  z-index: 2;
}

/* Fondo semitransparente del contenido */
.nexods-section-hero__content-bg {
  position: absolute;
  display: flex;
  height: 100%;
  width: 100%;
  left: 0;
  opacity: 0.6;
  z-index: 1;
  background: var(--nexo-color-primary, #071532);
  mix-blend-mode: color;
}

.nexods-section-hero__content-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-accent, #00B0A6);
  mix-blend-mode: color;
}

/* Título principal */
.nexods-section-hero__heading {
  position: relative;
  z-index: 2;
  font-weight: 700;
  line-height: var(--component-nexods-hero-title-line-height);
  padding-bottom: 59px;
  text-transform: uppercase;
  --min: 40;
  --max: 80;
  --mintrans: 1000;
  --maxtrans: 1920;
  font-size: clamp(var(--min) * 1px, calc((var(--max) - var(--min)) * ((100vw - var(--mintrans) * 1px) / (var(--maxtrans) - var(--mintrans))) + var(--min) * 1px), var(--max) * 1px) !important;
}

.nexods-section-hero__heading {
  --min: 40;
  --max: 80;
  --mintrans: 1000;
  --maxtrans: 1920;
  line-height: clamp(var(--min) * 1px, calc((var(--max) - var(--min)) * ((100vw - var(--mintrans) * 1px) / (var(--maxtrans) - var(--mintrans))) + var(--min) * 1px), var(--max) * 1px) !important;
}

.nexods-section-hero__title {
  display: inline;
  font-size: inherit;
  color: var(--nexo-color-on-dark, #ffffff);
  font-size: var(--component-nexods-hero-title-font-size);
}

.nexods-section-hero__subtitle {
  display: inline;
  font-size: inherit;
  color: var(--nexo-color-secondary, #f59e0b);
}

/* Sección explicativa */
.nexods-section-hero__explainer {
  color: var(--nexo-color-on-dark, #ffffff);
  padding-left: var(--hero-left-offset, 171px);
  width: fit-content;
  display: flex;
  flex-direction: column;
  margin-bottom: 120px;
  width: 100%;
  max-width: var(--efects-max-width);
  margin-left: var(--hero-left-offset, 171px);
  padding-left: unset;
}

.nexods-section-hero__explainer .nexods-container {
  background-color: var(--nexo-color-secondary);
  padding: var(--space-padding-60048, 48px) var(--space-padding-90072, 72px);
  max-width: var(--efects-max-width);
}

.nexods-section-hero__explainer p {
  line-height: 1.2;
  margin: 0;
  color: var(--nexo-color-text-default);
  font-weight: 700;
  font-size: var(--typeface-subtitle-400-font-size-400, 20px);
}

.nexods-section-hero__explainer p+p {
  margin-top: 1em;
}

.nexods-section-hero__explainer :is(strong, b) {
  font-weight: 700;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
  .nexods-section-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .nexods-section-hero__content {
    padding-top: 70px;
  }

  .nexods-section-hero__content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    width: 100%;

  }

  .nexods-section-hero__heading {
    padding-bottom: 20px;
  }

  .nexods-section-hero__explainer {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-bottom: 40px;
    width: 100%;
  }

  .nexods-section-hero__explainer .nexods-container {
    padding: 24px 20px;
    max-width: 100%;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
  .nexods-section-hero {
    padding-left: 40px;
  }

  .nexods-section-hero__content {
    padding-left: 40px;
    padding-right: 40px;
  }

  .nexods-section-hero__heading {
    padding-bottom: 40px;
  }

  .nexods-section-hero__explainer {
    padding-left: 40px;
    margin-bottom: 80px;
  }

  .nexods-section-hero__explainer .nexods-container {
    padding: 40px;
  }
}

/* IF NOT HOME */
.nexods-section-hero--not-home {
  min-height: 720px;
}

/* .nexods-section-hero--not-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: hero-zoom 15s ease-out forwards;
  will-change: transform;
} */

/* El contenido queda por encima del pseudo-elemento animado */
.nexods-section-hero--not-home>* {
  position: relative;
  z-index: 1;
}

.nexods-section-hero--not-home .nexods-section-hero__content {
  max-width: var(--efects-max-width);
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}




.nexods-section-hero--not-home .nexods-section-hero__title {
  font-size: 60px;
  color: var(--nexo-color-secondary, #FED25E);
  line-height: 1.1;
}

@media (max-width: 768px) {
  .nexods-section-hero--not-home {
    min-height: 400px;
  }

  .nexods-section-hero--not-home .nexods-section-hero__title {
    font-size: 30px;
  }
}

.nexods-section-hero--not-home .nexods-section-hero__subtitle {
  font-size: 23px;
  line-height: 1.2;
  text-transform: none;
  color: var(--nexo-color-on-dark, #ffffff);
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .nexods-section-hero--not-home .nexods-section-hero__subtitle {
    font-size: 18px;
    margin-bottom: 20px;
  }
}





.nexods-section-hero--not-home {
  position: relative;
}

.nexods-section-hero__content-text-not-home {
  display: flex;
  position: relative;
  z-index: 2;
  gap: 20px;
  flex-direction: column;
  width: 100%;
  max-width: var(--flow-container-max-width);
  margin: 0 auto;
  padding-inline: var(--padding-mobile, 20px);
  padding-block: 40px;
}

@media (min-width: 769px) {
  .nexods-section-hero__content-text-not-home {
    padding-inline: 80px;
    padding-block: 60px;
  }
}

@media (min-width: 1024px) {
  .nexods-section-hero__content-text-not-home {
    padding-inline: 100px;
    padding-block: 80px;
  }
}