@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400&family=Space+Grotesk&display=swap');
body {
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk';
    background-color: #EEEEEE;
    background: linear-gradient(to right, #7986ad 1px, transparent 1px),
        linear-gradient(to bottom, #7986ad 1px, transparent 1px);
    background-size: 52px 52px;
    /* Tamaño de las líneas de la cuadrícula */
    background-position: 0 0, 0 0;
    /* Ajustar la posición para empezar desde el inicio */
}

.contenedor {
    position: relative;
    height: 100vh;
    /* Ajusta la altura del contenedor para que ocupe toda la altura visible */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-left {
    font-size: 200px;
    margin-top: 0;
    position: absolute;
    top: 10px;
    left: 6px;
    letter-spacing: 20px;
    color: #373737;
}

.top-left::before {
    content: "[";
    color: #BAA6FF;
}

.top-left::after {
    content: "]";
    color: #BAA6FF;
}

.botton-rigth {
    font-size: 142px;
    margin-bottom: 0;
    position: absolute;
    bottom: 10px;
    right: 6px;
    letter-spacing: 20px;
    color: #373737;
}

.botton-rigth::before {
    content: "#";
    color: #88ED76;
}

.botton-left {
    position: absolute;
    bottom: 38px;
    left: 54px;
    color: #373737;
}

.botton-left p {
    font-family: 'Inconsolata', monospace;
    margin: 0;
    padding: 2px;
    font-size: 40px;
    letter-spacing: 2px;
}

.enlace-whatsapp {
    text-decoration: none;
    color: #373737;
    transition: transform 0.2s ease;
    display: inline-block;
}

.enlace-whatsapp:hover {
    transform: scale(1.1);
}

.enlace-email {
    text-decoration: none;
    color: #373737;
    transition: transform 0.2s ease;
    display: inline-block;
}


#modo-oscuro {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: #0077FF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dark-mode {
    background-color: #222;
    color: #fff;
    transition: background-color 1s ease;
}

.dark-mode * {
    color: #EEE;
}

.dark-mode .top-left::before {
    color: #88ED76;
    /* Vuelve a cambiar el color de la almohadilla (#) a morado en modo oscuro */
}

.dark-mode .top-left::after {
    color: #88ED76;
    /* Vuelve a cambiar el color de los corchetes a verde en modo oscuro */
}

.dark-mode .botton-rigth::before {
    color: #BAA6FF;
    /* Vuelve a cambiar el color de la almohadilla (#) a morado en modo oscuro */
}

.dark-mode .cursor {
    border: 10px solid #88ED76;
    background: #BAA6FF;
}

.dark-mode .barra {
    background-color: #fff;
}

.dark-mode .fija {
    color: #88ED76;
}

.indicacion {
    font-family: 'Inconsolata', monospace;
    margin: 0;
    padding: 5px;
    font-size: 20px;
    letter-spacing: 2px;
    position: absolute;
    top: 20px;
    right: 65px;
    display: inline-block;
}

.switch {
    position: absolute;
    top: 60px;
    right: 67px;
    display: inline-block;
    width: 150px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #88ED76;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #BAA6FF;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #BAA6FF;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    transform: translateX(116px);
}

/* Estilos para el modo oscuro activado */
input:checked+.slider:before {
    background-color: #BAA6FF;
}

/* Estilos para el modo oscuro desactivado */
:not(.dark-mode) input:checked+.slider:before {
    background-color: #88ED76;
}

.cursor {
    width: 10px;
    height: 10px;
    border: 10px solid #BAA6FF;
    background: #88ED76;
    border-radius: 50%;
    position: fixed;
    transition: top 80ms ease, left 80ms ease;
    pointer-events: none;
    z-index: 9999;
}

.escritura {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 98vh;
}

.barra {
    width: 3px;
    height: 50px;
    margin-top: 28px;
    background-color: #000;
    animation: blink 0.7s step-end infinite;
    display: inline-block;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.texto {
    font-size: 60px;
    font-family: 'Inconsolata', monospace;
    margin-top: 20px;
    margin-left: 10px;
    display: inline-block;
}

.fija {
    font-size: 60px;
    font-family: 'Inconsolata', monospace;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
    color: #BAA6FF;
}

/* Estilos para pantallas pequeñas (móviles) */
@media screen and (max-width: 767px) {
    body {
        background: linear-gradient(to right, #7986ad 1px, transparent 1px),
            linear-gradient(to bottom, #7986ad 1px, transparent 1px);
        background-size: 36px 36px;
        /* Tamaño de las líneas de la cuadrícula */
        background-position: 0 0, 0 0;
        /* Ajustar la posición para empezar desde el inicio */
    }

    .top-left {
        font-size: 60px;
        top: 42px;
        left: 16px;
        width: 100%;
    }

    .botton-rigth {
        font-size: 36px;
        bottom: 14px;
        right: 56px;
    }

    .botton-left {
        bottom: 124px;
        left: 36px;
    }

    .botton-left p {
        margin: 0;
        padding: 5px;
        font-size: 16px;
        letter-spacing: 1px;

    }

    .indicacion {
        display: none;
    }

    .guion {
        display: none;
    }

    .switch {
        position: absolute;
        top: 5px;
        right: 50%;
        /* Centrar horizontalmente */
        transform: translateX(50%);
        /* Centrar horizontalmente */
        display: inline-block;
        width: 150px;
        height: 34px;
    }

    .cursor {
        /* Aquí anulamos todas las propiedades para que no se aplique ningún estilo */
        /* Puedes eliminar completamente la regla o establecer valores iniciales */
        width: auto;
        height: auto;
        border: none;
        background: none;
        border-radius: 0;
        position: static;
        transition: none;
        pointer-events: auto;
        z-index: auto;
    }

    .escritura {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 88vh;
    }

    .fija,
    .texto {
        font-size: 40px;
    }

    .barra {
        width: 3px;
        height: 40px;
        margin-top: 28px;
        background-color: #000;
        animation: blink 0.7s step-end infinite;
        display: inline-block;
    }
}
