/* Estilos para páginas de notas */
:root {
    --snowflake-blue: #29B5E8;
    --snowflake-mid: #11567F;
    --iceberg: #003545;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    background: #F8FAFC;
}

.nota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid rgba(41, 181, 232, 0.2);
}

.back-link {
    color: var(--snowflake-blue);
    font-weight: 500;
    text-decoration: none;
}

.back-link:hover {
    color: var(--snowflake-mid);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--iceberg);
    text-decoration: none;
}

.logo .logo-img {
    height: 77px;
    width: auto;
    display: block;
}

.nota-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.nota-article-header {
    margin-bottom: 2rem;
}

.nota-article-header time {
    display: block;
    font-size: 0.9rem;
    color: var(--snowflake-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.nota-article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
}

.nota-figure {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.nota-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.nota-source {
    margin: -0.5rem 0 1rem;
    font-size: 0.95rem;
}

.nota-source a {
    color: var(--snowflake-blue);
    font-weight: 600;
    text-decoration: none;
}

.nota-source a:hover {
    color: var(--snowflake-mid);
    text-decoration: underline;
}

.nota-borrador {
    padding: 1.25rem 1.5rem;
    background: #FFF8E6;
    border: 1px solid rgba(234, 179, 8, 0.45);
    border-radius: 10px;
    color: var(--text-dark);
}

.nota-borrador p {
    margin: 0;
}

.nota-body {
    margin-top: 2rem;
}

.nota-body p {
    margin-bottom: 1.25rem;
}

.nota-body p:last-child {
    margin-bottom: 0;
}

.nota-body h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--iceberg);
}

.nota-body h2:first-of-type {
    margin-top: 1.5rem;
}

.nota-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(41, 181, 232, 0.1) 0%, rgba(113, 211, 220, 0.15) 100%);
    border: 1px solid rgba(41, 181, 232, 0.25);
    border-radius: 12px;
}

.nota-cta p {
    margin: 0;
    font-size: 1rem;
}

.nota-cta a {
    color: var(--snowflake-blue);
    font-weight: 600;
}

.nota-cta a:hover {
    color: var(--snowflake-mid);
}

.nota-footer {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    border-top: 1px solid rgba(41, 181, 232, 0.15);
}

.nota-footer a {
    color: var(--snowflake-blue);
    font-weight: 500;
    text-decoration: none;
}

.nota-footer a:hover {
    color: var(--snowflake-mid);
}

/* ========== Responsive - Páginas de notas ========== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .nota-header {
        padding: 0.75rem 1rem;
        padding-top: max(0.75rem, env(safe-area-inset-top));
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nota-article {
        padding: 1.5rem 1rem;
    }
    
    .nota-article-header h1 {
        font-size: 1.35rem;
        line-height: 1.35;
    }
    
    .nota-figure {
        margin: 1.5rem 0;
        border-radius: 8px;
    }
    
    .nota-body h2 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    .nota-cta {
        margin-top: 2rem;
        padding: 1.25rem;
    }
    
    .nota-cta p {
        font-size: 0.95rem;
    }
    
    .nota-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
    
    .nota-footer a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nota-article-header h1 {
        font-size: 1.2rem;
    }
    
    .back-link {
        font-size: 0.9rem;
    }
    
    .logo .logo-img {
        height: 58px;
    }
}
