/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-light: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #1e293b 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--white) !important;
    letter-spacing: 0.5px;
}

.navbar-brand .navbar-logo {
    object-fit: contain;
}

.navbar-brand span {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

@media (max-width: 768px) {
    .hero-row-responsive {
        min-height: 80vh !important;
        align-items: center !important;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-row-responsive {
        min-height: 75vh !important;
        align-items: center !important;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   HERO BACKGROUND EFFECTS
   ============================================ */
.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    top: 60%;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    bottom: 15%;
    left: 15%;
    animation-delay: -10s;
    animation-duration: 30s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    top: 30%;
    right: 25%;
    animation-delay: -7s;
    animation-duration: 22s;
}

.shape-5 {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    bottom: 25%;
    right: 5%;
    animation-delay: -12s;
    animation-duration: 28s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Glow Effects */
.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: pulseGlow 8s ease-in-out infinite;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: -4s;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* ============================================
   CODE ANIMATION - MAC WINDOW STYLE
   ============================================ */
.code-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: none;
    height: 75%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
}

.code-window {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.code-window-header {
    background: rgba(40, 40, 40, 0.9);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.code-window-controls {
    display: flex;
    gap: 8px;
}

.code-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.code-control-close {
    background: #ff5f56;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

.code-control-minimize {
    background: #ffbd2e;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

.code-control-maximize {
    background: #27c93f;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

.code-window-title {
    flex: 1;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
}

.code-window-content {
    display: flex;
    background: rgba(25, 25, 25, 0.95);
    height: calc(100% - 45px);
    min-height: 500px;
    overflow: hidden;
}

.code-line-numbers {
    width: 50px;
    background: rgba(20, 20, 20, 0.8);
    padding: 16px 8px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    line-height: 1.6;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    animation: codeScrollInfinite 60s linear infinite;
    will-change: transform;
}

.code-line-numbers span {
    display: block;
    min-height: 20px;
}

.code-editor {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.code-scroll-container {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.code-content {
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    animation: codeScrollInfinite 60s linear infinite;
    will-change: transform;
}

@keyframes codeScrollInfinite {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.code-line {
    display: block;
    min-height: 20px;
    white-space: pre;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.code-keyword {
    color: #c792ea;
    font-weight: 500;
}

.code-variable {
    color: #82aaff;
}

.code-string {
    color: #c3e88d;
}

.code-number {
    color: #f78c6c;
}

.code-property {
    color: #7fdbca;
}

.code-operator {
    color: #89ddff;
}

.code-brace {
    color: #ffcb6b;
}

.code-comment {
    color: #546e7a;
    font-style: italic;
}

.code-type {
    color: #c792ea;
    font-style: italic;
}

.code-function {
    color: #82aaff;
}

.code-tag {
    color: #f07178;
}

.code-tag-name {
    color: #f07178;
}

.code-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .code-animation {
        width: 85%;
        height: 75%;
        opacity: 0.15;
    }
    
    .code-window-content {
        min-height: 400px;
    }
    
    .code-content {
        font-size: 12px;
        padding: 12px;
    }
    
    .code-line {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .code-animation {
        width: 90%;
        height: 70%;
        opacity: 0.12;
    }
    
    .code-window-content {
        min-height: 350px;
    }
    
    .code-content {
        font-size: 11px;
        padding: 10px;
    }
    
    .code-line {
        font-size: 11px;
        min-height: 18px;
    }
    
    .code-window-header {
        padding: 10px 12px;
    }
    
    .code-window-title {
        font-size: 12px;
    }
}

.hero-section h1 {
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: -1rem;
}

/* Ocultar slides/carrusel en dispositivos móviles y extender hero */
@media (max-width: 991px) {
    .hero-visual {
        display: none !important;
    }
    
    .hero-section {
        min-height: 85vh;
        padding-bottom: 3rem;
    }
    
    .hero-section .container {
        padding-bottom: 3rem;
    }
    
    .hero-row-responsive {
        min-height: 85vh !important;
        align-items: center !important;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.hero-buttons {
    margin-top: -0.5rem;
}

/* ============================================
   HERO SLIDE CARDS
   ============================================ */
.hero-slide-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Centrar los primeros 3 slides verticalmente usando clases específicas */
.hero-carousel .slide-1 .hero-slide-card,
.hero-carousel .slide-2 .hero-slide-card {
    margin-top: 4rem !important;
}

.hero-carousel .slide-3 .hero-slide-card {
    margin-top: 10rem !important;
}

/* El último slide (4to) se mantiene sin margin */
.hero-carousel .slide-4 .hero-slide-card {
    margin-top: 0 !important;
}

.slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-dots {
    display: flex;
    gap: 0.5rem;
}

.slide-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.slide-dots span:nth-child(1) {
    background: #ef4444;
}

.slide-dots span:nth-child(2) {
    background: #f59e0b;
}

.slide-dots span:nth-child(3) {
    background: #10b981;
}

.slide-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.slide-content {
    flex: 1;
    padding: 0.5rem 0;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.metric-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* Efecto de brillo para las metric-item del slide 1 */
.slide-1 .metric-item {
    animation: metricGlow 3s ease-in-out infinite;
}

.slide-1 .metric-item:nth-child(1) {
    animation-delay: 0s;
}

.slide-1 .metric-item:nth-child(2) {
    animation-delay: 0.5s;
}

.slide-1 .metric-item:nth-child(3) {
    animation-delay: 1s;
}

.slide-1 .metric-item:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes metricGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(99, 102, 241, 0);
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.3);
        border-color: rgba(99, 102, 241, 0.5);
        background: rgba(99, 102, 241, 0.1);
    }
}

/* Efecto de brillo adicional con pseudo-elemento */
.slide-1 .metric-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shineSweep 3s ease-in-out infinite;
    pointer-events: none;
}

.slide-1 .metric-item:nth-child(1)::before {
    animation-delay: 0s;
}

.slide-1 .metric-item:nth-child(2)::before {
    animation-delay: 0.5s;
}

.slide-1 .metric-item:nth-child(3)::before {
    animation-delay: 1s;
}

.slide-1 .metric-item:nth-child(4)::before {
    animation-delay: 1.5s;
}

@keyframes shineSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.7;
}

.metric-icon i {
    font-size: 1.8rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Performance Chart */
.performance-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    min-width: 100px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.chart-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-category-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo adicional para los tech-tag del slide 2 */
.slide-2 .tech-tag {
    animation: techTagPulse 2s ease-in-out infinite;
}

.slide-2 .tech-tag:nth-child(1) {
    animation-delay: 0s;
}

.slide-2 .tech-tag:nth-child(2) {
    animation-delay: 0.2s;
}

.slide-2 .tech-tag:nth-child(3) {
    animation-delay: 0.4s;
}

.slide-2 .tech-tag:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes techTagPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.8), 0 0 20px rgba(99, 102, 241, 0.4);
        transform: scale(1.05);
    }
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.process-step-visual {
    flex: 1;
    min-width: 0;
    max-width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.process-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.process-icon i {
    font-size: 2rem;
}

.process-step-visual.active .process-icon {
    opacity: 1;
}


.process-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

.process-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 80px;
    margin: 0 auto;
}

.process-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Análisis - Barra se llena hasta 100% */
.slide-3 .process-flow .process-step-visual:nth-child(1) .process-progress::after {
    animation: progressBarFillComplete 4s ease-in-out infinite;
    animation-delay: 0s;
}

/* Diseño - Barra se llena hasta 100% */
.slide-3 .process-flow .process-step-visual:nth-child(3) .process-progress::after {
    animation: progressBarFillComplete 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Desarrollo - Barra se llena hasta 100% */
.slide-3 .process-flow .process-step-visual:nth-child(5) .process-progress::after {
    animation: progressBarFillComplete 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Testing - Barra se llena hasta 100% */
.slide-3 .process-flow .process-step-visual:nth-child(7) .process-progress::after {
    animation: progressBarFillComplete 4s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes progressBarFillComplete {
    0% {
        width: 0%;
        opacity: 0.3;
        box-shadow: 0 0 0 rgba(99, 102, 241, 0);
    }
    5% {
        width: 0%;
        opacity: 0.5;
    }
    10% {
        width: 100%;
        opacity: 1;
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    }
    15% {
        width: 100%;
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }
    20%, 100% {
        width: 100%;
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
}


/* Animación de progreso secuencial para las fases en slide 3 */
.slide-3 .process-step-visual {
    transition: transform 0.5s ease, filter 0.5s ease;
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
}

.slide-3 .process-step-visual .process-icon {
    transition: filter 0.5s ease;
    filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
}

/* Análisis - Primera fase */
.slide-3 .process-flow .process-step-visual:nth-child(1) {
    animation: phaseProgress 4s ease-in-out infinite;
    animation-delay: 0s;
}

.slide-3 .process-flow .process-step-visual:nth-child(1) .process-icon {
    animation: iconGlow 4s ease-in-out infinite;
    animation-delay: 0s;
}

/* Diseño - Segunda fase */
.slide-3 .process-flow .process-step-visual:nth-child(3) {
    animation: phaseProgress 4s ease-in-out infinite;
    animation-delay: 1s;
}

.slide-3 .process-flow .process-step-visual:nth-child(3) .process-icon {
    animation: iconGlow 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Desarrollo - Tercera fase (activa) */
.slide-3 .process-flow .process-step-visual:nth-child(5) {
    animation: phaseProgress 4s ease-in-out infinite;
    animation-delay: 2s;
}

.slide-3 .process-flow .process-step-visual:nth-child(5) .process-icon {
    animation: iconGlow 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Testing - Cuarta fase */
.slide-3 .process-flow .process-step-visual:nth-child(7) {
    animation: phaseProgress 4s ease-in-out infinite;
    animation-delay: 3s;
}

.slide-3 .process-flow .process-step-visual:nth-child(7) .process-icon {
    animation: iconGlow 4s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes phaseProgress {
    0%, 20%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
    }
    10% {
        transform: scale(1.25);
        filter: drop-shadow(0 0 30px rgba(99, 102, 241, 1));
    }
}

@keyframes iconGlow {
    0%, 20%, 100% {
        filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
    }
    10% {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 1));
    }
}

.process-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
    flex-shrink: 0;
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
}


@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Sprint Info */
.sprint-info {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    align-items: center;
}

.slide-3 .sprint-info {
    margin-top: 1.5rem;
}


.sprint-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sprint-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sprint-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Impact Stats */
.impact-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.impact-stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.impact-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* Animación para impact-stats del slide 4 */
.slide-4 .impact-stat {
    animation: impactStatGlow 4s ease-in-out infinite;
}

.slide-4 .impact-stat:nth-child(1) {
    animation-delay: 0s;
}

.slide-4 .impact-stat:nth-child(2) {
    animation-delay: 1.3s;
}

.slide-4 .impact-stat:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes impactStatGlow {
    0%, 70%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(99, 102, 241, 0);
        border-color: rgba(255, 255, 255, 0.1);
    }
    35% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.6), 0 0 50px rgba(99, 102, 241, 0.3);
        border-color: rgba(99, 102, 241, 0.5);
    }
}

/* Animación para los números del slide 4 */
.slide-4 .impact-number {
    animation: numberPulse 4s ease-in-out infinite;
}

.slide-4 .impact-stat:nth-child(1) .impact-number {
    animation-delay: 0s;
}

.slide-4 .impact-stat:nth-child(2) .impact-number {
    animation-delay: 1.3s;
}

.slide-4 .impact-stat:nth-child(3) .impact-number {
    animation-delay: 2.6s;
}

@keyframes numberPulse {
    0%, 70%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    35% {
        transform: scale(1.1);
        filter: brightness(1.3) drop-shadow(0 0 15px rgba(99, 102, 241, 0.8));
    }
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Achievements */
.achievements {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.achievement-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.achievement-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}


.badge-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.badge-icon i {
    font-size: 1.2rem;
}

.badge-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Owl Carousel Hero */
.hero-carousel .owl-dots {
    text-align: center;
    margin-top: 2rem;
}

.hero-carousel .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3) !important;
    margin: 0 4px;
    transition: var(--transition);
}

.hero-carousel .owl-dot.active {
    background: var(--primary-color) !important;
    width: 24px;
    border-radius: 6px;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-item {
    padding: 1.5rem;
}

.trust-item h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.service-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card-link:hover .project-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

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

.project-card-link:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card-link:hover .project-overlay {
    opacity: 1;
}

.badge.bg-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: var(--white) !important;
    border: none;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Portfolio Filter Buttons */
.btn-filter {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.portfolio-item {
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.process-step h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-card h5 {
    color: var(--text-primary);
}

/* Owl Carousel Testimonials */
.testimonials-carousel .owl-nav {
    text-align: center;
    margin-top: 2rem;
}

.testimonials-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color) !important;
    color: var(--white) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.testimonials-carousel .owl-nav button:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.1);
}

.testimonials-carousel .owl-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.testimonials-carousel .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3) !important;
    margin: 0 4px;
    transition: var(--transition);
}

.testimonials-carousel .owl-dot.active {
    background: var(--primary-color) !important;
    width: 24px;
    border-radius: 6px;
}

/* ============================================
   FAQS
   ============================================ */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: var(--white);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   CONTACT SECTION - MODERN
   ============================================ */
.contact-info-card-modern {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
    flex-direction: column;
    text-align: center;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.03);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin: 0 auto;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.contact-info-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.contact-info-content {
    flex: 1;
    width: 100%;
}

.contact-info-content h6 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.95rem;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.contact-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

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

.footer h5,
.footer h6 {
    color: var(--white);
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light) !important;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   UTILITIES
   ============================================ */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.section-padding {
    padding: 5rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Hero Section Responsive */
    .hero-section {
        padding-top: 100px;
        min-height: 80vh;
        padding-bottom: 2.5rem;
    }
    
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    /* Botones más pequeños y subidos */
    .hero-section .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-section .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-buttons {
        margin-top: -0.5rem;
    }
    
    /* Hero Visual - Subir los slides */
    .hero-visual {
        margin-top: 0.5rem;
    }
    
    /* Subir owl-stage-outer en responsive */
    .hero-carousel .owl-stage-outer {
        margin-top: -1rem;
    }
    
    /* Centrar slides verticalmente en responsive */
    .hero-carousel .slide-1 .hero-slide-card,
    .hero-carousel .slide-2 .hero-slide-card {
        margin-top: 3rem !important;
    }
    
    .hero-carousel .slide-3 .hero-slide-card {
        margin-top: 8rem !important;
    }
    
    .hero-carousel .slide-4 .hero-slide-card {
        margin-top: 0 !important;
    }
    
    /* Hero Slides Responsive */
    .hero-slide-card {
        padding: 1rem;
    }
    
    .slide-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .slide-title {
        font-size: 0.85rem;
    }
    
    .slide-dots span {
        width: 8px;
        height: 8px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .metric-item {
        padding: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .metric-label {
        font-size: 0.65rem;
    }
    
    .tech-tags {
        gap: 0.3rem;
    }
    
    .tech-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .process-flow {
        gap: 0.3rem;
        padding: 0 0.3rem;
        flex-wrap: wrap;
    }
    
    .process-step-visual {
        min-width: 50px;
        max-width: 75px;
        flex: 1 1 auto;
    }
    
    .process-icon {
        font-size: 1.2rem;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .process-name {
        font-size: 0.6rem;
    }
    
    .process-arrow {
        font-size: 1rem;
        width: 1rem;
        margin: 0 0.1rem;
    }
    
    .process-progress {
        max-width: 50px;
        height: 3px;
    }
    
    .impact-number {
        font-size: 1.75rem;
    }
    
    .impact-desc {
        font-size: 0.7rem;
    }
    
    .achievement-badge {
        padding: 0.4rem 0.7rem;
    }
    
    .badge-text {
        font-size: 0.65rem;
    }
    
    /* Centrar servicios en responsive igual que procesos */
    .service-card {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .trust-item h3 {
        font-size: 2rem;
    }
    
    .btn-filter {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .contact-info-card-modern {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-info-item {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    /* Hero Section Extra Small */
    .hero-section {
        padding-top: 90px;
        min-height: 75vh;
        padding-bottom: 2rem;
    }
    
    .hero-section .container {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    /* Botones aún más pequeños y subidos */
    .hero-section .btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
    
    .hero-section .btn-lg {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-buttons {
        margin-top: -0.5rem;
    }
    
    /* Hero Visual - Subir más los slides */
    .hero-visual {
        margin-top: 0;
    }
    
    /* Subir owl-stage-outer más en móvil pequeño */
    .hero-carousel .owl-stage-outer {
        margin-top: -1.5rem;
    }
    
    /* Centrar slides verticalmente en móvil pequeño */
    .hero-carousel .slide-1 .hero-slide-card,
    .hero-carousel .slide-2 .hero-slide-card {
        margin-top: 2rem !important;
    }
    
    .hero-carousel .slide-3 .hero-slide-card {
        margin-top: 6rem !important;
    }
    
    .hero-carousel .slide-4 .hero-slide-card {
        margin-top: 0 !important;
    }
    
    /* Hero Slides más compactos */
    .hero-slide-card {
        padding: 0.75rem;
    }
    
    .slide-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .slide-title {
        font-size: 0.75rem;
    }
    
    .slide-dots span {
        width: 6px;
        height: 6px;
    }
    
    .metrics-grid {
        gap: 0.4rem;
    }
    
    .metric-item {
        padding: 0.6rem;
    }
    
    .metric-value {
        font-size: 1.1rem;
    }
    
    .metric-label {
        font-size: 0.6rem;
    }
    
    .tech-tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
    }
    
    .process-step-visual {
        min-width: 45px;
        max-width: 65px;
    }
    
    .process-icon {
        font-size: 1rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .process-name {
        font-size: 0.55rem;
    }
    
    .process-arrow {
        font-size: 0.9rem;
        width: 0.9rem;
    }
    
    .process-progress {
        max-width: 45px;
        height: 2px;
    }
    
    .impact-number {
        font-size: 1.5rem;
    }
    
    .impact-desc {
        font-size: 0.65rem;
    }
    
    .achievement-badge {
        padding: 0.35rem 0.6rem;
    }
    
    .badge-text {
        font-size: 0.6rem;
    }
    
    .service-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .contact-info-card-modern {
        padding: 1.5rem;
    }
    
    .contact-info-item {
        padding: 1.25rem 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .map-container {
        height: 350px;
        border-radius: 16px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   PAYMENT MODAL
   ============================================ */
.payment-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.payment-modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border-bottom: none;
    padding: 1.5rem 1.5rem 1.25rem;
}

.payment-modal-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.payment-modal-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.payment-modal-title-wrap .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.payment-modal-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.payment-modal-body {
    padding: 1.5rem 1.5rem 1rem;
    background: var(--white);
}

.payment-input-group {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.payment-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.payment-input-prefix {
    background: var(--bg-light);
    border: none;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
}

.payment-input,
.payment-select {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.payment-input:focus,
.payment-select:focus {
    box-shadow: none;
    border-color: transparent;
}

.payment-select {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.payment-select:focus {
    border-color: var(--primary-color);
}

.payment-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--bg-light);
}

.payment-trust-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.payment-trust-item i {
    color: var(--primary-color);
}

.payment-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-submit-btn {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    transition: var(--transition);
}

.payment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-currency-change-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.payment-currency-change-alert i {
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.payment-amount-preview {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    min-height: 1.5rem;
}

.payment-amount-error {
    font-size: 0.875rem;
    color: #dc3545;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.payment-amount-error i {
    margin-top: 0.1rem;
}
