/* Estilos principales del portafolio */

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

/* Estilos del body y animaciones globales */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    animation: fadeIn 1s ease-in;
}

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

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Header y navegación */

header {
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
    color: #e0e0e0;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    animation: slideDown 0.8s ease-out;
    transition: padding 0.3s ease;
    position: sticky;
}

.language-switcher {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 1001;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dropdown-btn i {
    font-size: 0.8rem;
}

.dropdown-list {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 40px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    z-index: 1002;
}

.dropdown-list li {
    padding: 0.5rem 1rem;
    color: #e0e0e0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.dropdown-list li:hover,
.dropdown-list li.active {
    background: #8a2be2;
    color: #fff;
    border-radius: 10px;
}

.dropdown.show .dropdown-list {
    display: block;
}

@media (max-width: 768px) {
    .language-switcher {
        left: 35%;
        top: 5.8rem;
        transform: translateX(-50%);
        gap: 0.3rem;
    }

    .dropdown-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: 40px;
    }

    .dropdown-list li {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
}

.lang-btn.active {
    background: #8a2be2;
    color: #fff;
    border-color: #8a2be2;
}

.lang-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: #8a2be2;
    color: #fff;
}

@media (max-width: 768px) {
    .language-switcher {
        left: 68%;
        top: 1.5rem;
        transform: translateX(-50%);
        gap: 0.3rem;
    }

    header.shrunk .language-switcher {
        top: 1.5rem;
    }

    .lang-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        min-width: 30px;
    }
}

header.shrunk {
    padding: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.navbar.shrunk {
    padding: 0.5rem 1rem;
}

.navbar.shrunk .logo {
    font-size: 1.2rem;
}

.navbar.shrunk .logo img {
    height: 30px;
    margin: 3px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #1e3a8a, #be3bf6, #1e40af, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 50px;
    width: auto;
    margin: 5px;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #8a2be2;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #8a2be2;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #8a2be2;
}

.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
    padding: 4rem 3rem;
    margin: 4rem auto;
    max-width: 1000px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: sectionFadeIn 1s ease-out;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: left 0.6s;
}

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

h1, h2, h3 {
    color: #e6e6fa;
    font-weight: 700;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(45deg, #8a2be2, #da70d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #dda0dd;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e6e6fa;
    animation: textFadeIn 2s ease-out;
}

@keyframes textFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sección Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.hero-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 6px solid #8a2be2;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-text {
    flex: 1;
    animation: slideInLeft 1.2s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg,#274eb8, #be3bf6,#8a2be2, #da70d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #8a2be2;
    margin-bottom: 1rem;
    animation: fadeInUp 1.5s ease-out;
}

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

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 1.8s ease-out;
}

.typed-text {
    color: #00ffff;
    font-weight: 600;
    border-right: 3px solid #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
    padding: 2px 5px;
    border-radius: 3px;
    animation: blink 1s infinite, typeWriter 3s steps(40, end);
}

@keyframes blink {
    0%, 50% { border-color: #fefefe; }
    51%, 100% { border-color: transparent; }
}

@keyframes typeWriter {
    from { width: 0; }
    to { width: 100%; }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6, #8a2be2, #1e40af);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.8);
}

/* Sección Acerca de */

.about h2 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */

footer {
    background: linear-gradient(45deg, #1e3a8a, #be3bf6, #1e40af, #8a2be2);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: footerFadeIn 1s ease-out;
}

/* Resaltado de la Sección de Proyectos */
.projects-slider {
    border-radius: 15px;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

/* Resaltado de la Sección de Habilidades */
.skills-grid {
    border-radius: 15px;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

/* Resaltado de la Sección Acerca de */
.about {
    border-radius: 15px;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

/* Resaltado de la Sección de Contacto */
.contact-container {
    border-radius: 15px;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

.contact-description{
    text-align: center;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

footer:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    header {
        padding: 0;
    }

    .navbar {
        padding: 0.5rem;
    }

    .navbar .logo {
        font-size: 1rem;
    }

    .navbar .logo img {
        height: 25px;
        margin: 2px;
    }

    .section {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
        position: absolute;
        top: 100px;
        right: 0;
        width: 200px;
        border-radius: 0 0 0 12px;
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
        z-index: 10000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
        margin-right: 1rem;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

.hero-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-photo {
    width: 200px;
    height: 200px;
}

.hero-text h1 {
    font-size: 2.5rem;
    text-align: center;
}

.hero-subtitle,
.hero-description,
.hero-text {
    text-align: center;
}
}

@media (max-width: 480px) {
    .hero-photo {
        width: 180px;
        height: 180px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .contact-links {
        gap: 1rem;
    }

    .contact-link {
        min-width: 120px;
        padding: 1.5rem;
    }
}

/* Tablet Media Query */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }

    .hero-text {
        flex: 1;
    }

    .hero-photo {
        width: 250px;
        height: 250px;
        flex-shrink: 0;
    }

    .section {
        padding: 4rem 2rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Estilos específicos del portafolio */

/* Deslizador de Proyectos */
.projects-slider {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    overflow: visible;
}

.projects-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.project-card {
    min-width: 100%;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
    transition: all 0.4s ease;
    transform: scale(0.9);
    text-align: center;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card.active {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .project-card {
        padding: 1.5rem;
        min-height: 180px;
    }
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.project-card h3 {
    margin-top: 0;
    color: #8a2be2;
    font-size: 1.5rem;
}

.project-card p {
    font-style: normal;
    color: #e6e6fa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-link {
    display: inline-block;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Deslizador de Testimonios */
.testimonials-slider {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    overflow: visible;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
    transition: all 0.4s ease;
    transform: scale(0.9);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-card h3 {
    margin-top: 0;
    color: #8a2be2;
    font-size: 1.5rem;
}

.testimonial-card .testimonial-role {
    font-size: 1rem;
    color: #dda0dd;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: #e6e6fa;
    line-height: 1.6;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(138, 43, 226, 0.4);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    opacity: 0.8;
}

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

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

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.3);
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #8a2be2;
    transform: scale(1.5);
}

.dot:hover {
    background: #da70d6;
}

/* Línea de Tiempo de Experiencia */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #8a2be2, #da70d6);
    transform: translateX(-50%);
}

.experience-card {
    position: relative;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
    transition: all 0.4s ease;
    width: 45%;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.experience-card:nth-child(odd) {
    margin-left: 5%;
    text-align: right;
}

.experience-card:nth-child(even) {
    margin-left: auto;
    margin-right: 5%;
    text-align: left;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8a2be2;
    border: 3px solid #fff;
    z-index: 1;
}

.experience-card:nth-child(odd)::before {
    right: -30px;
}

.experience-card:nth-child(even)::before {
    left: -30px;
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.15);
    border-color: #da70d6;
}

.experience-card:hover::before {
    background: #da70d6;
    transform: scale(1.2);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.experience-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8a2be2;
    flex-shrink: 0;
}

.experience-info h3 {
    color: #e6e6fa;
    margin: 0;
    font-size: 1.3rem;
}

.experience-period {
    color: #dda0dd;
    font-size: 0.95rem;
    margin: 0;
}

.experience-content {
    margin-top: 1rem;
}

.experience-description p {
    color: #e6e6fa;
    line-height: 1.6;
    margin: 0;
}

.experience-highlights {
    margin-top: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e6e6fa;
    margin: 0.5rem 0;
}

.highlight-item i {
    color: #8a2be2;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .experience-timeline::before {
        left: 20px;
    }

    .experience-card {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .experience-card::before {
        left: -30px !important;
        right: auto !important;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .experience-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .experience-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}

/* Estilos de Subsecciones de Habilidades */
.skill-subsection {
    margin-bottom: 1rem;
}

.skill-subsection h4 {
    font-size: 1.6rem;
    color: #e6e6fa;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-card {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    color: #8a2be2;
}

svg {
    width: 2.5rem;
    height: 2.5rem;
}

.skill-info {
    flex: 1;
    text-align: left;
}

.skill-card h5 {
    color: #e6e6fa;
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
}

.skill-card .stars {
    color: #ffd700;
    font-size: 1.4rem;
    margin: 0;
}

.skill-card .stars .filled {
    font-size: 1rem;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.15);
}

.skill-card:hover .skill-icon {
    color: #da70d6;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .skill-card {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .skill-info {
        text-align: center;
    }

    .skill-card h5 {
        font-size: 1.1rem;
    }

    .skill-card .stars {
        font-size: 1.2rem;
    }

    svg {
        width: 2rem;
        height: 2rem;
    }
}

.skills-legend {
    max-width: 920px;
    margin: 2rem auto 0;
    padding: 1rem;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 10px;
    text-align: center;
}

.skills-legend h4 {
    color: #e6e6fa;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.skills-legend p {
    color: #dda0dd;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Barras de Progreso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #8a2be2, #da70d6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Cuadrícula Acerca de */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
    transition: all 0.4s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.15);
}

.about-card i {
    font-size: 3rem;
    color: #8a2be2;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.about-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #da70d6;
}

.about-card h3 {
    color: #e6e6fa;
    margin-bottom: 1rem;
}

.about-card p {
    color: #e6e6fa;
    line-height: 1.6;
}

/* Estilos de Contacto */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.1);
    animation: fadeInUp 1s ease-out;
}

.contact-links-container {
    width: 100%;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-links-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: left 0.6s;
}

.contact-links-container:hover::before {
    left: 100%;
}

.contact-links-container h3 {
    color: #8a2be2;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    background: linear-gradient(45deg, #8a2be2, #da70d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-radius: 12px;
    text-decoration: none;
    color: #e6e6fa;
    transition: all 0.4s ease;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    transition: left 0.5s;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.3) 100%);
    transform: translateY(-5px) scale(1.05);
    border-color: #da70d6;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
    color: #fff;
}

.contact-link i {
    font-size: 2rem;
    color: #8a2be2;
    width: 40px;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.contact-link:hover i {
    color: #da70d6;
    transform: scale(1.2) rotate(5deg);
}

.contact-link span {
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-link:hover span {
    color: #fff;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }

    .contact-links-container {
        padding: 2rem 1.5rem;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-link {
        padding: 1rem 0.8rem;
        gap: 0.8rem;
    }

    .contact-link i {
        font-size: 1.5rem;
        width: 30px;
    }

    .contact-link span {
        font-size: 1rem;
    }
}

/* Soporte Táctil para Deslizadores */
@media (hover: none) and (pointer: coarse) {
    .slider-btn {
        width: 50px;
        height: 50px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
}