/* ==========================================================================
   HPB DIGITAL SOLUTIONS (harrypardo.cl) - AURORA CYBER DESIGN SYSTEM
   Modern, Executive & High-Tech Obsidian Dark Edition
   Primary Accents: Emerald Mint (#10b981 / #06f5d6) & Electric Indigo (#6366f1)
   Author: Harry Pardo
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #040711;
    --bg-card: rgba(11, 18, 33, 0.75);
    --bg-card-hover: rgba(16, 26, 48, 0.9);
    --border-color: rgba(99, 102, 241, 0.15);
    --border-glow: rgba(6, 245, 214, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Brand Accents */
    --primary: #10b981;          /* Emerald Mint */
    --primary-light: #06f5d6;    /* Neon Teal */
    --primary-hover: #059669;
    --primary-glow: rgba(6, 245, 214, 0.35);
    
    --secondary: #6366f1;        /* Electric Indigo */
    --secondary-light: #818cf8;
    --secondary-hover: #4f46e5;
    --secondary-glow: rgba(99, 102, 241, 0.35);
    
    --accent-purple: #a855f7;    /* Radiant Violet */
    --accent-cyan: #38bdf8;      /* Ice Cyan */
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout & Dimensions */
    --container-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --border-radius-sm: 10px;
    --border-radius-md: 18px;
    --border-radius-lg: 26px;
    --shadow-premium: 0 12px 36px -8px rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(7, 12, 24, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================
   BASE & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 30%, rgba(6, 245, 214, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(168, 85, 247, 0.07) 0%, transparent 45%),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   BUTTONS & UI COMPONENTS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #040711;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(6, 245, 214, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #06f5d6 0%, #38bdf8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(6, 245, 214, 0.55);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background-color: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
    border-color: var(--secondary-light);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: #ffffff;
}

.btn-outline:hover {
    border-color: var(--primary-light);
    background-color: rgba(6, 245, 214, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(6, 245, 214, 0.25);
}

.btn-hablemos {
    padding: 0.6rem 1.35rem;
    font-size: 0.85rem;
    border-radius: 50px;
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.08);
}

.btn-hablemos:hover {
    border-color: var(--primary-light);
    background: rgba(6, 245, 214, 0.12);
    box-shadow: 0 0 18px rgba(6, 245, 214, 0.35);
}

.btn-email {
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-email:hover {
    border-color: var(--secondary-light);
    background-color: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

/* Status Badges */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-light);
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.badge-pill .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-light);
    box-shadow: 0 0 8px var(--primary-light);
    animation: blinkDot 2s infinite ease-in-out;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Gradients & Text FX */
.text-gradient {
    background: linear-gradient(135deg, #06f5d6 0%, #38bdf8 35%, #818cf8 70%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #06f5d6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-indigo {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shared Section Headers */
.section-header {
    margin-bottom: 3.5rem;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--primary-light);
    display: inline-block;
    margin-bottom: 0.75rem;
    position: relative;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

/* ==========================================
   HEADER / NAVBAR
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(4, 7, 17, 0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border-bottom-color: rgba(99, 102, 241, 0.25);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.logo-highlight {
    background: linear-gradient(135deg, #06f5d6 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.4rem;
    font-weight: 900;
}

.logo-domain-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(6, 245, 214, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(6, 245, 214, 0.3);
    margin-left: 0.5rem;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, 
.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 3.5rem);
    padding-bottom: 5.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.glowing-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.22;
}

.blob-mint {
    top: 10%;
    left: 10%;
    width: 420px;
    height: 420px;
    background-color: #06f5d6;
    animation: pulseBlob 10s infinite alternate ease-in-out;
}

.blob-indigo {
    bottom: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background-color: #6366f1;
    animation: pulseBlob 14s infinite alternate-reverse ease-in-out;
}

@keyframes pulseBlob {
    0% { transform: scale(1) translate(0, 0); opacity: 0.18; }
    100% { transform: scale(1.3) translate(35px, -30px); opacity: 0.3; }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge-wrapper {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    max-width: 560px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(6, 245, 214, 0.15);
    color: var(--primary-light);
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover .play-icon {
    background-color: var(--primary-light);
    color: var(--bg-dark);
}

/* Hero Visual & Float animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    animation: float 6s ease-in-out infinite;
}

.laptop-img {
    border-radius: 14px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.85));
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.laptop-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 70%;
    background: radial-gradient(circle, rgba(6, 245, 214, 0.25) 0%, rgba(99, 102, 241, 0.2) 50%, transparent 100%);
    filter: blur(50px);
    z-index: 1;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Scroll Down Mouse */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mouse-icon:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(6, 245, 214, 0.4);
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 2px;
    animation: scrollMouse 1.8s ease-in-out infinite;
}

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    padding: 3.5rem 0;
    position: relative;
    z-index: 10;
    background-color: rgba(7, 12, 24, 0.6);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 1.75rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(6, 245, 214, 0.1);
    border: 1px solid rgba(6, 245, 214, 0.2);
    flex-shrink: 0;
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--secondary-light);
    background-color: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-card:nth-child(3) .stat-icon {
    color: var(--accent-cyan);
    background-color: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

.stat-card:nth-child(4) .stat-icon {
    color: var(--accent-purple);
    background-color: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    padding: 7.5rem 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.25rem 1.75rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 0%, rgba(6, 245, 214, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-premium), 0 0 25px rgba(6, 245, 214, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 1.6rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(6, 245, 214, 0.1);
    border: 1px solid rgba(6, 245, 214, 0.2);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.service-card:nth-child(even) .service-icon {
    color: var(--secondary-light);
    background-color: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.service-card:hover .service-icon {
    color: #040711;
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(6, 245, 214, 0.6);
}

.service-card:nth-child(even):hover .service-icon {
    color: #ffffff;
    background-color: var(--secondary);
    border-color: var(--secondary-light);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* ==========================================
   AI HIGHLIGHT SECTION
   ========================================== */
.ai-highlight-section {
    padding: 7rem 0;
    background: linear-gradient(180deg, rgba(4, 7, 17, 0) 0%, rgba(11, 18, 33, 0.7) 50%, rgba(4, 7, 17, 0) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.ai-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
    align-items: center;
}

.ai-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    animation: float 7s ease-in-out infinite;
}

.brain-img {
    border-radius: 22px;
    filter: drop-shadow(0 20px 40px rgba(6, 245, 214, 0.25));
    z-index: 2;
    position: relative;
    border: 1px solid rgba(6, 245, 214, 0.25);
}

.brain-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background: radial-gradient(circle, rgba(6, 245, 214, 0.3) 0%, rgba(99, 102, 241, 0.2) 50%, transparent 70%);
    filter: blur(45px);
    z-index: 1;
}

.ai-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ai-title .white-text {
    color: #ffffff;
    display: block;
    font-size: 2.05rem;
    margin-top: 0.25rem;
}

.ai-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.ai-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.ai-feature-item:hover {
    border-color: var(--border-glow);
    background-color: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(6, 245, 214, 0.15);
}

.ai-feature-icon {
    font-size: 1.25rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(6, 245, 214, 0.12);
    border: 1px solid rgba(6, 245, 214, 0.2);
    flex-shrink: 0;
}

.ai-feature-item:nth-child(even) .ai-feature-icon {
    color: var(--secondary-light);
    background-color: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.ai-feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================
   FEATURED PROJECTS SECTION (CAROUSEL)
   ========================================== */
.projects-section {
    padding: 7.5rem 0;
    position: relative;
    overflow: hidden;
}

.projects-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 3rem;
    overflow: hidden;
}

.projects-track {
    display: flex;
    gap: 1.75rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.project-card {
    flex: 0 0 calc(25% - 1.32rem);
    min-width: 260px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-premium), 0 0 24px rgba(6, 245, 214, 0.16);
}

.project-image-container {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    background-color: #03060f;
    border-bottom: 1px solid var(--border-color);
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-image-container img {
    transform: scale(1.06);
}

.project-details {
    padding: 1.5rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(6, 245, 214, 0.1);
    border: 1px solid rgba(6, 245, 214, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card:nth-child(even) .project-tag {
    color: var(--secondary-light);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.project-details h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    width: 32px;
    border-radius: 10px;
    background-color: var(--primary-light);
    box-shadow: 0 0 12px var(--primary-light);
}

/* ==========================================
   METHODOLOGY SECTION
   ========================================== */
.methodology-section {
    padding: 7.5rem 0;
    background-color: rgba(7, 12, 24, 0.55);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(10px);
}

.methodology-timeline {
    position: relative;
    margin-top: 4.5rem;
    padding: 1.5rem 0;
}

.timeline-line {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(6, 245, 214, 0.2) 0%, 
        rgba(6, 245, 214, 0.8) 35%, 
        rgba(99, 102, 241, 0.8) 70%, 
        rgba(168, 85, 247, 0.2) 100%);
    z-index: 1;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.step-icon-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.75rem;
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #070c18;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(4, 7, 17, 0.95);
}

.step-num {
    position: absolute;
    top: -8px;
    right: -8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    background-color: var(--bg-dark);
    border: 1.5px solid var(--primary-light);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.timeline-step:nth-child(even) .step-num {
    color: var(--secondary-light);
    border-color: var(--secondary-light);
}

.timeline-step:hover .step-icon {
    border-color: var(--primary-light);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(6, 245, 214, 0.4), 0 0 0 6px rgba(4, 7, 17, 0.95);
}

.timeline-step:hover:nth-child(even) .step-icon {
    border-color: var(--secondary-light);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), 0 0 0 6px rgba(4, 7, 17, 0.95);
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 190px;
    margin: 0 auto;
}

/* ==========================================
   TECHNOLOGIES SECTION
   ========================================== */
.technologies-section {
    padding: 7.5rem 0;
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.tech-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
    cursor: default;
    backdrop-filter: blur(10px);
}

.tech-item:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    background-color: var(--bg-card-hover);
    box-shadow: var(--shadow-premium), 0 0 20px rgba(6, 245, 214, 0.15);
}

.tech-icon {
    font-size: 2.25rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.tech-item span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tech-item:hover span {
    color: #ffffff;
}

/* Tech colorizations on hover */
.tech-item:hover .tech-icon.php { color: #8892be; filter: drop-shadow(0 0 10px rgba(136, 146, 190, 0.6)); }
.tech-item:hover .tech-icon.laravel { color: #ff2d20; filter: drop-shadow(0 0 10px rgba(255, 45, 32, 0.6)); }
.tech-item:hover .tech-icon.python { color: #4b8bbe; filter: drop-shadow(0 0 10px rgba(75, 139, 190, 0.6)); }
.tech-item:hover .tech-icon.mysql { color: #00758f; filter: drop-shadow(0 0 10px rgba(0, 117, 143, 0.6)); }
.tech-item:hover .tech-icon.postgresql { color: #336791; filter: drop-shadow(0 0 10px rgba(51, 103, 145, 0.6)); }
.tech-item:hover .tech-icon.js { color: #f7df1e; filter: drop-shadow(0 0 10px rgba(247, 223, 30, 0.6)); }
.tech-item:hover .tech-icon.react { color: #06f5d6; filter: drop-shadow(0 0 10px rgba(6, 245, 214, 0.6)); }
.tech-item:hover .tech-icon.docker { color: #0db7ed; filter: drop-shadow(0 0 10px rgba(13, 183, 237, 0.6)); }
.tech-item:hover .tech-icon.api { color: #06f5d6; filter: drop-shadow(0 0 10px rgba(6, 245, 214, 0.6)); }
.tech-item:hover .tech-icon.ai-gen { color: #a855f7; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6)); }

/* ==========================================
   ABOUT ME (SOBRE MÍ) SECTION
   ========================================== */
.about-section {
    padding: 7.5rem 0;
    position: relative;
    background-color: rgba(7, 12, 24, 0.4);
}

.about-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: center;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-content strong {
    color: #ffffff;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.about-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.about-feat i {
    color: var(--primary-light);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Floating Card visual for About */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-card-glow {
    position: relative;
    width: 100%;
    max-width: 390px;
    background: linear-gradient(135deg, rgba(6, 245, 214, 0.4) 0%, rgba(99, 102, 241, 0.4) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2px;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(6, 245, 214, 0.15);
}

.card-inner {
    background-color: #070c18;
    border-radius: calc(var(--border-radius-lg) - 2px);
    padding: 3rem 2.25rem;
    text-align: center;
}

.card-inner i {
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(6, 245, 214, 0.5));
}

.card-inner h3 {
    font-size: 1.65rem;
    margin-bottom: 0.25rem;
}

.card-inner .role {
    font-size: 0.85rem;
    color: var(--secondary-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.card-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 1.5rem 0;
}

.card-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card-details strong {
    color: #ffffff;
}

/* ==========================================
   CALL TO ACTION (CTA) SECTION
   ========================================== */
.cta-section {
    padding: 8rem 0;
    position: relative;
    text-align: center;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, var(--bg-dark) 70%);
    border-top: 1px solid var(--border-color);
}

.cta-container {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-title {
    font-size: 3.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 620px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    background-color: #020409;
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.brand-col .logo {
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.footer-subdesc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.navigation-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.navigation-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.navigation-col a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-col i {
    color: var(--primary-light);
    width: 16px;
}

.contact-col a:hover {
    color: var(--primary-light);
}

.avail-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    background-color: #010206;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    color: #040711;
    border-color: var(--primary-light);
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(6, 245, 214, 0.5);
}

/* ==========================================
   MODAL & CONTACT FORM
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 4, 10, 0.9);
    backdrop-filter: blur(12px);
    overflow: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #080e1d;
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    width: 90%;
    max-width: 540px;
    position: relative;
    box-shadow: var(--shadow-premium), 0 0 50px rgba(6, 245, 214, 0.2);
    transform: translateY(0);
    animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 1.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.close-modal:hover {
    color: #ffffff;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cotizacion-form .form-group {
    margin-bottom: 1.25rem;
}

.cotizacion-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cotizacion-form input,
.cotizacion-form select,
.cotizacion-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: rgba(4, 7, 17, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.cotizacion-form input:focus,
.cotizacion-form select:focus,
.cotizacion-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(6, 245, 214, 0.2);
}

.cotizacion-form .btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #070c18;
    border: 1px solid var(--primary-light);
    border-left: 4px solid var(--primary-light);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-premium), 0 5px 25px rgba(6, 245, 214, 0.25);
    z-index: 3000;
    transform: translateX(130%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-color: #ef4444;
    border-left-color: #ef4444;
    box-shadow: var(--shadow-premium), 0 5px 20px rgba(239, 68, 68, 0.2);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast i {
    color: var(--primary-light);
    font-size: 1.25rem;
}

.toast.error i {
    color: #ef4444;
}

.toast span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1199px) {
    :root {
        --container-width: 960px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
    }
    
    .stat-card:nth-child(3),
    .stat-card:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
        padding-top: 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card {
        flex: 0 0 calc(50% - 0.875rem);
    }
    
    .tech-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 991px) {
    :root {
        --container-width: 720px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }
    
    .hero-badge-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .ai-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ai-visual {
        max-width: 340px;
        margin: 0 auto;
    }
    
    .methodology-timeline {
        padding-left: 2rem;
    }
    
    .timeline-line {
        top: 0;
        left: 56px;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, 
            rgba(6, 245, 214, 0.3) 0%, 
            rgba(6, 245, 214, 0.8) 50%, 
            rgba(99, 102, 241, 0.3) 100%);
    }
    
    .timeline-steps {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .timeline-step {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        padding: 0;
    }
    
    .step-icon-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-icon {
        width: 64px;
        height: 64px;
        font-size: 1.25rem;
    }
    
    .step-content p {
        margin: 0;
        max-width: 100%;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual {
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 767px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(4, 7, 17, 0.98);
        backdrop-filter: blur(16px);
        transition: var(--transition-smooth);
        padding: 3rem 2rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-card:nth-child(3) {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        padding-top: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .ai-title .white-text {
        font-size: 1.6rem;
    }
    
    .ai-description {
        text-align: center;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        flex: 0 0 100%;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-title {
        font-size: 2.35rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        gap: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .brand-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .contact-col p {
        justify-content: center;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
