/* =============================================================================
   GUÍAS PAGE - V3 STYLE
   Matching the landing-v3 design language
   ============================================================================= */

/* Design Tokens from V3 */
:root {
    /* Color Foundation */
    --bg-base: #ffffff;
    --bg-surface: #fafafa;
    --bg-elevated: #f4f4f5;
    --bg-dark: #09090b;

    /* Foreground Hierarchy */
    --fg-primary: #09090b;
    --fg-secondary: #3f3f46;
    --fg-muted: #71717a;
    --fg-faint: #a1a1aa;

    /* Accent - Coral */
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-subtle: rgba(249, 115, 22, 0.1);

    /* Secondary - Teal */
    --accent-2: #14b8a6;
    --accent-2-hover: #0d9488;
    --accent-2-subtle: rgba(20, 184, 166, 0.1);

    /* Borders */
    --border: #e4e4e7;
    --border-strong: #d4d4d8;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Animation */
    --transition-fast: 120ms cubic-bezier(0.25, 1, 0.5, 1);
    --transition-normal: 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg-primary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--fg-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--fg-secondary);
    font-size: 1.125rem;
}

a {
    color: var(--fg-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-16) 0;
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-4) 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-img--invert {
    filter: invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: var(--fg-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--fg-primary);
}

.nav-cta {
    padding: var(--space-2) var(--space-4);
    background: var(--fg-primary);
    color: white !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--accent);
    color: white;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    padding: var(--space-2);
    background: transparent;
    border: none;
    color: var(--fg-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: var(--space-6);
        background: var(--bg-base);
        border-bottom: 1px solid var(--border);
        gap: var(--space-4);
    }
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
    padding: var(--space-20) 0 var(--space-12);
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-12);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    margin-bottom: var(--space-6);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--fg-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =============================================================================
   GUIDES GRID
   ============================================================================= */
.guides-section {
    padding-bottom: var(--space-20);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

/* Guide Card */
.guide-card {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.guide-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.guide-card-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.guide-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.guide-card-content {
    flex: 1;
}

.guide-card-tag {
    display: inline-block;
    padding: 2px var(--space-2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
}

.guide-card-tag.orange {
    background: var(--accent-subtle);
    color: var(--accent);
}

.guide-card-tag.teal {
    background: var(--accent-2-subtle);
    color: var(--accent-2);
}

.guide-card h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-1);
    color: var(--fg-primary);
    transition: color var(--transition-fast);
}

.guide-card:hover h2 {
    color: var(--accent);
}

.guide-card-arrow {
    width: 24px;
    height: 24px;
    color: var(--fg-faint);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.guide-card:hover .guide-card-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
    padding: var(--space-12) 0;
    background: var(--bg-dark);
    color: white;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer-logo img {
    height: 48px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: var(--space-8);
}

.footer-link {
    font-size: 14px;
    color: var(--fg-faint);
}

.footer-link:hover {
    color: white;
}

.footer-contact {
    display: flex;
    gap: var(--space-6);
    font-size: 14px;
    color: var(--fg-faint);
    font-family: var(--font-mono);
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        flex-direction: column;
        gap: var(--space-2);
    }
}
