:root {
    --primaryColor: #DADADA;
    --secondaryColor: #C2C2C2;
    --thirdColor: #919191;
    --fourthColor: #797979;
    --fifthColor: #494949;
    --sixthColor: #303030;
    --starColor: #00c3ff;
    --radio: .1rem;
    --textColor: #F2F2F2;
}

* {
    -webkit-tap-highlight-color: transparent;
    /* Opcional: Evita que el usuario seleccione el texto por error 
       si solo quieres que el texto sea "clicable" pero no "copiable" */
    -webkit-touch-callout: none;
    user-select: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inconsolata", Arial, sans-serif;
}

html {
    background-color: var(--primaryColor);
    min-height: 100%;
    scroll-behavior: smooth;
    color: var(--textColor);
    scrollbar-width: thin;
}

/* ESTILOS DE CABECERA */

.navbar {
    /* Fondo semitransparente para el efecto de vidrio */
    background: rgba(255, 255, 255, 0.01);

    /* Efecto de desenfoque del fondo (glassmorphism) */
    backdrop-filter: blur(7px) saturate(180%);
    -webkit-backdrop-filter: blur(7px) saturate(180%);

    /* Sombra suave para dar profundidad */
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);

    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;

    /* Transición suave para efectos hover */
    transition: all 1s ease;
}

.navbar-container {
    /* Limitar el ancho máximo del contenido */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;

    /* Padding responsivo en los lados */
    padding: 0.5rem clamp(1rem, 3vw, 2rem);

    /* Flex para distribuir logo y menú */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar.navbarStyle {
    border-bottom: none;
    box-shadow: none;
    transition: all 1s ease;
}

.logoText.navbarOpen {
    color: var(--sixthColor);
}

.logo {
    font-size: 1rem;
    z-index: 10;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0;
    color: var(--textColor);
}

.logo a>img {
    width: 50px;
    margin-right: 13px;
}

.logo a>h2 {
    font-size: 1.5rem;
    transition: all 1s ease;
}

.logo a>h2:hover {
    color: var(--starColor);
    transition: all 0.1s ease;
}

/* ESTILOS DEL BOTON */
.btn-101.btnStyle {
    background-color: var(--fifthColor);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.37), -3px -3px 5px rgba(0, 0, 0, 0.37);
}

.btn-101.btnStyle:hover {
    background-color: var(--fifthColor);
}

.btn-101 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radio);
    color: var(--textColor);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.btn-101:disabled {
    cursor: default;
    opacity: 0.5;
}

.btn-101:hover {
    background: rgba(255, 255, 255, 0.2);
    filter: brightness(1.2);
}

.btn-101:active {
    transform: scale(0.98);
}

.btn-101 svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: url(#glow);
}

.btn-101 rect {
    fill: none;
    stroke: var(--starColor);
    stroke-width: 3px;
    stroke-linejoin: round;
    rx: var(--radio);
    width: 100%;
    height: 100%;
    stroke-dasharray: 50% 150%;
    stroke-dashoffset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: snake 2s linear infinite;
    animation-play-state: paused;
}

.btn-101:hover rect {
    opacity: 1;
    animation-play-state: running;
}

@keyframes snake {
    to {
        stroke-dashoffset: -200%;
    }
}

/* FIN DE ESTILOS DEL BOTON */

/* ESTILOS DE OPCIONES */
.options {
    background-color: var(--primaryColor);
    position: fixed;
    top: -100%;
    height: 100dvh;
    width: 100%;
    z-index: 10;
    text-align: center;
    align-content: center;
    opacity: .9;
    visibility: hidden;
    transition: top 1s cubic-bezier(0.68, -0.55, 0.27, 1.55), visibility 0s linear 1s;
}

.options.show {
    visibility: visible;
    top: 0;
    transition: top 1s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        visibility 0s linear 0s;
}

.options-container ul li a {
    color: var(--sixthColor);
    text-decoration: none;
    font-size: 1.5rem;
}

.options-container button {
    position: absolute;
    right: 10%;
    top: 10%;
    background-color: var(--sixthColor);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.37), -3px -3px 5px rgba(0, 0, 0, 0.37);
}

.options-container button:hover {
    background-color: var(--fifthColor);
}

.hover-underline {
    font-size: 3rem;
    color: var(--sixthColor);
    position: relative;
    display: inline-block;
    margin: 1rem 0;
    transform: translateY(100vh);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        opacity 0.9s ease;
}

.hover-underline:active {
    color: var(--starColor);
}

.options.show .hover-underline {
    transform: translateY(0);
    opacity: 1;
}

/* Delays escalonados para efecto cascada - cada h2 aparece con un pequeño retraso */
.options.show ul li:nth-child(1) .hover-underline {
    transition-delay: 0.3s;
}

.options.show ul li:nth-child(2) .hover-underline {
    transition-delay: 0.4s;
}

.options.show ul li:nth-child(3) .hover-underline {
    transition-delay: 0.5s;
}

.options.show ul li:nth-child(4) .hover-underline {
    transition-delay: 0.6s;
}

.hover-underline::after,
.hover-underline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--sixthColor), var(--secondaryColor));
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-out;
}

.hover-underline::before {
    top: -5px;
    transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
    transform: scaleX(1);
}

/* FIN DE ESTILOS DE OPCIONES */

/* FIN DE ESTILOS DE CABECERA */



/* ESTILOS DE CONTENIDO PRINCIPAL */

main {
    height: 100vh;
    background-color: black;
}

/* Contenedor de la sección de portada - para posicionar el canvas */
.portada-section {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.portada {
    width: clamp(200px, 100%, 900px);
    margin: auto;
    height: 100dvh;
    position: relative;
    /* Necesario para posicionar la imagen */
    overflow: hidden;
    /* Evitar scroll si la imagen se desborda */
}

.portada img {
    width: 100%;
    height: 100dvh;
    object-fit: cover;
    filter: saturate(0);
}

/* Canvas del efecto Matrix */
.matrix-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Por encima de la imagen */
    pointer-events: auto;
    /* Permitir interacción con el mouse para el efecto magneto */
    cursor: none;
    /* Ocultar el cursor para efecto más inmersivo (opcional) */
}

footer {
    background: var(--fourthColor);
}