/* =============================================
   AGNET — Ingeniería & Servicios
   Global Stylesheet v2.0 (Responsive Fixes Applied)
   Framework: UIKit 3.x
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary */
    --primary: #0066FF;
    --primary-dark: #0050CC;
    --primary-light: #3385FF;
    --primary-rgb: 0, 102, 255;

    /* Secondary */
    --secondary: #00D4FF;
    --secondary-dark: #00A8CC;
    --secondary-rgb: 0, 212, 255;

    /* Accent */
    --accent: #00FFC8;
    --accent-rgb: 0, 255, 200;

    /* Dark Theme */
    --dark: #0A1628;
    --dark-lighter: #0F1F35;
    --dark-card: #121E32;
    --dark-card-hover: #182844;
    --dark-border: #1C2E4A;

    /* Light */
    --light: #F0F4F8;
    --light-alt: #E2E8F0;
    --white: #FFFFFF;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #FFFFFF;
    --text-muted: #FFFFFF;
    --text-dark: #1E293B;

    /* Semantic */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
    --gradient-radial: radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);

    /* Glass */
    --glass-bg: rgba(18, 30, 50, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    --shadow-glow-sm: 0 0 10px rgba(var(--primary-rgb), 0.2);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.3, 0.265, 1.35);

    /* Font */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Base & Global Fixes ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--dark);
    /* Previene desbordes horizontales globales en móviles */
    overflow-x: hidden; 
    width: 100vw;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

img, video, iframe, canvas {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p, a, span, li, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.uk-text-muted, .uk-text-meta, .text-muted, .uk-text-muted * {
    color: #FFFFFF !important;
}

.white-text {
    color: #FFFFFF !important;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(var(--primary-rgb), 0.3);
    color: var(--white);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5em;
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--white);
    max-width: 600px;
    line-height: 1.8;
}

.section-subtitle.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--dark-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ---------- Navbar ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: var(--transition);
    padding: 8px 0;
    width: 100%;
}

.site-header .uk-navbar {
    min-height: 64px;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    z-index: -1;
}

.site-header.scrolled::before {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.site-header.scrolled {
    padding: 0;
    box-shadow: var(--shadow-lg);
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-left: 10px;
    letter-spacing: 2px;
}

.uk-navbar-nav > li > a {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 500;
    color: #FFFFFF !important;
    letter-spacing: 0.5px;
    text-transform: none;
    padding: 0 18px;
    min-height: 64px;
    position: relative;
    transition: var(--transition);
}

.uk-navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: var(--transition);
}

.uk-navbar-nav > li > a:hover::after,
.uk-navbar-nav > li.uk-active > a::after {
    width: 24px;
}

.uk-navbar-nav > li > a.nav-cta {
    background: var(--gradient-primary) !important;
    color: #FFFFFF !important;
    border-radius: var(--radius-sm) !important;
    padding: 0 24px !important;
    margin: 12px 0 12px 16px;
    font-weight: 600 !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-glow-sm);
    transition: var(--transition) !important;
    white-space: nowrap;
}

.uk-navbar-nav > li > a.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow) !important;
}

.uk-navbar-nav > li > a.nav-cta::after {
    display: none !important;
}

.uk-navbar-toggle,
.uk-navbar-toggle-icon {
    color: #FFFFFF !important;
}

/* ---------- Mobile Navigation ---------- */
.mobile-offcanvas .uk-offcanvas-bar {
    background: var(--dark);
    width: 280px;
    padding: 30px 24px;
    border-right: 1px solid var(--dark-border);
}

.mobile-menu-header {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--dark-border);
}

.mobile-logo {
    height: 48px;
    width: auto;
}

.mobile-nav > li > a {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white) !important;
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}

.mobile-nav > li > a:hover,
.mobile-nav > li.uk-active > a {
    padding-left: 12px;
}

.uk-offcanvas-close {
    color: var(--white) !important;
    top: 20px;
    right: 20px;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    overflow-y: clip;
    background: var(--dark);
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-radial);
    z-index: 1;
    pointer-events: none;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,22,40,0.3) 0%, rgba(10,22,40,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--white);
    max-width: 560px;
    margin: 0 auto 32px auto;
    line-height: 1.8;
    text-align: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    color: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-badge .uk-icon {
    color: var(--secondary);
}

/* ---------- UIKit Slideshow Override ---------- */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow .uk-slideshow-items {
    min-height: 100vh;
}

.hero-slideshow .uk-slideshow-items li {
    overflow: hidden;
}

.hero-slideshow .uk-slideshow-items img,
.hero-slideshow .uk-slideshow-items video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.35);
}

.hero-slideshow .uk-animation-kenburns {
    animation-duration: 5.5s !important; 
    animation-timing-function: ease-out !important; 
}

.modern-nav .uk-dotnav {
    gap: 12px;
    flex-wrap: nowrap !important; /* FIX: Obliga a que siempre estén en 1 sola línea */
    justify-content: center;
    align-items: center;
}

.modern-nav .uk-dotnav > * {
    padding-left: 0 !important; /* FIX: Limpia el padding lateral nativo de UIkit */
}

.modern-nav .uk-dotnav > * > a {
    background: rgba(255,255,255,0.25);
    border: none;
    width: 35px;
    height: 4px; 
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.modern-nav .uk-dotnav > * > a:hover {
    background: rgba(255,255,255,0.6);
}

.modern-nav .uk-dotnav > .uk-active > a {
    background: var(--gradient-primary); 
    width: 70px;
    box-shadow: var(--shadow-glow-sm);
}

.slideshow-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* ---------- Section Styles ---------- */
.section-padding {
    padding: 100px 0;
    position: relative;
    width: 100%;
}

.section-dark {
    background: var(--dark);
}

.section-darker {
    background: var(--dark-lighter);
}

.section-gradient {
    background: var(--gradient-radial), var(--dark);
}

.section-light {
    background: var(--light);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 {
    color: var(--text-dark);
}

.section-light p,
.section-light li {
    color: #FFFFFF;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    margin: 0 auto 40px;
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 32px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Service Card ---------- */
.service-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(var(--primary-rgb), 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 28px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ---------- Service Detail Card ---------- */
.service-detail-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.service-detail-card:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: var(--shadow-lg);
}

.service-detail-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-detail-card:hover .service-detail-img img {
    transform: scale(1.05);
}

.service-detail-body {
    padding: 28px;
}

.service-detail-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 0 !important;
}

.service-list li {
    padding: 6px 0 !important; 
    font-size: 0.95rem;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    gap: 12px; 
}

.service-list li::before {
    content: '' !important;
    position: static !important; 
    display: block !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: var(--secondary) !important;
    background-image: none !important; 
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* ---------- Stat Card ---------- */
.stat-card {
    text-align: center;
    padding: 28px 20px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--white);
    font-weight: 500;
}

/* ---------- Feature Item ---------- */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

.feature-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--white);
    margin: 0;
    line-height: 1.6;
}

.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    transition: var(--transition);
    margin-bottom: 4px;
}

.feature-item:hover .feature-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ---------- Buttons ---------- */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow-sm);
    text-decoration: none;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ---------- Team Card ---------- */
.team-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.team-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 24px 20px;
}

.team-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.team-info .role {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 16px; 
    width: 100%;
    box-sizing: border-box;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--gradient-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 4px solid var(--dark);
    border-radius: 50%;
    top: 40px;
    z-index: 1;
    box-shadow: var(--shadow-glow);
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}
.timeline-content {
    padding: 32px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    text-align: left;
    display: inline-block;
    width: 100%;
}
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}
.timeline-year {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

/* ---------- Values Card ---------- */
.value-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.value-card:hover::after {
    transform: scaleX(1);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 24px;
}

/* ---------- Contact Form ---------- */
.contact-section {
    position: relative;
    width: 100%;
}

.contact-form-wrapper {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form .uk-input,
.contact-form .uk-textarea,
.contact-form .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: #FFFFFF !important;
}

.contact-form .uk-input,
.contact-form .uk-select {
    background: var(--dark-lighter);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--white) !important;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    height: auto !important;
    padding: 12px 16px !important;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
}

.contact-form .uk-textarea {
    background: var(--dark-lighter);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--white) !important;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 12px 16px;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
    min-height: 140px;
    resize: vertical;
}

.contact-form .uk-input:focus,
.contact-form .uk-textarea:focus,
.contact-form .uk-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    background: var(--dark);
    outline: none;
}

.contact-form .uk-input::placeholder,
.contact-form .uk-textarea::placeholder {
    color: var(--white);
}

.contact-form .uk-select option {
    background: var(--dark);
    color: var(--white);
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 6px;
    display: none;
}

.form-error.visible {
    display: block;
}

.contact-info-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.contact-info-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.88rem;
    color: var(--white);
    margin: 0;
}

.contact-info-item a {
    color: var(--text-secondary);
}

.contact-info-item a:hover {
    color: var(--secondary);
}

/* ---------- Map ---------- */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--dark-border);
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(80%) invert(92%) contrast(90%);
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.06;
    pointer-events: none;
}

.cta-inner {
    position: relative;
    text-align: center;
    padding: 60px 32px;
}

.cta-inner h2,
.cta-inner .uk-h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: #FFFFFF !important;
}

.cta-inner p,
.cta-inner .uk-text-lead {
    color: #FFFFFF !important;
    max-width: 560px;
    margin: 0 auto 32px auto !important;
    font-size: 1.05rem;
}

/* ---------- Clients / Trust ---------- */
.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0.5;
}

.trust-logos img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.trust-logos img:hover {
    opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #060E1A;
    position: relative;
    padding: 72px 0 0;
    border-top: 1px solid var(--dark-border);
    width: 100%;
    z-index: 3;
}

.footer-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: var(--gradient-primary);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.5), 0 0 60px rgba(var(--primary-rgb), 0.2);
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 0.88rem;
    color: #FFFFFF;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: #FFFFFF !important;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: #FFFFFF !important;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-links a:hover {
    color: var(--white) !important;
    padding-left: 6px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: #FFFFFF;
}

.footer-contact li .uk-icon {
    color: var(--primary);
    min-width: 18px;
}

.footer-contact a {
    color: #FFFFFF !important;
}

.footer-contact a:hover {
    color: var(--secondary) !important;
}

.footer-bottom {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--dark-border);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: #FFFFFF;
    margin: 0;
}

.footer-bottom a {
    font-size: 0.82rem;
    color: #FFFFFF !important;
}

.footer-bottom a:hover {
    color: var(--secondary) !important;
}

.footer-bottom .separator {
    color: var(--dark-border);
    margin: 0 8px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

/* ---------- Page Hero (Sub-pages) ---------- */
.page-hero {
    padding: 160px 0 80px;
    position: relative;
    background: var(--dark);
    overflow: hidden;
    width: 100%;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-radial);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--dark));
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #FFFFFF !important;
    max-width: 600px;
    margin: 0 auto 20px auto !important;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: #FFFFFF;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb .separator {
    color: var(--dark-border);
}

.breadcrumb .current {
    color: var(--secondary);
    font-weight: 500;
}

/* ---------- Notification overrides ---------- */
.uk-notification-message {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--white);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
}

.uk-notification-message-success {
    border-color: var(--success);
    color: var(--success);
}

.uk-notification-message-danger {
    border-color: var(--danger);
    color: var(--danger);
}

/* ---------- Animations ---------- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2); }
    50% { box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.4); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes line-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
    opacity: 0;
    transition: var(--transition-slow);
}

.animate-on-scroll.fade-in-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-40px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(40px);
}

.animate-on-scroll.scale-in {
    transform: scale(0.9);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 960px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    .uk-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .timeline::after {
        left: 32px;
        transform: none;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px; 
        padding-right: 0;
    }
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
        right: auto;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .glass-card {
        padding: 24px;
    }

    .hero-badges {
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 640px) {
    .section-padding {
        padding: 56px 0;
    }

    .hero-section {
        min-height: 100svh;
        height: auto; 
    }

    .hero-content.uk-position-center {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        padding: 100px 20px 90px !important;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .slideshow-nav {
        bottom: 25px !important;
    }

    .hero-content .uk-margin-medium-top {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-content .uk-button {
        width: 100%;
        margin-right: 0 !important;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .btn-gradient,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .badges-bar .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-badge {
        width: 100%;
        justify-content: center;
    }
    
    /* 
     * ELIMINADA LA REGLA QUE ROMPÍA LAS GRILLAS (.uk-grid { margin: 0; padding: 0; })
     * Ahora solo limpiamos los márgenes en nuestro portafolio personalizado.
     */
    .portfolio-grid {
        margin-left: 0 !important; 
    }
    
    .uk-child-width-1-1\@s:not(.uk-grid-divider) > *, 
    .uk-child-width-1-1:not(.uk-grid-divider) > * {
        margin-bottom: 24px;
    }
    
    .service-card, .value-card, .stat-card, .glass-card {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .contact-form-wrapper, .service-card, .value-card, .glass-card, .contact-info-card {
        padding: 24px 16px !important;
    }

    .page-hero {
        padding: 130px 0 60px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .footer-bottom .uk-grid > div {
        text-align: center !important;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .service-detail-img {
        height: 180px;
    }

    .team-photo {
        height: 200px;
    }

    .cta-inner {
        padding: 40px 16px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .contact-form .uk-input,
    .contact-form .uk-select,
    .contact-form .uk-textarea {
        font-size: 16px !important; 
    }
}

/* ---------- Utility Classes ---------- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-animated-gradient {
    background: linear-gradient(-45deg, var(--dark), var(--dark-lighter), rgba(var(--primary-rgb), 0.15), var(--dark));
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

.glow-border {
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}

.uk-container-xsmall {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: 60px 20px;
}

.form-success .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--success);
}

.form-success h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--white);
}

/* =========================================
   ACTUALIZACIONES FINALES: CARRUSEL & BADGES
   ========================================= */

.section-subtitle.centered, 
.section-subtitle.uk-margin-auto {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.badges-bar {
    background: var(--dark-lighter);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 24px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    width: 100%;
}

.badges-bar .hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 0;
}

.hero-badge:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
}

/* =========================================
   NUEVAS SECCIONES DE SERVICIOS (BACKGROUND PARALLAX)
   ========================================= */

.service-bg-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    width: 100%;
}

.service-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.overlay-left {
    background: linear-gradient(90deg, rgba(10,22,40,0.98) 0%, rgba(10,22,40,0.8) 45%, rgba(10,22,40,0.1) 100%);
}

.overlay-right {
    background: linear-gradient(270deg, rgba(10,22,40,0.98) 0%, rgba(10,22,40,0.8) 45%, rgba(10,22,40,0.1) 100%);
}

.service-bg-section .uk-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-bg-card {
    padding: 48px;
    background: rgba(18, 30, 50, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    border-radius: var(--radius-lg);
}

.service-bg-card h2.section-title {
    margin-bottom: 20px;
}

.divider-left {
    margin-left: 0 !important;
    margin-right: auto !important;
}

@media (max-width: 960px) {
    .service-bg-section {
        background-attachment: scroll;
        padding: 80px 0;
        min-height: auto;
    }
    
    .overlay-left, .overlay-right {
        background: linear-gradient(180deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.75) 100%);
    }
    
    .service-bg-card {
        padding: 32px 24px;
        background: rgba(18, 30, 50, 0.7);
    }
}

/* =========================================
   FONDO ANIMADO GLOBAL (MALLA + ESFERAS + PARTÍCULAS)
   ========================================= */

.global-ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: transparent;
    overflow: hidden;
    pointer-events: none; 
}

.content-above-bg {
    position: relative;
    z-index: 2 !important;
}

.tech-grid-overlay {
    position: absolute;
    inset: -50%; 
    width: 200%;
    height: 200%;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-movement 30s linear infinite;
}

@keyframes grid-movement {
    0% { background-position: 0px 0px; }
    100% { background-position: 60px 60px; } 
}

.blob-global {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    z-index: 2;
    animation: float-blob-global 18s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-blob-1 {
    top: 5%; 
    left: -10%;
    width: 50vw; 
    height: 50vw;
    background: var(--primary);
    opacity: 0.3;
    animation-delay: 0s;
}

.bg-blob-2 {
    top: 40%; 
    right: -10%;
    width: 45vw; 
    height: 45vw;
    background: var(--secondary);
    opacity: 0.25;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.bg-blob-3 {
    bottom: -15%; 
    left: 20%;
    width: 60vw; 
    height: 60vw;
    background: var(--accent); 
    opacity: 0.15;
    animation-delay: -9s;
}

@keyframes float-blob-global {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(8vw, -8vh) scale(1.15) rotate(15deg); }
}

.global-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 50;
    pointer-events: none;
}

/* ---------- Portfolio / Proyectos ---------- */
.portfolio-filters {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 48px 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.portfolio-filters li {
    padding: 0 !important;
    margin: 0 !important;
}

.portfolio-filters li::before {
    display: none !important;
}

.portfolio-filters li.uk-active .filter-btn {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-glow-sm);
}

.portfolio-grid {
    list-style: none !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-left: 0 !important; 
    padding-left: 0 !important;
}

.portfolio-grid > li, .portfolio-grid > div {
    padding-left: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

@media (max-width: 960px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
    width: 100%;
    background: var(--dark-card);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(10,22,40,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 1;
    transition: var(--transition);
}

.portfolio-overlay h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay h4 {
    transform: translateY(-4px);
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    width: fit-content;
}

.gallery-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-top: 16px;
    font-weight: 600;
    opacity: 0.8;
    transition: var(--transition);
}

.portfolio-card:hover .gallery-indicator {
    opacity: 1;
    transform: translateX(5px);
    color: var(--white);
}

.portfolio-card.hidden-card {
    display: none;
}

/* =========================================
   NOTIFICACIONES UIKIT (Estilo Glass Card)
   ========================================= */

.uk-notification {
    z-index: 9999 !important;
    padding: 20px !important;
}

.uk-notification-message {
    background: rgba(18, 30, 50, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--white) !important;
    font-family: var(--font-primary) !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    padding: 16px 22px !important;
    box-shadow: var(--shadow-xl), 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: var(--transition) !important;
}

.uk-notification-message-success {
    border-color: var(--success) !important;
    box-shadow: var(--shadow-xl), 0 0 25px rgba(16, 185, 129, 0.25) !important;
}

.uk-notification-message-success svg,
.uk-notification-message-success .uk-icon {
    color: var(--success) !important;
}

.uk-notification-message-danger {
    border-color: var(--danger) !important;
    box-shadow: var(--shadow-xl), 0 0 25px rgba(239, 68, 68, 0.25) !important;
}

.uk-notification-message-danger svg,
.uk-notification-message-danger .uk-icon {
    color: var(--danger) !important;
}

.uk-notification-message .uk-close, 
.uk-notification-message [uk-close] {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: var(--transition-fast) !important;
}

.uk-notification-message .uk-close:hover, 
.uk-notification-message [uk-close]:hover {
    color: var(--white) !important;
}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */

.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: #FFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E; /* Verde más oscuro al pasar el mouse */
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .uk-icon {
    color: #FFFFFF !important;
}

/* Reacomodamos el botón de volver arriba para que no choque con WhatsApp */
.back-to-top {
    bottom: 110px !important; /* Lo subimos para dejar espacio a WhatsApp */
    right: 40px !important;
}

/* Ajustes perfectos para dispositivos móviles */
@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float .uk-icon {
        transform: scale(0.9); /* Icono un poco más pequeño en móvil */
    }

    .back-to-top {
        bottom: 90px !important; /* Justo encima del WhatsApp en celulares */
        right: 27px !important;
    }
}