:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /* Green palette - Professional and modern */
  /* HSL color mode */
  --hue-color: 142;
  --first-color: hsl(var(--hue-color), 76%, 36%);
  --second-color: hsl(var(--hue-color), 72%, 29%);
  --accent-color: hsl(var(--hue-color), 84%, 45%);
  --dark-color: hsl(var(--hue-color), 65%, 25%);
  --light-color: hsl(var(--hue-color), 40%, 96%);
  /*===== Fuente y tipografia =====*/
  --body-font: 'Roboto', sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: #2c3e50;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #2c3e50;
}

a {
  color: var(--first-color);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  text-decoration: none;
  color: var(--accent-color);
  transform: translateY(-1px);
}
a:focus {
  text-decoration: none;
  outline: none;
}

p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.wrapper {
  background: #fff;
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-wrapper {
  background: linear-gradient(135deg, var(--first-color) 0%, var(--second-color) 100%);
  position: absolute;
  right: 0;
  width: 320px;
  height: 100%;
  min-height: 800px;
  color: #fff;
  padding: 0;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-wrapper a {
  color: #fff;
  transition: all 0.3s ease;
}

.sidebar-wrapper a:hover {
  color: #fff;
  transform: translateX(5px);
}

.sidebar-wrapper .profile-container {
  padding: 40px 30px;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sidebar-wrapper .profile-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.sidebar-wrapper .profile-container:hover::before {
  transform: translateX(100%);
}

.sidebar-wrapper .name {
  font-size: 36px;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInDown 0.8s ease-out 0.2s both;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-wrapper .tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  animation: slideInDown 0.8s ease-out 0.4s both;
}

.sidebar-wrapper .profile {
  margin-bottom: 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  animation: zoomIn 0.8s ease-out 0.6s both;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sidebar-wrapper .profile:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.sidebar-wrapper .contact-list .svg-inline--fa {
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.sidebar-wrapper .contact-list li {
  margin-bottom: 18px;
  transition: all 0.3s ease;
  padding: 8px 0;
  border-radius: 8px;
}

.sidebar-wrapper .contact-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}

.sidebar-wrapper .contact-list li:hover .svg-inline--fa {
  transform: scale(1.2);
}

.sidebar-wrapper .contact-list li:last-child {
  margin-bottom: 0;
}

.sidebar-wrapper .contact-list .email .svg-inline--fa {
  font-size: 16px;
}

.sidebar-wrapper .container-block {
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-wrapper .container-block:last-child {
  border-bottom: none;
}

.sidebar-wrapper .container-block-title {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-wrapper .container-block-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.sidebar-wrapper .degree {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: 600;
}

.sidebar-wrapper .education-container .item {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-wrapper .education-container .item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar-wrapper .education-container .item:last-child {
  margin-bottom: 0;
}

.sidebar-wrapper .education-container .meta {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 5px;
  margin-top: 0;
  font-size: 14px;
}

.sidebar-wrapper .education-container .time {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 0px;
  font-size: 13px;
}

.sidebar-wrapper .languages-container .lang-desc {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-wrapper .languages-list {
  margin-bottom: 0;
}

.sidebar-wrapper .languages-list li {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sidebar-wrapper .languages-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar-wrapper .languages-list li:last-child {
  margin-bottom: 0;
}

.sidebar-wrapper .interests-list {
  margin-bottom: 0;
}

.sidebar-wrapper .interests-list li {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
  margin-right: 8px;
}

.sidebar-wrapper .interests-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.sidebar-wrapper .interests-list li:last-child {
  margin-bottom: 0;
}

.main-wrapper {
  background: #fff;
  padding: 60px;
  padding-right: 340px;
  min-height: 800px;
}

.main-wrapper .section-title {
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 700;
  color: var(--first-color);
  position: relative;
  margin-top: 0;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--light-color);
}

.main-wrapper .section-title .icon-holder {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  display: inline-block;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--second-color) 100%);
  text-align: center;
  font-size: 18px;
  position: relative;
  top: -2px;
  padding-top: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.main-wrapper .section-title:hover .icon-holder {
  transform: rotate(360deg) scale(1.1);
}

.main-wrapper .section-title .icon-holder .svg-inline--fa {
  font-size: 16px;
  margin-top: 2px;
}

.main-wrapper .section {
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.main-wrapper .experiences-section .item {
  margin-bottom: 40px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid var(--first-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-wrapper .experiences-section .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--accent-color);
}

.main-wrapper .upper-row {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.main-wrapper .job-title {
  color: var(--dark-color);
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
}

.main-wrapper .time {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--first-color);
  font-weight: 600;
  background: var(--light-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.main-wrapper .company {
  margin-bottom: 15px;
  color: var(--first-color);
  font-weight: 500;
}

.url {
  margin-bottom: 10px;
  color: var(--first-color);
  font-size: 13px;
}

.main-wrapper .project-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.main-wrapper .project-tagline {
  color: #666;
  font-style: italic;
}

.main-wrapper .projects-section .intro {
  margin-bottom: 30px;
  font-size: 16px;
  color: #666;
}

.main-wrapper .projects-section .item {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid var(--first-color);
  transition: all 0.3s ease;
}

.main-wrapper .projects-section .item:hover {
  transform: translateX(5px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skillset .item {
  margin-bottom: 25px;
  overflow: hidden;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skillset .item:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.skillset .level-title {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--dark-color);
  position: relative;
  padding-left: 20px;
}

.skillset .level-title::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--first-color);
  font-weight: bold;
}

.footer {
  padding: 40px;
  padding-top: 60px;
  background: var(--light-color);
  text-align: center;
}

.footer .copyright {
  line-height: 1.6;
  color: var(--first-color);
  font-size: 14px;
  font-weight: 500;
}

.footer .fa-heart {
  color: #dc2626;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Download button styling */
.download-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--second-color) 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.download-btn img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

/* Back button styling */
.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--second-color) 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 20px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}

.back-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
}

.back-btn i {
  margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .wrapper {
    margin: 1rem;
    border-radius: 10px;
  }
  
  .sidebar-wrapper {
    position: static;
    width: 100%;
    min-height: auto;
  }
  
  .main-wrapper {
    padding: 30px;
    padding-right: 30px;
  }
  
  .main-wrapper .time {
    position: static;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .main-wrapper .upper-row {
    margin-bottom: 10px;
  }
  
  .download-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .download-btn img {
    width: 25px;
    height: 25px;
  }
  
  .back-btn {
    top: 15px;
    left: 15px;
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 767.98px) {
  .wrapper {
    margin: 0.5rem;
  }
  
  .main-wrapper {
    padding: 20px;
  }
  
  .sidebar-wrapper .profile-container {
    padding: 30px 20px;
  }
  
  .sidebar-wrapper .container-block {
    padding: 20px;
  }
  
  .main-wrapper .section-title {
    font-size: 20px;
  }
  
  .main-wrapper .experiences-section .item {
    padding: 20px;
  }
  
  .skillset .item {
    padding: 12px;
  }
}

@media (min-width: 992px) {
  .skillset .level-title {
    display: block;
    margin-bottom: 10px;
  }
}
