/* Loading Screen Mejorado */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1.5rem auto;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
/* Animaciones suaves */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Mejorar navbar */
.navbar {
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.navbar.scrolled {
	background: rgba(30, 64, 175, 0.95) !important;
	box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Mejorar botones */
.service-card h4 {
	color: var(--dark-color);
	font-weight: 600;
	margin-bottom: 1rem;
}

.service-card p {
	color: #6b7280;
	line-height: 1.6;
}

/* Back to top button */
.back-to-top {
	position: fixed;
	bottom: 100px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: var(--secondary-color);
	transform: translateY(-3px);
}
