/* ===== PORTAL SUR — Estilos públicos ===== */
:root {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #0d5c56;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255,255,255,0.1);
    --gradient-1: linear-gradient(135deg, #0f766e 0%, #0ea5e9 50%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 72px; /* navbar fixed */
}

#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.navbar.scrolled { padding: 0.75rem 2rem; background: rgba(2, 6, 23, 0.95); }
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo i { color: var(--primary-light); font-size: 1.8rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-weight: 500; font-size: 0.9rem;
    transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--gradient-1); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    padding: 0.6rem 1.5rem;
    background: var(--gradient-1); color: white;
    border: none; border-radius: 50px;
    font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all 0.3s ease;
    text-decoration: none; display: inline-block;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15, 118, 110, 0.4); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; z-index: 1;
}
.hero-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(15, 118, 110, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: 0;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 0 2rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 50px; font-size: 0.85rem;
    color: var(--primary-light); margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}
.hero-badge .pulse {
    width: 8px; height: 8px;
    background: var(--primary-light);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700; line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}
.hero h1 .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}
.hero-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}
.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--gradient-1); color: white;
    border: none; border-radius: 50px;
    font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(15, 118, 110, 0.3); }
.btn-secondary {
    padding: 1rem 2.5rem; background: transparent;
    color: var(--text-primary); border: 2px solid var(--border);
    border-radius: 50px; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--primary-light); color: var(--primary-light); transform: translateY(-3px); }
.hero-stats {
    display: flex; justify-content: center; gap: 3rem; margin-top: 4rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem; font-weight: 700;
    color: var(--text-primary); display: block;
}
.stat-label {
    font-size: 0.85rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}
.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%); animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== FEATURES ===== */
.features { position: relative; z-index: 1; padding: 8rem 2rem; background: var(--bg-dark); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-tag {
    display: inline-block; padding: 0.4rem 1rem;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 50px; font-size: 0.8rem;
    color: var(--primary-light); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 1rem;
}
.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; margin-bottom: 1rem;
}
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }
.features-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0); transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-icon {
    width: 60px; height: 60px;
    background: var(--gradient-1); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white; margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem; font-weight: 600; margin-bottom: 0.75rem;
}
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ===== COMMUNITY ===== */
.community {
    position: relative; z-index: 1;
    padding: 8rem 2rem; background: var(--bg-darker); overflow: hidden;
}
.community::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.community-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.community-visual { position: relative; }
.community-image {
    width: 100%; border-radius: 24px; overflow: hidden;
    position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.community-image img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.community-image:hover img { transform: scale(1.05); }
.community-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(2,6,23,0.8) 100%);
}
.floating-card {
    position: absolute;
    background: var(--glass); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1rem 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
    animation: float 6s ease-in-out infinite;
}
.floating-card.card-1 { top: 10%; right: -10%; animation-delay: 0s; }
.floating-card.card-2 { bottom: 20%; left: -10%; animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.floating-card i { font-size: 1.5rem; color: var(--primary-light); }
.floating-card span { font-weight: 600; font-size: 0.9rem; }
.community-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2;
}
.community-content > p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; }
.community-list { list-style: none; margin-bottom: 2.5rem; }
.community-list li {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1rem; color: var(--text-secondary);
}
.community-list li i {
    width: 32px; height: 32px;
    background: rgba(15, 118, 110, 0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); font-size: 0.9rem;
}

/* ===== CTA ===== */
.cta-section {
    position: relative; z-index: 1;
    padding: 8rem 2rem; background: var(--bg-dark); overflow: hidden;
}
.cta-container {
    max-width: 1000px; margin: 0 auto;
    background: var(--gradient-1); border-radius: 32px;
    padding: 4rem; text-align: center;
    position: relative; overflow: hidden;
}
.cta-container::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; margin-bottom: 1rem; color: white;
}
.cta-content p {
    font-size: 1.1rem; color: rgba(255,255,255,0.8);
    max-width: 600px; margin: 0 auto 2rem;
}
.btn-white {
    padding: 1rem 2.5rem;
    background: white; color: var(--primary-dark);
    border: none; border-radius: 50px;
    font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

/* ===== FOOTER ===== */
.footer {
    position: relative; z-index: 1;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.footer-brand .logo i { color: var(--primary-light); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 1.5rem;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column ul li a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.9rem; transition: color 0.3s ease;
    display: flex; align-items: center; gap: 0.5rem;
}
.footer-column ul li a:hover { color: var(--primary-light); }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
    width: 40px; height: 40px;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--primary); border-color: var(--primary);
    color: white; transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.85rem; transition: color 0.3s ease;
}
.footer-bottom-links a:hover { color: var(--text-primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== CONTENT PAGE (nodos, etc) ===== */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    position: relative;
    z-index: 1;
}
.page-container h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem; margin-bottom: 1rem;
}
.page-container .lead { color: var(--text-secondary); margin-bottom: 2rem; }
.node-card {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.node-card:hover {
    border-color: rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}
.node-card h3 { font-family: 'Space Grotesk', sans-serif; margin-bottom: 0.5rem; }
.node-card h3 a { color: var(--text-primary); text-decoration: none; }
.node-card h3 a:hover { color: var(--primary-light); }
.node-card .meta { color: var(--text-muted); font-size: 0.9rem; }
.node-card .desc { margin-top: 0.75rem; color: var(--text-secondary); }

.badge {
    display: inline-block; padding: 0.2rem 0.7rem;
    border-radius: 20px; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 1px;
    margin-left: 0.5rem; vertical-align: middle;
    font-weight: 600;
}
.badge-draft { background: #475569; color: white; }
.badge-active { background: var(--primary-light); color: #0f172a; }
.badge-archived { background: #7f1d1d; color: white; }

.muted { color: var(--text-muted); }
.btn-link {
    display: inline-block; padding: 0.5rem 1.2rem;
    background: var(--primary-light); color: #0f172a;
    text-decoration: none; border-radius: 6px;
    font-weight: 600; transition: opacity 0.2s;
}
.btn-link:hover { opacity: 0.85; }

/* ===== SECCIÓN SOBERANÍA ===== */
.soberania {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    background: var(--bg-darker);
    overflow: hidden;
}
.soberania::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.soberania-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.soberania-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.soberania-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.soberania-card:hover::after {
    transform: scaleX(1);
}
.soberania-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.4);
    background: rgba(20, 184, 166, 0.04);
}
.soberania-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin: 0 auto 1.25rem;
}
.soberania-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.soberania-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}
.soberania-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== PÁGINA SOBERANÍA ===== */
.soberania-page {
    max-width: 760px;
}
.soberania-page h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}
.soberania-page .lead {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 3rem;
    font-style: italic;
}
.prose p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.prose p strong {
    color: var(--text-primary);
}
.prose h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.prose h2:first-of-type {
    border-top: none;
    padding-top: 0;
}
.prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}
.soberania-cierre {
    font-size: 1.3rem !important;
    color: var(--primary-light) !important;
    text-align: center;
    margin-top: 2rem !important;
}
.soberania-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .soberania-grid {
        grid-template-columns: 1fr;
    }
    .soberania-actions {
        flex-direction: column;
    }
    .soberania-actions .btn-primary,
    .soberania-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .community-container { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 2rem; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .footer-top { grid-template-columns: 1fr; }
    .cta-container { padding: 2rem; }
    .floating-card { display: none; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================================================
   ESPECIFICACIÓN TÉCNICA Y NODE CONTRACT
   ========================================================================== */

.contract-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.contract-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.contract-path {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--primary-light);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.section-block {
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary-light);
    font-size: 1.3rem;
}

/* Grilla de Principios */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.principle-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.principle-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.principle-card i {
    color: var(--primary-light);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.principle-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tarjetas de Endpoints */
.endpoint-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    transition: all 0.3s ease;
}

.endpoint-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.http-method {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.method-get {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.method-post {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.endpoint-path {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badge-optional {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.endpoint-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Bloques de Código JSON */
.code-block {
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    font-family: 'Consolas', 'Fira Code', Monaco, monospace;
    font-size: 0.88rem;
    color: #e2e8f0;
    overflow-x: auto;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.endpoint-usage {
    font-size: 0.88rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary-light);
    padding: 0.6rem 1rem;
    border-radius: 0 8px 8px 0;
}

/* Lista Prohibitiva (Lo que NUNCA pide) */
.never-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    list-style: none;
}

.never-item {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 500;
}

.never-item i {
    color: #ef4444;
}

/* Pasos / Proceso */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    padding-left: 1.5rem;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 23px;
    width: 2px;
    background: var(--border);
}

.step-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
    flex-shrink: 0;
}

.step-text {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.highlight-note {
    margin-top: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--accent-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== LEGAL / MANIFIESTO ===== */
.legal-page, .manifiesto-page {
    max-width: 760px;
}
.legal-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    color: var(--accent-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.legal-banner i {
    font-size: 1.2rem;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.legal-table th, .legal-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.legal-table th {
    color: var(--primary-light);
    font-weight: 600;
}
.legal-table code {
    background: rgba(255,255,255,0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.manifiesto-cierre {
    font-size: 1.3rem !important;
    color: var(--primary-light) !important;
    text-align: center;
    margin-top: 2rem !important;
}