
body {
  --heading-font: "Big Caslon", "Libre Baskerville", serif;
  --heading-font-weight: 600;
  --heading-color: #111827;
  --heading-line-height: 1.2;

  /* bootstrap */
  --bs-body-font-family: "Inter", sans-serif;
  --bs-body-line-height: 1.5;
  --bs-body-color: #1A1A1A;
  --bs-body-color-rgb: 1.6, 1.6, 1.6;
  --bs-body-bg-rgb: 246, 244, 239;
  --bs-body-bg: #F6F4EF;

  --bs-primary: #750509;
  --bs-secondary: #F6F4EF;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-light: #f8f8f8;
  --bs-dark: #1A1A1A;
  --bs-gray: #9aa1a7;
  --bs-gray-100: #F8F8F8;
  --bs-gray-200: #E8E6E1;
  --bs-gray-300: #DCDAD4;
  --bs-gray-800: #3D3A38;
  --bs-orange: #F68A25;

  --bs-primary-rgb: 233, 62, 75;
  --bs-secondary-rgb: 246, 244, 239;
  --bs-black-rgb: 17, 17, 17;
  --bs-light-rgb: 241, 241, 240;
  --bs-dark-rgb: 33, 37, 41;

  --bs-link-color: #111;
  --bs-link-color-rgb: 255, 255, 255;
  --bs-link-decoration: underline;
  --bs-link-hover-color: #111;
  --bs-link-hover-color-rgb: 255, 255, 255;

  --bs-border-color: #191919;
  --bs-border-radius: 2rem;

  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csymbol xmlns='http://www.w3.org/2000/svg' id='plus' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19 12.998h-6v6h-2v-6H5v-2h6v-6h2v6h6z'/%3E%3C/symbol%3E");
}

body {
  letter-spacing: 0.03rem;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
}

h1.light,
.h1,
h2.light,
.h2,
h3.light,
.h3,
h4.light,
.h4,
h5.light,
.h5,
h6.light,
.h6 {
  color: var(--bs-light);
}

h1,
h2,
h3 {
  margin: 25px 0;
}

h5,
h6 {
  letter-spacing: 1px;
}

h1,
.h1 {
  font-size: 5.125rem;
}

h2,
.h2 {
  font-size: 3.6rem;
}

h3,
.h3 {
  font-size: 2.8rem;
}

h4,
.h4 {
  font-size: 1.8rem;
}

h5,
.h5 {
  font-size: 1.4rem;
}

h6,
.h6 {
  font-size: 1rem;
}

a {
  text-decoration: none;
}

.container-fluid {
  max-width: 1800px;
}

@media (min-width: 1600px) {
.container, .container-lg {
    max-width: 1530px;
  }
.container, .container-md {
    max-width: 1200px;
  }
}

.list-group-item {
  --bs-list-group-item-padding-x: 0;
  --bs-list-group-border-width: 0;
}

/* btn */
.btn {
  --bs-btn-border-radius: 0;
}

.btn-primary {
  --bs-btn-color: var(--bs-light);
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: var(--bs-light);
  --bs-btn-hover-bg: var(--bs-dark);
  --bs-btn-hover-border-color: var(--bs-dark);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: var(--bs-light);
  --bs-btn-active-bg: var(--bs-dark);
  --bs-btn-active-border-color: var(--bs-dark);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--bs-light);
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-dark.btn-bg-light {
  --bs-btn-bg: var(--bs-light);
}

.btn-group-lg>.btn, .btn-lg {
  --bs-btn-padding-y: 1rem;
  --bs-btn-padding-x: 2.8rem;
  --bs-btn-font-size: 1.25rem;
}

.btn.btn-shadow {
  box-shadow: 0px 6px 39px 0px rgba(91, 45, 42, 0.20);
}

/* text white */
.text-white {
  --heading-color: var(--bs-light);
  --bs-breadcrumb-item-active-color: var(--bs-light);
  --bs-breadcrumb-divider-color: var(--bs-light);
  --bs-link-color-rgb: var(--bs-light-rgb);
  --bs-link-hover-color-rgb: var(--bs-light-rgb);
}

.text-white .nav-link {
  --bs-nav-link-color: var(--bs-light);
  --bs-nav-link-hover-color: var(--bs-light);
  --bs-nav-link-active-color: var(--bs-light);
  --bs-navbar-active-color: var(--bs-light);
}

/* open-up */
.open-up {
  clip-path: inset(48% 34% 36% 35%);
}
.aos-animate.open-up {
  animation: 1s open-up forwards;
}

@keyframes open-up {
  0% {
    clip-path: inset(48% 34% 36% 35%);
  }

  100% {
    clip-path: inset(0% 0% 0% 0%);
  }
}

/* preloader */
.preloader {
  position: fixed;
  z-index: 99;
  background: var(--bs-dark);
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.preloader.loaded {
  height: 0;
}

/* navbar */

#header {
  z-index: 1050;
  margin: 0 !important;
}

#header-nav {
  padding-top: 20px; 
  padding-bottom: 5px;
}

.navbar.fixed-top {
  transition: background-color 0.6s ease-out;
}

.navbar {
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: #F6F4EF !important;
}

.navbar-brand img {
  width: 50px;

}

/* margin */
.my-lg-6 {
  margin-top: 4.5rem!important;
  margin-bottom: 4.5rem!important;
}
.my-lg-7 {
  margin-top: 6.5rem!important;
  margin-bottom: 6.5rem!important;
}
.my-lg-8 {
  margin-top: 8.5rem!important;
  margin-bottom: 8rem!important;
}
.my-lg-9 {
  margin-top: 10.5rem!important;
  margin-bottom: 10rem!important;
}
.my-lg-10 {
  margin-top: 12.5rem!important;
  margin-bottom: 12.5rem!important;
}
.mt-lg-0 {
  margin-top: 0rem!important;
}
.mb-lg-0 {
  margin-bottom: 0rem!important;
}

/* padding top and bottom */
.py-lg-6 {
  padding-top: 4.5rem!important;
  padding-bottom: 4.5rem!important;
}
.py-lg-7 {
  padding-top: 6.5rem!important;
  padding-bottom: 6.5rem!important;
}
.py-lg-8 {
  padding-top: 8.5rem!important;
  padding-bottom: 8rem!important;
}
.py-lg-9 {
  padding-top: 10.5rem!important;
  padding-bottom: 10.5rem!important;
}
.py-lg-10 {
  padding-top: 12.5rem!important;
  padding-bottom: 12.5rem!important;
}
.py-lg-11 {
  padding-top: 14.5rem!important;
  padding-bottom: 14.5rem!important;
}
.py-lg-12 {
  padding-top: 16.5rem!important;
  padding-bottom: 16.5rem!important;
}

/* padding left and right */
.px-lg-6 {
  padding-left: 4.5rem!important;
  padding-right: 4.5rem!important;
}
.px-lg-7 {
  padding-left: 6.5rem!important;
  padding-right: 6.5rem!important;
}
.px-lg-8 {
  padding-left: 8.5rem!important;
  padding-right: 8rem!important;
}
.px-lg-9 {
  padding-left: 10.5rem!important;
  padding-right: 10.5rem!important;
}
.px-lg-10 {
  padding-left: 12.5rem!important;
  padding-right: 12.5rem!important;
}
.px-lg-11 {
  padding-left: 14.5rem!important;
  padding-right: 14.5rem!important;
}
.px-lg-12 {
  padding-left: 16.5rem!important;
  padding-right: 16.5rem!important;
}

/* padding none */
.pt-lg-0 {
  padding-top: 0rem!important;
}
.pb-lg-0 {
  padding-bottom: 0rem!important;
}

/* - Border Radius */ 
.rounded-6 {
  border-radius: 3rem;
}
.rounded-7 {
  border-radius: 4rem;
}
.rounded-8 {
  border-radius: 5rem;
}
.rounded-9 {
  border-radius: 6rem;
}
.rounded-10 {
  border-radius: 7rem;
}
.rounded-11 {
  border-radius: 8rem;
}

/* - Font Family
------------------------------------------------------------- */ 
.heading-font {
  font-family: var(--heading-font);
}
.body-font {
  font-family: var(--bs-body-font-family);
}

/* - Display Header
------------------------------------------------------------- */ 
@media (min-width: 1200px) {
  .display-1 {
     font-size: 5rem;
  }
 }

/* - Svg Color
------------------------------------------------------------- */ 
.svg-primary {
  fill: var(--bs-primary);
  color: var(--bs-primary);
}
.svg-secondary {
  fill: var(--bs-secondary);
  color: var(--bs-secondary);
}
.svg-gray-2 {
  fill: var(--bs-gray-200);
  color: var(--bs-gray-200);
}
.svg-link-color {
  color: var(--bs-gray-300);
}
.svg-link-color:hover {
  color: var(--bs-primary);
}

/* - HEADER */ 
.offcanvas-body .navbar-nav a.nav-link.active,
.offcanvas-body .navbar-nav a.nav-link:hover {
  color: var(--bs-primary);
}

/* HERO */ 

#intro .pattern-overlay {
  bottom: 0;
}
.content-box {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.display-1 {
  color: #7d9222;
}

.display-1-highlight {
  color: #750509;
  font-weight: 500;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-social-icon {
  font-size: 2rem;
  padding-top: 8%;
  color: #750509;
  transition: 0.3s ease;
}

.hero-social-icon:hover {
  color: #7d9222;
  transform: translateY(-4px);
}

/* ABOUT */

#about .aboutme-title {
  font-family: "Big Caslon", "Libre Baskerville", serif;
  font-weight: 500;
  font-size: clamp(40px, 8vw, 80px);
  color: #750509;
  text-align: center;
  margin-bottom: 25px;
}

#about p {
  font-family: "Big Caslon", "Libre Baskerville", serif;
  font-size: 23px !important;
  line-height: 1.5;
  color: #1a1a1a;
  text-align: center;
}

@keyframes floatPaper {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

#about .magazine-bg-col {
  background-image: url('images/receipt.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 40px;
  min-height: 700px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: floatPaper 4s ease-in-out infinite;
}


#about .skills-levels-container {
  width: 100%;
  max-width: 450px; 
}

#about .skill-level-item { 
  margin-bottom: 40px; 
  width: 100%; 
}

#about .skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

#about .skill-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

#about .progress-bar-outline-transparent {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);;
  border-radius: 2px;
}

#about .progress-bar-fill-solid {
  height: 100%;
  background-color:#7d9222;
  transition: width 1s ease-in-out;
}

/* TOOLBOX */

#toolbox .aboutme-title {
  font-family: "Big Caslon", "Libre Baskerville", serif;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 75px); 
  color: #750509;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px; 
}

.cardboard-box-wrapper {
  background-image: url('images/toolbox.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 100px 120px; 
  margin: 0 auto;
  max-width: 1100px;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.2));
  position: relative;
}

.bubbles-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.bubble-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  width: 100%;
}

.tool-bubble {
  background-color: rgba(255, 255, 255, 0.1) !important; 
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.bubble-row:nth-child(even) .tool-bubble { animation-duration: 8s; animation-delay: 1s; }
.bubble-row:nth-child(3n) .tool-bubble { animation-duration: 5s; animation-delay: -2s; }

.row-wide { transform: translateX(-25px); }
.row-medium { transform: translateX(35px); }
.row-full { transform: translateX(-5px); }

.large { width: 130px; height: 130px; }
.medium { width: 100px; height: 100px; }
.small { width: 80px; height: 80px; }
.x-small { width: 60px; height: 60px; }

.tool-bubble img {
  width: 50%;
  height: auto;
  pointer-events: none;
  transition: all 0.3s ease;
}

.tool-bubble:hover img {
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .cardboard-box-wrapper { 
    background-image: url('images/toolbox-mobile.png') !important; 
    background-size: 100% 100% !important; 
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;  
    align-items: center;      
    padding: 20px;            
    width: 100%;       
    min-height: 550px; 
    
    border-radius: 15px;
    margin: 0 auto;
    transform: none !important;
  }

  .bubbles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;               
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .bubble-row { 
    display: flex;
    justify-content: center;  
    align-items: center;      
    gap: 6px !important; 
    flex-wrap: wrap; 
    width: 100%;
    transform: none !important; 
  }

  .row-wide, .row-medium, .row-full { 
    transform: none !important; 
  }

  .large { width: 70px; height: 70px; }
  .medium { width: 60px; height: 60px; }
  .small { width: 50px; height: 50px; }
  
  .tool-bubble img { width: 50%; }

  #toolbox .aboutme-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  @keyframes floatMobile {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); } /* Sube 8 píxeles */
    100% { transform: translateY(0px); }
  }

  .tool-bubble {
    animation: floatMobile 3s ease-in-out infinite;
  }

  .bubble-row:nth-child(even) .tool-bubble {
    animation-duration: 4s;
    animation-delay: 0.5s;
  }

  .bubble-row:nth-child(odd) .tool-bubble {
    animation-duration: 3.5s;
    animation-delay: -1s;
  }
}

/* PROJECTS*/ 

#projects .projects-title {
  display: block;           
  width: 100%;            
  font-family: "Big Caslon", "Libre Baskerville", serif;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 75px); 
  color: #750509;
  text-align: center;
  margin-bottom: 100px;
  letter-spacing: 1px;  
}
.card-detail {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(246, 244, 239, 0.75) !important;
  border: none !important;
  border-radius: 1rem !important;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

#projects .product-card:hover .card-detail {
  opacity: 1;
}

.card-detail .card-title a {
  color: #7d9222 !important;
  text-decoration: none;
}

/* - CONTACT */ 

.contact-title {
  font-family: "Big Caslon", "Libre Baskerville", serif;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 75px); 
  color: #750509; 
  margin-bottom: 10px;
  letter-spacing: -1px; 
}

.contact-subtitle {
  font-family: "Big Caslon", "Libre Baskerville", serif;
  font-size: 20px;
  letter-spacing: 3px;
  margin-top: 0;
}

@media (max-width: 768px) {
  .contact-title {
    font-size: 38px;
  }
  .contact-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }
}

/* - Footer
------------------------------------------------------------- */ 
#footer .pattern-overlay {
  transform: rotate(180deg);
  top: -60px;
}