body {
  transition: background-color 0.3s, color 0.3s;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: #191a19;
}
[data-bs-theme="light"] body{
  background-color: #fffafc;
}
 
h1, h2, h3, h4 {
  font-weight: 700;
  color: #fff;
}

p {
  font-weight: 400;
  color: #ccc;
}
.text-pink {
  color: #f083da !important;
}

.instagram-art {
  color: #fff !important;
}

[data-bs-theme="light"] .instagram-art {
  color: #333 !important;
}
[data-bs-theme="dark"] .card {
  background-color: #212529 !important;
  color: white;
}
[data-bs-theme="dark"] .navbar {
  background-color: #000000 !important;
  color: #fff;
}
[data-bs-theme="dark"] .navbar .nav-link,
[data-bs-theme="dark"] .navbar .navbar-brand {
  color: #fff !important;
}
[data-bs-theme="dark"] .py-5.bg-light {
  background-color: #000000 !important;
  color: #fff;
}
[data-bs-theme="dark"] .header-curve path {
  fill: #000000 !important; 
}
    [data-bs-theme="dark"] .header-curve circle,
[data-bs-theme="dark"] .header-curve rect {
  fill: #000000 !important;
}

.dark-mode body {
  background-color: #1f887d;;
  color: #fff;
}
.headerContainer {
  padding-top: 10.5rem;
  background-image: url('../img/catyogacolibri.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  height: 30rem;
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: hidden;
  background-position: 0px -40rem;
}
.header-curve {
  pointer-events: none;
  display:block; 
  width:100%; 
  height:95px; 
  position:absolute; 
  bottom:0; 
  left:0;
}
.card {
  transition: background-color 0.3s, color 0.3s;
}
.card-date{
  color: #388719;
}
.cardsTabs{
  padding: 1rem;
}
.carousel-inner {
  min-height: 600px; 
  max-height: 600px;
}

/* .carousel-item img {
  max-height: 380px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  display: block;
  border-radius: 200px;
} */

.card-img-top {
  border-radius: 220px !important;
  max-height: 400px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}
  .carousel-control-prev,
.carousel-control-next {
  width: 7%;
   top: 50%;
  transform: translateY(-50%);
}
.card:hover {
  transform: scale(1.02);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.card-body a{
  text-decoration: none;
}

a:hover {
  color: #6c63ff;
  text-decoration: none;
}

section .carousel .carousel-control-prev {
  left: -8.5% !important;
}

section .carousel .carousel-control-next {
  right: -8.5% !important;
}
.headerContainer .container{
  width: 45%;
  margin-top: 10rem;
}
h1.display-4 {
  font-weight: bold;
  color: white;
  /* background-color: #212529; */
  /* opacity: 0.5; */
}
p.lead{
  font-size: 2rem;
  font-weight: bold;
}
.colorWhite{
  color: white;
}
.tech-diagram {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  min-height: 250px;
}
.text-front{
  color: rgb(120, 105, 255);
}
.text-back{
  color: #198754;
}
.diagram-divider {
  width: 4px;
  height: 200px;
  background: linear-gradient(180deg, #0d6efd 0%, #198754 100%);
  border-radius: 2px;
}
.cvs{
  width: 27%;
  justify-content: space-between;
}
.cvs a.btn-secondary:hover{
  color: #ffff;
}
ul.contactList li{
  text-decoration: none;
  list-style-type: none;
}
ul.contactList li a{
  text-decoration: none;
}

/* Modo claro pastel */
[data-bs-theme="light"] .lead{
  /* background: #fb71bd;
  opacity: 0.8; */
  color: #5ef759;;
}

[data-bs-theme="light"] .headerContainer{
  background-image: url('../img/catartesmolly.jpg');
  background-position: 0px -32rem;
  height: 50rem;
}
.headerContainer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 33, 33, 0.39); 
  z-index: 1;
}

.headerContainer > * {
  position: relative;
  z-index: 2;
}
[data-bs-theme="light"] .uxuinone{
  /* display: block;
  color: #0f7eb5; */
  display: block;
  color: #fff;
  background: #ff95bde0;
}

[data-bs-theme="light"] h2, h4 {
  color: #70bcff;
}
[data-bs-theme="light"] p {
  color: #282f35;
}

[data-bs-theme="light"] .card {
  background-color: #ffffff !important;
  /* border: 1px solid #ffd6d6;
  box-shadow: 0 4px 12px rgba(255, 192, 203, 0.3); */
  color: #333;
}

[data-bs-theme="light"] .card-title {
  color: #ff6969;
}

[data-bs-theme="light"] .btn-secondary {
  background-color: #ffb6b6;
  border: none;
}

[data-bs-theme="light"] .btn-secondary:hover {
  background-color: #f984a1;
  color: #ffff;
}


[data-bs-theme="light"] section {
  background-color: #fffafc;
}

[data-bs-theme="light"] footer {
  background-color: #ffe4e1;
  color: #333;
}
/* [data-bs-theme="light"]
.carousel-control-prev,
[data-bs-theme="light"]
.carousel-control-next{
  background: #f083da;
  width: 50px;
  height: 50px;
  border-radius: 30px;
} */

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) grayscale(100%);
}
[data-bs-theme="light"] #education{
  background-color: rgb(155, 156, 247) !important;
  width: 80%;
  margin: auto;
}


@media (max-width: 767px) {
  .headerContainer .container{
    width: 100%;
  }
  .diagram-divider {
    width: 60%;
    height: 4px;
    margin: 2rem auto;
    background: linear-gradient(90deg, #0d6efd 0%, #198754 100%);
  }
  .contactList li{
    list-style: none;
  }
  .contactList li a{
    text-decoration: none;
    color: black;
  }
  .contactList li a:hover{
    text-decoration: none;
    color: #007bff;
  }
  .carousel-item .row > [class^="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .carousel-inner {
    padding: 0 1rem;
    max-height: max-content;
  }
  .container{
    max-height: max-content;
  }

  .card img {
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }
  .card {
    margin-bottom: 1rem;
  }
  .contactList li {
  font-size: 0.95rem;
  word-break: break-word;
  }
  .cvs{
    width: 90%;
  }

  footer p {
    font-size: 0.85rem;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  /* Header */
  .display-4 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.25rem;
  }

  /* Navbar */
  .navbar-brand {
    font-size: 1.5rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 8px 16px;
  }

  /* Carrusel de proyectos */
  .carousel-item .row > div {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* .card img {
    max-height: 250px;
    object-fit: cover;
    border-radius: 250px;
  } */
  .card-title {
    font-size: 1.2rem;
  }

  .card-body {
    padding: 1.2rem;
  }
  .carousel-inner{
    max-height: max-content;
  }

  /* Secciones */
  section {
    padding: 3rem 2rem;
  }

  /* Contacto y footer */
  .contactList li {
    font-size: 1rem;
  }
  .cvs{
    width: 45%;
  }

  footer p {
    font-size: 0.9rem;
  }
}

/* Education Section Styles */
.education-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ffd93d);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.education-card:hover::before {
  opacity: 1;
}

.education-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-container {
  position: relative;
  display: inline-block;
}

.education-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.education-card:hover .education-icon::before {
  width: 100%;
  height: 100%;
}

.education-card:hover .education-icon {
  transform: scale(1.1);
}

/* Light theme adjustments for education section */
[data-bs-theme="light"] .education-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .education-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .education-card h4 {
  color: #333 !important;
}

[data-bs-theme="light"] .education-card .text-light {
  color: #666 !important;
}

[data-bs-theme="light"] .education-icon {
  background: rgba(0, 0, 0, 0.05);
}

/* Training Section Styles */
.training-timeline {
  position: relative;
}

.training-card {
  background: rgba(5, 19, 18, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #4ecdc4;
}

.training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.training-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.training-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.circle-badge {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #502071, #44a08d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 15px 35px rgba(78, 205, 196, 0.3);
  transition: all 0.3s ease;
}
[data-bs-theme="light"] .circle-badge{
  background: linear-gradient(135deg, #fdd8f5, #44a0a0);
}

.circle-badge:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 20px 40px rgba(78, 205, 196, 0.4);
}

/* Skills Section Styles */
.skills-category {
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skills-category:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.skill-category-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #ff6bf6, #4ecdc4);
  border-radius: 10px;
  transition: width 2s ease-in-out;
  width: 0%;
}
h2.textHabilidades{
  color: white;
}
[data-bs-theme="light"] h2.textHabilidades{
  color: rgb(87, 41, 214);
}

.skill-progress[data-skill="95"] { width: 95%; }
.skill-progress[data-skill="90"] { width: 90%; }
.skill-progress[data-skill="85"] { width: 85%; }
.skill-progress[data-skill="88"] { width: 88%; }

.skill-badge {
  background: #717a9d;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.professional-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pro-skill-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.pro-skill-item:hover .pro-skill-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

/* Light theme adjustments */
[data-bs-theme="light"] .training-card {
  background: rgba(255, 255, 255, 1);
  border-left-color: #4ecdc4;
}

[data-bs-theme="light"] .skills-category {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .skills-category h4 {
  color: #333 !important;
}

[data-bs-theme="light"] .skills-category .text-light {
  color: #666 !important;
}

[data-bs-theme="light"] .skill-category-icon,
[data-bs-theme="light"] .pro-skill-icon {
  background: rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .professional-skills {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .training-image {
    height: 150px;
    margin-bottom: 2rem;
  }
  
  .circle-badge {
    width: 100px;
    height: 100px;
  }
  
  .training-card {
    margin-bottom: 2rem;
  }
}
/* responsive */
/* moviles pequeños */
@media (max-width: 480px){
  .headerContainer{
    height: 100%;
    background-position: 0%;
  }
  [data-bs-theme="light"] .headerContainer{
    height: 100%;
    background-position: -160px 0%;
  }
}
/* tabletas */
@media (min-width: 481px)  and (max-width: 768px) {
  
}
/* normal laptop */
@media (min-width: 769px) and (max-width: 1024px){
  .headerContainer{
    background-position: 0px -40rem;
    height: 30rem;
  }
}
/* computadoras de escritorio */
@media (min-width: 1025px) and (max-width: 1200px){
  .headerContainer{
    background-position: 0px -40rem;
    height: 30rem;
  }
}
/* pantallas poco más grandes que el promedio */
@media (min-width: 1201px) and (max-width: 1919px) {
  .headerContainer{
    background-position: 0px -40rem;
    height: 30rem;
  }
  [data-bs-theme="light"] .headerContainer{
    background-position: 0px -25rem;
    height: 30rem;
  }
   .headerContainer .container {
    width: 45%;
    margin-top: -5rem;
  }
}
/* pantallas hd XL */
@media (min-width: 1920px) {
  .headerContainer{
    background-position: 0px -55rem;
    height: 50rem;
  }
  [data-bs-theme="light"] .headerContainer{
    background-position: 0px -32rem;
    height: 50rem;
  }
  [data-bs-theme="light"] .headerContainer .container {
    width: 45%;
    margin-top: 23rem;
  }
}