/* =========================================================
   🌈 VARIABLES Y PALETA DE COLORES
========================================================= */
:root {
    --color-bg: #E5E5F7;
    --color-bg-alt: #f8f9fa;
    --color-card: #ffffff;
    --color-text: #1a1a1a;
    --color-heading: #333333;
    --color-border: #e0e0e0;
    --color-icon: #6a11cb;
    --color-accent: #2575fc;
    --color-gradient: linear-gradient(135deg, var(--color-icon) 0%, var(--color-accent) 100%);
    --shadow: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --color-bg: #0f1117;
    --color-bg-alt: #1a1d24;
    --color-card: #20232a;
    --color-text: #e5e5e5;
    --color-heading: #ffffff;
    --color-border: #2a2f3a;
    --color-icon: #9b6bff;
    --color-accent: #3b82f6;
    --color-gradient: linear-gradient(135deg, var(--color-icon) 0%, var(--color-accent) 100%);
    --shadow: rgba(0, 0, 0, 0.4);
}

/* =========================================================
   🔧 RESET Y CONFIGURACIÓN BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--color-bg);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: var(--color-text);
}

/* =========================================================
   🖋 TIPOGRAFÍA Y ETIQUETAS GENERALES
========================================================= */
h1, h2, h3, p {
    color: var(--color-heading);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
    position: relative;
    font-family: 'Inter', sans-serif;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-gradient);
}

h3 { font-weight: 600; }
p { line-height: 1.6; font-weight: 300;}

/* =========================================================
   📦 LAYOUT GENERAL
========================================================= */
.container {
    max-width: 1000px;
    width: 100%;
    margin: auto;
}

.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   🧢 HOME / PERFIL
========================================================= */
.home-section {
    min-height: 100vh;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-container-int {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}


.home-name { font-size: 2.5rem; }
.home-subTitle { font-weight: 600; }
.home-subTitle strong { color: var(--color-accent); font-weight: 600; }

.skills-container p { margin-bottom: 20px; font-weight: 500;}
.skills-technology,
.skills-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skills-technology span,
.skills-tools span {
    background-color: var(--color-bg-alt);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.home-img-social-network-container { text-align: center;}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    margin: 0 auto 20px;
    background-color: #fff;
    background-image: url(../assest/imagenes/inicio/foto-perfil.webp);
    background-size: cover;
    background-position: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   💼 SECCIÓN PROYECTOS
========================================================= */
.projects-section { padding: 40px; }

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-buttons { display: flex; gap: 15px; }

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.filter-btn.active { background: var(--color-gradient); color: #fff; }
.filter-btn:hover:not(.active) { background: #e9ecef; }

.projects-container, .project-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-image { height: 180px; background-size: cover; background-position: center; }

.arte-visuale-V2 { background-image: url(../assest/imagenes/img-portafolio/landig-page-artDigital-V.2.webp); }
.barberia-V2 { background-image: url(../assest/imagenes/img-portafolio/landing-page-Barberia-V2-new.webp); }
.ecommerce-V1 { background-image: url(../assest/imagenes/img-portafolio/tienda_online_v1-new.webp); }
.wheater-app { background-image: url(../assest/imagenes/img-portafolio/app\ wather-new.webp); }
.music-app { background-image: url(../assest/imagenes/img-portafolio/Music_App-new.webp); }
.pokedez-app { background-image: url(../assest/imagenes/img-portafolio/pokedex_react-new.webp); }

.project-content { padding: 20px; }
.project-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.project-title span { padding: 2px 5px; background: var(--color-accent); border-radius: 5px; color: #fff;}
.project-description { line-height: 1.5; margin-bottom: 15px; }
.project-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tool-tag { background: var(--color-gradient); color: #fff; padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }

.project-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--color-gradient);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106,17,203,0.3);
}

/* =========================================================
   👤 SECCIÓN SOBRE MÍ
========================================================= */
.about-section { padding: 50px 40px; }

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-description p { line-height: 1.7; margin-bottom: 20px; font-size: 1rem; }
.about-description strong { color: var(--color-accent); font-weight: 600; }

.contact-info {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #6a11cb;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.contact-item { display: flex; align-items: center; margin-bottom: 15px; color: var(--color-text); }
.contact-item i { width: 20px; margin-right: 15px; color: #6a11cb; }

.about-actions { display: flex; flex-direction: column; gap: 25px;}
.cv-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--color-gradient); color: #fff; padding: 15px 25px; border-radius: 50px;
    text-decoration: none; font-weight: 600; box-shadow: 0 5px 15px rgba(106,17,203,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.cv-button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(106,17,203,0.4); }

.social-links { display: flex; flex-direction: column; gap: 12px; }
.social-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; background-color: var(--color-bg-alt); color: var(--color-text);
    border-radius: 10px; text-decoration: none; font-weight: 500; border: 1px solid var(--color-border); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.social-link:hover { transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.social-link.linkedin:hover { color: #0077b5; border-color: #0077b5; }
.social-link.whatsapp:hover { color: #25D366; border-color: #25D366; }

/* =========================================================
   🚀 CTA
========================================================= */
.cta-section {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.cta-text { font-size: 1.3rem; margin-bottom: 20px; }
.cta-button {
    display: inline-block;
    background: var(--color-gradient);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(106,17,203,0.3); }

.contact-links { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.contact-link {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--color-gradient); color: white; text-decoration: none; font-size: 1.2rem;
    transition: transform 0.3s;
}
.contact-link:hover { transform: scale(1.1); }

/* =========================================================
   🌓 MENÚ Y BOTONES
========================================================= */
.menu-butons {
    display: flex; flex-direction: column; gap: 10px;
    position: fixed; top: 20px; right: 20px;
}
.theme-toggle {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 45px; height: 45px;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 5px 10px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.theme-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 15px var(--shadow); }
.bi-icon { color: var(--color-text); }

/* =========================================================
   ✨ ANIMACIONES FADE-IN
========================================================= */
.fade-in-element { opacity: 0; transform: translate(0); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-element.visible { opacity: 1; transform: translate(0); }
.from-left { transform: translateX(-50px); }
.from-right { transform: translateX(50px); }
.from-up { transform: translateY(50px); }
.from-down { transform: translateY(-50px); }
.from-center { transform: scale(0.95); }
.from-center.visible { transform: scale(1); }

.duration-1s { transition-duration: 1s; }
.duration-1_2s { transition-duration: 1.2s; }
.duration-1_4s { transition-duration: 1.4s; }
.duration-1_6s { transition-duration: 1.6s; }
.duration-1_8s { transition-duration: 1.8s; }
.duration-2s { transition-duration: 2s; }
.delay-0s { transition-delay: 0s; }
.delay-0_2s { transition-delay: 0.2s; }
.delay-0_4s { transition-delay: 0.4s; }
.delay-0_6s { transition-delay: 0.6s; }
.delay-0_8s { transition-delay: 0.8s; }
.delay-1s { transition-delay: 1s; }

.hidden { display: none; }

/* =========================================================
   🌊 BURBUJAS HOME
========================================================= */
.bubble {
    width: 90px; height: 90px; border-radius: 50%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    font-size: 1.8rem;
    animation: float 6s ease-in-out infinite;
}
.bubble span { font-size: 0.8rem; margin-top: 0.3rem; letter-spacing: 0.5px; }

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(3px); }
    100% { transform: translateY(0) translateX(0); }
}
.bubble:nth-child(1) { animation-duration: 6s; }
.bubble:nth-child(2) { animation-duration: 7s; animation-delay: 0.3s; }
.bubble:nth-child(3) { animation-duration: 6.5s; animation-delay: 0.6s; }
.bubble:nth-child(4) { animation-duration: 7.5s; animation-delay: 0.9s; }
.bubble:nth-child(5) { animation-duration: 6.8s; animation-delay: 1.2s; }

/* =========================================================
   📱 RESPONSIVOS
========================================================= */
@media (max-width: 768px) {
    body { padding: 0; }
    .home-container-int { grid-template-columns: 1fr; gap: 30px; }
    .skills-technology, .skills-tools {justify-content: center;}
    .about-content { grid-template-columns: 1fr; gap: 30px; }
    .header-int { border-radius: 0; }
    .header-int.fade-in-element { animation: none !important; opacity: 1 !important; transform: none !important; }
    .content { grid-template-columns: 1fr; gap: 30px; }
}
