/* Variables globales */
:root {
    --primary-color: #3DDC84; /* Verde Android */
    --secondary-color: #073042; /* Azul oscuro Android */
    --accent-color: #4285F4; /* Azul Google */
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #5f6368;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden; /* Prevenir scroll horizontal */
    width: 100%;
    position: relative;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Ya estaba, pero aseguramos que siga */
    width: 100%;
    position: relative;
    max-width: 100vw;
}

/* Estilos para cuando el cursor personalizado está activado */
body.custom-cursor-enabled {
    cursor: none; /* Ocultar el cursor normal */
}

body.custom-cursor-enabled a, 
body.custom-cursor-enabled button, 
body.custom-cursor-enabled .skill-item, 
body.custom-cursor-enabled .certification-item, 
body.custom-cursor-enabled .contact-item, 
body.custom-cursor-enabled .nav-links li {
    cursor: none; /* Asegurando que todos los elementos interactivos también tengan el cursor oculto */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding-top: 200px; /* Padding aumentado para compensar la navbar */
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
    animation: wave 10s infinite alternate ease-in-out;
}

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

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.header-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    animation: fadeIn 1.2s ease;
    -webkit-animation: fadeIn 1.2s ease;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform: translateZ(0); /* Forzar aceleración por hardware */
    -webkit-transform: translateZ(0);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    -webkit-transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-10px) rotate(10deg);
    -webkit-transform: translateY(-10px) rotate(10deg);
    box-shadow: 0 15px 35px rgba(61, 220, 132, 0.4);
}

.social-links a:hover::before {
    transform: scale(1);
    -webkit-transform: scale(1);
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.social-links a:hover i {
    animation: bounce 0.6s ease;
    -webkit-animation: bounce 0.6s ease;
}

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

@-webkit-keyframes bounce {
    0%, 100% {
        -webkit-transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.3);
    }
}

/* Estilos específicos para botón de email */
.social-links .email-link::before {
    background: #e74c3c; /* Rojo para email */
}

.social-links .email-link:hover {
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
}

/* Estilos específicos para botón de LinkedIn */
.social-links .linkedin-link::before {
    background: #0077b5; /* Azul de LinkedIn */
}

.social-links .linkedin-link:hover {
    box-shadow: 0 15px 35px rgba(0, 119, 181, 0.4);
}

/* Asegurar que todos los iconos tengan transiciones suaves */
.fas, .fab {
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links li a {
    padding: 12px 20px;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 70%;
}

/* Secciones generales */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 70px;
    color: var(--dark-color);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.section-title.visible::after {
    width: 120px;
}

/* Sobre mí */
.about-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    max-width: 800px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Timeline (Experiencia y Educación) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 130px; /* Aumentado para dejar más espacio */
    margin-left: -1px;
    border-radius: 3px;
    z-index: 1; /* Asegurar que esté por debajo de los círculos pero visible */
}

.timeline-item {
    padding: 15px 0;
    position: relative;
    margin-bottom: 40px;
    display: flex;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-date {
    width: 140px;
    text-align: right;
    padding-right: 35px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.timeline-date span:last-child {
    font-size: 0.85rem;
    opacity: 0.7;
    color: var(--gray-color);
}

.timeline-content {
    width: calc(100% - 140px);
    margin-left: 45px;
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    left: -22px; /* Ajustado para que esté correctamente posicionado en la línea */
    top: 20px;
    box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.2);
    transition: all 0.3s ease;
    z-index: 2; /* Asegurar que esté por encima de la línea */
}

.timeline-content:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(61, 220, 132, 0.3);
    background-color: var(--primary-color);
    border-color: white;
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.timeline-content h4 {
    margin-bottom: 15px;
    color: var(--gray-color);
    font-weight: 500;
    font-size: 1rem;
}

.timeline-content p {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Habilidades */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.skill-category {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.skill-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category h3 {
    margin-bottom: 35px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.skill-category h3::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 30%;
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.skill-item span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
}

.skill-item span::after {
    content: attr(data-percentage);
    color: var(--primary-color);
}

.skill-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    width: 0;
    position: relative;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Certificaciones */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 4px solid transparent;
}

.certification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.05) 0%, transparent 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certification-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.certification-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.certification-item:hover::before {
    opacity: 1;
}

.certification-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    background: rgba(61, 220, 132, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.certification-item:hover i {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.certification-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 1;
}

.certification-item:hover h3 {
    color: var(--primary-color);
}

/* Añadir fecha de obtención */
.certification-item .cert-date {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 8px;
    opacity: 0.8;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .certification-item {
        padding: 25px 20px;
    }
    
    .certification-item i {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

/* Contacto */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.contact-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-intro p {
    font-size: 1.25rem;
    color: var(--dark-color);
    line-height: 1.6;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.05) 0%, transparent 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(61, 220, 132, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: all 0.4s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.contact-item:hover .contact-icon i {
    color: white;
    transform: scale(1.1);
}

.contact-details {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-details p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    flex-wrap: wrap;
}

.contact-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary-color);
    color: white !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(61, 220, 132, 0.3);
    gap: 10px;
    min-width: 180px;
}

.contact-button span {
    z-index: 1;
    color: white !important;
}

.contact-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    z-index: 1;
    color: white !important;
}

.contact-button:hover {
    background: #35c676;
    box-shadow: 0 8px 25px rgba(61, 220, 132, 0.4);
    transform: translateY(-3px);
    color: white !important;
    text-decoration: none !important;
}

.contact-button:hover i {
    transform: translateX(5px);
}

.contact-button.phone:hover i {
    transform: rotate(15deg) scale(1.2);
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-button {
        width: 100%;
        max-width: 250px;
    }
}

/* Footer */
.green-footer {
    background: linear-gradient(135deg, var(--primary-color), rgba(61, 220, 132, 0.8));
    color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 0 30px;
    margin-top: 50px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

/* Efectos de fondo modernos */
.green-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
                      radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    opacity: 0.6;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-logo span {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 90%;
}

.footer-nav h4,
.footer-social h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: white;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    font-weight: 400;
    display: inline-block;
    padding: 3px 0;
    border-bottom: 1px solid transparent;
}

.footer-nav ul li a:hover {
    opacity: 1;
    transform: translateX(5px);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    color: white !important;
    text-decoration: none !important;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
    padding-bottom: 2px;
}

.footer-contact-item i {
    margin-right: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-contact-item span {
    color: white !important;
    font-size: 0.9rem;
}

.footer-contact-item:hover {
    opacity: 1;
    transform: translateX(5px);
    color: white !important;
    text-decoration: none !important;
}

.footer-contact-item:hover i {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-shapes {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-shape {
    display: block;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: shapeAnimate 3s infinite alternate;
}

.footer-shape:nth-child(2) {
    animation-delay: 0.5s;
    width: 20px;
}

.footer-shape:nth-child(3) {
    animation-delay: 1s;
    width: 10px;
}

@keyframes shapeAnimate {
    0% { transform: scaleX(0.7); opacity: 0.5; }
    100% { transform: scaleX(1.2); opacity: 0.8; }
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-info {
        grid-column: span 2;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-info {
        grid-column: auto;
    }
    
    .footer-nav, .footer-social {
        text-align: center;
    }
    
    .footer-nav h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav ul li {
        text-align: center;
    }
    
    .footer-nav ul li a:hover {
        transform: none;
    }
    
    .footer-contact-links {
        align-items: center;
    }
    
    .footer-contact-item:hover {
        transform: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Cursor personalizado */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(45, 45, 45, 0.7); /* Gris oscuro en lugar de verde */
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    /* Eliminado mix-blend-mode para evitar cambios de color */
    will-change: transform; /* Mejorar rendimiento */
}

.custom-cursor.active {
    width: 50px;
    height: 50px;
    background-color: rgba(45, 45, 45, 0.85); /* Gris oscuro más intenso al activarse */
}

/* Elemento flotante decorativo */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    filter: blur(15px);
    z-index: -1;
    animation: float 10s infinite alternate ease-in-out;
    pointer-events: none; /* Evitar interacciones con estos elementos */
    opacity: 0.5; /* Reducir opacidad para hacerlos más sutiles */
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 50px) rotate(90deg);
    }
}

/* Efectos de desplazamiento */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.parallax-shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: none; /* Evitar interacciones con estos elementos */
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 100px 0 80px;
    }
    
    .header-content h1 {
        font-size: 3rem;
    }
    
    .header-content h2 {
        font-size: 1.4rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        width: 100%;
        text-align: left;
        padding-left: 80px;
        margin-bottom: 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 0;
        padding-left: 80px;
    }
    
    .timeline-content::before {
        left: 31px;
    }
    
    .skills-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-element {
        display: none;
    }
    
    /* Deshabilitar el cursor personalizado en dispositivos móviles */
    .custom-cursor {
        display: none;
    }
    
    body, a, button, .skill-item, .certification-item, .contact-item, .nav-links li {
        cursor: auto; /* Restaurar cursor normal en móviles */
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-item {
        width: 100%;
    }
}

/* Cursor toggle button */
.cursor-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(45, 45, 45, 0.7); /* Gris oscuro para coincider con el cursor */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    cursor: pointer !important; /* Para asegurar que pueda ser clickeable */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0.7;
}

.cursor-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.cursor-toggle.disabled {
    background-color: rgba(150, 150, 150, 0.5); /* Gris claro cuando está desactivado */
}

/* Ocultando el botón en dispositivos móviles */
@media (max-width: 768px) {
    .cursor-toggle {
        display: none;
    }
}

/* Ajustar el primer section para darle un poco más de separación del header */
section:first-of-type {
    padding-top: 80px;
}

/* Nuevos estilos para la sección de habilidades */
.skills-container.modern {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.skill-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

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

.skill-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
}

.skill-card .skill-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.skill-card .skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.skill-card .skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
    animation: shine 2.5s infinite;
}

/* Media queries para la sección de habilidades */
@media (max-width: 768px) {
    .skills-cards {
        gap: 15px;
    }
    
    .skill-card {
        width: calc(50% - 15px);
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .skill-card {
        width: 100%;
    }
}

/* Estilos para la sección de educación más compacta */
.education-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    width: 300px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.education-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.education-year {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.education-year::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.education-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.education-content h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--gray-color);
    font-weight: 500;
}

.education-content p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Media queries para educación */
@media (max-width: 768px) {
    .education-cards {
        gap: 15px;
    }
    
    .education-card {
        width: calc(50% - 15px);
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .education-card {
        width: 100%;
    }
}

/* Ajustes específicos para sección de educación */
#educacion.section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Estilos para la sección de habilidades con fondo verde */
.green-section {
    background: linear-gradient(135deg, var(--primary-color), rgba(61, 220, 132, 0.8), var(--primary-color));
    background-size: 200% 200%;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    animation: gradientAnimation 10s ease infinite alternate;
}

.green-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,181.3C96,171,192,149,288,160C384,171,480,213,576,229.3C672,245,768,235,864,224C960,213,1056,203,1152,192C1248,181,1344,171,1392,165.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.3;
}

/* Añadir un resplandor sutil al fondo */
.green-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

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

.section-title.light {
    color: white;
}

.section-title.light::after {
    background: white;
}

/* Estilos para las habilidades compactas */
.compact-skills {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skills-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-row h3 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    position: relative;
    display: inline-block;
    align-self: center;
    font-size: 1.3rem;
}

.skills-row h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.compact-skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.compact-skill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.compact-skill.visible {
    opacity: 1;
    transform: translateY(0);
}

.compact-skill:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.compact-skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: white;
    transition: height 0.3s ease;
}

/* Efecto de brillo al pasar el cursor */
.compact-skill::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.compact-skill:hover::after {
    opacity: 1;
}

.compact-skill:hover::before {
    height: 100%;
}

.compact-skill-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.compact-skill-header i {
    font-size: 2rem;
    color: white;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.compact-skill:hover .compact-skill-header i {
    transform: scale(1.2);
}

.compact-skill-header span {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.compact-skill:hover .compact-skill-header span {
    transform: scale(1.05);
    letter-spacing: 1px;
}

/* Media queries para habilidades compactas */
@media (max-width: 768px) {
    .compact-skills-container {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .compact-skill {
        padding: 15px;
        min-height: 100px;
    }
    
    .compact-skill-header i {
        font-size: 1.7rem;
    }
    
    .compact-skill-header span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .compact-skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compact-skill {
        min-height: 90px;
    }
} 