/* ═══════════════════════════════════════════════════════════════
   EXECUTIVE DESIGN SYSTEM - NICOLÁS DUPLAT PORTFOLIO & CLOUD SIMULATOR
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #090a10;
    --bg-secondary: #0f111a;
    --bg-tertiary: #161926;
    --bg-card: #141724;
    --bg-card-hover: #1c2033;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent2: #ec4899;
    --accent2-glow: rgba(236, 72, 153, 0.2);
    
    --gcp-blue: #3b82f6;
    --azure-blue: #0284c7;
    --aws-orange: #f97316;
    --vultr-blue: #0ea5e9;
    
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.2);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.2);
    --danger: #ef4444;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Bebas Neue', Impact, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 15px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Global Icon Constraints */
svg {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Common Layout Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-label::before {
    content: "//";
    color: var(--text-muted);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    line-height: 1.05;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

section {
    padding: 90px 0;
    position: relative;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   NAVBAR & NAVIGATION
   ═══════════════════════════════════════ */
nav#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 36px;
    background: rgba(9, 10, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}

nav#navbar.scrolled {
    padding: 12px 36px;
    background: rgba(9, 10, 16, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}
.nav-logo span {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: 50px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.25s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}
.nav-links a.active {
    color: #ffffff !important;
    background: var(--accent) !important;
    font-weight: 600;
    box-shadow: 0 0 16px var(--accent-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-social {
    display: flex;
    gap: 10px;
}
.nav-social a {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}
.nav-social a:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-glow);
}
.nav-social svg {
    width: 18px;
    height: 18px;
}

/* Profile Toggle Dual */
.profile-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 3px;
}
.profile-toggle button {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.profile-toggle button.active {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 3px;
}
.lang-toggle button {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
}
.lang-toggle button.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
}

/* PDF Button */
.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
    box-shadow: 0 0 16px var(--accent-glow);
}
.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.45);
}
.btn-pdf svg {
    width: 15px;
    height: 15px;
}

/* Hamburger Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu Backdrop & Panel */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-menu-backdrop.active, .mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 300px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 999;
    padding: 80px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
}
.mobile-menu.active, .mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}
.mobile-menu a:hover {
    color: var(--accent-light);
}

/* ═══════════════════════════════════════
   HERO SECTION & AVATAR CARD
   ═══════════════════════════════════════ */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1.2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7.5vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.hero-name .accent { color: var(--accent-light); }
.hero-name .accent2 { color: var(--accent2); }

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 640px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-primary);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.hero-ctas {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(2, 132, 199, 0.4);
    color: #38bdf8;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}
.btn-linkedin:hover {
    background: rgba(2, 132, 199, 0.25);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}
.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Executive Avatar Card (Replacing RAW 'ND' Box) */
.hero-avatar-card {
    width: 320px;
    background: linear-gradient(145deg, rgba(20, 23, 36, 0.9), rgba(12, 13, 22, 0.95));
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.12);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hero-avatar-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}
.hero-avatar-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero-avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    box-shadow: 0 0 20px var(--accent-glow);
    flex-shrink: 0;
}
.hero-status-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}
.hero-avatar-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.hero-avatar-role {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.hero-avatar-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.hero-stack-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.stack-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.stack-dot.gcp { background: var(--gcp-blue); }
.stack-dot.angular { background: #ef4444; }
.stack-dot.python { background: #38bdf8; }
.stack-dot.ai { background: var(--gold); }

/* ═══════════════════════════════════════
   PROJECT CARDS & SKILLS GRID (ULTRA-LEGIBLE)
   ═══════════════════════════════════════ */
.projects-grid, .skills-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card, .skill-group, .service-card, .exp-card, .edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.project-card:hover, .service-card:hover, .exp-card:hover, .skill-group:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    width: fit-content;
}
.cat-infra { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.cat-crm { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.cat-ecommerce { background: rgba(236, 72, 153, 0.12); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }
.cat-gobierno { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.cat-ia { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.cat-creativo { background: rgba(236, 72, 153, 0.12); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }

.project-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.25;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 400;
}

.project-plain {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-light);
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.highlight {
    font-size: 0.85rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.highlight-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.tech-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.2s;
}
.project-link:hover {
    color: #ffffff;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.filter-btn.active, .filter-btn:hover {
    border-color: var(--accent);
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* ═══════════════════════════════════════
   SKILLS & EXPERIENCE TIMELINE
   ═══════════════════════════════════════ */
.skill-group-header {
    margin-bottom: 18px;
}
.skill-group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.skill-group-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}
.skill-tag.primary {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-light);
    font-weight: 600;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border);
}
.timeline-item {
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: -27px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.exp-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.exp-company {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 500;
}
.exp-badge {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}
.badge-featured { background: rgba(99, 102, 241, 0.15); color: var(--accent-light); border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-special { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-gov { background: rgba(245, 158, 11, 0.15); color: var(--gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-default { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border); }
.exp-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   CLOUD SIMULATOR CALCULATOR STYLES
   ═══════════════════════════════════════ */
section.hero {
    padding-top: 130px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
}
.hero-title {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    font-weight: 900;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero-subtitle {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 820px;
    margin: 0 auto 28px auto;
}

.preset-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.btn-preset {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-preset.active, .btn-preset:hover {
    border-color: var(--green);
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 0 20px var(--green-glow);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    margin-bottom: 60px;
}

.calc-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cloud-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.cloud-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.cloud-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.cloud-card.active[data-cloud="gcp"] { border-color: var(--gcp-blue); background: rgba(59, 130, 246, 0.12); box-shadow: 0 0 20px rgba(59, 130, 246, 0.25); }
.cloud-card.active[data-cloud="azure"] { border-color: var(--azure-blue); background: rgba(2, 132, 199, 0.12); box-shadow: 0 0 20px rgba(2, 132, 199, 0.25); }
.cloud-card.active[data-cloud="aws"] { border-color: var(--aws-orange); background: rgba(249, 115, 22, 0.12); box-shadow: 0 0 20px rgba(249, 115, 22, 0.25); }
.cloud-card.active[data-cloud="vultr"] { border-color: var(--vultr-blue); background: rgba(14, 165, 233, 0.12); box-shadow: 0 0 20px rgba(14, 165, 233, 0.25); }

.cloud-badge-rec {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.cloud-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.cloud-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.cloud-price-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.control-group {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: var(--radius-md);
}
.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.control-val {
    font-family: var(--font-mono);
    color: var(--accent-light);
    font-size: 0.9rem;
}
.control-help {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.input-range {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}
.range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-top: 6px;
}

.select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}
.btn-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--ease);
}
.btn-select.active, .btn-select:hover {
    border-color: var(--accent);
    color: #ffffff;
    background: var(--accent);
}

.result-card {
    background: linear-gradient(160deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 20px 22px;
    box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 90px;
    z-index: 20;
}

/* Dual cost hero: Pago Único vs Pago Mensual (Compact & Sleek) */
.cost-hero-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.cost-hero-mini {
    border-radius: var(--radius-md);
    padding: 10px 12px;
    text-align: center;
}
.cost-hero-mini.is-setup {
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed var(--gold);
}
.cost-hero-mini.is-monthly {
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed var(--green);
}
.cost-hero-mini-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 50px;
    margin-bottom: 3px;
}
.is-setup .cost-hero-mini-tag { background: rgba(245, 158, 11, 0.18); color: var(--gold); }
.is-monthly .cost-hero-mini-tag { background: rgba(16, 185, 129, 0.18); color: var(--green); }
.cost-hero-mini-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.cost-hero-mini-amount {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 900;
    line-height: 1.1;
}
.is-setup .cost-hero-mini-amount { color: var(--gold); }
.is-monthly .cost-hero-mini-amount { color: var(--green); }
.cost-hero-mini-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Línea de tiempo de pagos */
.payment-timeline {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.payment-timeline strong {
    color: var(--text-primary);
    font-weight: 700;
}
.payment-timeline .pt-arrow {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 20px rgba(37, 211, 102, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-bounce), box-shadow 0.3s;
}
.floating-whatsapp.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.65);
    color: #ffffff;
}
.floating-whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Guided Tour Walkthrough System */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.tour-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.tour-highlight {
    position: relative;
    z-index: 3001 !important;
    box-shadow: 0 0 0 4px var(--accent), 0 0 35px var(--accent-glow) !important;
    border-radius: var(--radius-md);
    transition: box-shadow 0.3s;
}
.tour-popover {
    position: fixed;
    z-index: 3002;
    background: #141726;
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    max-width: 380px;
    width: calc(100vw - 32px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--accent-glow);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.3s var(--ease-bounce);
}
.tour-popover.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.tour-step-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.15);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}
.tour-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.tour-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
}
.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.tour-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.tour-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.tour-btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.tour-btn-primary:hover {
    background: var(--accent-light);
}
#tourBtnSkip {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    font-weight: 700 !important;
}
#tourBtnSkip:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #ef4444 !important;
}

.cost-hero {
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 22px;
}
.cost-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 6px;
}
.cost-amount-cop {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 4px;
}
.cost-amount-usd {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.provider-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.breakdown-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border);
    padding-bottom: 6px;
}
.breakdown-val {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.promo-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #fef08a;
    margin-bottom: 24px;
}
.promo-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.actions-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
}
.btn-whatsapp {
    background: #10b981;
    color: #000000;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-whatsapp:hover {
    background: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}
.btn-copy {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.btn-copy:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Timeline & Phases Grid */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.phase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.phase-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Table Wrapper */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow-x: auto;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    min-width: 650px;
}
th {
    background: var(--bg-tertiary);
    padding: 16px 20px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-family: var(--font-mono);
}
td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

/* Modal Dialog System */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}
.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(145deg, #121524, #0b0d18);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--gold-glow);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s var(--ease-bounce);
}
.modal-backdrop.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}
.modal-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-client-input-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: var(--radius-md);
}
.modal-client-input-bar label {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
}
.modal-client-input {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    flex: 1;
    outline: none;
    transition: border-color 0.2s;
}
.modal-client-input:focus {
    border-color: var(--gold);
}

.script-section {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}
.script-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.script-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.script-text strong {
    color: var(--text-primary);
}
.script-highlight-val {
    color: var(--gold);
    font-weight: 700;
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.modal-footer {
    padding: 18px 28px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--green);
    color: #000;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s var(--ease-bounce);
    z-index: 9999;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Section Header Center */
.section-header-center {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 48px;
}
.section-header-center .hero-badge {
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 12px;
}

/* DRP Grid */
.drp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.drp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
}
.drp-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.drp-icon {
    font-size: 1.8rem;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   RESPONSIVE QUERIES
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-avatar-card { width: 100%; max-width: 360px; }
    .calculator-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .cloud-grid { grid-template-columns: repeat(2, 1fr); }
    nav#navbar { padding: 14px 20px; }
    .container { padding: 0 16px; }
    .cost-hero-dual { grid-template-columns: 1fr; }
}