* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/*-----FONTS-----*/
@font-face {
    font-family: 'Inter-regular';
    src: url('../fonts/Inter-Regular.woff2') format('woff2'),
        url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Light';
    src: url('../fonts/Inter-Light.woff2') format('woff2'),
        url('../fonts/Inter-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-SemiBold';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2'),
        url('../fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Bold';
    src: url('../fonts/Inter-Bold.woff2') format('woff2'),
        url('../fonts/Inter-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-ExtraLight';
    src: url('../fonts/Inter-ExtraLight.woff2') format('woff2'),
        url('../fonts/Inter-ExtraLight.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
        url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


@font-face {
    font-family: 'Montserrat-Bold';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2'),
        url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Inter', sans-serif;
}

:root {
    --negro: black;
    --blanco: white;
    --azul: #2B49FF;
    --gris: #797777;
    --espaciado-base: 16px;

    /* Fuentes */
    --font-bold: 'Inter-Bold', sans-serif;
    --font-semi: 'Inter-SemiBold', sans-serif;
    --font-regular: 'Inter-regular', sans-serif;
    --font-light: 'Inter-Light', sans-serif;

    /* Tamaños de fuente */
    --font-size-title: 60px;
    --font-size-subtitle: 35px;
    --font-size-parrafo: 20px;
}

/*SELECCIÓN DE TEXTO*/
/* Cambiar color de selección de texto */
::selection {
    background: var(--azul);
    /* Color de fondo */
    color: white;
    /* Color del texto */
}

/* Para compatibilidad con Firefox */
::-moz-selection {
    background: var(--azul);
    color: white;
}


/**************************
       ABOUT
***************************/
.about-section {
    max-width: 1200px;
    margin: auto;
    padding: 50px 50px;
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
}

.fade-up.in-view {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-item {
    border-bottom: 2px solid var(--negro);
    transition: all 0.3s ease;
}

.accordion-header-personal {
    font-family: var(--font-bold);
    font-weight: normal;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 0;
    font-size: 35px;
    color: var(--negro);
    transition: color 0.3s ease;
}

.accordion-toggle {
    font-weight: normal;
    font-size: 1.5rem;
    color: var(--negro);
    transition: color 0.3s ease;
}

.accordion-header-personal:hover {
    color: var(--azul);
}

.accordion-header-personal:hover .accordion-toggle {
    color: var(--azul);
}

.accordion-item.active .accordion-header-personal {
    color: var(--azul);
}

.accordion-item.active .accordion-toggle {
    color: var(--azul);
}

.accordion-content {
    display: block !important;
    height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(30px);
    padding-left: 2rem;
    transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease;
}

.accordion-item.active .accordion-content {
    height: auto !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    margin-bottom: 2rem;
}

.skills-descripcion,
.descripcion-experiencia {
    font-size: 18px;
    color: var(--gris);
    margin-bottom: 1rem;
    font-family: var(--font-regular);
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    margin-top: 1rem;
}

.skill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill span:first-child {
    flex: 1;
    color: var(--negro);
    font-family: var(--font-regular);
    font-size: 18px;
    white-space: nowrap;
}

.skill .bar {
    flex: 2;
    background: #ddd;
    height: 6px;
    overflow: hidden;
}

.skill .bar div {
    height: 100%;
    background: var(--azul);
    transition: width 0.5s ease;
}

.skill .percent {
    width: 40px;
    text-align: right;
    color: var(--azul);
    font-family: var(--font-regular);
    font-size: 18px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.info-item:last-child {
    border-bottom: none;
}

.arrow-flecha {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.info-item:hover .arrow-flecha {
    transform: translateX(6px);
}

.arrow-flecha img {
    width: 100%;
    height: auto;
    display: block;
}

.detalle-interno {
    flex: 1;
}

.titulo-educacion {
    font-family: var(--font-semi);
    color: var(--negro);
    font-size: 25px;
    margin: 0;
    font-weight: normal;
}

.subtexto {
    font-family: var(--font-regular);
    margin: 0.3rem 0 1rem;
    font-size: 20px;
    color: var(--negro);
    line-height: 1.5;
}

.subtexto span {
    font-size: 18px;
    color: var(--azul);
}

.detalle-interno ul {
    margin: 0;
    padding-left: 1.2rem;
}

.detalle-interno ul li {
    font-family: var(--font-regular);
    color: var(--gris);
    font-size: 18px;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.detalle-interno ul {
    padding-left: 1.2em;
    /* para alinear bien el texto */
    list-style-type: disc;
    /* puedes cambiarlo por circle, square, etc. */
}

.detalle-interno ul li::marker {
    color: var(--azul);
    /* Cambia este color por el que desees */
    font-size: 20px;
    /* Opcional: cambia tamaño del punto */
}

.year {
    font-weight: bold;
    color: var(--azul);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .detalle-interno {
        flex: 1;
    }

    .year {
        align-self: flex-start;
    }

    .accordion-header-personal {
        font-size: 26px;
    }

    .about-section {
        padding: 0px 30px 40px 30px;
    }

    .titulo-educacion {
        font-size: 20px;
    }

    .subtexto {
        font-size: 18px;
        line-height: 1.2;
    }

    .subtexto span {
        font-size: 16px;
    }

    .skills-descripcion,
    .descripcion-experiencia {
        font-size: 16px;
        line-height: 1.3;
    }

    .detalle-interno ul li {
        font-size: 16px;
        line-height: 1.3;
    }

    .accordion-content {
        padding-left: 0rem;
    }

    .skill span:first-child {
        font-size: 16px;
    }

    .skill .percent {
        font-size: 16px;
    }

}

/*CERTIFICADOS*/
.certificados-acordeon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.certificados-acordeon-card {
    border: 1px solid var(--azul);
    padding: 1rem;
    text-align: center;
    background-color: white;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUpCard 0.6s ease forwards;
}

@keyframes fadeUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certificados-acordeon-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
    will-change: transform;
}

.certificados-acordeon-card:hover img {
    transform: scale(1.05);
}

.certificados-acordeon-titulo {
    font-size: 20px;
    color: var(--azul);
    font-family: var(--font-bold);
    font-weight: normal;
    margin-bottom: 0.2rem;
}

.certificados-acordeon-subtitulo {
    font-size: 16px;
    color: var(--negro);
    font-family: var(--font-regular);
    margin: 0;
}

/* Link de "ver más certificados" */
.certificados-acordeon-link {
    display: inline-block;
    margin: 2rem auto 0 auto;
    font-family: var(--font-regular);
    font-size: 18px;
    color: var(--azul);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificados-acordeon-link .flecha-cert {
    opacity: 0;
    margin-left: 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    left: -5px;
}

.certificados-acordeon-link:hover {
    color: var(--negro);
    transform: translateX(6px);
}

.certificados-acordeon-link:hover .flecha-cert {
    opacity: 1;
    left: 0;
}

.certificados-acordeon-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.certificados-acordeon-link-card:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1024px) {
    .certificados-acordeon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .certificados-acordeon-grid {
        grid-template-columns: 1fr;
    }
}


/*FOTO*/
.perfil-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 50px 20px 50px;
    overflow: hidden;
}

.perfil-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    animation: fadeIn 1s ease-in-out;
}

.perfil-imagen {
    flex: 1 1 300px;
    text-align: center;
    animation: slideLeft 1s ease forwards;
}

.perfil-imagen img {
    max-width: 350px;
    width: 100%;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.perfil-imagen img:hover {
    content: url('../img/nosotros/richard-leyva-about-rollover.jpg');
}

.perfil-texto {
    flex: 1 1 600px;
    animation: slideRight 1s ease forwards;
}

.perfil-texto h2 {
    font-family: var(--font-bold);
    font-size: 35px;
    font-weight: normal;
    color: var(--azul);
    margin-bottom: 20px;
}

.perfil-texto p {
    font-family: var(--font-regular);
    font-size: 18px;
    color: var(--negro);
    line-height: 1.4;
    margin-bottom: 20px;
}

.ver-proyectos {
    font-size: 18px;
    text-decoration: none;
    color: var(--azul);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.ver-proyectos .derecha {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s;
    opacity: 0;
}

.ver-proyectos:hover {
    color: var(--negro);
    transform: translateX(5px);
    /* Desplaza todo el enlace a la derecha */
}

.ver-proyectos:hover .derecha {
    opacity: 1;
    transform: translateX(5px);
    /* Desplaza la flecha aún más */
}

/* Animaciones de entrada */
@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .perfil-contenido {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    .perfil-texto {
        animation: slideUp 1s ease forwards;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .perfil-section {
        padding: 20px 30px 0px 30px;
    }

    .perfil-texto p {
        font-size: 16px;
    }

    .perfil-texto h2 {
        font-size: 30px;

    }


}