/* VARIABLES */
:root {
    --morado-lateral  : #3b2a5a;
    --morado-principal: #6f42c1;
    --morado-claro    : #e8e2f7;
    --negro-profundo  : #0a0a0b;
    --negro-texto     : #1a1a1b;
    --color-hoja      : #f4f4f9;
    --blanco-puro     : #ffffff;
}

@media (min-width: 576px) {

    .navbar-nav {
        display: flex;
        gap    : 28px;
    }

}

/*menu*/
.menu-movil {
    align-self: center;
    position  : fixed;
    inset     : 0;
    background: linear-gradient(to bottom, #f4f4f9 40%, #3b2a5a 100%);
    transform : translateX(-100%);
    transition: transform .4s ease;
    z-index   : 998;
}

.menu-movil.show {
    transform: translateX(0);
}

.menu-movil-container {
    max-height: 0;
    overflow  : hidden;
    transition: max-height .35s ease;
}

.menu-movil-container.is-open {
    max-height: 400px;
}

/* BASE */
body {
    background-color     : var(--negro-profundo);
    background-image     : radial-gradient(circle at 10% 20%, rgba(111, 66, 193, .1) 0%, transparent 50%);
    background-attachment: fixed;
    color                : var(--negro-texto);
    font-family          : 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

}

/* CONTENEDOR PRINCIPAL */
main.container {
    background   : var(--color-hoja);
    border-radius: 4px;
    box-shadow   : 0 20px 40px -10px rgba(0, 0, 0, .9);
    overflow     : hidden;
}

/* COLUMNA IZQUIERDA */
.col-md-5.bg-white {
    background-color: var(--morado-lateral) !important;
    color           : var(--blanco-puro);
    padding         : 60px 40px !important;
}

/* LOGO PERFIL */
.logo-profile img {
    width        : 100%;
    max-width    : 180px;
    border-radius: 50%;
}

/* TITULOS COLUMNA IZQUIERDA */
.col-md-5 h2 {
    color         : var(--blanco-puro) !important;
    border-bottom : 2px solid var(--morado-principal);
    padding-bottom: 10px;
    font-size     : 1.2rem;
}

/* TITULOS GENERALES */
h1,
h2,
h3,
.text-primary {
    color      : var(--negro-texto);
    font-weight: 700;
    padding    : 15px;
}

h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CONTACTO */
.contact-item {
    display    : flex;
    align-items: center;
    gap        : 14px;
}

.icon-wrapper {
    width          : 52px;
    height         : 52px;
    min-width      : 52px;
    border-radius  : 50%;
    background     : #6f42c1;
    display        : flex;
    align-items    : center;
    justify-content: center;
}

.icon-wrapper img {
    width     : 22px;
    height    : 22px;
    object-fit: contain;
}

.contact-text h4 {
    font-size     : 11px;
    letter-spacing: .6px;
    margin-bottom : 2px;
}

.contact-text span {
    font-size: 15px;
}

/* BADGES EDUCACION */
.badge {
    background-color: var(--morado-claro);
    color           : var(--morado-principal);
    border          : 1px solid var(--morado-principal);
    padding         : .5em 1em;
    border-radius   : 3px;
}

/* SLIDER HABILIDADES */
.habilidades-slider {
    padding : 0 30px;
    position: relative;
}

.habilidades-slider .card {
    transition: transform .3s ease;
}

.habilidades-slider .card:hover {
    transform: translateY(-5px);
}

/* DOTS SLICK */
.slick-dots {
    bottom         : -40px;
    display        : flex !important;
    justify-content: center;
    gap            : 8px;
}

.slick-dots li button:before {
    content      : "";
    width        : 10px;
    height       : 10px;
    background   : #cfd8dc;
    border-radius: 50%;
    opacity      : 1;
}

.slick-dots li.slick-active button:before {
    width        : 28px;
    border-radius: 20px;
    background   : #6f42c1;
}

/* FLECHAS SLICK */
.slick-prev,
.slick-next {
    width        : 40px;
    height       : 40px;
    background   : #fff;
    border-radius: 50%;
    box-shadow   : 0 6px 18px rgba(0, 0, 0, .08);
    z-index      : 2;
}

.slick-prev:before,
.slick-next:before {
    color    : #6f42c1fd;
    font-size: 18px;
}

.slick-prev {
    left: -45px;
}

.slick-next {
    right: -45px;
}

/* SLIDER HERRAMIENTAS */
.herramientas-slider {
    margin: 0 -10px;
}

.herramientas-slider .card {
    background     : #f8f9fa;
    border-radius  : 14px;
    transition     : all .35s ease;
    min-height     : 260px;
    display        : flex;
    flex-direction : column;
    justify-content: center;
}

.herramientas-slider .card:hover {
    transform : translateY(-8px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .08);
}

.herramientas-slider img {
    height       : 70px;
    margin-bottom: 15px;
    transition   : transform .3s ease;
}

.herramientas-slider .card:hover img {
    transform: scale(1.08);
}

.herramientas-slider h4 {
    font-size     : 14px;
    letter-spacing: .5px;
    margin-bottom : 10px;
}

.herramientas-slider p {
    font-size  : 13px;
    line-height: 1.6;
}

/* DROPDOWN HERRAMIENTAS */

/* BOTÓN DROPDOWN */
.dropdown-toggle-herramientas {
    background   : white;
    border       : 2px solid #e2e2e2;
    padding      : 10px 18px;
    border-radius: 6px;
    font-weight  : 600;
    font-size    : 14px;
    color        : #333;
    transition   : all .25s ease;
    cursor       : pointer;
}

/* HOVER BOTÓN */
.dropdown-toggle-herramientas:hover {
    border-color: #6f42c1;
    color       : #6f42c1;
}

/* PANEL */
.dropdown-panel {
    background   : white;
    min-width    : 240px;
    padding      : 12px 0;
    border-radius: 10px;
    box-shadow   : 0 18px 40px rgba(0, 0, 0, .12);
}

/* LISTA */
.dropdown-panel ul {
    list-style: none;
    padding   : 0;
    margin    : 0;
}

/* ITEMS */
.dropdown-panel li {
    padding   : 10px 20px;
    font-size : 14px;
    color     : #333;
    cursor    : pointer;
    transition: all .2s ease;
    position  : relative;
}

/* HOVER ITEM */
.dropdown-panel li:hover {
    background: #f4f4f9;
    color     : #6f42c1;
}

/* ITEM ACTIVO */
.dropdown-panel li.active {
    background : #6f42c1;
    color      : white;
    font-weight: 600;
}

/* INDICADOR ACTIVO (puntico lateral elegante) */
.dropdown-panel li.active::before {
    content      : "";
    position     : absolute;
    left         : 10px;
    top          : 50%;
    transform    : translateY(-50%);
    width        : 6px;
    height       : 6px;
    background   : white;
    border-radius: 50%;
}

.herramientas-dropdown {
    position: relative;
    display : inline-block;
}

.dropdown-panel {
    display      : none;
    position     : absolute;
    top          : 45px;
    left         : 0;
    background   : white;
    min-width    : 260px;
    padding      : 15px;
    border-radius: 8px;
    box-shadow   : 0 10px 30px rgba(0, 0, 0, .15);
    z-index      : 9999;
}

.dropdown-panel.open {
    display: block;
}

/* RESPONSIVE */
@media (max-width:768px) {

    .slick-prev {
        left: -10px;
    }

    .slick-next {
        right: -10px;
    }

    .herramientas-slider .card {
        min-height: 240px;
    }

}

.habilidades-slider .slick-slide>div {
    height: 100%;
}

.habilidades-slider .card {
    height: 100%;
}

.custom-logo-link img {
    max-height: 25px;
    width     : auto;
}

.site-header .custom-logo-link img {
    max-height: 40px;
}

.site-header {
    padding: 10px 0;
}

.habilidades-slider .slick-track {
    display: flex !important;
}

.habilidades-slider .slick-slide {
    height : auto;
    display: flex !important;
}

.habilidades-slider .slick-slide>div {
    display: flex;
    width  : 100%;
}

.habilidades-slider .card {
    flex: 1;
}


.herramientas-slider .slick-track {
    display: flex !important;
}

.herramientas-slider .slick-slide {
    height : auto;
    display: flex !important;
}

.herramientas-slider .slick-slide>div {
    display: flex;
    width  : 100%;
}

.herramientas-slider .card {
    flex: 1;
}

/* CONTENEDOR DOTS */
.habilidades-slider .slick-dots {
    position       : relative;
    margin-top     : 25px;
    display        : flex !important;
    justify-content: center;
    align-items    : center;
    gap            : 10px;
}

/* DOT BASE */
.habilidades-slider .slick-dots li {
    margin: 0;
}

/* DOT NORMAL */
.habilidades-slider .slick-dots li button:before {
    width        : 10px;
    height       : 10px;
    background   : rgba(255, 255, 255, .35);
    border-radius: 50%;
}

/* DOT ACTIVO */
.habilidades-slider .slick-dots li.slick-active button:before {
    width        : 26px;
    border-radius: 20px;
    background   : white;
}

.habilidades-slider {
    padding-bottom: 40px;
}


.herramientas-slider .slick-dots {
    position       : relative;
    margin-top     : 25px;
    display        : flex !important;
    justify-content: center;
    align-items    : center;
    gap            : 10px;
}

/* DOT BASE */
.herramientas-slider .slick-dots li {
    margin: 0;
}

/* DOT NORMAL */
.herramientas-slider .slick-dots li button:before {
    width        : 10px;
    height       : 10px;
    background   : rgba(57, 41, 92, 0.35);
    border-radius: 50%;
}

/* DOT ACTIVO */
.herramientas-slider .slick-dots li.slick-active button:before {
    width        : 26px;
    border-radius: 20px;
    background   : rgb(60, 101, 150);
}

.herramientas-slider {
    padding-bottom: 40px;
}

#experiencia {
    margin: auto;
}

.experiencia-card {
    background   : #fff;
    border-radius: 12px;
    padding      : 20px 25px;
    box-shadow   : 0 8px 25px rgba(0, 0, 0, 0.08);
    transition   : transform .2s ease, box-shadow .2s ease;
    border-left  : 5px solid #6f42c1;
}

.experiencia-card:hover {
    transform : translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.experiencia-header h5 {
    font-weight  : 600;
    margin-bottom: 10px;
    color        : #333;
}

.experiencia-body {
    background   : #f7f7f7;
    padding      : 12px 15px;
    border-radius: 8px;
    font-size    : 14px;
    margin-bottom: 10px;
}

#experiencia h2 {
    text-align    : left;
    letter-spacing: 1px;
}

.experiencia-body {
    background   : #f7f7f7;
    padding      : 12px 15px;
    border-radius: 8px;
    font-size    : 14px;
    margin-bottom: 10px;

    overflow-wrap: break-word;
    word-break   : break-word;
}

@media (max-width: 768px) {

    #experiencia {
        padding-left : 15px;
        padding-right: 15px;
    }

    .experiencia-card {
        padding    : 15px;
        border-left: 4px solid #6f42c1;
    }

    .experiencia-body {
        font-size  : 13px;
        line-height: 1.5;
    }

}

@media (max-width: 768px) {

    .habilidades-slider {
        padding: 5px;
    }

    .habilidades-slider .card {
        width : 100%;
        margin: auto;
    }

}

@media (max-width: 768px) {

    #habilidades {
        padding-left : 5px;
        padding-right: 5px;
    }

}

.site-header {
    background   : #ffffff;
    border-bottom: 1px solid #eee;
}

.navbar-nav {
    gap: 20px;
}

.navbar-nav a {
    text-decoration: none;
    font-size      : 15px;
    color          : #444;
    font-weight    : 500;
    position       : relative;
    transition     : 0.3s ease;
}

/* efecto hover elegante */
.navbar-nav a::after {
    content   : "";
    width     : 0%;
    height    : 2px;
    background: #6f42c1;
    position  : absolute;
    left      : 0;
    bottom    : -4px;
    transition: 0.3s ease;
}

.navbar-nav a:hover::after {
    width: 100%;
}

.navbar-nav a:hover {
    color: #6f42c1;
}

/* link activo */
.navbar-nav .current-menu-item a {
    color: #6f42c1;
}

.navbar-brand {
    font-weight   : 700;
    font-size     : 18px;
    color         : #6f42c1 !important;
    letter-spacing: 0.5px;
}

.menu-movil-container {
    display   : none;
    text-align: center;
}

.menu-movil-container.is-open {
    display: block;
}

.menu-movil-container a {
    display  : block;
    padding  : 12px;
    font-size: 16px;
    color    : #444;
}

.menu-movil-container a:hover {
    background: #f4f4f4;
    color     : #6f42c1;
}








.github-card {
    display        : flex;
    flex-direction : column;
    align-items    : center;
    justify-content: center;
    gap            : 14px;
    padding        : 20px 15px;
    border-radius  : 12px;
    background     : rgba(255, 255, 255, 0.04);
    text-align     : center;
    max-width      : 260px;

    margin: 0 auto;
}

.github-icon {
    width          : 100%;
    height         : 100%;
    border-radius  : 10px;
    display        : flex;
    align-items    : center;
    justify-content: center;
}

.github-icon img {
    width     : 103px;
    height    : 103px;
    object-fit: contain;
}

.github-title {
    margin     : 0;
    font-size  : 1.1rem;
    font-weight: 700;
    color      : #ffffff;
    text-align : center;
}

.github-btn {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    margin         : 0 auto;
    padding        : 8px 18px;
    border-radius  : 9px;
    background     : #ffffff;
    color          : #391966;
    font-size      : 14px;
    font-weight    : 600;
    text-decoration: none;
    transition     : all .25s ease;
}

.github-btn:hover {
    background: #270e4f;
    color     : #ffffff;
}


/* barra busqueda */

/* CONTENEDOR GENERAL RESULTADOS */
.search-results {
    margin     : auto;
    padding-top: 20px;
}

/* TARJETA RESULTADO */
.search-card {
    background   : #ffffff;
    border-radius: 12px;
    padding      : 22px 26px;
    margin-bottom: 18px;
    border-left  : 5px solid #6f42c1;
    box-shadow   : 0 8px 25px rgba(0, 0, 0, .06);
    transition   : all .25s ease;

}

/* HOVER TARJETA */
.search-card:hover {
    transform : translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .12);
}

/* TITULO RESULTADO */
.search-title {
    font-size    : 20px;
    font-weight  : 700;
    color        : #2a2a2a;
    margin-bottom: 10px;
}

/* TEXTO RESULTADO */
.search-excerpt {
    font-size  : 14.5px;
    line-height: 1.7;
    color      : #555;

}

.search-header h2 {
    font-size   : 26px;
    font-weight : 700;
    border-left : 6px solid #6f42c1;
    padding-left: 14px;
}

.search-header {
    width: auto;
    ;
}


.search-header form {
    display: flex;
    width  : 100%;
    gap    : 8px;
}

.search-header input[type="search"] {
    width     : 100%;
    min-width : 0;
    box-sizing: border-box;
}

.search-header input[type="submit"] {
    flex-shrink: 0;
}

html,
body {
    overflow-x: hidden;
}

.experiencia-body {
    overflow-wrap: anywhere;
}

#experiencia {
    margin       : auto;
    max-width    : 900px;
    width        : 100%;
    padding-left : 15px;
    padding-right: 15px;
}

/* buscador */



.search-header {
    margin-bottom: 25px;
}

.search-header form {
    display: flex;
    gap    : 10px;
    width  : 100%;
}

.search-header input[type="search"] {
    flex         : 1;
    padding      : 12px 16px;
    border-radius: 8px;
    border       : 1px solid #ddd;
    font-size    : 14px;
    transition   : all .2s ease;
    background   : #f9f9fb;
}

.search-header input[type="search"]:focus {
    outline     : none;
    border-color: #6f42c1;
    background  : #fff;
    box-shadow  : 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.search-header input[type="submit"] {
    padding      : 12px 20px;
    border-radius: 8px;
    border       : none;
    background   : #6f42c1;
    color        : white;
    font-weight  : 500;
    cursor       : pointer;
    transition   : all .2s ease;
}

.search-header input[type="submit"]:hover {
    background: #5a32a3;
}

.btn-volver {
    margin-top     : 15px;
    display        : inline-block;
    margin-bottom  : 20px;
    padding        : 8px 14px;
    background     : #f4f2fb;
    color          : #6f42c1;
    border-radius  : 8px;
    font-size      : 14px;
    font-weight    : 500;
    text-decoration: none;
    transition     : all .2s ease;
}

.btn-volver {
    display    : inline-flex;
    align-items: center;
    gap        : 8px;

    padding: 10px 16px;

    background: #ffffff;
    color     : #6f42c1;

    border-radius: 10px;
    border       : 1px solid rgba(111, 66, 193, 0.2);

    font-size  : 14px;
    font-weight: 500;

    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    transition: all .25s ease;
}

.btn-volver:hover {
    background: #6f42c1;
    color     : #fff;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(111, 66, 193, 0.25);
}

.site-footer .container {
    max-width: 900px;
}

/* contenedor general contacto */
#contacto {
    max-width: 350px;
    margin   : auto;
}

/* tarjeta principal */
.contacto-card {
    background   : #ffffff;
    border-radius: 14px;
    padding      : 28px 30px;
    border-left  : 5px solid #6f42c1;
    box-shadow   : 0 10px 30px rgba(0, 0, 0, .06);
}

/* inputs contact form 7 */
.contacto-card input,
.contacto-card textarea {
    width        : 100%;
    padding      : 12px 14px;
    border-radius: 8px;
    border       : 1px solid #ddd;
    font-size    : 14px;
    margin-bottom: 14px;
    transition   : all .2s ease;
}

/* focus elegante */
.contacto-card input:focus,
.contacto-card textarea:focus {
    outline     : none;
    border-color: #6f42c1;
    box-shadow  : 0 0 0 3px rgba(111, 66, 193, .12);
}

/* botón enviar */
.contacto-card input[type="submit"] {
    background   : #6f42c1;
    color        : #fff;
    border       : none;
    font-weight  : 600;
    border-radius: 10px;
    padding      : 12px 22px;
    cursor       : pointer;
    transition   : all .25s ease;
}

/* hover botón */
.contacto-card input[type="submit"]:hover {
    background: #5a32a3;
    transform : translateY(-2px);
    box-shadow: 0 10px 25px rgba(111, 66, 193, .25);
}