/* ============================================
   Monkey Codev - Blog Styles
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-dark: #0a1929;
    --primary-darker: #050d18;
    --cyan-bright: #00d4ff;
    --cyan-dark: #0099cc;
    --gray-silver: #b3b3b3;
    --orange-accent: #ff7700;
    --green-whatsapp: #25d366;
    --white: #ffffff;
    --card-bg: #111d2e;
    --text-body: #d4d9e0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-body);
    line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-bright); }

/* Navbar */
.blog-navbar {
    background: rgba(5, 13, 24, 0.97);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--cyan-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-navbar .brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.blog-navbar .brand img { height: 50px; width: 50px; }

.blog-navbar .brand span {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--orange-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-navbar .nav-back {
    color: var(--gray-silver);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-navbar .nav-back:hover { color: var(--cyan-bright); }

/* Contenedor */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--gray-silver);
    margin-bottom: 2rem;
}

.breadcrumb a { color: var(--cyan-bright); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; }

/* Artículo */
.article-header { margin-bottom: 2.5rem; }

.article-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-bright);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--cyan-bright);
}

.article-header h1 {
    font-size: 2.6rem;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray-silver);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-meta span { display: flex; align-items: center; gap: 0.4rem; }
.article-meta i { color: var(--orange-accent); }

/* Imagen destacada */
.article-hero {
    width: 100%;
    height: 280px;
    border-radius: 15px;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid var(--cyan-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--cyan-bright);
}

/* Contenido del artículo */
.article-content { font-size: 1.08rem; }

.article-content h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.article-content h3 {
    color: var(--cyan-bright);
    font-size: 1.35rem;
    margin: 2rem 0 0.8rem;
}

.article-content p { margin-bottom: 1.3rem; }

.article-content ul,
.article-content ol {
    margin: 0 0 1.3rem 1.5rem;
}

.article-content li { margin-bottom: 0.7rem; }

.article-content strong { color: var(--white); }

.article-content a {
    color: var(--cyan-bright);
    text-decoration: underline;
    text-decoration-color: rgba(0, 212, 255, 0.4);
}

.article-content a:hover { text-decoration-color: var(--cyan-bright); }

.article-content blockquote {
    border-left: 4px solid var(--orange-accent);
    background: rgba(255, 119, 0, 0.08);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--white);
}

/* Tabla */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.article-content th {
    background: var(--cyan-dark);
    color: var(--white);
    padding: 0.9rem;
    text-align: left;
}

.article-content td {
    padding: 0.9rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.article-content tr:nth-child(even) { background: rgba(0, 212, 255, 0.04); }

/* Caja destacada */
.info-box {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 212, 255, 0.06) 100%);
    border: 1px solid var(--cyan-dark);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    color: var(--cyan-bright);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA WhatsApp */
.cta-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 119, 0, 0.1) 100%);
    border: 2px solid var(--cyan-bright);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.cta-box p { color: var(--gray-silver); margin-bottom: 1.5rem; }

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--green-whatsapp) 0%, #1da851 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.cta-button.cyan {
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--cyan-dark) 100%);
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* Artículos relacionados */
.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
}

.related-articles h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--cyan-dark);
    border-radius: 12px;
    padding: 1.3rem;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.related-card:hover {
    border-color: var(--cyan-bright);
    transform: translateY(-5px);
}

.related-card .r-tag {
    font-size: 0.75rem;
    color: var(--orange-accent);
    text-transform: uppercase;
    font-weight: 600;
}

.related-card h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.related-card span {
    color: var(--cyan-bright);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Blog Index */
.blog-hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.blog-hero h1 .highlight {
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--orange-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p { color: var(--gray-silver); font-size: 1.15rem; }

.posts-grid {
    max-width: 1100px;
    margin: 2rem auto 5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 212, 255, 0.04) 100%);
    border: 1px solid var(--cyan-dark);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--cyan-bright);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.post-card .post-img {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, rgba(0, 212, 255, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--cyan-bright);
}

.post-card .post-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.post-card .post-tag { font-size: 0.75rem; color: var(--orange-accent); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.post-card h2 { color: var(--white); font-size: 1.25rem; margin: 0.6rem 0; line-height: 1.4; }
.post-card p { color: var(--gray-silver); font-size: 0.95rem; flex-grow: 1; }
.post-card .post-read { color: var(--cyan-bright); font-weight: 600; margin-top: 1rem; font-size: 0.9rem; }

/* Footer */
.blog-footer {
    background: var(--primary-darker);
    border-top: 2px solid var(--cyan-dark);
    padding: 2rem;
    text-align: center;
    color: var(--gray-silver);
    font-size: 0.9rem;
}

.blog-footer a { color: var(--cyan-bright); text-decoration: none; }

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: var(--green-whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
    .article-header h1 { font-size: 1.9rem; }
    .blog-hero h1 { font-size: 2.1rem; }
    .article-content h2 { font-size: 1.5rem; }
    .blog-navbar { padding: 1rem; }
    .blog-navbar .brand span { font-size: 1.1rem; }
    .article-content { font-size: 1rem; }
    .article-hero { height: 200px; font-size: 4rem; }
}
