body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #091c47;
    overflow-x: hidden;
    overflow-y: auto;
}

.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    width: 90%;
    min-height: auto;
}

.text-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex: 1;
}

.image-side {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.top-text {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.main-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bottom-text {
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    margin-top: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 500px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.icon-container {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

.icon-container svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.4));
}


/* VARIABLES DEL EFECTO */
:root {
  --vhs-noise: url("https://i.gyazo.com/a26366e538851a5c569ff648e99b7fd4.png");
  --vhs-glitch: url("https://64.media.tumblr.com/da60c13b478dda09ab90c27e880983b8/tumblr_nd4pwdPKdc1tun3l0o1_1280.gifv");
}

/* CONTENEDOR BASE */
.vhs {
  position: relative;
  overflow: hidden;
}

/* RUIDO CONSTANTE */
.vhs::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--vhs-noise);
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

/* DISTORSIÓN VHS (HOVER o ANIMADA) */
.vhs::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--vhs-glitch);
  background-size: cover;
  background-position: center;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s;
}

/* ACTIVA EL EFECTO */
.vhs::after {
  opacity: 0.6;
}

:root {
  --backgroundColor: rgba(255, 244, 204, 1);
  --colorShadeA: rgb(179, 154, 0);   /* amarillo oscuro */
  --colorShadeB: rgb(204, 176, 26);  /* amarillo medio */
  --colorShadeC: rgb(229, 202, 77);  /* amarillo base */
  --colorShadeD: rgb(245, 226, 143); /* amarillo claro */
  --colorShadeE: rgb(255, 244, 204); 
}

button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--colorShadeA);
  font-weight: 700;
  text-transform: uppercase;
}

button.big-button {
  margin-top: 0;
  margin-bottom: 0;
  padding: 1em 2em;
  border: 2px solid var(--colorShadeA);
  border-radius: 1em;
  background: var(--colorShadeE);
  transform-style: preserve-3d;
  transition: all 175ms cubic-bezier(0, 0, 1, 1);
}
button.big-button::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--colorShadeC);
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--colorShadeB), 0 0.75em 0 0 var(--colorShadeA);
  transform: translate3d(0, 0.75em, -1em);
  transition: all 175ms cubic-bezier(0, 0, 1, 1);
}

button.big-button:hover {
  background: var(--colorShadeD);
  transform: translate(0, 0.375em);
}

button.big-button:hover::before {
  transform: translate3d(0, 0.75em, -1em);
}

button.big-button:active {
  transform: translate(0em, 0.75em);
}

button.big-button:active::before {
  transform: translate3d(0, 0, -1em);

  box-shadow: 0 0 0 2px var(--colorShadeB), 0 0.25em 0 0 var(--colorShadeB);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .text-side {
        align-items: center;
        text-align: center;
    }

    .image-side {
        justify-content: center;
    }
    
    .main-title {
        font-size: 5rem;
    }
    
    .bottom-text {
        font-size: 1.2rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .icon-container {
        width: 250px;
        height: 250px;
    }
}

.info-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #091c47; /* Un tono ligeramente diferente para distinguir */
    color: #ffffff;
}

.info-section h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    height: 100vh; /* Ocupa exactamente toda la altura de la pantalla */
    justify-content: flex-start; /* Alinea el contenido arriba */
    padding-top: 5vh; /* Empuja el contenido hacia abajo pero manteniéndolo en la parte superior */
    position: relative; /* Para posicionar los botones absolutamente */
    box-sizing: border-box; /* Asegura que el padding no aumente el tamaño total */
}

.section-text {
    font-size: 1.2rem; /* Letra aumentada */
    line-height: 1.6;
    color: #ffffff;
    max-width: 900px;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Estilos específicos para botones de navegación más pequeños */
button.nav-button {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.8em 1.5em; /* Padding reducido */
    border: 2px solid var(--colorShadeA);
    border-radius: 0.8em;
    background: var(--colorShadeE);
    transform-style: preserve-3d;
    transition: all 175ms cubic-bezier(0, 0, 1, 1);
    font-size: 1.2rem; /* Fuente más pequeña */
}

button.nav-button::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--colorShadeC);
    border-radius: inherit;
    box-shadow: 0 0 0 2px var(--colorShadeB), 0 0.75em 0 0 var(--colorShadeA);
    transform: translate3d(0, 0.75em, -1em);
    transition: all 175ms cubic-bezier(0, 0, 1, 1);
}

button.nav-button:hover {
    background: var(--colorShadeD);
    transform: translate(0, 0.375em);
}

button.nav-button:hover::before {
    transform: translate3d(0, 0.75em, -1em);
}

button.nav-button:active {
    transform: translate(0em, 0.75em);
}

button.nav-button:active::before {
    transform: translate3d(0, 0, -1em);
    box-shadow: 0 0 0 2px var(--colorShadeB), 0 0.25em 0 0 var(--colorShadeB);
}

.navigation-buttons {
    display: flex;
    gap: 2rem;
    position: absolute;
    bottom: 3rem; /* Posición fija abajo */
    width: 100%;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Estilos para Section 2 - Experiencia */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
}

.experience-card {
    background-color: #0f224a; /* Azul oscuro */
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 5px solid #FFD700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: left;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    background-color: #132b5e; /* Un poco más claro al hacer hover */
}

.card-header {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-title {
    color: #33C3F0; /* Azul claro estilo cyan */
    font-weight: 700;
}

.separator {
    color: #ccc;
}

.company {
    color: #ccc;
    font-weight: 400;
}

.card-date {
    font-style: italic;
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-description {
    color: #e6f1ff;
    line-height: 1.5;
    font-size: 1rem;
}

.highlight {
    color: #FFD700;
    font-weight: 400;
}

.highlight-bold {
    color: #FFD700;
    font-weight: 700;
}

/* Estilos para Section 3 - Sliding Card Carousel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 60px; /* Espacio para las flechas */
    box-sizing: border-box;
}

.carousel-mask {
    width: 100%;
    overflow: hidden; /* Aquí es donde ocurre el recorte de las tarjetas */
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.card {
    position: relative;
    flex: 0 0 calc(33.333% - 20px); /* 3 tarjetas por fila con espacio */
    height: 450px;
    margin: 0 10px;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    opacity: 1;
    z-index: 1;
}

.card.active, .card.prev, .card.next {
    /* Resetear estilos antiguos */
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Botones del carrusel */
.carousel-btn {
    /* Estilos base heredados de .nav-button */
    position: absolute;
    top: 50%;
    z-index: 20;
    
    padding: 0.8em 1.2em;
    border: 2px solid var(--colorShadeA);
    border-radius: 0.8em;
    background: var(--colorShadeE);
    color: #FFD700;
    cursor: pointer;
    font-size: 1.5rem;
    transform-style: preserve-3d;
    transition: all 175ms cubic-bezier(0, 0, 1, 1);
    transform: translateY(-50%); /* Centrado vertical inicial */
}

.carousel-btn::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--colorShadeC);
    border-radius: inherit;
    box-shadow: 0 0 0 2px var(--colorShadeB), 0 0.75em 0 0 var(--colorShadeA);
    transform: translate3d(0, 0.75em, -1em);
    transition: all 175ms cubic-bezier(0, 0, 1, 1);
    z-index: -1;
}

.carousel-btn:hover {
    background: var(--colorShadeD);
    transform: translateY(-50%) translate(0, 0.375em);
}

.carousel-btn:hover::before {
    transform: translate3d(0, 0.75em, -1em);
}

.carousel-btn:active {
    transform: translateY(-50%) translate(0em, 0.75em);
}

.carousel-btn:active::before {
    transform: translate3d(0, 0, -1em);
    box-shadow: 0 0 0 2px var(--colorShadeB), 0 0.25em 0 0 var(--colorShadeB);
}

.prev-btn {
    left: -10px;
}

.next-btn {
    right: -10px;
}

/* Ajustes responsivos */
@media (max-width: 900px) {
    .card {
        flex: 0 0 calc(50% - 20px); /* 2 tarjetas en tablet */
    }
}

@media (max-width: 600px) {
    .card {
        flex: 0 0 calc(100% - 20px); /* 1 tarjeta en móvil */
    }
    .carousel-wrapper {
        padding: 0 40px;
    }
}

.card .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card .slide.slide1 {
    background: #133a96; /* Azul oscuro tema */
    z-index: 2;
    transform: translateY(0);
}

.card:hover .slide.slide1 {
    transform: translateY(-100%);
}

.card .slide.slide2 {
    background: #fff;
    color: #333;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.card .icon {
    font-size: 4em;
    color: #FFD700; /* Amarillo tema */
}

.card h3 {
    margin: 0 0 10px;
    color: #091c47;
}

.card p {
    margin: 0;
    color: #555;
}

/* Estilos para Sección Software - Estilo Mosaico Compacto */
.software-container {
    text-align: center;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    margin-top: -11rem;
}

.software-container h3 {
    color: #FFD700;
    font-size: 1.2rem; /* Reducido de 1.5rem */
    margin-bottom: 1rem; /* Reducido de 2rem */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Reducido de 15px */
    max-width: 900px;
    margin: 0 auto;
}

.tag {
    background: #e1e1e1;
    color: #666;
    padding: 8px 15px; /* Reducido de 15px 25px */
    font-size: 0.9rem; /* Reducido de 1rem */
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    border-radius: 0;
}

/* Efecto Skew Backward al hacer hover (similar a la imagen) */
.tag:hover {
    background: #FFD700; /* Cambio de color al hacer hover */
    color: #091c47;
    transform: skew(-10deg);
}


.social-icons ul {
  display: flex;
  justify-content: center; /* mejor que position absolute */
  gap: 10px;
  padding: 0;
  margin: 0;
}

/* Estilos para Social Icons */
.social-icons {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.social-icons ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.social-icons ul li {
  list-style: none;
}

.social-icons ul li a {
  width: 80px;
  height: 80px;
  background-color: #fff;
  text-align: center;
  line-height: 80px;
  font-size: 35px;
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 3px solid #fff;
}

.social-icons ul li a .icon {
  color: #262626;
  transition: 0.5s;
  position: relative;
  z-index: 2;
}

.social-icons ul li a:hover .icon {
  color: #fff;
  transform: rotateY(360deg);
}

.social-icons ul li a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  z-index: 1;
}

.social-icons ul li a:hover::before {
  top: 0;
}

/* Estilos para el tooltip de descarga */
.download-item {
    position: relative;
}

.tooltip-text {
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.download-item:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    right: 100px;
    animation: pulse-tooltip 1s infinite alternate;
}

@keyframes pulse-tooltip {
    from {
        transform: translateY(-50%) scale(1);
    }
    to {
        transform: translateY(-50%) scale(1.05);
    }
}

/* Colores por red */
.social-icons ul li:nth-child(1) a::before {
  background: #333333;
}

.social-icons ul li:nth-child(2) a::before {
  background: #25d366; /* Color verde WhatsApp/Descarga */
}

.social-icons ul li:nth-child(3) a::before {
  background: #0077b5;
}

.social-icons ul li:nth-child(4) a::before {
  background: #FFD700;
}

/* Scroll para sección 5 (Competencias) */
#section5 .software-container {
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 10px;
    justify-content: flex-start;
    padding-top: 1rem;
    margin-top: -2rem; /* Ajuste para mantener posición pero permitir scroll */
}

/* Personalización del scrollbar */
#section5 .software-container::-webkit-scrollbar {
    width: 8px;
}

#section5 .software-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#section5 .software-container::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

#section5 .software-container::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

/* Estilos para el contenedor fijo del carrusel */
.logo-carousel-fixed {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    height: 60vh; /* Altura controlada */
    display: flex;
    align-items: center;
}

/* Carrusel Vertical de Logos */
.carousel {
    width: 120px; /* Más angosto para que parezca una barra lateral */
    height: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1rem 0;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    border: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(5px); /* Efecto vidrio */
}

.track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    animation: scroll-vertical 30s linear infinite;
}

.track:hover {
    animation-play-state: paused;
}

.item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.item img {
    width: 80%;
    max-width: 80px; /* Logos más pequeños */
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.item img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
    opacity: 1;
}

@keyframes scroll-vertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .logo-carousel-fixed {
        /* Cambiar a barra horizontal inferior en móviles y tablets */
        display: flex;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: 70px;
        transform: none;
        background: rgba(9, 28, 71, 0.95);
        border-top: 1px solid rgba(255, 215, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    .carousel {
        width: 100%;
        height: 100%;
        padding: 0;
        border: none;
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }

    .track {
        flex-direction: row;
        width: max-content;
        height: 100%;
        gap: 1rem;
        animation: scroll-horizontal 20s linear infinite;
    }

    .item {
        width: auto;
        height: 100%;
        padding: 0 1rem;
    }

    .item img {
        max-width: 50px;
        max-height: 50px;
    }

    /* Ajustar iconos sociales para que no se superpongan con el carrusel inferior */
    .social-icons {
        bottom: 80px; /* Subir para dejar espacio al carrusel */
        top: auto;
        transform: none;
        right: 10px;
    }
    
    .social-icons ul li a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        padding-bottom: 100px; /* Aumentar espacio para el carrusel y botones */
    }

    .main-title {
        font-size: 2.5rem; /* Reducir tamaño del título */
        word-wrap: break-word; /* Evitar desbordamiento */
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Reducir tamaño de títulos de sección h2 en móvil */
    .info-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }

    .top-text {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .bottom-text {
        font-size: 1rem;
        margin-top: 0.5rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .text-side {
        align-items: center;
        text-align: center;
        width: 100%;
        flex: 0 1 auto; /* No obligar a expandirse */
    }
    
    .image-side {
        justify-content: center;
        margin-top: 0.5rem; /* Reducir margen superior de la imagen */
        width: 100%;
        flex: 0 1 auto;
    }

    .icon-container {
        width: 150px; /* Reducir más la imagen para dar espacio */
        height: 150px;
    }

    /* Ajustar botón grande de comenzar */
    button.big-button {
        font-size: 1.2rem;
        padding: 0.8em 1.5em;
    }

    /* Asegurar que los botones sean visibles y accesibles */
    .navigation-buttons {
        margin-top: 1rem; /* Subir botones reduciendo margen */
        flex-direction: column;
        gap: 0.5rem; /* Reducir espacio entre botones */
        width: 100%;
        align-items: center;
        padding-bottom: 0;
        bottom: 110px; /* Subir botones para no chocar con carrusel inferior (70px) */
    }

    .nav-button {
        width: 70%; /* Botones más chicos */
        max-width: 200px;
        font-size: 0.9rem; /* Texto más pequeño */
        padding: 0.6em 1em; /* Padding reducido */
    }

    /* Ajustes específicos para móviles pequeños (como el del usuario 393x852) */
    @media (max-height: 900px) {
        .hero-section {
            height: auto; /* Permitir que crezca si el contenido es mucho */
            min-height: 100vh;
            padding-top: 2rem;
            padding-bottom: 90px; /* Espacio para el carrusel fijo */
        }
    }

    /* Scroll para el texto de Perfil Profesional en móviles */
    .scrollable-text {
        max-height: 45vh; /* Altura máxima para permitir scroll */
        overflow-y: auto;
        padding-right: 10px;
        margin-bottom: 6rem; /* Espacio para no chocar con botones */
        width: 100%;
    }

    .scrollable-text::-webkit-scrollbar {
        width: 6px;
    }

    .scrollable-text::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .scrollable-text::-webkit-scrollbar-thumb {
        background: #FFD700;
        border-radius: 3px;
    }

    /* Optimización Formación Académica Móvil */
    .experience-container {
        max-height: 50vh;
        overflow-y: auto;
        padding-right: 5px;
        gap: 1rem;
        margin-top: 1rem;
        margin-bottom: 5rem; /* Espacio para botones */
    }

    .experience-card {
        padding: 1rem;
    }

    .card-header {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .separator {
        display: none; /* Ocultar separador en móvil para saltar línea */
    }

    .job-title {
        font-size: 1.1rem;
    }

    .card-date {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    /* Scrollbar para experiencia */
    .experience-container::-webkit-scrollbar {
        width: 6px;
    }

    .experience-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .experience-container::-webkit-scrollbar-thumb {
        background: #FFD700;
        border-radius: 3px;
    }

    /* Optimización Software y Competencias Móvil */
    .software-container {
        max-height: 50vh;
        overflow-y: auto;
        padding-right: 5px;
        justify-content: flex-start;
        margin-top: 0; /* Resetear margen negativo grande */
        padding-top: 0;
        margin-bottom: 5rem;
        width: 100%;
    }

    /* Asegurar que el selector específico de sección 5 no rompa el estilo móvil */
    #section5 .software-container {
        margin-top: 0;
        max-height: 50vh;
    }

    /* Estilos específicos más compactos para Section 5 en móvil debido a textos largos */
    #section5 .software-tags .tag {
        font-size: 0.75rem;
        padding: 4px 8px;
        white-space: normal; /* Permitir que el texto de la etiqueta haga salto de línea */
        text-align: center;
        line-height: 1.2;
        max-width: 100%;
    }
    
    #section5 .software-tags {
        gap: 4px;
    }

    .software-container h3 {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Scroll para contenido de tarjetas en Section 3 (Experiencia Carousel) */
    .card .slide .content {
        max-height: 100%;
        overflow-y: auto;
        padding-right: 5px; /* Espacio para scrollbar */
        width: 100%;
    }

    /* Scrollbar para content de card */
    .card .slide .content::-webkit-scrollbar {
        width: 6px;
    }

    .card .slide .content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .card .slide .content::-webkit-scrollbar-thumb {
        background: #FFD700;
        border-radius: 3px;
    }

    .software-tags {
        gap: 5px;
        margin-bottom: 0.5rem;
    }

    .tag {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* Scrollbar para software */
    .software-container::-webkit-scrollbar {
        width: 6px;
    }

    .software-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .software-container::-webkit-scrollbar-thumb {
        background: #FFD700;
        border-radius: 3px;
    }

    /* Ajuste tamaño botones carrusel en móvil */
    .carousel-btn {
        font-size: 1rem;
        padding: 0.5em 0.8em;
    }
}
