:root,[data-theme="light"] {
    --bg-primary: #ECEBDE;
    --text-color: #1A1A1A;
    --text-color-disabled: #3e3e3e;
    --fill: #D7D3BF;
    --accent: #C1BAA1;
    --accent-muted: #aca58f;
    --outlines: #A59D84;
}

[data-theme="dark"]{
    --bg-primary: #2C2C2C;
    --text-color: #ffff;
    --text-color-disabled: #c4c4c4;
    --fill: #522546;
    --accent: #88304E;
    --accent-muted: #742942;
    --outlines: #F7374F;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'upheaval';
    color: var(--text-color);
}

html, body {
    background-color: var(--bg-primary) !important;
    transition: background-color 0.6s, color 0.6s;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body *{
    transition: background-color 0.6s ease, color 0.6s ease;
    z-index: 1;
}

#CursorBG {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
    z-index: 0;
    background-color: var(--bg-primary);
}

.barraNav {
    background-color: var(--fill);
}

.offcanvas {
    background-color: var(--bg-primary) !important;
    color: var(--text-color) !important;
}

.navbar-brand{
    color: var(--text-color)!important;
}
.nav-link {
    color: var(--text-color) !important;
}

.logoNav {
    width: 2em;
    height: 2em;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    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: var(--accent);
    -webkit-transition: .0.6s;
    transition: .0.6s;
}

.slider:before {
    position: absolute;
    content: url(../Icons/Lightmode.svg);
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    -webkit-transition: .0.6s;
    transition: .0.6s;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    content: url(../Icons/Darkmode.svg);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.navbar-toggler{
    border: none !important;
}

.navbar-toggler:focus, .btn-close:focus {
    box-shadow: none !important;
    outline: none !important;
}

.nav-link {
    color: var(--text-color-disabled) !important;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color) !important;
}

.Caja-paginas{
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.PaginasCrsl {
    width: 500vw;
    transition: all 1s ease-in-out;
}

.pagina {
    width: 100vw;
    height: 100vh;
}

.cajaPresentacion {
    background-color: var(--accent);
    font-size: 1.1em;
}

#Justin {
    width: 20em;
    height: 20em;
    border: solid 0.4em var(--accent-muted);
}

.p2 {
    margin-top: 4em;
    margin-bottom: 4em;
}

.cajaHabilidades {
    background-color: var(--accent);
    font-size: 1.2em;
}

.cajaProyecto {
    background-color: var(--accent);
    transition: 0.2s ease-in-out;
}

.cajaProyecto:hover {
    background-color: var(--accent-muted);
    scale: 1.05;
}

.linksProyectos {
    text-decoration: none;
    color: var(--text-color);
}

.cajasExp {
    background-color: var(--accent);
    height: 26em;
    transition: 0.2s ease-in-out;
}

.cajasExp:hover {
    background-color: var(--accent-muted);
    scale: 1.05;
}

.formulario{
    color: var(--text-color);
}

.form-control {
    background-color: var(--accent) !important;
    outline: var(--outlines) !important;
}

.Campos {
    position: relative;
    padding-bottom: 20px;
}

.Campos input, textarea {
    color: var(--text-color) !important;
    transition: 0.2s ease-in-out;
}

.Campos input:hover, textarea:hover {
    background-color: var(--accent-muted) !important;
}

.Campos input:focus, textarea:focus {
	outline: 0.2em solid var(--text-color-disabled) !important;
    border: none !important;
}

.Campos.success input {
	outline: 0.2em solid #2ecc71 !important;
}

.Campos.error input {
	outline: 0.2em solid #e74c3c !important;
}

.Campos small {
	color: #e74c3c;
	position: absolute;
	bottom: 8;
	left: 0;
	visibility: hidden;
}

.Campos.error small {
	visibility: visible;
}

#Nombre {
    width: 30em;
    height: 2em;
}

#Email {
    width: 30em;
    height: 2em;  
}

#Mensaje {
    width: 40em;
    height: 6em;
}

#sendBtn{
    background-color: var(--accent) !important;
    outline: var(--outlines) !important;
    border: none;
    width: 25em;
    height: 2em;
    transition: 0.2s ease-in-out;
}

#sendBtn:hover {
    background-color: var(--accent-muted) !important;
}

#textoContacto {
    background-color: var(--accent);
    font-size: 1.2em;
}

.cajaLinks {
    transition: 0.4s ease;
    text-decoration: none;
    color: var(--text-color);
}


.cajaLinks:hover {
    transform: scale(1.05);
}

.logoRS {
    width: 1.6em;
    height: 1.6em;
    padding: 0.2em;
}

#GitHub {
    background-color: #4078c0;
}

#LinkedIn {
    background-color: #0A66C2;
}

#Discord {
    background-color: #5865F2;
}

#Bluesky {
    background-color: #1185FE;
}

#YouTube {
    background-color: #FF0000;
}

#G-mail {
    background-color: #EA4335;
}

#textoLinks {
    background-color: var(--accent);
    font-size: 1.2em;
}

.footer {
    background-color: var(--fill);
}

@media (max-width: 991px) {
    .pagina {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .row {
        flex-direction: column;
        gap: 2rem;
    }

    .col-6 {
        width: 100% !important;
    }

    #Justin {
        width: 15em;
        height: 15em;
    }

    .cajasExp {
        height: auto;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    #Nombre, #Email, #Mensaje, .cajaPresentacion, .formulario {
        width: 100% !important;
        max-width: 90vw;
    }

    .pagina {
        width: 100% !important;
    }

    #sendBtn {
        width: 100%;
    }

    #textoContacto, #textoLinks {
        height: auto !important;
        padding: 1.5rem;
    }

    .cajaPresentacion p {
        font-size: 0.9em;
    }

    .PaginasCrsl {
        margin-top: 2em;
    }
}


@font-face {
    font-family: 'upheaval';
    src: url(../Fonts/upheaval/upheavtt.ttf);
}