/* Servicios Técnicos - Estilos Personalizados */

/* Variables CSS para consistencia */
:root {
    --primary-color: #0f172a;
    /* Navy robusto */
    --accent-color: #3b82f6;
    /* Azul eléctrico moderno */
    --accent-hover: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #020617;
    --light-color: #f8fafc;
    --bg-surface: #ffffff;
    --bg-body: #f1f5f9;

    --gradient-premium: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.1);

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--primary-color);
    background-color: var(--bg-body);
    line-height: 1.6;
}

.navbar {
    padding: 1.25rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.navbar-scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: var(--primary-color) !important;
}

.navbar-scrolled .btn-outline-light {
    border-color: var(--accent-color);
    color: var(--accent-color) !important;
}

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

/* Lazy loading para imágenes */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Hero Section mejorada */
.hero-section {
    background: var(--gradient-premium);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom right, #fff 30%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Tarjetas de servicios mejoradas */
.service-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

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

.service-list {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.service-list li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: '\f058';
    /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.75rem;
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Formularios mejorados */
.form-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.form-card .card-header {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: none;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sección de testimonios */
.testimonials-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

/* Estadísticas animadas */
.stats-section {
    background: white;
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

/* Footer mejorado */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Responsive optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Notificaciones toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--success-color);
    animation: slideInRight 0.3s ease-out;
}

.toast.error {
    border-left-color: var(--danger-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mejoras para el panel de admin */
.admin-card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.admin-card:hover {
    box-shadow: var(--shadow-lg);
}

.stats-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Optimizaciones de performance */
.will-change-transform {
    will-change: transform;
}

/* Utilidades Premium */
.bg-light-soft {
    background-color: rgba(241, 245, 249, 0.5);
}

.bg-accent-soft {
    background-color: rgba(59, 130, 246, 0.1);
}

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

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

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

.rounded-4 {
    border-radius: var(--border-radius-md) !important;
}

.shadow-premium {
    box-shadow: var(--shadow-premium) !important;
}

.bg-gradient-premium {
    background: var(--gradient-premium);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.border-accent {
    border: 1px solid var(--accent-color) !important;
}

.synergy-icon i {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}