@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #020205;
    --bg-surface: #0a0b14;
    --bg-surface-glass: rgba(10, 11, 20, 0.75);
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.35);
    --accent: #5d00ff;
    --accent-glow: rgba(93, 0, 255, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --gradient-main: linear-gradient(135deg, #00f2ff 0%, #0066ff 100%);
    --gradient-accent: linear-gradient(135deg, #5d00ff 0%, #00f2ff 100%);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 255, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --glass-bg: rgba(10, 11, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-color: #00f2ff;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.cta-btn {
    padding: 0.6rem 1.4rem;
    background: var(--gradient-main);
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Header / Hero */
header {
    padding: 12rem 2.5rem 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(0, 242, 255, 0.1), transparent 70%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.doc-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid & Cards */
main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px 0 rgba(0, 242, 255, 0.15);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.action-btn {
    flex: 1;
    padding: 0.7rem 0.4rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn i {
    font-size: 1.1rem;
}

.action-btn.pdf-es {
    background: var(--gradient-main);
    color: var(--bg-dark);
}

.action-btn.pdf-en {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
    border-color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Media Queries */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .grid { grid-template-columns: 1fr; }
}

/* Manual Specific Styles */
.manual-container {
    max-width: 900px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.manual-container h1 { font-size: 3rem; margin-bottom: 2rem; }
.manual-container h2 { color: var(--primary); margin: 3rem 0 1.5rem; }
.manual-container p { margin-bottom: 1.5rem; color: var(--text-muted); }
.manual-container img.screenshot {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 2rem 0;
}