/* Variables */
:root {
    --primary-color: #2e1760;
    --secondary-color: #7c3aed;
    --accent-color: #f472b6;
    --text-color: #f8fafc;
    --background-color: #0f172a;
    --card-background: rgba(30, 41, 59, 0.8);
    --gradient-start: #7c3aed;
    --gradient-end: #2563eb;
}







/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(44, 23, 96, 0.9), rgba(124, 58, 237, 0.9));
    overflow: hidden;
}

.glitch-container {
    position: relative;
    margin-bottom: 2rem;
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--accent-color),
                -0.025em -0.05em 0 var(--secondary-color),
                0.025em 0.05em 0 var(--primary-color);
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--accent-color),
                    -0.025em -0.05em 0 var(--secondary-color),
                    0.025em 0.05em 0 var(--primary-color);
    }
    14% {
        text-shadow: 0.05em 0 0 var(--accent-color),
                    -0.025em -0.05em 0 var(--secondary-color),
                    0.025em 0.05em 0 var(--primary-color);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--accent-color),
                    0.025em 0.025em 0 var(--secondary-color),
                    -0.05em -0.05em 0 var(--primary-color);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--accent-color),
                    0.025em 0.025em 0 var(--secondary-color),
                    -0.05em -0.05em 0 var(--primary-color);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--accent-color),
                    0.05em 0 0 var(--secondary-color),
                    0 -0.05em 0 var(--primary-color);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--accent-color),
                    0.05em 0 0 var(--secondary-color),
                    0 -0.05em 0 var(--primary-color);
    }
    100% {
        text-shadow: -0.025em 0 0 var(--accent-color),
                    -0.025em -0.025em 0 var(--secondary-color),
                    -0.025em -0.05em 0 var(--primary-color);
    }
}


.typing {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #7E2EA0;
    animation: typing 2s steps(20, end), cursor 0.5s step-end infinite alternate;
}

/* Efecto de escritura */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Cursor parpadeante */
@keyframes cursor {
    50% { border-color: transparent }
}



@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

.contact-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Continuing from previous CSS */

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* About Section */
.section-parallax {
    position: relative;
    padding: 10rem 2rem; /* Aumentar el padding para más espacio */
    background: var(--background-color);
}



.section-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    align-items: center;

}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill {
    position: relative;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--width);
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--width); }
}

/* Education Timeline */
.education-timeline {
    max-width: 800px;
    margin: 4rem auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
}

.timeline-item {
    margin: 2rem 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Experience Cards */
.experience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.experience-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-10px);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover::before {
    opacity: 0.1;
}

/* Achievements Section */
.achievements-section {
    background: var(--background-color);
    padding: 6rem 2rem;
}

.achievements-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem;
    scroll-snap-type: x mandatory;
}

.achievement-card {
    min-width: 300px;
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: scale(1.05);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        width: 100%;
        padding: 0 1rem;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 1rem;
    }

    .education-timeline::before {
        left: 1rem;
    }

    .experience-cards {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
    }

    .glitch {
        font-size: 2.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Section Title Animation */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}


/*imagenes 
/* Add this to the existing CSS */

/* Gallery Section */
.gallery-section {
    padding: 6rem 2rem;
    background: var(--background-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(46, 23, 96, 0.9), 
        rgba(124, 58, 237, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: var(--text-color);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.gallery-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive adjustments for gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-content h3 {
        font-size: 1.1rem;
    }

    .gallery-description {
        font-size: 0.8rem;
    }
}

/* Add to the navigation section */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a[href="#galeria"] {
    color: var(--accent-color);
}

/* Rest of the existing CSS remains the same */

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

