/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-orange: #FF6B35;
    --orange-light: #FF8C61;
    --orange-dark: #E85A28;
    --black: #0A0A0A;
    --dark-gray: #1A1A1A;
    --medium-gray: #2A2A2A;
    --light-gray: #3A3A3A;
    --text-gray: #B0B0B0;
    --white: #FFFFFF;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 1600px) {
    .container {
        max-width: 1800px;
        padding: 0 1.5rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--medium-gray);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
}

.logo-text {
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary-orange);
    margin-left: 0.25rem;
    font-weight: 400;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-medium);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.chat-link {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.chat-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    color: white !important;
}

.chat-link::after {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "text visual"
        "stats visual";
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    grid-area: text;
}

.hero-stats {
    grid-area: stats;
}

.hero-visual {
    grid-area: visual;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-graphic {
    position: relative;
    width: 600px;
    height: 600px;
}

/* Centro */
.tech-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.center-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.center-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    width: 120px;
    height: 120px;
    animation: rotate-ring 20s linear infinite;
}

.ring-2 {
    width: 160px;
    height: 160px;
    border-style: dashed;
    animation: rotate-ring 15s linear infinite reverse;
}

.ring-3 {
    width: 200px;
    height: 200px;
    animation: rotate-ring 25s linear infinite;
}

/* Órbitas */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.orbit-1 {
    width: 380px;
    height: 380px;
    animation: rotate-orbit 20s linear infinite;
    transform: rotate(0deg);
    animation-delay: 0s;
}

.orbit-2 {
    width: 380px;
    height: 380px;
    animation: rotate-orbit 20s linear infinite;
    transform: rotate(72deg);
    animation-delay: -4s;
}

.orbit-3 {
    width: 380px;
    height: 380px;
    animation: rotate-orbit 20s linear infinite;
    transform: rotate(144deg);
    animation-delay: -8s;
}

.orbit-4 {
    width: 380px;
    height: 380px;
    animation: rotate-orbit 20s linear infinite;
    transform: rotate(216deg);
    animation-delay: -12s;
}

.orbit-5 {
    width: 380px;
    height: 380px;
    animation: rotate-orbit 20s linear infinite;
    transform: rotate(288deg);
    animation-delay: -16s;
}

.orbit-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    animation: counter-rotate 20s linear infinite;
}

.orbit-2 .orbit-icon {
    animation: counter-rotate 20s linear infinite;
    animation-delay: -4s;
}

.orbit-3 .orbit-icon {
    animation: counter-rotate 20s linear infinite;
    animation-delay: -8s;
}

.orbit-4 .orbit-icon {
    animation: counter-rotate 20s linear infinite;
    animation-delay: -12s;
}

.orbit-5 .orbit-icon {
    animation: counter-rotate 20s linear infinite;
    animation-delay: -16s;
}

.orbit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-orange);
}

/* Partículas */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 4s ease-in-out infinite;
}

.p1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.p2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.8s;
}

.p3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 1.6s;
}

.p4 {
    bottom: 25%;
    right: 15%;
    animation-delay: 2.4s;
}

.p5 {
    top: 50%;
    left: 5%;
    animation-delay: 3.2s;
}

.p6 {
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

/* Animaciones */
@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes rotate-ring {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes counter-rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-40px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
    clear: both;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--dark-gray);
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: var(--transition-medium);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: var(--spacing-sm);
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
}

.service-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.service-link:hover {
    gap: 0.75rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--medium-gray);
    transition: var(--transition-medium);
}

.portfolio-item:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.portfolio-image {
    height: 350px;
    background: linear-gradient(135deg, var(--medium-gray), var(--light-gray));
    position: relative;
    overflow: hidden;
}

.portfolio-item:nth-child(1) .portfolio-image {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(42, 42, 42, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="%23FF6B35" opacity="0.3"/><circle cx="50" cy="50" r="5" fill="%23FF6B35" opacity="0.2"/><circle cx="80" cy="30" r="4" fill="%23FF6B35" opacity="0.25"/></svg>');
    background-size: cover, 50px 50px;
}

.portfolio-item:nth-child(2) .portfolio-image {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(42, 42, 42, 0.95)),
                repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 107, 53, 0.05) 10px, rgba(255, 107, 53, 0.05) 20px);
}

.portfolio-item:nth-child(3) .portfolio-image {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(26, 26, 26, 0.9)),
                radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.portfolio-item:nth-child(4) .portfolio-image {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(42, 42, 42, 0.92)),
                linear-gradient(to right, rgba(255, 107, 53, 0.05) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
    background-size: cover, 20px 20px, 20px 20px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.5) 60%, rgba(10, 10, 10, 0.1));
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transition: var(--transition-medium);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(255, 107, 53, 0.2), rgba(10, 10, 10, 0.9));
}

.portfolio-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    transition: var(--transition-medium);
}

.portfolio-item:hover .portfolio-image::before {
    width: 100px;
    height: 100px;
    border-color: rgba(255, 107, 53, 0.6);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* About Section */
.about {
    background: var(--dark-gray);
}

/* About Story Section */
.about-story {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.story-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.story-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.story-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.story-content p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

/* Mission and Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.mission-card,
.vision-card {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: var(--transition-medium);
}

.mission-card:hover,
.vision-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.mv-icon {
    width: 70px;
    height: 70px;
    background: var(--medium-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-medium);
}

.mission-card:hover .mv-icon,
.vision-card:hover .mv-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
}

.mv-icon svg {
    width: 35px;
    height: 35px;
    color: var(--white);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.mission-card p,
.vision-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Values Section */
.values-section {
    margin: var(--spacing-xl) 0;
}

.values-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.value-card {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: var(--transition-medium);
}

.value-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

.value-icon-box {
    width: 60px;
    height: 60px;
    background: var(--medium-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-medium);
}

.value-card:hover .value-icon-box {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
}

.value-icon-box svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.value-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    margin: var(--spacing-xl) 0;
}

.team-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.team-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.team-text p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: var(--spacing-sm);
}

.team-specialties {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.team-specialties li {
    color: var(--text-gray);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.team-specialties li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
}

.team-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 300px;
}

.team-icon-item {
    aspect-ratio: 1;
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.team-icon-item:hover {
    border-color: var(--primary-orange);
    background: var(--medium-gray);
    transform: scale(1.05);
}

.team-icon-item svg {
    width: 40px;
    height: 40px;
    color: var(--primary-orange);
}

/* Commitment Section */
.commitment-section {
    margin: var(--spacing-xl) 0;
}

.commitment-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    border: 1px solid var(--primary-orange);
    border-radius: 16px;
    padding: var(--spacing-lg);
    text-align: center;
}

.commitment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.commitment-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.commitment-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.commitment-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

/* Responsive - About */
@media (max-width: 968px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .team-content {
        grid-template-columns: 1fr;
    }
    
    .team-visual {
        margin-top: var(--spacing-md);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .story-content h3,
    .team-text h3,
    .values-title {
        font-size: 1.5rem;
    }
    
    .mission-card h3,
    .vision-card h3 {
        font-size: 1.3rem;
    }
    
    .commitment-card h3 {
        font-size: 1.4rem;
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.info-card {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.info-icon svg {
    width: 35px;
    height: 35px;
    color: var(--white);
    stroke-width: 2;
    fill: none;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.info-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    margin: var(--spacing-md) 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-orange);
}

.checkbox-label span {
    font-size: 0.95rem;
}

.terms-link {
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition-fast);
}

.terms-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    border-top: 1px solid var(--medium-gray);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    clear: both;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: var(--text-gray);
    margin-top: var(--spacing-sm);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-orange);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--medium-gray);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .hero-visual {
        height: 300px;
        order: -1;
    }
    
    .tech-graphic {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-md);
        transition: var(--transition-medium);
        border-top: 1px solid var(--medium-gray);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 6rem;
        min-height: calc(100vh - 70px);
        overflow: hidden;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "visual"
            "text"
            "stats";
        gap: 1.5rem;
        padding: 1rem 0 2rem 0;
    }
    
    .hero-text {
        margin-bottom: 0;
        margin-top: 1rem;
        position: relative;
        clear: both;
        z-index: 2;
    }
    
    .hero-visual {
        height: 280px;
        margin-bottom: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        clear: both;
    }
    
    .tech-graphic {
        width: 260px;
        height: 260px;
    }
    
    .orbit-1, .orbit-2, .orbit-3, .orbit-4, .orbit-5 {
        width: 200px;
        height: 200px;
    }
    
    .center-logo {
        width: 80px;
        height: 80px;
    }
    
    .center-logo img {
        width: 60px;
        height: 60px;
    }
    
    .orbit-icon {
        width: 45px;
        height: 45px;
    }
    
    .orbit-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-stats {
        margin-top: 2rem;
        gap: 1.5rem;
        position: relative;
        clear: both;
        z-index: 2;
        padding-bottom: 1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .footer {
        padding: 3rem 0 2rem;
        margin-top: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2.5rem 0;
        margin-top: 0;
    }
    
    .hero {
        padding-top: 90px;
        padding-bottom: 5rem;
        overflow: hidden;
    }
    
    .hero-content {
        gap: 1.5rem;
        padding: 0.5rem 0 2rem 0;
    }
    
    .hero-text {
        margin-top: 0.5rem;
        margin-bottom: 0;
        position: relative;
        z-index: 2;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-visual {
        height: 200px;
        margin-bottom: 0;
        position: relative;
        overflow: visible;
    }
    
    .tech-graphic {
        width: 180px;
        height: 180px;
    }
    
    .orbit-1, .orbit-2, .orbit-3, .orbit-4, .orbit-5 {
        width: 140px;
        height: 140px;
    }
    
    .center-logo {
        width: 60px;
        height: 60px;
    }
    
    .center-logo img {
        width: 45px;
        height: 45px;
    }
    
    .orbit-icon {
        width: 35px;
        height: 35px;
    }
    
    .orbit-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
        margin-top: 2rem;
        position: relative;
        z-index: 2;
        padding-bottom: 1rem;
    }
    
    .stat-item {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        margin-bottom: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
        overflow-x: hidden;
    }
}

/* Animaciones de Scroll Profesionales */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Efectos hover mejorados */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.portfolio-item {
    overflow: hidden;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, transparent, rgba(255, 107, 53, 0.1), transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.portfolio-item:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.info-card {
    transition: var(--transition-medium);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-orange), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-medium);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

/* Animación de puntos en el hero */
@keyframes dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Mejora de transiciones globales */
* {
    scroll-behavior: smooth;
}

/* Efecto parallax sutil en secciones */
.hero, .services, .portfolio, .about, .contact {
    position: relative;
}

/* Mejora de botones */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Efecto de brillo en logo */
.logo-icon {
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}
/* Phone Input with Country Selector */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.country-selector {
    position: relative;
    flex-shrink: 0;
}

.country-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--medium-gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.country-selector-btn:hover {
    background: var(--light-gray);
    border-color: var(--primary-orange);
}

.country-selector-btn .flag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-gray);
}

.country-selector-btn .flag-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-gray);
}

.country-selector-btn:hover .flag-icon svg {
    color: var(--primary-orange);
}

.country-selector-btn .country-code {
    font-weight: 500;
}

.country-selector-btn .country-code.placeholder {
    color: var(--text-gray);
    font-weight: 400;
}

.country-selector-btn .dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.country-selector-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 280px;
    max-height: 320px;
    background: #000000;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: 100;
}

.country-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--light-gray);
    background: #000000;
}

.country-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #000000;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.country-search input:focus {
    border-color: var(--primary-orange);
}

.country-search input::placeholder {
    color: var(--text-gray);
}

.country-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.25rem;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: #000000;
}

.country-list::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.country-option:hover {
    background: #1A1A1A;
}

.country-option.selected {
    background: var(--primary-orange);
}

.country-option .flag-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.country-option .country-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--white);
}

.country-option .country-code {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.country-option.selected .country-code {
    color: var(--white);
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    min-width: 0;
}

/* ============================================
   MODAL DE COTIZACIÓN
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal-container {
    background: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(255, 102, 0, 0.3);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlideIn {
    to {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--primary-orange);
    transition: transform 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 102, 0, 0.2);
    transform: rotate(90deg);
}

.modal-close:hover svg {
    color: var(--white);
}

.modal-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 600px;
}

/* Sección del Asistente */
.modal-assistant {
    background: linear-gradient(180deg, rgba(255, 102, 0, 0.15) 0%, rgba(255, 102, 0, 0.05) 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255, 102, 0, 0.2);
    position: relative;
    overflow: visible;
}

.modal-assistant::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.assistant-image {
    position: relative;
    margin-bottom: 30px;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.assistant-image img {
    width: 200px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 102, 0, 0.5));
}

.assistant-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(255, 102, 0, 0.6) 0%, transparent 70%);
    filter: blur(15px);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.assistant-greeting {
    z-index: 1;
}

.assistant-greeting h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.assistant-greeting p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Sección del Formulario */
.modal-form {
    padding: 60px 50px;
    overflow-y: auto;
    max-height: 600px;
}

.modal-form::-webkit-scrollbar {
    width: 8px;
}

.modal-form::-webkit-scrollbar-track {
    background: rgba(255, 102, 0, 0.05);
}

.modal-form::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 0, 0.3);
    border-radius: 4px;
}

.modal-form::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 102, 0, 0.5);
}

.modal-form h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.modal-form .form-group {
    margin-bottom: 25px;
}

.modal-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
}

.modal-form label svg {
    width: 18px;
    height: 18px;
    color: var(--primary-orange);
}

.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: var(--text-gray);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255, 102, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}

.modal-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23FF6600' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.modal-form select option {
    background: #000000;
    color: var(--white);
    padding: 10px;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-form .phone-input-wrapper {
    display: flex;
    gap: 10px;
}

.modal-form .country-selector {
    flex-shrink: 0;
}

.modal-form .country-selector-btn {
    padding: 14px 16px;
    min-width: 110px;
}

/* Checkbox en modal */
.modal-form .checkbox-group {
    margin: 20px 0;
}

.modal-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-form .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    accent-color: var(--primary-orange);
    flex-shrink: 0;
}

.modal-form .checkbox-label span {
    flex: 1;
}

.modal-form .terms-link {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-form .terms-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 10px;
}

.btn-block svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }
    
    .modal-overlay.active {
        align-items: flex-start;
    }
    
    .modal-container {
        border-radius: 16px;
        margin: 20px 0;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
    }
    
    .modal-assistant {
        padding: 30px 20px 25px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 102, 0, 0.2);
        min-height: auto;
    }
    
    .assistant-image {
        margin-bottom: 15px;
    }
    
    .assistant-image img {
        width: 110px;
    }
    
    .assistant-glow {
        width: 100px;
        height: 20px;
        bottom: -15px;
    }
    
    .assistant-greeting h3 {
        font-size: 1.3rem;
    }
    
    .assistant-greeting p {
        font-size: 0.9rem;
    }
    
    .modal-form {
        padding: 40px 30px;
        max-height: none;
    }
    
    .modal-form h2 {
        font-size: 1.5rem;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-start;
    }
    
    .modal-overlay.active {
        align-items: flex-start;
    }
    
    .modal-container {
        border-radius: 0;
        min-height: 100vh;
        margin: 0;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .modal-assistant {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .assistant-image {
        margin-bottom: 12px;
    }
    
    .assistant-image img {
        width: 85px;
    }
    
    .assistant-glow {
        width: 75px;
        height: 15px;
        bottom: -10px;
        filter: blur(10px);
    }
    
    .assistant-greeting h3 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .assistant-greeting p {
        font-size: 0.85rem;
    }
    
    .modal-form {
        padding: 30px 20px;
    }
    
    .modal-form .phone-input-wrapper {
        flex-direction: column;
    }
    
    .modal-form .country-selector-btn {
        width: 100%;
    }
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

/* Login Wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

/* Animated Background */
.login-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-orange);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--orange-dark);
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--orange-light);
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease forwards;
}

.login-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.login-container.loaded .login-logo {
    opacity: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-desktop {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

.logo-mobile {
    height: 50px;
    width: auto;
    display: none;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 16px rgba(255, 107, 53, 0.4));
    }
}

/* Header Section */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.login-container.loaded .login-header {
    opacity: 1;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.login-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Login Form */
.login-form {
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.login-container.loaded .login-form {
    opacity: 1;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--medium-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all var(--transition-medium);
}

.input-wrapper:hover {
    background: var(--light-gray);
}

.input-wrapper.focused {
    background: var(--light-gray);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-gray);
    transition: color var(--transition-medium);
    pointer-events: none;
}

.input-wrapper.focused .input-icon {
    color: var(--primary-orange);
}

/* Input Label with Icon */
.input-label,
.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.label-icon {
    color: var(--primary-orange);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.input-label span,
.form-label span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.login-input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    outline: none;
}

.login-input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-medium);
}

.toggle-password:hover {
    color: var(--primary-orange);
}

.toggle-password.active {
    color: var(--primary-orange);
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    position: relative;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-orange);
    border-radius: 3px;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-medium);
}

.remember-checkbox input:checked + .checkbox-custom {
    border-color: var(--primary-orange);
}

.remember-checkbox input:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary-orange);
    text-decoration: none;
    transition: color var(--transition-medium);
}

.forgot-link:hover {
    color: var(--orange-light);
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-light), var(--primary-orange));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.login-button:hover::before {
    opacity: 1;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.button-text,
.button-icon {
    position: relative;
    z-index: 1;
}

.button-icon {
    transition: transform var(--transition-medium);
}

.login-button:hover .button-icon {
    transform: translateX(4px);
}

/* Loading State */
.login-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.login-loading.show {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--medium-gray);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.signup-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-medium);
}

.signup-link:hover {
    color: var(--orange-light);
}

/* Error Message */
.login-error {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    font-size: 0.9rem;
    animation: shake 0.5s ease;
}

.login-error.show {
    display: flex;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ── Paneles OTP y Cambiar contraseña ─────────────────────────────────────── */

.login-panel {
    animation: fadeIn 0.4s ease forwards;
}

.panel-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.panel-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* OTP input centrado con dígitos grandes */
.otp-input {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.6em;
    padding-right: 0.5rem; /* compensar letter-spacing */
}

/* Links inferiores en panel OTP */
.panel-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.panel-sep {
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-heading {
        font-size: 1.25rem;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        height: 48px;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.25rem;
    }

    .login-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .forgot-link {
        align-self: flex-end;
    }
}

/* ============================================
   FORM COLABORADOR STYLES
   ============================================ */

/* Form Wrapper */
.form-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--black);
    padding: 80px 0 2rem;
}

/* Form Background (reuse login background) */
.form-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* Form Container */
.form-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 3.5rem;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease forwards;
}

.form-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    animation: fadeInDown 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.form-container.loaded .form-header {
    opacity: 1;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--medium-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
    transition: all var(--transition-medium);
}

.back-button:hover {
    background: var(--light-gray);
    color: var(--primary-orange);
    transform: translateX(-3px);
}

.form-logo {
    margin-bottom: 1rem;
}

.form-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
}

.form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Colaborador Form */
.colaborador-form {
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.form-container.loaded .colaborador-form {
    opacity: 1;
}

/* Profile Photo Section */
.profile-photo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.profile-photo-left {
    flex-shrink: 0;
}

.profile-photo-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.profile-photo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.5);
    border: 3px solid rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.profile-photo-circle:hover {
    border-color: var(--primary-orange);
    transform: scale(1.02);
}

.profile-placeholder-icon {
    color: var(--text-gray);
}

.profile-photo-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-upload-photo,
.btn-remove-photo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-upload-photo {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-upload-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.btn-remove-photo {
    background: var(--medium-gray);
    color: var(--white);
    border: 1px solid var(--light-gray);
}

.btn-remove-photo:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.profile-photo-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

/* Form Section */
.form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(42, 42, 42, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 53, 0.05);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 2px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.required {
    color: var(--primary-orange);
}

/* Form Input */
.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    color: var(--text-gray);
    pointer-events: none;
    transition: color var(--transition-medium);
}

.input-wrapper.focused .select-arrow {
    color: var(--primary-orange);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-light), var(--primary-orange));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

.btn-primary svg,
.btn-secondary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--white);
    border: 1px solid var(--light-gray);
}

.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--primary-orange);
}

/* Form Loading */
.form-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-loading.show {
    display: flex;
}

/* Form Messages */
.form-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInMessage 0.3s ease;
}

.form-message.show {
    display: flex;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Responsive Design - Form */
@media (max-width: 768px) {
    .form-container {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-section {
        padding: 1.25rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .back-button {
        position: relative;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: flex-start;
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .form-input {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .input-icon,
    .label-icon {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

/* Dashboard Wrapper */
.dashboard-wrapper {
    min-height: 100vh;
    background: var(--black);
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

.dashboard-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.dashboard-container {
    position: relative;
    z-index: 10;
    padding: 2rem;
    animation: fadeIn 0.6s ease;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--medium-gray);
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    transition: all var(--transition-medium);
}

.user-menu:hover {
    background: var(--light-gray);
    border-color: var(--primary-orange);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spans responsivos del nombre */
.uname-sm, .uname-md, .uname-lg { display: none; }

@media (max-width: 479px) {
    .uname-sm { display: inline; }
}
@media (min-width: 480px) and (max-width: 1023px) {
    .uname-md { display: inline; }
}
@media (min-width: 1024px) {
    .uname-lg { display: inline-flex; align-items: center; gap: 0.5rem; }
}

.uname-cargo {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary-orange);
    background: rgba(255,107,53,0.12);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.logout-btn:hover {
    color: var(--primary-orange);
    background: var(--medium-gray);
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all var(--transition-medium);
    opacity: 0;
    transform: translateY(20px);
}

.stat-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.colaboradores {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    color: var(--primary-orange);
}

.stat-icon.clientes {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3b82f6;
}

.stat-icon.proyectos {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    color: #a855f7;
}

.stat-icon.tareas {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Menu Section */
.menu-section {
    margin-top: 0;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.menu-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-decoration: none;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.menu-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.menu-card:not(.disabled) {
    cursor: pointer;
}

.menu-card:not(.disabled):hover {
    border-color: var(--primary-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.menu-card:not(.disabled):hover .card-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    color: var(--white);
}

.menu-card:not(.disabled):hover .card-arrow {
    transform: translateX(4px);
}

.menu-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    flex-shrink: 0;
    transition: all var(--transition-medium);
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.badge-soon {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-arrow {
    color: var(--text-gray);
    transition: all var(--transition-medium);
    flex-shrink: 0;
}

/* ============================================
   LISTA COLABORADORES STYLES
   ============================================ */

.list-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.list-subtitle {
    color: var(--text-gray);
    margin-top: -0.5rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-action-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.list-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.list-filter-input {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(26, 26, 26, 0.75);
    color: var(--white);
    padding: 0 1rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.list-filter-input:focus {
    border-color: rgba(255, 107, 53, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.16);
}

.list-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.list-filter-count {
    color: var(--text-gray);
    font-size: 0.85rem;
    white-space: nowrap;
}

.colaboradores-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.colaborador-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-medium);
}

.colaborador-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.16);
    transform: translateY(-2px);
}

.colaborador-card-top {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.colaborador-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 107, 53, 0.25);
}

.colaborador-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.colaborador-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.colaborador-card-doc,
.colaborador-card-wsp {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-gray);
}

.colaborador-card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.card-action-btn {
    border: 1px solid rgba(255, 107, 53, 0.18);
    background: rgba(42, 42, 42, 0.85);
    color: var(--white);
    border-radius: 12px;
    padding: 0.62rem 0.7rem;
    min-height: 44px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.33rem;
    white-space: nowrap;
}

.card-action-btn svg {
    flex-shrink: 0;
    opacity: 0.92;
}

.card-action-btn span {
    line-height: 1;
    white-space: nowrap;
}

.card-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
}

.card-action-view {
    border-color: rgba(255, 107, 53, 0.25);
    background: rgba(255, 107, 53, 0.14);
    color: var(--white);
}

.card-action-view:hover {
    border-color: rgba(255, 107, 53, 0.6);
    background: rgba(255, 107, 53, 0.2);
}

.card-action-edit {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(58, 58, 58, 0.78);
    color: #f3f4f6;
}

.card-action-edit:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(80, 80, 80, 0.75);
}

.card-action-delete {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.card-action-delete:hover {
    border-color: rgba(239, 68, 68, 0.8);
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.colaborador-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.colaborador-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.colaborador-modal-content {
    position: relative;
    z-index: 1;
    width: min(1120px, 92vw);
    max-height: none;
    overflow: visible;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    padding: 1rem 1rem 0.9rem;
}

.colaborador-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-gray);
    cursor: pointer;
}

.colaborador-modal-title {
    margin: 0 0 0.75rem;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-profile {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.modal-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.modal-profile-name {
    margin: 0;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
}

.modal-profile-code {
    margin: 0.2rem 0 0;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.88rem;
}

.modal-sections {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.modal-section {
    padding-top: 0.2rem;
}

.modal-section-title {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    padding-bottom: 0.28rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.18);
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.modal-detail-item {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.12);
    border-radius: 10px;
    padding: 0.58rem 0.68rem;
}

.modal-detail-label-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.modal-detail-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    color: var(--orange-light);
    opacity: 0.95;
}

.modal-detail-icon svg {
    width: 14px;
    height: 14px;
}

.modal-detail-label {
    color: var(--text-gray);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    font-weight: 600;
    line-height: 1.2;
}

.modal-detail-value {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.list-empty-state,
.list-loading {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-gray);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1.5rem 1rem;
    }

    .dashboard-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .user-name {
        display: inline-flex;
        max-width: 160px;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .list-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-actions {
        width: 100%;
    }

    .list-action-btn {
        width: 100%;
    }

    .list-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }

    .list-filter-input {
        height: 80px;
        border-radius: 16px;
        padding: 1rem 1.4rem;
        font-size: 1.06rem;
        line-height: 1.6;
        letter-spacing: 0.3px;
        border: 1.5px solid rgba(255, 107, 53, 0.3);
        background: rgba(26, 26, 26, 0.85);
        box-sizing: border-box;
        display: block;
        width: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        vertical-align: middle;
    }

    .list-filter-count {
        text-align: right;
        font-size: 0.88rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.65);
    }

    .colaboradores-card-grid {
        grid-template-columns: 1fr;
    }

    .colaborador-card-actions {
        grid-template-columns: 1fr;
    }

    .modal-detail-grid {
        grid-template-columns: 1fr;
    }

    .colaborador-modal-content {
        width: min(96vw, 96vw);
        max-height: calc(100vh - 20px);
        padding: 0.9rem 0.85rem;
    }

    .colaborador-modal-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    /* Ocultar nombre en navbar para evitar desbordamiento */
    .user-name {
        display: none;
    }

    .user-menu {
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }

    .navbar .container {
        padding: 0 0.75rem;
    }

    /* Profile Photo - Responsive */
    .profile-photo-section {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .profile-photo-right {
        width: 100%;
        align-items: center;
    }

    .profile-photo-actions {
        justify-content: center;
    }
}

/* ============================================
   ERP SIDEBAR SHELL LAYOUT
   ============================================ */

/* App shell: disable body scroll */
body.erp-shell {
    overflow: hidden;
    height: 100vh;
}

/* ── Top bar ── */
.erp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem;
}

.erp-sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.45rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.erp-sidebar-toggle:hover {
    color: var(--white);
    background: var(--medium-gray);
}

.erp-topbar-logo .logo-img {
    height: 30px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.erp-topbar-separator {
    width: 1px;
    height: 22px;
    background: var(--medium-gray);
    flex-shrink: 0;
}

.erp-topbar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-topbar-right {
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Sidebar ── */
.erp-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--dark-gray);
    border-right: 1px solid var(--medium-gray);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 900;
    transition: transform var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.erp-sidebar::-webkit-scrollbar { width: 3px; }
.erp-sidebar::-webkit-scrollbar-track { background: transparent; }
.erp-sidebar::-webkit-scrollbar-thumb { background: var(--medium-gray); border-radius: 3px; }

/* ── Sidebar Nav ── */
.erp-nav {
    padding: 0.75rem 0 1.5rem;
    flex: 1;
}

.erp-nav-group {
    padding: 0 0.625rem;
    margin-bottom: 0.15rem;
}

.erp-nav-group-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-gray);
    opacity: 0.6;
    padding: 0.9rem 0.625rem 0.35rem;
    user-select: none;
}

.erp-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.625rem;
    border-radius: 7px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast), background var(--transition-fast);
    margin: 0.08rem 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.erp-nav-link.active {
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.12);
    font-weight: 600;
}

.erp-nav-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.erp-nav-link:hover svg,
.erp-nav-link.active svg {
    opacity: 1;
}

.erp-nav-divider {
    height: 1px;
    background: var(--medium-gray);
    margin: 0.5rem 0.625rem;
    opacity: 0.45;
}

/* ── Mobile overlay ── */
.erp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 850;
}

.erp-overlay.visible {
    display: block;
}

/* ── Main content ── */
.erp-main {
    position: fixed;
    top: 60px;
    left: 240px;
    right: 0;
    bottom: 0;
    background: var(--black);
    transition: left var(--transition-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Loading bar */
.erp-loading-bar {
    height: 2px;
    background: var(--primary-orange);
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    transition: width 0.4s ease, opacity 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
    opacity: 0;
}

.erp-loading-bar.loading {
    opacity: 1;
    width: 75%;
    transition: width 10s ease;
}

.erp-loading-bar.done {
    width: 100%;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.4s ease 0.2s;
}

/* Iframe */
.erp-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: var(--black);
    display: none;
}

/* ── Home panel ── */
.erp-home-panel {
    flex: 1;
    display: none;
    overflow-y: auto;
    padding: 2rem 2rem 3rem;
}

.erp-home-panel.visible {
    display: block;
}

.erp-home-welcome {
    margin-bottom: 2rem;
}

.erp-home-welcome h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.4px;
    margin-bottom: 0.25rem;
}

.erp-home-welcome p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.erp-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.erp-home-card {
    background: rgba(26, 26, 26, 0.75);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
}

.erp-home-card:hover {
    border-color: rgba(255, 107, 53, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.erp-home-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.erp-home-card:hover .erp-home-card-icon {
    background: rgba(255, 107, 53, 0.2);
}

.erp-home-card-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.erp-home-card-sub {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin-top: -0.35rem;
}

/* ── Sidebar collapsed (desktop) ── */
body.sidebar-collapsed .erp-sidebar {
    transform: translateX(-240px);
}

body.sidebar-collapsed .erp-main {
    left: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .erp-sidebar {
        transform: translateX(-240px);
        z-index: 960;
        top: 60px;
    }

    .erp-sidebar.open {
        transform: translateX(0);
    }

    .erp-main {
        left: 0;
    }

    .erp-home-panel {
        padding: 1.5rem 1rem 2rem;
    }

    .erp-home-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .erp-home-grid {
        grid-template-columns: 1fr 1fr;
    }

    .erp-topbar-title {
        display: none;
    }
}

/* ── SweetAlert2 — mensaje de validación tema oscuro ── */
.swal2-validation-message {
    background: #1a1a1a !important;
    color: #ff4d4d !important;
    border: 1px solid rgba(255, 77, 77, 0.35) !important;
    border-radius: 8px !important;
    font-size: 0.83rem !important;
    font-weight: 500 !important;
    padding: 8px 14px !important;
    margin-top: 10px !important;
}
.swal2-validation-message::before {
    background: #ff4d4d !important;
}