 :root {
     --primary-100: #0082fb;
     --primary-200: #4da3ff;
     --primary-300: #99cbff;
     --accent-100: #00C6FF;
     --accent-200: #0072ff;
     --text-100: #333333;
     --text-200: #5c5c5c;
     --bg-100: #FFFFFF;
     --bg-200: #f5f5f5;
     --bg-300: #cccccc;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Poppins', sans-serif;
 }

 body {
     background-color: var(--bg-100);
     color: var(--text-100);
     overflow-x: hidden;
 }

 section {
     padding: 80px 0;
 }

 h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
     font-weight: 700;
 }

 .marked {
     color: var(--primary-100);
     position: relative;
     display: inline-block;
 }

 .marked::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 100%;
     height: 4px;
     background: linear-gradient(90deg, var(--primary-100), var(--accent-100));
     border-radius: 2px;
 }

 .marked-inverse {
     color: var(--primary-300);
     position: relative;
     display: inline-block;
 }

 .marked-inverse::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 100%;
     height: 4px;
     background: linear-gradient(90deg, var(--primary-300), var(--bg-300));
     border-radius: 2px;
 }

 /* Navbar lateral */
 #sideNavButton {
     top: 20px;
     right: 20px;
     width: 50px;
     height: 50px;
     background: var(--primary-100);
     color: white;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     z-index: 1000;
     box-shadow: 0 4px 12px rgba(0, 130, 251, 0.3);
     transition: all 0.3s ease;
 }

 #sideNavButton:hover {
     transform: scale(1.05);
     background: var(--accent-200);
 }

 .side-nav {
     position: fixed;
     top: 0;
     right: -300px;
     width: 300px;
     height: 100vh;
     background: var(--bg-200);
     z-index: 1001;
     transition: right 0.3s ease;
     padding: 20px;
     box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
     display: flex;
     flex-direction: column;
 }

 .side-nav.active {
     right: 0;
 }

 .close-btn {
     align-self: flex-end;
     font-size: 1.5rem;
     cursor: pointer;
     color: var(--text-100);
 }

 .nav-item {
     background: none;
     border: none;
     text-align: left;
     padding: 12px 0;
     font-size: 1.1rem;
     color: var(--text-100);
     cursor: pointer;
     transition: all 0.3s ease;
     border-bottom: 1px solid var(--bg-300);
 }

 .nav-item:hover {
     color: var(--primary-100);
     transform: translateX(5px);
 }

 .icon-nav {
     display: flex;
     justify-content: center;
     gap: 15px;
     margin-top: auto;
     padding-bottom: 20px;
 }

 .icon-nav a {
     color: var(--text-100);
     font-size: 1.5rem;
     transition: all 0.3s ease;
 }

 .icon-nav a:hover {
     color: var(--primary-100);
     transform: translateY(-3px);
 }

 /* Hero Section */
 #inicio {
     min-height: 100vh;
     display: flex;
     align-items: center;
     position: relative;
     overflow: hidden;
     background: linear-gradient(135deg, var(--bg-100) 0%, var(--bg-200) 100%);
 }

 #inicio::before {
     content: '';
     position: absolute;
     top: -50%;
     right: -50%;
     width: 100%;
     height: 200%;
     background: radial-gradient(circle, var(--primary-300) 0%, transparent 70%);
     opacity: 0.2;
     z-index: 0;
 }

 #inicio .container {
     position: relative;
     z-index: 1;
 }

 .text-content h1 {
     font-size: 3.5rem;
     margin-bottom: 1rem;
     background: linear-gradient(90deg, var(--primary-100), var(--accent-200));
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 .text-content h2 {
     font-size: 1.8rem;
     font-weight: 500;
     margin-bottom: 1.5rem;
     color: var(--text-200);
 }

 .trem-badge {
     display: inline-block;
     background: linear-gradient(90deg, var(--primary-100), var(--accent-200));
     color: white;
     padding: 8px 16px;
     border-radius: 30px;
     font-size: 0.9rem;
     margin-top: 1rem;
     box-shadow: 0 4px 10px rgba(0, 130, 251, 0.3);
 }

 .btn-primary {
     background: linear-gradient(90deg, var(--primary-100), var(--accent-200));
     border: none;
     padding: 12px 30px;
     border-radius: 30px;
     font-weight: 500;
     transition: all 0.3s ease;
     box-shadow: 0 4px 15px rgba(0, 130, 251, 0.3);
 }

 .btn-primary:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 20px rgba(0, 130, 251, 0.4);
 }

 .img-content {
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .img-content img {
     max-width: 100%;
     border-radius: 20px;
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
     transition: all 0.5s ease;
 }

 .img-content img:hover {
     transform: scale(1.03);
 }

 /* Proyectos Section */
 #proyectos {
     background-color: var(--bg-200);
 }

 #proyectos h2 {
     font-size: 2.5rem;
     margin-bottom: 1rem;
 }

 #proyectos h4 {
     font-size: 1.5rem;
     margin-bottom: 2rem;
     color: var(--text-200);
 }

 .card {
     border: none;
     border-radius: 15px;
     overflow: hidden;
     transition: all 0.3s ease;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
 }

 .card:hover {
     transform: translateY(-10px);
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
 }

 .card-img-top {
     height: 200px;
     object-fit: cover;
 }

 .go-corner {
     position: absolute;
     top: 0;
     right: 0;
     background: linear-gradient(90deg, var(--primary-100), var(--accent-200));
     width: 40px;
     height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 0 0 0 15px;
     color: white;
     transition: all 0.3s ease;
 }

 .card:hover .go-corner {
     width: 50px;
     height: 50px;
 }

 /* Timeline Section */
 #timeline {
     position: relative;
 }

 .timeline {
     position: relative;
     max-width: 1200px;
     margin: 100px auto;
 }

 .timeline::after {
     content: '';
     position: absolute;
     width: 6px;
     background: linear-gradient(to bottom, var(--primary-100), var(--accent-200));
     top: 0;
     bottom: 0;
     left: 50%;
     margin-left: -3px;
     border-radius: 10px;
 }

 .contentBox {
     padding: 10px 40px;
     position: relative;
     width: 50%;
     animation: fadedown 1s forwards;
     opacity: 0;
 }

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

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .left-contentBox {
     left: 0;
 }

 .right-contentBox {
     left: 50%;
 }

 .text-box {
     padding: 20px 30px;
     background: white;
     border-radius: 10px;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     position: relative;
 }

 .text-box h3 {
     color: var(--primary-100);
     margin-bottom: 10px;
 }

 .text-box small {
     display: inline-block;
     margin-bottom: 15px;
     color: var(--text-200);
     font-weight: 500;
 }

 .left-contentBox-arrow {
     height: 0;
     width: 0;
     position: absolute;
     top: 28px;
     z-index: 1;
     right: -15px;
     border-top: 15px solid transparent;
     border-bottom: 15px solid transparent;
     border-left: 15px solid white;
 }

 .right-contentBox-arrow {
     height: 0;
     width: 0;
     position: absolute;
     top: 28px;
     z-index: 1;
     left: -15px;
     border-top: 15px solid transparent;
     border-bottom: 15px solid transparent;
     border-right: 15px solid white;
 }

 /* Habilidades Section */
 #habilidades {
     background-color: var(--bg-200);
 }

 .skills {
     background: white;
     padding: 30px;
     border-radius: 15px;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
     transition: all 0.3s ease;
 }

 .skills-block {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     align-items: center;
 }

 .skills:hover {
     transform: translateY(-5px);
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
 }

 .skills h3 {
     color: var(--primary-100);
     margin-bottom: 20px;
     text-align: center;
 }

 .skills .icon {
     font-size: 50px;
     margin: 10px;
 }

 .icon {
     font-size: 3rem;
     margin: 0 15px 15px 0;
     color: var(--text-200);
     transition: all 0.3s ease;
     display: inline-block;
 }

 .icon:hover {
     color: var(--primary-100);
     transform: scale(1.2);
 }

 /* Sobre Mi Section */
 #sobremi p {
     font-size: 1.1rem;
     line-height: 1.8;
     text-align: justify;
 }

 /* Reseñas Section */
 /* Sección reseñas */
 #reseñas {
     padding: 80px 20px;
     background: #f9f9f9;
 }

 #reseñas h4 {
     font-size: 1.2rem;
     color: var(--text-200);
     margin-bottom: 50px;
 }

 /* Tarjeta de testimonio */
 .testimonial-card {
     background: white;
     border-radius: 15px;
     padding: 30px 25px;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
     max-width: 600px;
     margin: auto;
     text-align: center;
     transition: all 0.3s ease;
     justify-self: center;
 }

 .testimonial-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
 }

 .testimonial-card p {
     font-size: 1rem;
     color: var(--text-200);
     margin-bottom: 20px;
     line-height: 1.6;
 }

 .testimonial-card .author {
     font-weight: bold;
     color: var(--primary-100);
     font-size: 1.1rem;
 }

 /* Swiper */
 #reseñas .swiper {
     min-height: 380px;
 }

 #reseñas,
 #reseñas .container {
     height: auto;
 }


 .swiper-wrapper {
     display: flex !important;
     align-items: center !important;
 }

 .swiper-slide {
     display: flex;
     justify-content: center;
     align-items: center;
 }

 /* Flechas */
 .swiper-button-next,
 .swiper-button-prev {
     color: var(--primary-100);
     transition: 0.3s;
 }

 .swiper-button-next:hover,
 .swiper-button-prev:hover {
     color: var(--primary-200);
 }

 /* Dots */
 .swiper-pagination-bullet {
     background: var(--text-200);
     opacity: 0.5;
 }

 .swiper-pagination-bullet-active {
     background: var(--primary-100);
     opacity: 1;
 }

 .testimonial-name {
     font-weight: 600;
     color: var(--text-100);
     margin-bottom: 5px;
 }

 .testimonial-role {
     color: var(--text-200);
     font-size: 0.9rem;
 }

 .testimonial-text {
     font-style: italic;
     color: var(--text-200);
     line-height: 1.6;
     position: relative;
     padding: 0 10px;
 }

 .rating {
     color: #FFD700;
     margin-top: 15px;
 }

 /* Contacto Section */
 .redes {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 20px;
 }

 .glass {
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
     border-radius: 15px;
     padding: 20px;
     width: 180px;
     height: 200px;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     transition: all 0.3s ease;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.2);
     position: relative;
     overflow: hidden;
 }

 .glass::before {
     content: attr(data-text);
     position: absolute;
     bottom: 15px;
     font-size: 0.9rem;
     color: var(--text-100);
     font-weight: 500;
 }

 .glass:hover {
     transform: translateY(-10px) rotate(var(--r));
     box-shadow: 0 15px 30px rgba(0, 130, 251, 0.2);
     background: linear-gradient(135deg, rgba(0, 130, 251, 0.1), rgba(0, 114, 255, 0.1));
 }

 .glass a {
     font-size: 3rem;
     color: var(--primary-100);
     transition: all 0.3s ease;
 }

 .glass:hover a {
     color: var(--accent-200);
     transform: scale(1.2);
 }

 .rotating-text {
     --rt-height: 2.4rem;
     display: inline-block;
     position: relative;
     overflow: hidden;
     height: auto;
     /* en vez de height fijo */
     min-height: 40px;
     /* para evitar que brinque mucho cuando cambie de texto */
     line-height: var(--rt-height);
     vertical-align: middle;
     width: 100%;
     text-align: left;
 }

 .rotating-text span {
     display: block;
     position: absolute;
     left: 0;
     right: 0;
     top: 0;
     opacity: 0;
     transform: translateY(100%);
     animation: rotateText 9s ease-in-out infinite;
     white-space: nowrap;
 }

 .rotating-text span:nth-child(1) {
     animation-delay: 0s;
 }

 .rotating-text span:nth-child(2) {
     animation-delay: 3s;
 }

 .rotating-text span:nth-child(3) {
     animation-delay: 6s;
 }

 @keyframes rotateText {
     0% {
         opacity: 0;
         transform: translateY(100%);
     }

     6% {
         opacity: 1;
         transform: translateY(0%);
     }

     33% {
         opacity: 1;
         transform: translateY(0%);
     }

     39% {
         opacity: 0;
         transform: translateY(-100%);
     }

     100% {
         opacity: 0;
         transform: translateY(-100%);
     }
 }

 /* Footer */
 #piepagina {
     background: linear-gradient(90deg, var(--primary-100), var(--accent-200));
     color: white;
     padding: 30px 0;
 }

 #sobremi img {
     display: none;
     width: 100%;
     max-width: 400px;
     border-radius: 12px;
     opacity: 0;
     transform: scale(0.9);
     transition: all 1s ease;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
     margin: 0 auto;
 }

 #sobremi img.visible {
     opacity: 1;
     transform: scale(1);
 }

 /* Promo */
 .promo-toast {
     background: url('/assets/navidad.png') no-repeat center/cover;
     color: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
     animation: slideUp 0.8s ease-out forwards;
     opacity: 0;
 }

 .promo-header {
     background: transparent;
     color: #fff;
     border-bottom: none;
 }

 /* Animación */
 @keyframes slideUp {
     from {
         transform: translateY(40px);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 /* Responsive */

 @media screen and (max-width: 1200px) {
     #inicio h2 {
         font-size: 1.6rem;
     }
 }

 @media screen and (max-width: 991px) {

     #sobremi img {
         display: block;
     }

     .sobremi-text {
         max-height: 200px;
         overflow: hidden;
         position: relative;
     }

     .sobremi-text.expanded {
         max-height: none;
     }

     /* efecto gradiente abajo para indicar más texto */
     .sobremi-text:not(.expanded)::after {
         content: "";
         position: absolute;
         bottom: 0;
         left: 0;
         width: 100%;
         height: 60px;
         background: linear-gradient(to top, white, transparent);
     }

     .img-content {
         display: none;
     }

     .rotating-text {
         text-align: center;
     }

     #yo {
         display: block;
     }
 }

 @media screen and (max-width: 768px) {
     .timeline::after {
         left: 31px;
     }

     .contentBox {
         width: 100%;
         padding-left: 80px;
         padding-right: 20px;
     }

     .right-contentBox {
         left: 0;
     }

     .left-contentBox-arrow,
     .right-contentBox-arrow {
         border-right: 15px solid var(--primary-100);
         border-left: 0;
         left: -15px;
     }

     h1 {
         font-size: 3.3rem;
     }
 }

 @media screen and (max-width: 620px) {
     .redes .glass {
         margin-top: 10px;
         margin-bottom: 10px;
         width: 140px;
         height: 160px;
     }

     .redes {
         flex-wrap: wrap;
     }

     .rotating-text {
         height: auto;
         min-height: 100px;
     }

     .rotating-text span {
         white-space: normal;
         display: inline-block;
         text-align: center;
     }
 }

 @media screen and (max-width: 552px) {
     .redes .glass {
         width: 100px;
         height: 120px;
     }

     h1 {
         font-size: 1.8rem;
     }

     #sobremi p {
         text-align: justify;
     }

     #timeline h3 {
         font-size: 1rem;
     }
 }

 @media screen and (max-width: 385px) {
     h1 {
         font-size: 2rem;
     }

     .text-content h1 {
         font-size: 3rem;
     }

     .trem-badge {
         font-size: .8rem;
     }

     h3 {
         font-size: 1.5rem;
     }
 }

 @media screen and (max-width: 305px) {
     .rotating-text {
         height: auto;
         min-height: 120px;
     }
 }