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

:root {
    --primary-color: #8b5fbf;
    --primary-dark: #6b46c1;
    --secondary-color: #0078d4;
    --accent-color: #00bcf2;
    --accent-orange: #ff8c00;
    --copilot-purple: #8b5fbf;
    --copilot-blue: #0078d4;
    --copilot-light-blue: #00bcf2;
    --copilot-green: #107c10;
    --text-primary: #323130;
    --text-secondary: #605e5c;
    --text-light: #8a8886;
    --background: #ffffff;
    --background-secondary: #faf9f8;
    --background-dark: #292827;
    --background-card: #ffffff;
    --border-color: #edebe9;
    --shadow: 0 4px 8px rgba(139, 95, 191, 0.12);
    --shadow-lg: 0 16px 32px rgba(139, 95, 191, 0.16);
    --gradient: linear-gradient(135deg, #8b5fbf, #0078d4);
    --gradient-alt: linear-gradient(135deg, #8b5fbf, #0078d4, #00bcf2);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

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

/* Header y Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(139, 95, 191, 0.2));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Estilos comentados - ya no se usan estas secciones */
/*
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-alt);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: 0 4px 20px rgba(139, 95, 191, 0.3);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 95, 191, 0.4);
    background: var(--primary-color);
    color: white;
    border: 2px solid white;
}
*/

/* Floating Icons Animation */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.icon:nth-child(3) {
    top: 40%;
    left: 20%;
    animation-delay: 2s;
}

.icon:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: 3s;
}

.icon:nth-child(5) {
    top: 30%;
    left: 70%;
    animation-delay: 4s;
}

/* Blog Header */
.blog-header {
    padding: 100px 0 60px;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.blog-intro {
    margin-bottom: 3rem;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-controls {
    max-width: 800px;
    margin: 0 auto;
}

/* Articles Container */
.articles-container {
    padding: 60px 0;
    background: var(--background-secondary);
    min-height: calc(100vh - 200px);
}

/* Articles Section - Actualizado */
.articles-section {
    padding: 100px 0;
    background: var(--background-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-bar button {
    padding: 15px 20px;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(139, 95, 191, 0.3);
}

.search-bar button:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.4);
}

/* Filter Tags */
.filter-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tag-filter {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tag-filter:hover,
.tag-filter.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Articles Grid - Cambiado a lista vertical */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    min-height: 160px;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 120px;
    min-width: 120px;
    height: 100%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-tag {
    padding: 4px 8px;
    background: rgba(16, 124, 16, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--copilot-green);
    border: 1px solid rgba(16, 124, 16, 0.2);
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Secciones comentadas - ya no se usan */
/*
.about-section {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.skills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.skill-tag {
    padding: 6px 12px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 95, 191, 0.3);
}

.about-image {
    text-align: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 4rem;
    color: white;
    box-shadow: 0 8px 30px rgba(139, 95, 191, 0.3);
}

.contact-section {
    padding: 80px 0;
    background: var(--background-secondary);
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}
*/

/* Footer */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow);
}

.close:hover {
    color: var(--text-primary);
}

#modalArticle {
    padding: 2rem;
}

#modalArticle h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

#modalArticle .article-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

#modalArticle .article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

#modalArticle .article-content h2 {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

#modalArticle .article-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

#modalArticle .article-content ul,
#modalArticle .article-content ol {
    margin: 1rem 0 1rem 2rem;
}

#modalArticle .article-content li {
    margin-bottom: 0.5rem;
}

#modalArticle .article-content code {
    background: var(--background-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

#modalArticle .article-content pre {
    background: var(--background-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .articles-grid {
        max-width: 100%;
    }

    .article-card {
        flex-direction: column;
        min-height: auto;
    }

    .article-image {
        width: 100%;
        height: 150px;
        min-width: auto;
    }

    .article-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .filter-tags {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .articles-grid {
        gap: 1rem;
        padding: 0 10px;
    }

    .article-card {
        margin: 0;
    }

    .article-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.1rem;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Hide scrollbar but keep functionality */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
