/* Ultra Modern Portfolio Styles */

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(138, 43, 226, 0.3); }
    50% { box-shadow: 0 0 40px rgba(138, 43, 226, 0.6); }
}

/* Navigation Bar - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1.2rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    border: none;
    letter-spacing: -1px;
}

.nav-logo span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    border: none;
}

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

.nav-link.active {
    color: #fff;
}

/* Header - Hero Section */
#header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(100, 100, 255, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

#header > * {
    position: relative;
    z-index: 2;
}

#header .greeting {
    font-size: 1rem;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    animation: slideUp 0.8s ease forwards;
}

#header h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0ff 50%, #c0c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

#header .subtitle {
    font-size: 1.6rem;
    background: linear-gradient(90deg, #a8edea, #fed6e3, #ffecd2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

#header .description {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

#header footer {
    display: flex;
    gap: 1.5rem;
    animation: slideUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

#header .button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

#header .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 ease;
}

#header .button:hover::before {
    left: 100%;
}

#header .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

#header .button.alt {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

#header .button.alt:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.1));
    bottom: 20%;
    left: -50px;
    animation-delay: 2s;
}

/* About Section */
#about .content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.about-text h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
#skills {
    background: #f8f9ff;
}

.skill-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
}

.skill-card .icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    display: block;
    position: relative;
    z-index: 1;
}

.skill-card h4 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Projects Section */
#first .content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    display: block;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height:200px
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 26, 46, 0.95));
    padding: 3rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-item:hover img {
    transform: scale(1.15);
}

.project-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

/* Contact Section */
#third .content {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e9ff 100%);
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-card {
    background: #fff;
    border-radius: 30px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.03), transparent 30%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.contact-card .icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 1;
}

.whatsapp-card .icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-card h3 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-card p {
    color: #666;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.whatsapp-btn .icon {
    font-size: 1.3rem;
    margin: 0;
    background: none;
    -webkit-text-fill-color: #fff;
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-form-wrapper h3 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.contact-form-wrapper > p {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #667eea;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

/*redes*/
p.redes{
    animation: slideUp 0.9s ease .8s forwards;
    opacity: 0;
}

p.redes a{
    text-decoration: none!important;

}

/*Proyecto*/
div.col-6.proyecto{

position: relative;


}
label.label-proyecto {
    position: absolute;
    top: .2rem;
    left: 10%;           /* ← Mueve al centro horizontal */
    transform: translateX(0%); /* ← Centra perfectamente */
    z-index: 20;
    display: flex;           /* ← FLEXBOX ACTIVADO */
    justify-content: center; /* ← Centra spans horizontal */
    align-items: center;     /* ← Centra spans vertical */
    gap: 9px;
}

label.label-proyecto span {
  
    font-size: 1rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: .2rem;
 
}

label.label-proyecto span.html { background: linear-gradient(45deg, #FF6B35, #F7931E);}
label.label-proyecto span.css {background: linear-gradient(45deg, #1f64db, #19a5eb);}
label.label-proyecto span.php { background: linear-gradient(45deg, #777BB4, #336699);}
label.label-proyecto span.js {background: linear-gradient(45deg, #F7DF1E, #FADC00);}
label.label-proyecto span.sql {background: linear-gradient(45deg, #006633, #00A300);}

/* Footer */
#footer {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 4rem 2rem;
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

#footer .icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

#footer .icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#footer .icons a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    transform: translateY(-8px) rotate(10deg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

#footer .copyright {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    #header h1 {
        font-size: 3rem;
    }
    
    #header .subtitle {
        font-size: 1.1rem;
    }
    
    #header footer {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    #header .button {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 640px) {
   label.label-proyecto span {
  
    font-size: .6rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: .2rem;
    display: none;
 
}
}


@media screen and (max-width: 480px) {
    #header h1 {
        font-size: 2.2rem;
    }
    
    .contact-card {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}
