@font-face {
  font-family: "futura";
  src: url("../../assets/fonts/Futura-Book-font.ttf") format("truetype");
}

@font-face {
  font-family: "canelas";
  src: url("../../assets/fonts/QanelasRegular.otf") format("opentype");
}

:root {

  /*  Fuentes Globales  */
  --default-font: "canelas";
  --heading-font: "futura";

/* Global Colors  */

  --background-color: #ffffff; 
  --default-color: #041014; 
  --heading-color: #145369;
  --accent-color: #065cc2; 
  --complement-color: #be4d25;
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */

/* Smooth scroll */

  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--complement-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-logo {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Oculta scrollbar en navegadores basados en WebKit (Chrome, Safari, Edge nuevo) */
::-webkit-scrollbar {
  display: none;
}

/* Para Firefox */
html {
  scrollbar-width: none; /* Oculta la barra pero deja el scroll */
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

#top-hero {
  position: relative;
}

.background-hero {
  background: url("../img/bg/abstract-bg-1.webp") no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Imagen de perfil adaptable */
.profile-img {
  width: 15vw;
  padding: 0px auto;
  border: 4px solid white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 4;
}

.profile-img:hover {
  transform: scale(1.05); /* efecto elegante al pasar el mouse */
}



/* Menú fijo superior con bordes redondeados */
.fixed-navbar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border-radius: 12px;
  width: 90%;
  padding: 0 20px;
}

.card-hero {
  border: 2pt solid var(--heading-color);
}

.text-body {
  font-size: medium;
  text-align: justify;
  line-height: 2rem;
}

.section-title {
  text-align: center;
  font-weight: 900;
  font-size: 2em;
  padding: 32px 0;
  position: relative;
}

.section-title::before, .section-title::after {
  content: "";
  width: 120px;
  height: 2px;
  display: inline-block;
  background: var(--complement-color);
  margin: 10px 10px;
}

.skill-head{
  text-align: left;
  margin-top: 2em;
  font-family: var(--heading-font);
  font-size: 1.7em;
}

.skill-head::before, .skill-head::after {
  content: "";
  width: 120px;
  height: 2px;
  display: inline-block;
  background: var(--accent-color);
  margin: 10px 10px;
}

.skill-title{
  margin-top: .5em;
  font-family: var(--heading-font);
  font-size: 1.5em;
}

.box-margin-left{
  border-left: 2px solid var(--heading-color) !important;
}
.box-margin-right{
  border-right: 2px solid var(--heading-color) !important;
}

.tag-background-complement{
  /*background: color-mix(in srgb, var(--complement-color), transparent 25%);*/
  background-color: var(--heading-color);
  color: var(--contrast-color) !important;
}
.has-text-accent{
  color: var(--accent-color);
}
.has-text-complement{
  color: var(--complement-color);
}
/*************************** TIMELINE ****************************************/
.timeline{
  position: relative;
  margin: 2rem 0;
  padding: 2rem 0;
}

.timeline::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--heading-color);
  margin-left: -2px;
}

/*cajas a izquierda y derecha de la línea vertical*/
.timeline-item{
  position: relative;
  width: 50%;
  padding: 1rem;
}

.timeline-item:nth-of-type(odd){
  left: 0;
  text-align: right;
}

.timeline-item:nth-of-type(even){
  left: 50%;
}

/***** Marcadores timeline *******/
.timeline-item::before{
  content: "";
  position: absolute;
  top: 1.2rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--complement-color);
  border: 3px solid var(--complement-color);
  border-radius: 50%;
}

.timeline-item:nth-of-type(odd)::before {
  right: -8px;
}
.timeline-item:nth-of-type(even)::before {
  left: -8px;
}


/******* ANIMACIONES SCROLL *******/
.timeline-item .box{
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease-out;
}

.timeline-item:nth-of-type(even) .box{
  transform: translateX(50px);
}

.timeline-item.visible .box{
  opacity: 1;
  transform: translateX(0);
}

.move-up:hover{
  transform: translateY(25px);
}


.flex-container {
    display: flex;
    justify-content: space-between; /* Espacio entre los elementos */
}



/************** RESPONSIVE ****************/

@media(max-width: 1378px){
   .section-title::before, .section-title::after {
    width: 90px;
  }
   .flex-container {
        flex-direction: column; 
        align-items: flex-start; 
        text-align: left;
        padding-bottom: 1rem;
    }
}
@media (max-width: 768px) {
  
  .section-title::before, .section-title::after {
    width: 60px;
  }

  /********  timeline ***********/

  .timeline::before{
    display: none;
  }

  .timeline-item{
    width: 100%;    
    left: 0 !important;
    text-align: left !important;;
  }

  .timeline-item::before {
    display: none; /* quitamos los marcadores */
  }


}