@font-face {
    font-family: "tiempos3punto5VF";
    src: url("tiempos3punto5VF.woff2") format("truetype");
}
:root {
    --font-family: TimesNewRoman,Times New Roman,Times,Baskerville,Georgia,serif; 
    --bg-color: #1d1d1b;
    --accent-color: #1d1d1b;
    --text-color: #ffffff;
    --font-title: "relaxia", sans-serif;
    --hover-color: rgb(255, 255, 255);
    --link-color: #1d1d1b;
}


html {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 2.5em;
}

.fijo {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding-left: 25px;
    font-size: 19rem;
    letter-spacing: 0;
    /* -webkit-text-stroke: 1px #1d1d1b; */
    z-index: -1;
}

.fijoindex {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding-left: 25px;
    font-size: 26rem;
    letter-spacing: 0;
    /* -webkit-text-stroke: 1px #1d1d1b; */
    z-index: -1;
}

h1 {
   font-family: "tiempos3punto5VF";
   z-index: 10;
   margin-top: 20px;
   font-size: 25rem;
   margin-left: 5%;
   font-variation-settings: 'wght' 900;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family);
    margin-top: 30px;
}

img {
    max-width: 100%;
}


p {
    max-width: 83ch;
    text-align: left;
    position: right;
    bottom: 120px;
    right: 40px;
    width: 100%;
    color: rgb(255 255 255);
    padding: 10px;
}

/* Contenedor de la imagen de hero */
.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Imagen de hero, ajustada al contenedor */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption de la imagen de hero con posición absolute dentro del contenedor */
.hero-image figcaption {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    color: var(--text-color);
    padding: 10px;
}

#main-nav {
    display: flex;
    margin-bottom: 41px;
    justify-content: right;
    margin-top: 40px;
    z-index: 9;
    position: relative;
}

#main-nav  {
    font-size: 0.73em;  
}
.nav-link {
    background-color: var(--accent-color);
    color: var(--text-color);
    transition: all 100ms ease-in;
    padding: 10px;
    margin: 3px;
    display: inline-block;
    border: 1px solid var(--link-color);
    border-radius: 22px;
    text-decoration: none;

}

.nav-link#back-link {

    margin-right: auto;
    float: left;
}

.nav-link:hover {
    background-color: var(--hover-color);
    color: var(--link-color);
    transition: all 300ms ease-out;
}

#footer-nav {
    display: flex;
    margin-bottom: 41px;
    justify-content: center;
    margin-bottom: 0px;
    margin-top: 100px;
}

h3 {
    display: flex;
    margin-bottom: 41px;
    justify-content: space-between;
    margin-top: 40px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

figcaption {
    display: block;
    unicode-bidi: isolate;
    padding-left: 76px;
    left: 0%;
    top: 50%;
}

.hero-image figcaption {
    font-size: 1.8rem;
    font-style: italic;
    text-align: right;
    margin-top: 10px;
    position: absolute;
    bottom: 120px;
    right: 40px;
    width: 100%;
    color: var(--text-color);
    padding: 10px;
}

.button,
button,
input[type=button],
input[type=reset],
input[type=submit] {
    display: inline-block;
    height: 38px;
    padding: 0 30px;
    color: #ffffff;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: .1rem;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid #bbb;
    cursor: pointer;
    box-sizing: border-box;
}

element.style {
    width: 60%;
    float: right;
    min-width: 290px;
    margin-bottom: 15px;
    margin-top: 23px;
}

.inview-item {
    opacity: 0;
    transform: none;
    transition: all 1000ms ease-out;
    transform: translateY(-30px);
    transition-delay: 700ms;
}

.inview-item.inview {
    opacity: 1;
    transform: translateY(0px);
}

.fijo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: fixed;
    left: 0;
    top: 0;
    padding: 0;
    margin: 0;
}

.fijo-img img {
    width: 100%;
    top: 50%;
    display: inline-block;
    position: absolute;
    left: 0;
    transform: translateY(-50%);
}

.fijo-exp {
    position: fixed;
    top: 30%;
    left: 0;
    transform: translateY(-50%);
    font-size: 10rem;
    font-variation-settings: 'wght' 900;
}

/*
* 2. Contenedor para el scroll simulado
*/
#scroll-container {
    height: 600vh;
    position: relative;
    z-index: 0;
}

/*
* 3. Imagen de fondo fija (simulada por un div con background-image)
*/
#fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("./img/indsvrds2.png");
    /* !!! REEMPLAZA ESTO !!! */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
    z-index: 1;
    /* Para que esté detrás del canvas */
    filter: grayscale(100%);
    /* Opcional: para que se vea como una capa diferente */
}

/*
* 4. Estilos para elementos con efecto umbral
*/
/* Contenedor con efecto umbral - debe tener posición relativa */
[data-umbral-effect],
[id*="umbral"] {
    position: relative;
    overflow: hidden;
}

/* Imagen original dentro del contenedor - invisible pero mantiene pointer-events */
[data-umbral-effect] img,
[id*="umbral"] img {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Canvas de p5.js dentro del contenedor - posicionado absolutamente */
[data-umbral-effect] canvas,
[id*="umbral"] canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: transparent;
    image-rendering: -moz-crisp-edges;
    /* Firefox */
    image-rendering: -webkit-crisp-edges;
    /* Safari/Chrome */
    image-rendering: pixelated;
    /* Chrome */
    image-rendering: crisp-edges;
    /* Estándar */
}

/*
* 5. Estilos legacy para compatibilidad (deprecated)
*/
#p5-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    background-color: transparent;
}

#p5-canvas-container canvas {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background-color: transparent;
}

/* Estilo para el texto de umbral */
#umbral-value {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

#umbral-img {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: transparent;
}

#video-progress {
    position: absolute;
    bottom: 20px;
    left: 36%;
    transform: translateX(-50%);
    width: 63%;
    z-index: 100;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 25rem;
}

/* Removes default focus */
input[type="range"]:focus {
  outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #ffffff;
  border-radius: 0.5rem;
  height: 0.2rem;
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: -8px; /* Centers thumb on the track */
  background-color: #ff0000;
  border-radius: 1rem;
  height: 2.2rem;
  width: 2.2rem;
}

input[type="range"]:focus::-webkit-slider-thumb {
  outline: 3px solid #ff0000;
  outline-offset: 0.125rem;
}

/*********** Firefox styles ***********/
/* slider track */
input[type="range"]::-moz-range-track {
  background-color: #add8e6;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
  background-color: #ff0000;
  border: none; /*Removes extra border that FF applies*/
  border-radius: 0.5rem;
  height: 1rem;
  width: 1rem;
}

input[type="range"]:focus::-moz-range-thumb{
  outline: 3px solid #ff0000;
  outline-offset: 0.125rem;
}

#perspective {
    position: absolute;
    right: 4%;
    bottom: 20px;
}

#video {
    position: fixed;
    right: 0%;
    margin-right: 30px;
}

#testimonios
{
    float: right;
    /* -webkit-text-stroke: .5px #1d1d1b; */
    text-shadow: 4px 3px 2px #1d1d1b;
}


/* video message */

#controls-container {
    width: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    height: 100px;
}

#video-message {
    position: absolute;
    bottom: 19%;
    right: 49px;
    /* background-color: #1d1d1b; */
    color: #ff0000;
}

#scale-message {
    position: absolute;
    bottom: 51%;
    right: 62px;
    /* background-color: #1d1d1b; */
    color: #ffffff;
}