/* Fecha de certificación en cards */
.cert-date {
    color: var(--primary);
    font-size: 0.95em;
    font-weight: 600;
}
/* Lista de cursos y certificaciones en habilidades */
.skills-cert-list {
    margin: 30px 0 0 0;
    padding-left: 25px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    list-style: disc inside;
}
.skills-cert-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}
/* Modal de Proyecto */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    margin: 60px auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: var(--text);
    animation: modalFadeIn 0.3s;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: var(--accent);
}

.modal-images {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.modal-images img {
    max-width: 180px;
    max-height: 120px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background: #222;
}

.modal-images img:hover {
    transform: scale(5);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,255,136,0.4);
    transition: 1s;
}
:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #1a1a1a;
    --accent: #00b3ff;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: rgba(30, 30, 30, 0.7);
    --blur-intensity: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(var(--blur-intensity));
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.perfil {
    display: flex;
    gap:20px;
    align-items: center;
    justify-content: center;
    
}


/* Imagen de perfil en hero */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0,255,136,0.2);
    padding: 10px;
    position: relative;
    overflow: visible;
    min-width: 160px;
    min-height: 160px;
    animation: heroImgGlow 2.5s ease-in-out infinite alternate;
    
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    z-index: 0;
}


@keyframes heroImgGlow {
    from {
        box-shadow: 0 0 20px 5px var(--primary), 0 0 0px var(--accent);
        filter: blur(0px);
    }
    to {
        box-shadow: 0 0 40px 15px var(--accent), 0 0 30px var(--primary);
       
    }
}

.img-perfil-hero {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(0,255,136,0.25);
    transition: transform 0.4s, box-shadow 0.4s, filter 0.4s;
    filter: none;
    background: #222;
}
.img-perfil-hero:hover {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 8px 40px 0 var(--primary), 0 0 0 8px var(--accent);
    filter: none;
}

@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column;
        gap: 25px;
    }
    .hero-img-wrapper {
        min-width: 120px;
        min-height: 120px;
        padding: 6px;
        
    }
    .img-perfil-hero {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .hero-img-wrapper {
        min-width: 90px;
        min-height: 90px;
        padding: 3px;
        
    }
    .img-perfil-hero {
        width: 70px;
        height: 70px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

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

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.6);
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    border:none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.5);
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card p {
    color: var(--text-secondary);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    
    gap: 20px;
}

.skill-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.skill-item:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary);
}

.skills-subtitle {
    margin: 40px 0 20px;
    color: var(--primary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    backdrop-filter: blur(var(--blur-intensity));
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    top: 20px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -50px;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.project-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #000;
}

.project-content {
    padding: 20px;
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.project-tag {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contacto */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(var(--blur-intensity));
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s;
    
}

.social-link:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-5px);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 130px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        padding: 20px;
        backdrop-filter: blur(var(--blur-intensity));
    }

    .modal-images img:hover {
    transform: scale(2);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,255,136,0.4);
    transition: 1s;
}

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

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-content::after {
        left: -40px !important;
    }
}