/* ============================================
   repositorIA — Arctic Minimalist Design System v4.0
   Diseño generado con Google Stitch + Antigravity
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;700&display=swap');

:root {
    /* ─── Paleta Ártica ─── */
    --bg-white: #FFFFFF;
    --bg-ice: #F7FAFE;
    --bg-glacier: #F0F4F8;
    --bg-frost: #E8EEF4;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-glass: rgba(255, 255, 255, 0.55);
    --bg-terminal: rgba(240, 244, 248, 0.85);

    /* ─── Acentos Azul Glaciar ─── */
    --accent-ice: #4A90B8;
    --accent-sky: #6FA8C7;
    --accent-frost: #B8D4E3;
    --accent-glow: rgba(74, 144, 184, 0.12);
    --accent-bg: rgba(74, 144, 184, 0.06);
    --accent-aurora-start: #6FA8C7;
    --accent-aurora-end: #9B8EC4;

    /* ─── Textos ─── */
    --text-dark: #1A2332;
    --text-body: #3D4F5F;
    --text-muted: #7B8FA0;
    --text-label: #94A3B3;

    /* ─── Bordes ─── */
    --border-light: #E2EBF0;
    --border-hover: #B8D4E3;
    --border-glass: rgba(226, 235, 240, 0.6);

    /* ─── Tipografía ─── */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* ─── Bordes redondeados ─── */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* ─── Sombras Suaves ─── */
    --shadow-xs: 0 1px 3px rgba(26, 35, 50, 0.04);
    --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 35, 50, 0.1);
    --shadow-glow: 0 0 24px rgba(74, 144, 184, 0.15);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-body);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   HEADER — Glassmorphism Ártico
   ============================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-light);
    height: 64px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

header:hover {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-aurora-start), var(--accent-aurora-end));
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(74, 144, 184, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-mark:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 184, 0.35);
}

.logo-mark span {
    color: #FFFFFF;
    font-weight: 800;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-dark);
}

.logo-text .accent {
    color: var(--accent-ice);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-aurora-start), var(--accent-aurora-end));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
    width: 100%;
}

.nav-links a .nav-num {
    color: var(--accent-ice);
    margin-right: 4px;
    font-weight: 600;
    font-size: 0.78rem;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--accent-ice);
}

.btn-access {
    background: linear-gradient(135deg, var(--accent-aurora-start), var(--accent-aurora-end));
    color: #FFFFFF !important;
    padding: 9px 22px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 184, 0.25);
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 144, 184, 0.35);
}

/* ============================================
   HERO — Paisaje Ártico
   ============================================ */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background: var(--bg-ice);
    overflow: hidden;
    text-align: center;
    /* Centrado masivo */
}

/* Animación Aurora de Fondo */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.05;
    z-index: 0;
    animation: float 20s infinite alternate ease-in-out;
}

.hero::before {
    background: var(--accent-sky);
    top: -100px;
    left: -100px;
}

.hero::after {
    background: var(--accent-aurora-end);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

.hero-layout {
    position: relative;
    z-index: 1;
    max-width: 900px;
    /* Ancho máximo para lectura cómoda */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Badge de Versión (Píldora) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-sky);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent-sky);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-sky);
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    /* Más limpio que JetBrains para títulos masivos */
    font-size: 4.5rem;
    /* Gigante */
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent-aurora-start), var(--accent-aurora-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    box-shadow: 0 4px 16px rgba(74, 144, 184, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(74, 144, 184, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark) !important;
    padding: 14px 32px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--accent-frost);
    color: var(--accent-ice) !important;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-terminal-box {
    background: var(--bg-terminal);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    padding: 32px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 2;
    color: var(--text-muted);
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero-terminal-box::before {
    content: '> TERMINAL_OUTPUT';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--bg-glacier);
    padding: 2px 12px;
    font-size: 0.62rem;
    color: var(--accent-ice);
    letter-spacing: 0.12em;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    font-weight: 600;
}

.hero-terminal-box .hl {
    color: var(--accent-ice);
    font-weight: 600;
}

.hero-terminal-box .str {
    color: #5BA888;
}

.hero-terminal-box .cmt {
    color: var(--text-label);
}

/* ============================================
   STATS / COUNTERS BAR — Barra Glaciar
   ============================================ */
.stats-bar {
    background: var(--bg-glacier);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 28px 0;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 16px;
    border-right: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-aurora-start), var(--accent-aurora-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-main);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-main);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-ice);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: var(--font-main);
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
}

.section-code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-sky);
    text-align: right;
    line-height: 1.7;
    font-weight: 500;
}

/* ============================================
   PROJECT CARDS — Tarjetas de Hielo
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.35s ease;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.project-card:hover {
    border-color: var(--accent-frost);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-aurora-start), var(--accent-aurora-end));
    transition: width 0.4s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 1;
}

.project-card:hover::before {
    width: 100%;
}

.project-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.95) saturate(0.85);
    transition: all 0.35s ease;
    display: block;
}

.project-card:hover .project-thumb {
    filter: brightness(1) saturate(1);
}

.project-body {
    padding: 24px;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-ice);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-footer {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.btn-yt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    background: #E8383D;
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-yt:hover {
    background: #CC2D32;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 56, 61, 0.25);
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-demo:hover {
    border-color: var(--accent-frost);
    color: var(--accent-ice);
    background: var(--accent-bg);
}

/* YouTube embed mini */
.yt-embed {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.yt-embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82);
    transition: all 0.35s ease;
}

.yt-embed:hover img {
    filter: brightness(0.92);
    transform: scale(1.03);
}

.yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(232, 56, 61, 0.92);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(232, 56, 61, 0.3);
}

.yt-play::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #FFFFFF;
    margin-left: 3px;
}

.yt-embed:hover .yt-play {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 6px 24px rgba(232, 56, 61, 0.4);
}

/* ============================================
   AI DIRECTORY — Directorio Glaciar
   ============================================ */
.tools-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 40px 0 100px;
}

.sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-label {
    font-family: var(--font-main);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    display: block;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 450;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-bg);
    border-left-color: var(--accent-ice);
    color: var(--accent-ice);
}

.filter-btn .f-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.7;
}

.filter-btn .f-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-label);
    background: var(--bg-glacier);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Search */
.search-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 14px 20px 14px 48px;
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.search-input::placeholder {
    color: var(--text-label);
}

.search-input:focus {
    border-color: var(--accent-frost);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-label);
    font-size: 1.2rem;
}

/* Tool Grid & Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.tool-card:hover {
    border-color: var(--accent-frost);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tool-card[data-hidden="true"] {
    display: none;
}

.tool-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.tool-icon-box {
    width: 44px;
    height: 44px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-frost);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--accent-ice);
}

.tool-pricing {
    font-family: var(--font-main);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    letter-spacing: 0.03em;
    border-radius: 100px;
}

.tool-pricing.free {
    background: rgba(91, 168, 136, 0.1);
    color: #3D917A;
    border: 1px solid rgba(91, 168, 136, 0.25);
}

.tool-pricing.paid {
    background: rgba(210, 155, 60, 0.1);
    color: #B8860B;
    border: 1px solid rgba(210, 155, 60, 0.25);
}

.tool-pricing.freemium {
    background: rgba(74, 144, 184, 0.1);
    color: var(--accent-ice);
    border: 1px solid rgba(74, 144, 184, 0.25);
}

.tool-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.tool-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
}

.tool-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    padding: 4px 8px;
    background: var(--bg-glacier);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    text-transform: uppercase;
    border-radius: 6px;
    font-weight: 500;
}

.tech-tag.accent {
    border-color: var(--accent-frost);
    color: var(--accent-ice);
    background: var(--accent-bg);
}

.btn-tool {
    width: 100%;
    display: block;
    text-align: center;
    border: 1px solid var(--border-light);
    padding: 11px;
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.btn-tool:hover {
    background: linear-gradient(135deg, var(--accent-aurora-start), var(--accent-aurora-end));
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(74, 144, 184, 0.25);
    transform: translateY(-1px);
}

/* ============================================
   FEATURED PREVIEW — Tarjetas Frost
   ============================================ */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.preview-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 28px;
    transition: all 0.35s ease;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-aurora-start), var(--accent-aurora-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-card:hover {
    border-color: var(--accent-frost);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.preview-card:hover::before {
    opacity: 1;
}

.preview-card .preview-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-ice);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 600;
}

.preview-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.preview-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================
   CTA SECTION — Aurora Borealis
   ============================================ */
.cta-section {
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-glacier) 0%, var(--bg-frost) 50%, var(--bg-glacier) 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(111, 168, 199, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================
   FOOTER — Base Polar
   ============================================ */
footer {
    background: var(--bg-glacier);
    padding: 56px 0 28px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-main);
    font-size: 0.72rem;
    color: var(--accent-ice);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.85rem;
    padding: 4px 0;
    transition: all 0.25s ease;
    font-weight: 400;
}

.footer-col a:hover {
    color: var(--accent-ice);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: var(--text-label);
}

.footer-bottom .status {
    color: var(--accent-ice);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
}

/* ============================================
   ANIMATIONS — Suaves como la nieve
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.animate {
    opacity: 0;
    animation: fadeUp 0.7s ease-out forwards;
}

.animate-d1 {
    animation-delay: 0.15s;
}

.animate-d2 {
    animation-delay: 0.3s;
}

.animate-d3 {
    animation-delay: 0.45s;
}

/* ============================================
   RESPONSIVE — Adaptación Glacial
   ============================================ */
@media (max-width: 968px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .tools-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SCROLLBAR — Estilo Ártico
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-glacier);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-frost);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-sky);
}

/* ============================================
   SELECTION — Selección Glaciar
   ============================================ */
::selection {
    background: rgba(74, 144, 184, 0.2);
    color: var(--text-dark);
}