:root {
    --primary: #6c63ff;
    --secondary: #4d44db;
    --accent: #ff6584;
    --dark: #2d2d44;
    --light: #f8f9ff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(248, 249, 255, 0.8);
    border-bottom: 1px solid rgba(45, 45, 68, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--primary);
}

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

nav a {
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%);
}

.hero-blob {
    position: absolute;
    top: -300px;
    right: -300px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, rgba(108, 99, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Tech Graphics */
.tech-graphics {
    position: absolute;
    right: 5%;
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tech-circle {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    animation: rotate 30s linear infinite;
}

.tech-logo {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    color: white;
}

.tech-logo i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.tech-logo span {
    font-size: 1rem;
}

/* Posiciones específicas de los logos */
.react {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: #61DAFB;
    color: #2D2D2D;
}

.node {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: #8CC84B;
}

.python {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: #3776AB;
}

.flutter {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: #02569B;
}

.aws {
    top: 35%;
    left: 35%;
    background: #FF9900;
    color: #2D2D2D;
}

.code-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.symbol {
    position: absolute;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.1;
    color: var(--primary);
    animation: float 6s ease-in-out infinite;
}

.symbol:nth-child(1) {
    top: 15%;
    left: 20%;
}

.symbol:nth-child(2) {
    top: 70%;
    left: 25%;
    animation-delay: 1s;
}

.symbol:nth-child(3) {
    top: 40%;
    right: 20%;
    animation-delay: 0.5s;
}

.symbol:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 1.5s;
}

/* Sección de Servicios */
.services {
    padding: 6rem 5%;
    position: relative;
    background-color: white;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -3rem 0;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    color: white;
}

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

.service-card:hover .service-icon {
    color: white;
}

.service-card:hover h3, 
.service-card:hover p {
    color: white;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card p {
    color: #666;
    transition: all 0.3s ease;
}

/* Sección de Experiencia */
.experience {
    padding: 8rem 5%;
    background: var(--light);
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%236c63ff" opacity="0.05" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 0;
}

.experience-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.experience-image {
    flex: 1;
    position: relative;
}

.experience-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.experience-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.experience-text {
    flex: 1;
}

.experience-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.experience-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-item {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: var(--gradient);
    color: white;
}

/* Sección de Proyectos */
.projects {
    padding: 6rem 5%;
    background: white;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -3rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #666;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sección de Contacto */
.contact {
    padding: 6rem 5%;
    background: var(--gradient);
    color: white;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-top: -3rem;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="white" opacity="0.05" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 0;
}

.contact-content {
    display: flex;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-text {
    flex: 1;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

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

/* WhatsApp button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #6c63ff;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--primary);
}

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

.footer-links a {
    transition: all 0.3s ease;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .tech-circle {
        width: 350px;
        height: 350px;
    }
    
    .tech-logo {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tech-graphics {
        position: relative;
        right: auto;
        width: 100%;
        height: 350px;
        margin-top: 3rem;
    }
    
    .experience-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .tech-circle {
        width: 280px;
        height: 280px;
    }
    
    .tech-logo {
        width: 70px;
        height: 70px;
    }
    
    .tech-logo i {
        font-size: 1.8rem;
    }
    
    .tech-logo span {
        font-size: 0.8rem;
    }
}

/* Novedades */
.news-hero {
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7.25rem 5% 3.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%);
    position: relative;
    overflow: hidden;
}
.news-hero-content { width: 100%; max-width: 1180px; position: relative; z-index: 1; }
.news-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); margin-bottom: 1rem; }
.news-hero p { max-width: 760px; color: #555; font-size: 1.15rem; }
.news-search { margin-top: 1.6rem; max-width: 760px; background: white; border: 1px solid rgba(45,45,68,.1); border-radius: 18px; display: flex; align-items: center; gap: .8rem; padding: .95rem 1.2rem; box-shadow: 0 18px 45px rgba(45,45,68,.08); }
.news-search input { border: 0; outline: 0; width: 100%; font: inherit; color: var(--dark); }
.featured-section, .posts-section, .category-section { padding: 4rem 5%; background: white; }
.featured-grid { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.featured-article { min-width: 0; background: white; border: 1px solid rgba(45,45,68,.07); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 36px rgba(45,45,68,.08); transition: all .3s ease; }
.featured-article:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(45,45,68,.13); }
.featured-image { display: block; overflow: hidden; }
.featured-article img, .post-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 45px rgba(45,45,68,.12); }
.featured-article img { display: block; border-radius: 0; box-shadow: none; transition: transform .5s ease; }
.featured-article:hover img { transform: scale(1.04); }
.featured-body { padding: 1.5rem; }
.post-category, .card-meta span { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
.featured-article h2 { font-size: 1.65rem; margin: .8rem 0 1rem; }
.featured-article p { color: #555; margin-bottom: 1.5rem; }
.category-section { padding-top: 1rem; padding-bottom: 1rem; background: var(--light); }
.category-bar { max-width: 1180px; margin: 0 auto; display: flex; gap: .75rem; flex-wrap: wrap; }
.category-filter { border: 1px solid rgba(108,99,255,.22); background: white; color: var(--dark); border-radius: 999px; padding: .7rem 1rem; font-weight: 700; cursor: pointer; }
.category-filter.active, .category-filter:hover { background: var(--gradient); color: white; }
.posts-grid { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.post-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.06); border: 1px solid rgba(45,45,68,.06); transition: all .3s ease; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 18px 44px rgba(45,45,68,.12); }
.post-card-image { display: block; height: 215px; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover img { transform: scale(1.04); }
.post-card-body { padding: 1.5rem; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: #777; font-size: .85rem; margin-bottom: .8rem; }
.post-card h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { color: #666; margin-bottom: 1.25rem; }
.empty-state { text-align: center; color: #666; margin-top: 2rem; }
.post-hero { padding: 9rem 5% 3rem; background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%); }
.post-hero > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.post-cover { display: block; max-width: 980px; margin-left: auto; margin-right: auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; color: #666; font-size: .9rem; margin-bottom: 2rem; }
.breadcrumbs a { color: var(--primary); font-weight: 600; }
.post-kicker { color: var(--primary); font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; margin-bottom: 1rem; }
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); margin-bottom: 1.2rem; }
.post-lead { color: #444; font-size: 1.18rem; max-width: 850px; }
.post-dates { color: #777; margin: 1.2rem auto 2rem; font-size: .95rem; }
.post-shell { display: grid; grid-template-columns: 290px minmax(0, 820px); gap: 3rem; align-items: start; padding: 4rem 5%; background: white; justify-content: center; }
.toc-box { position: sticky; top: 110px; background: var(--light); border: 1px solid rgba(45,45,68,.08); border-radius: 16px; padding: 1.2rem; }
.toc-toggle { width: 100%; border: 0; background: none; font: inherit; font-weight: 800; display: flex; justify-content: space-between; color: var(--dark); }
.toc-box ol { list-style: none; margin-top: 1rem; }
.toc-box li { margin-bottom: .7rem; font-size: .9rem; }
.toc-box li.h3 { padding-left: 1rem; font-size: .84rem; opacity: .8; }
.toc-box a { color: #555; }
.toc-box a:hover { color: var(--primary); }
.post-content h2 { font-size: 2rem; margin: 2.2rem 0 1rem; }
.post-content h3 { font-size: 1.35rem; margin: 1.4rem 0 .7rem; }
.post-content p { color: #45455a; margin-bottom: 1.1rem; font-size: 1.04rem; }
.inline-cta { margin: 2.5rem 0; padding: 2rem; border-radius: 20px; background: var(--gradient); color: white; }
.inline-cta h2, .inline-cta p { color: white; }
.inline-cta .btn-primary { background: white; color: var(--primary); }
.author-card, .share-box, .faq-section, .related-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(45,45,68,.1); }
.author-card { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--light); padding: 1.5rem; border-radius: 18px; border-top: 0; }
.author-mark { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: var(--gradient); color: white; display: grid; place-items: center; font-weight: 800; }
.author-card h2 { font-family: Montserrat, sans-serif; font-size: 1.1rem; margin: 0 0 .4rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.share-actions a, .share-actions button { border: 1px solid rgba(108,99,255,.25); background: white; color: var(--primary); padding: .7rem 1rem; border-radius: 999px; font-weight: 800; cursor: pointer; font-family: inherit; }
.faq-section details { border: 1px solid rgba(45,45,68,.1); border-radius: 12px; padding: 1rem; margin-bottom: .8rem; }
.faq-section summary { cursor: pointer; font-weight: 800; }
.faq-section p { margin-top: .8rem; margin-bottom: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card { background: var(--light); border-radius: 16px; padding: 1.2rem; }
.related-card span { color: var(--primary); font-size: .8rem; font-weight: 800; }
.related-card h3 { font-size: 1.1rem; margin: .5rem 0; }
.related-card a { color: var(--primary); font-weight: 800; }
@media (max-width: 992px) {
    .featured-grid, .post-shell { grid-template-columns: 1fr; }
    .toc-box { position: relative; top: auto; }
    .toc-box ol { display: none; }
    .toc-box.open ol { display: block; }
    .posts-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    header { padding: 1rem 5%; }
    header .btn { padding: .65rem 1rem; font-size: .85rem; }
    .news-hero { min-height: auto; padding-top: 7.25rem; padding-bottom: 2.75rem; }
    .post-hero { padding-top: 7.5rem; }
    .featured-section, .posts-section { padding: 3.5rem 5%; }
    .posts-grid, .related-grid { grid-template-columns: 1fr; }
    .featured-article h2 { font-size: 1.9rem; }
    .post-shell { padding: 2.5rem 5%; }
    .author-card { flex-direction: column; }
}
