@import url(https://necolas.github.io/normalize.css/8.0.1/normalize.css);

:root {
    --color-primary: #007bff;
    --color-secundary: #fff;
    --color-background-1: #202020;
    --color-background-2: #181818;
    --font-color-1: #fff;
    --header-nav-height: 60px;
    --landing-background-height: 400px;
}

* {
    box-sizing: border-box;
    /* margin: 0; */
    /* padding: 0; */
}

html {
    font-size: 62.5%;
    /* font-family: sans-serif; */
    font-family: Roboto, sans-serif;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    width: 100%;
    min-width: 320px;
    font-size: 1.6rem;
    background-color: var(--color-background-1);
    color: var(--font-color-1);
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

p {
    margin: 0px;
}

.btn-link-1 {
    display: inline-block;
    border: 2px solid var(--color-primary);
    padding: 8px 20px;
    font-size: 1.4rem;
    /* font-weight: 700; */
    border-radius: 0.5rem;
    background-color: var(--color-primary);
    color: var(--font-color-1);

    transition: all 0.3s;
}

.btn-link-1:hover {
    border: 2px solid var(--color-secundary);
    box-shadow: 3px 3px 5px rgba(255, 255, 255, 0.5);
}

.btn-link-2 {
    display: inline-block;
    border: 2px solid var(--color-secundary);
    padding: 8px 20px;
    font-size: 1.4rem;
    /* font-weight: 700; */
    border-radius: 0.5rem;
    background-color: var(--color-secundary);
    color: var(--color-primary);

    transition: all 0.3s;
}

.btn-link-2:hover {
    border: 2px solid var(--color-primary);
    box-shadow: 3px 3px 5px rgba(0, 158, 227, 0.8);
}

/* ===================================================== */
/* ===================================================== */
/* ===================================================== */
/* ==================== HEADER ========================= */

.nav-header {
    width: 100%;
    background-color: var(--color-background-1);
}

.nav-header>div {
    width: 100%;
    max-width: 1366px;
    margin: 0px auto;
    position: relative;
    /* border: 1px solid red; */
}

.nav-header__logo {
    height: var(--header-nav-height);
    position: absolute;
    top: 0px;
    left: 0px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.nav-header__logo h1 {
    margin: 0px;
    padding-left: 20px;
    font-size: 2.4rem;
    color: var(--color-secundary);
}

.nav-header-menu {
    width: 100%;
    position: relative;
}

/* ===================================================== */

.nav-header-menu__wrapper {
    width: 100%;
    min-height: var(--header-nav-height);
    padding-right: 20px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    /* border: 1px solid red; */
}

.nav-header-menu__links a {
    margin-left: 10px;
    padding: 5px 10px;
}



#nav-header-menu-trigger-burger {
    width: 25px;
    height: 25px;
    margin-left: 12px;
    position: relative;
}

#nav-header-menu-trigger-burger:hover {
    cursor: pointer;
}

#nav-header-menu-trigger-burger::before {
    content: "";
    width: 100%;
    height: 2px;
    display: block;
    position: absolute;
    top: 3px;
    background-color: white;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

#nav-header-menu-trigger-burger i {
    width: 100%;
    height: 2px;
    display: block;
    position: absolute;
    top: 50%;
    transform: translate(0px, -50%);
    -webkit-transform: translate(0px, -50%);
    -moz-transform: translate(0px, -50%);
    -ms-transform: translate(0px, -50%);
    -o-transform: translate(0px, -50%);
    background-color: white;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

#nav-header-menu-trigger-burger::after {
    content: "";
    width: 100%;
    height: 2px;
    display: block;
    position: absolute;
    top: calc(100% - 5px);
    background-color: white;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

#nav-header-menu__switch:checked~* #nav-header-menu-trigger-burger::before {
    opacity: 0;
}

#nav-header-menu__switch:checked~* #nav-header-menu-trigger-burger i {
    width: 120%;
    top: 50%;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
}

#nav-header-menu__switch:checked~* #nav-header-menu-trigger-burger::after {
    width: 120%;
    top: 50%;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
}

/* ===================================================== */

#menu_nav_desplegable {
    display: none;

    animation-name: nav-menu-ocultar;
    animation-duration: 1s;
}

#menu_nav_desplegable ul {
    padding: 0px;
    margin: 0;
    padding-bottom: 20px;
}


#menu_nav_desplegable ul li a {
    display: block;
    padding: 20px 40px;
    color: rgba(0, 0, 0, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#menu_nav_desplegable ul li a:hover {
    background-color: var(--color-primary);
}

input[id="nav-header-menu__switch"]:checked~#menu_nav_desplegable {
    display: block;

    animation-name: nav-menu-espand;
    animation-duration: .6s;
    animation-fill-mode: forwards;
}

input[id="nav-header-menu__switch"]:checked~#menu_nav_desplegable a {
    color: var(--font-color-1);
}


/* ===================================================== */
/* ===================================================== */
/* ===================================================== */
/* ====================== MAIN ========================= */

main {
  width: 100%;
}

.main-container {
  width: 100%;
  min-height: calc(100vh - var(--header-nav-height));
  position: relative;
}

.main-sections-container {
  width: 100%;
  min-height: calc(100vh - var(--header-nav-height) - 100px);
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: row;
}

/* .main-sections-container>div {
  width: 100%;
  min-height: 200px;
  margin: 0 auto;
  border: 5px solid red;
  overflow: hidden; 
} */


/* ===================================================== */
/* ===================================================== */
/* ===================================================== */
/* ====================== LANDING ========================= */

.landing-container {
  width: 100%;
  height: 100px;
  position: relative;
}
.landing__background{
  background-color: var(--color-background-2);
  width: 100%;
  height: 100%;
  position: relative;
}
.landing__content{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.landing__content > p {
  color: var(--font-color-1);
  font-size: 2.4rem;
  font-weight: 500;
  opacity: 0.6;
}


/* ===================================================== */
/* ===================================================== */
/* ===================================================== */
/* ====================== NAVEGADOR LATERAL ========================= */

.section-nav {
  background-color: var(--color-background-2);
  width: 300px;
}
.section-nav > ul {
  margin: 0;
  padding: 0;
}
.section-nav > ul >li {
  padding: 20px 20px;
  padding-left: 40px;
  border-bottom: 1px solid var(--color-primary);
}
.section-nav > ul >li:hover {
  background-color: var(--color-background-1);
  cursor: pointer;
}

/* ===================================================== */
/* ===================================================== */
/* ===================================================== */
/* ====================== REPETICION ========================= */

.section-work {
  width: calc(100vw - 300px);
  padding: 40px;
}

.repeticion-container {
  position: relative;
  width: 100%;
  /* min-width: 597px; */
  max-width: 768px;
  /* width: 50vw; */
  /* width: clamp(597px, 50vw, 650px); */
  min-height: 300px;
  margin: 0 auto;
  margin-bottom: 40px;
  padding: 40px;
  border: 1px solid var(--color-background-2);
  background-color: var(--color-background-2);
  border-radius: 30px;
}

.repeticion-title-container {
  display: flex;
}
.repeticion-title-container > h2 {
  margin: 0;
  /* opacity: 0.7; */
  color: #ffffff80;
}

#toggleVisibility {
  display: none;
}

.eye-icon-container {
  /* fill: rgba(255, 255, 255, .4); */
  margin-left: 20px;
  display: flex;
}

.eye-icon {
  opacity: 0.4;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.eye-icon:hover {
  opacity: 0.8;
}

#eyeOpen {
  display: block;
}
#eyeClosed {
  display: none;
}

#texto_referencia_container {
  opacity: 0.6;
  margin-top: 30px;
  /* margin-bottom: 30px; */
  padding: 20px 20px;
  border-radius: 20px;
  background-color: var(--color-background-1);
  display: none;
}
#texto_referencia {
  white-space: pre-line;
}


.messageInput {
  width: 100%;
  padding: 20px 30px;
  border-radius: 30px;
  resize: none;
  margin-bottom: 30px;
  margin-top: 30px;
  font-size: 18px;
  line-height: 24px;
  background-color: var(--color-background-1);
  outline: none;
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.messageInput:focus {
  border: 2px solid var(--color-primary);
}

.evaluateButton {
  width: 100%;
  padding: 23px 20px;
  border: none;
  border-radius: 40px;
  font-weight: 700;
  background-color: var(--color-background-1);
  color: white;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  /* box-shadow: 2px 5px 10px rgba(255, 255, 255, 0.2); */
  box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.2);
}
.evaluateButton:hover {
  background-color: #0056b3;
}

#evaluateButton {
  display: block;
}
.evaluateButton:focus {
  outline: none;
  background-color: #0056b3;
}

.ss-init {
  transition: box-shadow 0.3s ease-in-out;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0);
}
.result-container {
  transition: box-shadow 300ms ease-in-out;
  /*box-shadow: 0 0 0 0; /* Estilo inicial para la sombra */
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.2);
  /* box-shadow: 0 0 10px 2px green; */
}
.result-container.success {
  box-shadow: 0 0 10px 2px green;
}
.result-container.error {
  box-shadow: 0 0 10px 2px red;
}

/* TEMPORIZADOR */
.tiempo-rapper {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
#tiempo {
  opacity: 0.4;
  display: none;
}
#tiempo:hover {
  cursor: pointer;
  color: var(--color-primary);
  opacity: 0.7;
}

/* RESET */
.reset-icon {
  position: absolute; /* Posicionamiento absoluto para colocarlo en la esquina */
  top: 20px;         /* Ajusta según tu diseño */
  right: 20px;        /* Ajusta según tu diseño */
  cursor: pointer;   /* Cambiar el cursor a una mano para indicar que es interactivo */
  display: none;
}

.reset-icon svg {
  fill: #fff;     /* Color del ícono (puedes cambiarlo) */
  opacity: 0.4;
}
.reset-icon svg:hover {
  fill: var(--color-primary);
  opacity: 0.7;
}