/* Animation */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fade-bottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade-left {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-right {
  0% {
    transform: translateX(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Header animation */
@keyframes fade-up {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

header .navbar.animate {
    animation: fade-up 0.5s ease-in;
}


/* ToolTip */

.tooltip {
    line-height: 1rem;
    border-radius: .5rem !important;
}
.tooltip-inner {
    line-height: 1rem;
}
.tooltip .tooltip-arrow { 
    visibility: hidden !important;
}

/* hero */

#hero {
    min-height: 75vh;
    line-height: 2rem;
    max-width: 100%;
    /* Manual de marca: teal como color primario dentro del Hero
       (el tema trae --primary-color en azul #0958d9; lo sobreescribimos
       solo en este bloque para no afectar el resto del sitio todavía) */
    --primary-color: var(--brand-teal);
    background-color: #FFFFFF;
}
body.dark #hero {
    background-color: #18191A;
}
#hero .content.animate {
    animation: fade-left 1s ease-out;
}

#hero .hero-bottom-svg {
    opacity: 0.9;
    position: absolute;
    bottom: -50px;
    left: -150px;
}

/* Bloque 3: eyebrow + párrafo de presentación */
#hero .subtitle {
    font-size: clamp(14px,5vw,16px);
    color: var(--brand-gray);
    opacity: 1;
}
body.dark #hero .subtitle {
    color: var(--brand-lilac);
}

#hero h2 {
    font-size: clamp(30px, 8vw, 70px);
    color: var(--brand-berry) !important;
}
body.dark #hero h2 {
    color: var(--brand-berry) !important;
}

#hero h3 {
    font-size: clamp(40px, 8vw, 60px);
    /* color: var(--primary-color) !important; */
    opacity: 0.5;
}

#hero p {
    margin: 20px 0px 0px;
    max-width: 640px;
    font-size: 16px;
    color: var(--brand-gray);
    opacity: 1;
}
body.dark #hero p {
    color: var(--brand-lilac);
}

#hero .image img {
    box-shadow:0px 8px 56px rgba(15, 80, 100, 0.16);
    padding: 0;
    border: 0;
    border: 2px solid var(--secondary-color);
    border-radius: 1rem;
}

#hero .image.animate img {
    animation: fade-in 1s ease-out;
    transition: box-shadow 0.3s;
}

#hero .image img:hover {
    cursor: pointer;
}

#hero .image.animate img:hover {
    box-shadow: 0 0 11px rgb(15 80 100 / 20%);
    filter: contrast(1.2);
    cursor: pointer;
}

/* Bloque 5: íconos de redes sociales */
#hero a.btn.social-icon {
    color: var(--brand-berry) !important;
    background-color: transparent !important;
    line-height: 0%;
    border-radius: 50%;
    margin-top: 50px;
    padding: 0.7rem;
    border: 1px solid var(--brand-berry);
    transition: background-color 0.2s ease, color 0.2s ease;
}

#hero a.btn.social-icon img {
    width: 1em;
}

#hero a.btn.social-icon:hover {
    background-color: var(--brand-berry) !important;
    color: var(--brand-lilac) !important;
    opacity: 1;
}

/* Bloque 4: botón "Leer más sobre mí" — contorno en reposo, se rellena al pasar el ratón */
#hero a.btn:not(.social-icon) {
    margin-top: 50px;
    padding: 0.7rem calc(1.75rem - 0.5cm);
    border: 1px solid var(--brand-berry);
    background-color: transparent;
    color: var(--brand-berry) !important;
    border-radius: .75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#hero a.btn:focus {
    box-shadow: none;
}

#hero a.btn:not(.social-icon):hover {
    background-color: var(--brand-berry) !important;
    color: var(--brand-lilac) !important;
    opacity: 1;
}

#hero .hero-content > a {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color) !important;
}

#hero .hero-content > a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#hero .hero-content > a:hover::after, #hero .hero-content > a:focus::after, #hero .hero-content > a:active::after {
    width: 100%;
}



/* about me */
/* título "Sobre mí" de esta sección: ahora es h2 (antes h3, saltaba de nivel) */
#about .section-title {
    color: var(--text-secondary-color) !important;
    font-size: 32px;
}

/* jerarquía de títulos dentro del contenido de "Sobre mí" */
#about .content h2 {
    color: var(--brand-teal) !important;
    font-size: 20px;
    font-weight: 600;
}

#about .content h3 {
    color: var(--brand-gray) !important;
    font-size: 18px;
    font-weight: 600;
}

#about .content h4 {
    color: var(--brand-gray) !important;
    font-size: 16px;
    font-weight: 500;
}

#about .image img {
    box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
    transition: box-shadow 0.3s;
    padding: 0;
    border: 0;
}

#about .image img:hover {
    box-shadow: 0 0 11px rgb(15 80 100 / 20%);
}

#about ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0px 10px;
    padding: 0px;
    margin: 20px 0px 0px;
    overflow: hidden;
    list-style: none;
}

#about ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

#about ul li::before {
    content: "▹";
    color: var(--primary-color);
    position: absolute;
    left: 0px;
}

#about .content {
    font-weight: 500;
    opacity: 0.9 !important;
    line-height: 1.7rem !important;
}

/* texto normal del contenido de "Sobre mí" (portada) */
#about .content p {
    color: var(--brand-gray) !important;
    font-size: 14px;
}

#about a {
    display: inline-block;
    text-decoration: none;
    color: var(--brand-berry) !important;
}

#about a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--brand-berry);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#about a:hover::after, #about a:focus::after, #about a:active::after {
    width: 100%;
}

/* experience */

#experience h3 {
    color: var(--text-secondary-color) !important;
}

#experience * {
    background-color: transparent !important;
}

#experience .tab-pane > * {
    opacity: 0.9;
}

#experience .tab-pane small {
    opacity: 0.8;
}

#experience .tab-pane ul {
    padding-top: 1%;
    padding-bottom: 1%;
}

#experience .experience-container .tab-content > .tab-pane p {
    padding: 1% 0;
    margin: 0;
}

#experience .experience-container {
    background-color: var(--secondary-color) !important;
    border-radius: .75rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
}

#experience .nav-item .nav-link {
    color: var(--text-color) !important;
    border-bottom: 2px solid transparent; 
    border-radius: 0%;
    transition: none;
    cursor: pointer;
}

#experience .nav-item .nav-link.active {
    color: var(--text-color) !important;
    border-bottom: 2px solid var(--primary-color); 
    opacity: 0.8;
}

#experience .nav-item .nav-link.active:hover { 
    transition: none !important;
}

#experience .nav-item .nav-link:hover {
    border-bottom: 2px solid var(--primary-color);
    opacity: 0.8;
}

#experience a {
    opacity: 0.9;
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color) !important;
}

#experience a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#experience a:hover::after, #experience a:focus::after, #experience a:active::after {
    width: 100%;
}

#experience .experience-container .tab-content .tab-pane ul {
    overflow: hidden;
    list-style: none;
    margin-bottom: 0;
}

#experience .experience-container .tab-content .tab-pane ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

#experience .experience-container .tab-content .tab-pane ul li::before {
    content: "▹";
    color: var(--primary-color);
    position: absolute;
    left: 0px;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a::after {
    display: block;
    width: auto;
    height: auto;
    bottom: 0em;
    background-color: transparent;
    transition: none;
    opacity: 1;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn {
    border: 1px solid var(--primary-color);
    border-radius: .75rem;
    transition: none;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn:focus {
    box-shadow: none;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn:hover {
    color: var(--text-color) !important;
    opacity: 0.7;
}

/* Education */

/* título "Educación": ahora es h2 (antes h3, saltaba de nivel) */
#education .section-title {
    color: var(--text-secondary-color) !important;
    font-size: 34px;
}

/* jerarquía de títulos dentro del contenido de cada ítem de Educación */
#education .education-content h2 {
    color: var(--brand-teal) !important;
    font-size: 20px;
    font-weight: 600;
}

#education .education-content h3 {
    color: var(--brand-gray) !important;
    font-size: 18px;
    font-weight: 600;
}

#education .education-content h4 {
    color: var(--brand-gray) !important;
    font-size: 16px;
    font-weight: 500;
}

/* texto normal del contenido de cada ítem de Educación */
#education .education-content p {
    color: var(--brand-gray) !important;
    font-size: 14px;
}

#education .row .index {
    opacity: 0.8;
    padding: 13px 20px;
    line-height: 0%;
    border-radius: 50%;
    max-height: 50px;
    z-index: 2;
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    font-weight: bold;
}

#education .card * {
    background-color: var(--secondary-color) !important;
}

#education .card {
    border-radius: 1.5rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
    border: 2px solid var(--text-secondary-color) !important;
    transition: box-shadow .2s linear,opacity .2s linear;
    transition: transform 0.2s;
}

#education .card .card-body {
    border-radius: 1.5rem;
    padding: 2rem;
}

@media all and (max-width:768px) {
    #education .card .card-body {
        padding: 2rem 1rem;
    }
}

#education .card:hover {
    transition: 0.3s;
    box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
    border: 2px solid #0a6b73 !important;
}

#education .card .card-body .education-content a {
    color: var(--brand-berry) !important;
    text-decoration: none;
    opacity: 0.9;
}

#education .card .card-body > a h6 {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color) !important;
}

#education .card .card-body > a h6::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#education .card .card-body > a h6:hover::after, #education .card .card-body > a h6:focus::after, #education .card .card-body > a h6:active::after {
    width: 100%;
}

#education .card .card-body a.btn {
    opacity: 0.9;
    border: 1px solid var(--primary-color) !important;
    color: var(--text-color) !important;
    border-radius: .75rem;
    box-shadow: none;
    transition: none;
}

#education .card .card-body a.btn:hover {
    opacity: 0.8;
}

/* achievements */

#achievements {
    padding-top: 1rem !important;
    padding-bottom: 5rem !important;
}

#achievements a {
    text-decoration: none;
}

/* título "Comunidad y código abierto" (antes h3, ahora h2 — corrige salto de nivel) */
#achievements .section-title {
    color: var(--brand-teal) !important;
    font-size: 20px;
    font-weight: 600;
}

/* modo oscuro: título "Comunidad y código abierto" */
body.dark #achievements .section-title {
    color: var(--brand-teal-light) !important;
}

#achievements .card {
    background-color: var(--secondary-color) !important;
    border-radius: 1rem;
    box-shadow: 0 0 36px rgba(0,0,0,0.1);
    /* transform: translate3d(0, 0, 0); */
    transition: box-shadow .2s linear,opacity .2s linear;
    border: 2px solid transparent;
}

#achievements a.card {
    cursor: alias;
}

/* título de cada tarjeta: texto normal en negrita, no encabezado */
#achievements .card .card-title {
    color: var(--brand-gray) !important;
    font-size: 14px;
    font-weight: 700 !important;
    opacity: 0.9;
    margin-bottom: .5rem;
}

/* modo oscuro: título de cada tarjeta */
body.dark #achievements .card .card-title {
    color: var(--brand-lilac) !important;
}

#achievements .card:hover {
    border: 2px solid #0a6b73;
    transition: .3s;
}
#achievements .card:focus {
    border: 2px solid #0a6b73;
    transition: .3s;
}

/* texto normal de cada tarjeta */
#achievements .card-text {
    background-color: var(--secondary-color) !important;
    color: var(--brand-gray) !important;
    font-size: 14px;
    font-weight: 400 !important;
}

/* modo oscuro: texto normal de cada tarjeta */
body.dark #achievements .card-text {
    color: var(--brand-lilac) !important;
}

#achievements .card-body,
#achievements .card-title,
#achievements .card-text {
    text-align: center;
}

#achievements .achievement-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* contact */

#contact h3 {
    color: var(--text-secondary-color) !important;
}

/* disponibilidad / ubicación */
#contact .contact-meta p {
    color: var(--text-secondary-color) !important;
    font-size: 0.95rem;
}

#contact .contact-meta i {
    color: var(--primary-color) !important;
    margin-right: .4rem;
    width: 1.1rem;
    text-align: center;
}

/* tarjeta del formulario */
#contact .contact-card {
    background-color: var(--secondary-color) !important;
    border-radius: 1rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
    padding: 2rem;
}

#contact .form-label {
    color: var(--text-color) !important;
    font-weight: 600;
}

#contact .form-control {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(15, 80, 100, 0.25);
    border-radius: .5rem;
}

#contact .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 .2rem rgba(9, 88, 217, .15);
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
}

#contact .form-control::placeholder {
    color: var(--text-secondary-color) !important;
    opacity: .7;
}

/* botón con la misma estética de Blog/Proyectos/Cursos */
#contact .read-more-btn {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    background-color: transparent !important;
    border-radius: .5rem !important;
    transition: all 0.2s ease-out;
}

#contact .read-more-btn:hover,
#contact .read-more-btn:focus {
    color: var(--secondary-color) !important;
    background-color: var(--primary-color) !important;
    box-shadow: none !important;
}