:root {
    --body-bg: #0D0D0D;
    --text-color: #C5C8C6;
    --header-footer-bg: #141414f5;
    --title-color: #20e112;
    --link-color: #C5C8C6;
    --link-hover-color: #8C9440;
    --scroll-bg: #2b2b2b;
    --scroll-bg-inner: #121212;
    --hover-scroll: #0e430d;
    --hover-scroll-inner: #0b6e09;
    --thumb-scroll: #021600;
    --thumb-scroll-inner: #0b5004;
}
li::marker {
    content: none;
}
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-bg); 
}
 
::-webkit-scrollbar-thumb {
  background: var(--thumb-scroll); 
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hover-scroll); 
}


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

body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: var(--body-bg);
    color: var(--text-color);
}

canvas {
    position: fixed;
    z-index: -1;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrap {
    flex: 1;
}

.container {
    display: flex;
    margin-top: 100px;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.content-center {
    flex: 1;
    margin-left: 20px;
}

aside {
    display: flex;
    width: 100%;
    flex: 0 0 25%; /* Assigns 25% of the space to aside on large screens */
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

section {
    width: 100%;
    margin: 10px;
}

main.presentation {
    display: flex;
    flex-direction: column;
    margin-top: 200px;
    padding: 20px 0;
    height: 300px;
    width: 70vw;
}

section.presentation-card {
    display: flex;
    width: 100%;
    flex: 0 0 25%;
    padding-inline: 10%;
}

.presentation-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation-delay: 150ms;
    align-content: center;
}

.presentation-photo img {
    width: 200px;
    height: auto;
    border-radius: 25px 0px 25px 0px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.presentation-text {
    flex: 1;
    margin-left: 30px;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #222222c7;
    border-radius: 40px 0 40px 0;
    opacity: 0;
    animation: opacityfx 1s ease-out forwards;
}

p.presentation-name {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.personal-info, .contact-info, .work-experience, .education, .skills, .projects, .certifications {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #222;
    border-radius: 40px 0 40px 0;
    opacity: 0;
    animation: opacityfx 1s ease-out forwards;
}

.personal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation-delay: 150ms;
}

.contact-info {
    display: block;
    text-align: center;
    animation-delay: 300ms;
}

.contact-info a {
    margin-right: 15px;  /* Espacio entre los iconos */
    color: var(--link-color);         /* Color del ícono */
    font-size: 24px;     /* Tamaño del ícono */
    text-decoration: none; /* Remover el subrayado del enlace */
}

.contact-info a:hover {
    color: #555; /* Cambiar el color al pasar el mouse */
}

.projects {
    animation-delay: 450ms;
}

.work-experience {
    animation-delay: 600ms;
}

.education {
    animation-delay: 750ms;
}

.skills {
    animation-delay: 800ms;
}

.certifications {
    animation-delay: 950ms;
}

.card-content-v1 {
    margin: 30px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.card-content-v2 {
    margin: 30px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.container-inside {
    border-radius:  2px;
    overflow: auto;
    max-height: 600px;
    min-height: 350px;
}

.container-inside::-webkit-scrollbar {
    width: 10px; /* Ancho del scrollbar */
}

.container-inside::-webkit-scrollbar-track {
  background: var(--scroll-bg-inner); 
}
 
.container-inside::-webkit-scrollbar-thumb {
  background: var(--thumb-scroll-inner); 
}

.container-inside::-webkit-scrollbar-thumb:hover {
  background: var(--hover-scroll-inner); 
}

.punto-medio::before {
    content: "\00B7"; /* Este es el código Unicode para el punto medio */
    font-size: 24px; /* Tamaño del punto medio */
    color: #c5c8c6; /* Color de la base del punto medio */
    
    /* Aplicar un gradiente */
    background: -webkit-linear-gradient(left, red, yellow, green);
    background: linear-gradient(to right, red, yellow, green);
    
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Aplicar sombra */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* */

.contenedor {
    display: flex;
    padding: 10px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.cert-img {
    width: 100%;
    z-index: 10;
    transition: transform 0.25s ease;
    cursor: zoom-in;
}

.cert-img.zoom {
    transform: scale(2);
    cursor: zoom-out;
}

p.txtImgInst {
    font-size: 0.8rem;
    color: #b1b1b1;
}

.modal-certs {
    display: flex;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container-modal {
    background: #202020;
    max-width: 600px;
    margin: 10px; /* Auto para margen horizontal automático */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    width: -webkit-fill-available;
    box-sizing: border-box; /* Para que el padding no afecte el ancho total */
}

.aviso {
    color: #ffffffa8;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}

/*  */


a.link-project {
    display: inline-block;
    margin: 3px;
    padding: 2px 5px;
    background-color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 2px 0px;
    color: #000;
    text-decoration: none;
    font-family: monospace;
    text-transform: uppercase;
    transform: skewX(347deg);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}


a.link-project:hover {
    background-color: #000;
    border-color: #00ff00;
    color: #00ff00;
}

a.link-modalbt {
    display: inline-block;
    margin: 3px;
    padding: 2px 5px;
    background-color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 2px 0px;
    color: #000;
    text-decoration: none;
    font-family: monospace;
    text-transform: uppercase;
    transform: skewX(347deg);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}


a.link-modalbt:hover {
    background-color: #000;
    border-color: #00ff00;
    color: #00ff00;
}

a.link-cert {
    display: inline-block;
    margin: 8px;
    padding: 2px 5px;
    background-color: #00ff00;
    border-radius: 2px 10px 2px 10px;
    color: #000;
    text-decoration: none;
    font-family: monospace;
    text-transform: uppercase;
    transform: skewX(-347deg);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}


a.link-cert:hover {
    background-color: #000;
    color: #00ff00;
}

#mdText {
    margin: 10px;
}

@keyframes opacityfx {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.antiGravityFx {
    will-change: transform;
}

.personal-info h2, .contact-info h2, .work-experience h2, .education h2, .skills h2, .projects h2, .certifications h2 {
    margin-bottom: 1rem;
    color: var(--title-color);
}

.personal-info p, .contact-info p, .work-experience p, .education p, .skills p, .projects p, .certifications p {
    margin-bottom: 0.5rem;
}

.personal-info img {
    width: 200px;  /* Ajusta esto según tus necesidades */
    height: auto;
    border-radius: inherit;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.skills ul {
    padding-left: 10px;
}

.main {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    padding: 20px 0;
    width: 70vw;
    opacity: 0;
}

.header {
    background-color: var(--header-footer-bg);
    padding: 10px 0;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 2;
    position: fixed;
    animation: 1s ease-out 0s 1 slideInFromTop;
}

.header__title {
    font-size: 1.6rem;  /* Tamaño de título reducido */
    margin-bottom: 10px;
    color: var(--title-color);
}

.main__section {
    margin-bottom: 20px;
}

.section__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.section__text {
    font-size: 1.2rem;
}

.footer {
    background-color: var(--header-footer-bg);
    padding: 5px;
    max-height: 40px;
    text-align: center;
    margin-top: 20px;
    bottom: 0;
    width: 100%;
    z-index: 2;
    position: fixed;
    animation: 1s ease-out 0s 1 slideInFromBottom;
}

.footer__text {
    margin-bottom: 0;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Inicio animacion subname */

.stack {.stack {
    color: var(--title-color);
    display: grid;
    grid-template-columns: 1fr;
};
    color: var(--title-color);
    display: grid;
    grid-template-columns: 1fr;
}

.stack span {
    font-weight: bold;
    grid-row-start: 1;
    grid-column-start: 1;
    font-size: 1rem;
  --stack-height: calc(100% / var(
    --stacks) - 1px);
  --inverse-index: calc(calc(var(
    --stacks) - 1) - var(--index));
  --clip-top: calc(var(
    --stack-height) * var(--index));
  --clip-bottom: calc(var(
    --stack-height) * var(--inverse-index));
    clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
    animation: stack 340ms cubic-bezier(.46,.29,0,1.24) 1 backwards calc(var(--index) * 120ms), glitch 2s ease infinite 2s alternate-reverse;
}

.stack span:nth-child(even) {--glitch-translate: -8px;
}

.stack span:nth-child(odd) {--glitch-translate: 8px;
}
@keyframes stack {
  0% {
    opacity: 0;
    transform: translateX(-50%);
    text-shadow: -2px 3px 0 #70ff00, 2px -3px 0 #1eff00;
  };
  60% {
    opacity: 0.5;
    transform: translateX(50%);
  }
  80% {
    transform: none;
    opacity: 1;
    text-shadow: 2px -3px 0 #00ffb6, -2px 3px 0 #1eff00;
  }
  100% {
    text-shadow: none;
  }
}

@keyframes glitch {
  0% {
    text-shadow: -2px 3px 0 #00c7ff, 2px -3px 0 #1eff00;
    transform: translate(var(--glitch-translate));
  }
  2% {
    text-shadow: 2px -3px 0 #fdff00, -2px 3px 0 #1eff00;
  }
  4%, 100% {  text-shadow: none; transform: none; }
}

/* Fin animacion subname */

/* Estilos que se aplican en pantallas de al menos 1200px de ancho */
@media only screen and (max-width: 1400px) {
    .main {
        display: flex;
        flex-direction: row;
        margin-top: 20px;
        padding: 20px 0;
        width: 90vw;
    }
}
/* Estilos que se aplican en pantallas de al menos 768px de ancho */
@media only screen and (max-width: 1024px){

    .header {
        background-color: var(--header-footer-bg);
        padding: 5px 0;
        text-align: center;
        top: 0;
        width: 100%;
        position: fixed;
        animation: 1s ease-out 0s 1 slideInFromTop;
    }

    .content-center, aside {
        flex: 1;
        width: 100%;
        margin: auto;
    }

    .container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        max-width: 960px;
        margin-top: 120px;
        padding: 0 20px;
    }

    .header__title {
        font-size: 1.6rem;
    }
    
    section {
        width: 100%;
        margin: auto;
    }

    main.presentation {
        display: flex;
        margin-top: 20px;
        padding: 20px 0;
        height: inherit;
        width: inherit;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    section.presentation-card {
        display: flex;
        width: 100%;
        flex: inherit;
        padding-inline: inherit;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }

    .presentation-photo {
        display: flex;
        text-align: center;
        animation-delay: 150ms;
    }

    .presentation-text {
        flex: 1;
        margin-left: inherit;
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 2rem;
        background-color: #222222c7;
        border-radius: 40px 0 40px 0;
        opacity: 0;
        animation: opacityfx 1s ease-out forwards;
    }

    .section__title {
        font-size: 2rem;
    }
    
    .section__text {
        font-size: 1.4rem;
    }

    .main {
        display: flex;
        margin-top: 20px;
        padding: 20px 0;
        flex-direction: column;
        flex-wrap: nowrap;
        width: auto;
        opacity: 0;
    }

    .card-content-v1 {
        margin: auto;
        margin-inline: 5px;
        margin-bottom: 40px;
        box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
        padding: 10px;
    }

    .card-content-v2 {
        margin: 10px;
        box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
        padding: 10px;
    }

}
