/* ====================================
   PORTO COMPATIBLE PROFESSIONAL STYLES
   ==================================== */

/* Porto Typography Enhancement (only additions) */
.font-weight-bold {
    font-weight: 700 !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Professional WhatsApp Button */
.float-wsp{
	position:fixed;
	width:60px;
	height:60px;
	bottom:30px;
	right:30px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size:28px;
	box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  	z-index:100;
	transition: all 0.2s ease;
	text-decoration: none;
}

.float-wsp:hover {
	background-color: #128c7e;
	box-shadow: 0 4px 16px rgba(0,0,0,0.3);
	color: #FFF;
	text-decoration: none;
	transform: scale(1.05);
}

.my-float-wsp{
	/* Removed margin-top as we're using flexbox centering */
}

/* Porto Compatible Service Cards */
.service-card-professional {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.service-card-professional:hover {
    border-color: #007bff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.service-icon-professional {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}

.service-card-professional:hover .service-icon-professional {
    background-color: #0056b3;
    transform: scale(1.05);
}

.service-icon-professional i {
    color: white;
    font-size: 1.5rem;
}

/* Porto Header Logo Fix */
.header-logo img {
    max-height: 50px !important;
    width: auto !important;
    transition: all 0.3s ease;
    object-fit: contain;
}

#header.header-sticky .header-logo img {
    max-height: 30px !important;
    margin-top: 5px;
}

/* Ensure header logo container doesn't override */
.header-logo {
    max-height: 50px;
    display: flex;
    align-items: center;
}

#header.header-sticky .header-logo {
    max-height: 40px;
}

/* Porto Compatible Professional Cards */
.professional-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.professional-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Professional Forms */
.form-control-professional {
    border: 1px solid var(--grey-400);
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control-professional:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
    outline: none;
}

/* Professional Cards */
.card-professional {
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
    overflow: hidden;
}

.card-professional:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    transform: translateY(-2px);
}

.card-professional .card-header {
    background-color: var(--grey-100);
    border-bottom: 1px solid var(--grey-300);
    padding: 20px 24px;
}

.card-professional .card-body {
    padding: 24px;
}

/* Professional Feature Boxes */
.feature-box-professional {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-box-professional:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    transform: translateY(-2px);
}

.feature-box-professional .feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.feature-box-professional .feature-icon i {
    font-size: 32px;
    color: var(--primary);
}

/* Professional Sections */
.section-professional {
    padding: 80px 0;
}

.section-professional.bg-light {
    background-color: var(--grey-100);
}

.section-professional.bg-primary {
    background-color: var(--primary);
    color: white;
}

/* Professional Text Styles */
.text-professional {
    color: var(--quaternary);
    line-height: 1.6;
}

.text-professional.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

.text-professional.subtitle {
    color: var(--default);
    font-size: 1.1rem;
}

/* Professional Lists */
.list-professional {
    list-style: none;
    padding-left: 0;
}

.list-professional li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
}

.list-professional li i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--primary);
}

/* Professional Animations (Subtle) */
.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Grid System */
.grid-professional {
    display: grid;
    gap: 30px;
}

.grid-professional.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-professional.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-professional.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-card-professional {
        padding: 24px 20px;
        min-height: auto;
        margin-bottom: 20px;
    }

    .feature-box-professional {
        padding: 20px 15px;
    }

    .section-professional {
        padding: 60px 0;
    }

    .grid-professional {
        gap: 20px;
    }

    .grid-professional.cols-2,
    .grid-professional.cols-3,
    .grid-professional.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Professional Utilities */
.shadow-professional {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-professional-hover:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.border-professional {
    border: 1px solid var(--grey-300);
}

.border-radius-professional {
    border-radius: 8px;
}

.transition-professional {
    transition: all 0.2s ease;
}

/* Professional Forms */
.form-control {
    border: 1px solid var(--grey-400);
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
    background: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: var(--grey-500);
}

/* Conservative Cards */
.card {
    border: 1px solid var(--grey-300);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    background: #ffffff;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--grey-400);
}

.card-header {
    background-color: var(--grey-100);
    border-bottom: 1px solid var(--grey-300);
    border-radius: 4px 4px 0 0 !important;
    font-weight: 600;
    color: var(--quaternary);
}

/* Professional Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 8px 16px;
}

.btn-primary {
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-200);
    border-color: var(--primary-200);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    border: 1px solid var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-200);
    border-color: var(--secondary-200);
    color: white;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Professional Tables */
.table {
    background: #ffffff;
    border: 1px solid var(--grey-300);
    border-radius: 4px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--grey-100);
    color: var(--quaternary);
    font-weight: 600;
    border-bottom: 1px solid var(--grey-300);
    padding: 12px;
}

.table tbody tr:hover {
    background-color: var(--grey-100);
}

.table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--grey-200);
}

/* Professional Alerts */
.alert {
    border-radius: 4px;
    font-weight: 500;
    border-width: 1px;
}

.alert-primary {
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    border-color: rgba(30, 58, 138, 0.2);
}

.alert-success {
    background-color: rgba(6, 95, 70, 0.1);
    color: var(--success);
    border-color: rgba(6, 95, 70, 0.2);
}

.alert-warning {
    background-color: rgba(146, 64, 14, 0.1);
    color: var(--warning);
    border-color: rgba(146, 64, 14, 0.2);
}

/* Professional Badge System */
.professional-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--grey-200);
    border: 1px solid var(--grey-300);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    color: var(--quaternary);
    margin: 2px;
}

.professional-badge.badge-primary {
    background-color: rgba(30, 58, 138, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Conservative Footer */
#footer {
    background-color: var(--quaternary);
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--grey-300);
}

#footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

#footer a:hover {
    color: white;
    text-decoration: none;
}

/* Professional Spacing */
.section-spacing {
    padding: 60px 0;
}

.section-spacing-sm {
    padding: 40px 0;
}

/* Thumbnail and Portfolio adjustments */
.thumb-info,
.thumb-info .thumb-info-wrapper,
.thumb-info .thumb-info-wrapper:after,
.thumb-info .thumb-info-wrapper > img,
.thumb-info .thumb-info-wrapper > .thumb-info-background {
	border-radius: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .service-card-professional {
        padding: 24px 20px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .section-spacing {
        padding: 40px 0;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .btn {
        border: 1px solid black !important;
    }
}

/* ========================================
   PREMIUM PROFESSIONAL LAYOUT STYLES
   ======================================== */

/* CSS Variables for Consistent Design */
:root {
    --primary: #1e3a8a;
    --primary-200: #3b82f6;
    --secondary: #64748b;
    --success: #059669;
    --warning: #d97706;
    --info: #0284c7;
    --danger: #dc2626;
    --grey-100: #f8fafc;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e1;
    --grey-400: #94a3b8;
    --quaternary: #1e293b;

    /* Shadow System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, var(--primary-200) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #475569 100%);
    --gradient-success: linear-gradient(135deg, var(--success) 0%, #10b981 100%);
    --gradient-warning: linear-gradient(135deg, var(--warning) 0%, #f59e0b 100%);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Enhanced Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--quaternary);
    line-height: 1.6;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--quaternary);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Font Weight Utilities */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* Line Height Utilities */
.lh-none { line-height: 1; }
.lh-tight { line-height: 1.25; }
.lh-snug { line-height: 1.375; }
.lh-normal { line-height: 1.5; }
.lh-relaxed { line-height: 1.625; }
.lh-loose { line-height: 2; }

/* Enhanced Professional WhatsApp Button */
.float-wsp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.float-wsp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #0d6e5c 100%);
    box-shadow: var(--shadow-xl);
    transform: scale(1.1) translateY(-2px);
}

.float-wsp::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #25d366, #128c7e, #25d366);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.float-wsp:hover::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

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

/* Enhanced Service Cards */
.service-card-professional {
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.service-card-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.service-card-professional:hover::before {
    transform: translateX(0);
}

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

.service-icon-professional {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
}

.service-icon-professional::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: var(--radius-lg);
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition);
}

.service-card-professional:hover .service-icon-professional {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.service-card-professional:hover .service-icon-professional::after {
    transform: translate(-50%, -50%) scale(1);
}

.service-icon-professional i {
    color: white;
    font-size: 2rem;
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

/* Enhanced Professional Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: var(--gradient-warning);
    border-color: var(--warning);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    background: var(--gradient-warning);
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Button Size Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

/* Enhanced Forms */
.form-control {
    border: 2px solid var(--grey-300);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
    background: white;
}

.form-control::placeholder {
    color: var(--grey-400);
    opacity: 1;
}

.form-label {
    font-weight: 600;
    color: var(--quaternary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Enhanced Cards */
.card {
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: var(--grey-100);
    border-bottom: 1px solid var(--grey-200);
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Professional Feature Boxes */
.feature-box-professional {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    height: 100%;
}

.feature-box-professional:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-box-professional .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
}

.feature-box-professional:hover .feature-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.feature-box-professional .feature-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-box-professional:hover .feature-icon i {
    color: white;
}

/* Shadow Utilities */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Hover Shadow Effects */
.shadow-hover:hover { box-shadow: var(--shadow-md); }
.shadow-lg-hover:hover { box-shadow: var(--shadow-lg); }
.shadow-xl-hover:hover { box-shadow: var(--shadow-xl); }

/* Border Radius Utilities */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

/* Grid System Enhancements */
.grid-professional {
    display: grid;
    gap: 2rem;
}

.grid-professional.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-professional.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-professional.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Professional Lists */
.list-professional {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-professional li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    align-items: center;
}

.list-professional li:last-child {
    border-bottom: none;
}

.list-professional li i {
    margin-right: 0.75rem;
    color: var(--primary);
    font-size: 1.1em;
}

/* Spacing Utilities */
.section-spacing {
    padding: 5rem 0;
}

.section-spacing-sm {
    padding: 3rem 0;
}

.section-spacing-lg {
    padding: 7rem 0;
}

/* Background Utilities */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

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

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

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

/* Text Utilities */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Professional Badges */
.professional-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--grey-100);
    color: var(--quaternary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--grey-200);
    transition: var(--transition);
}

.professional-badge.badge-primary {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    border-color: rgba(30, 58, 138, 0.2);
}

.professional-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Footer Enhancements */
#footer {
    background: var(--quaternary);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
}

#footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    text-decoration: none;
}

#footer a:hover {
    color: var(--primary-200);
    text-decoration: none;
}

/* Backdrop Filters */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .service-card-professional {
        padding: 1.5rem 1rem;
        min-height: auto;
        margin-bottom: 1.5rem;
    }

    .grid-professional.cols-2,
    .grid-professional.cols-3,
    .grid-professional.cols-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-spacing {
        padding: 3rem 0;
    }

    .section-spacing-lg {
        padding: 4rem 0;
    }

    h1, .display-1 { font-size: 2.5rem; }
    h2, .display-2 { font-size: 2rem; }
    h3, .display-3 { font-size: 1.75rem; }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 1.125rem;
    }

    .float-wsp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .service-card-professional {
        padding: 1rem;
    }

    .feature-box-professional {
        padding: 1.5rem 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn:last-child {
        margin-bottom: 0;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --grey-200: #000000;
        --grey-300: #333333;
        --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    }
}

/* Print Styles */
@media print {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .btn {
        border: 2px solid #000 !important;
        background: none !important;
        color: #000 !important;
    }

    .service-card-professional,
    .feature-box-professional,
    .card {
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --quaternary: #f8fafc;
        --grey-100: #1e293b;
        --grey-200: #334155;
        --grey-300: #475569;
    }

    body {
        background-color: #0f172a;
        color: #f8fafc;
    }

    .service-card-professional,
    .feature-box-professional,
    .card {
        background: #1e293b;
        border-color: #334155;
    }

    .form-control {
        background: #1e293b;
        border-color: #334155;
        color: #f8fafc;
    }
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
}

.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyload.loaded {
    opacity: 1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================
   SIMPLIFIED HEADER STYLES - FUNCTIONAL & CLEAN
   ==================================== */

/* Header Base Styles */
.header-logo img {
    max-height: 50px !important;
    width: auto !important;
    transition: all 0.3s ease;
    object-fit: contain;
}

#header.header-sticky .header-logo img {
    max-height: 30px !important;
    margin-top: 5px;
}

/* Ensure header logo container doesn't override */
.header-logo {
    max-height: 50px;
    display: flex;
    align-items: center;
}

#header.header-sticky .header-logo {
    max-height: 40px;
}

/* ================================
   MOBILE HEADER OPTIMIZATION
   ================================ */

/* Logo responsivo */
@media (max-width: 767.98px) {
    .header-logo img {
        max-width: 200px !important;
        height: auto !important;
        width: auto !important;
    }
}

@media (max-width: 575.98px) {
    .header-logo img {
        max-width: 170px !important;
        height: auto !important;
        width: auto !important;
    }
}

/* Mobile Navigation Button */
@media (max-width: 991.98px) {
    .header-btn-collapse-nav {
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 12px 15px;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
    }

    .header-btn-collapse-nav:hover,
    .header-btn-collapse-nav:focus {
        background: #1e3d72;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
    }

    /* Mobile Navigation Menu */
    .header-nav-main nav {
        background: white;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        margin-top: 15px;
        padding: 20px 0;
        border: 1px solid rgba(0,0,0,0.05);
    }

    .header-nav-main nav .nav {
        flex-direction: column;
        padding: 0 20px;
    }

    .header-nav-main nav .nav li {
        margin: 0;
        border-bottom: 1px solid #f1f3f4;
    }

    .header-nav-main nav .nav li:last-child {
        border-bottom: none;
    }

    .header-nav-main nav .nav li a {
        padding: 15px 0;
        display: block;
        color: #495057 !important;
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .header-nav-main nav .nav li a:hover,
    .header-nav-main nav .nav li.active a {
        color: var(--primary) !important;
        padding-left: 10px;
    }

    /* Mobile Dropdown */
    .header-nav-main nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 10px 0 0 0;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .header-nav-main nav .dropdown-menu .dropdown-item {
        padding: 10px 15px;
        color: #6c757d;
        font-size: 0.9rem;
    }

    .header-nav-main nav .dropdown-menu .dropdown-item:hover {
        background: #e9ecef;
        color: var(--primary);
    }

    /* Mobile Language Selector */
    .header-nav-main nav .nav li:first-child {
        border-bottom: 2px solid var(--primary);
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .header-nav-main nav .nav li:first-child a {
        color: var(--primary) !important;
        font-weight: 600;
    }

    .header-nav-main nav .nav li:first-child .flag {
        width: 16px;
        height: auto;
        border-radius: 2px;
    }
}

/* ================================
   DESKTOP HEADER ALIGNMENT
   ================================ */

/* Top Navigation Alignment */
.header-nav-top {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.header-nav-top .nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
}

.header-nav-top .nav-item {
    display: flex !important;
    align-items: center !important;
}

.header-nav-top .nav-link {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
}

/* Social Icons Alignment */
.header-social-icons {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-social-icons.social-icons {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.header-social-icons.social-icons li {
    display: flex !important;
    align-items: center !important;
}

/* Language Selector Desktop */
@media (min-width: 992px) {
    #dropdownLanguage {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    #dropdownLanguage .flag {
        width: 16px !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }

    .header-row.pt-3 {
        padding-top: 0.75rem !important;
        min-height: auto !important;
    }
}

/* ================================
   MOBILE HEADER OPTIMIZATION
   ================================ */

/* Fix para header sticky en mobile */
@media (max-width: 991.98px) {
    /* Header sticky positioning fix */
    html.sticky-header-active #header .header-body {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
    }

    /* Header sticky container fix */
    #header.sticky-header-active .header-container {
        min-height: 70px !important;
        height: auto !important;
        padding: 0 15px !important;
    }

    #header.sticky-header-active .header-body {
        min-height: 70px !important;
        height: auto !important;
        padding: 10px 0 !important;
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    #header.sticky-header-active .header-row {
        min-height: 50px !important;
        align-items: center !important;
        display: flex !important;
    }

    /* Logo sticky adjustments */
    #header.sticky-header-active .header-logo {
        margin: 0 !important;
        padding: 5px 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    #header.sticky-header-active .header-logo img {
        max-width: 140px !important;
        height: auto !important;
        max-height: 40px !important;
        object-fit: contain !important;
    }

    /* Navigation button sticky */
    #header.sticky-header-active .header-btn-collapse-nav {
        padding: 8px 12px !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    #header.sticky-header-active .header-logo img {
        max-width: 120px !important;
        max-height: 35px !important;
    }

    #header.sticky-header-active .header-container {
        min-height: 60px !important;
    }

    #header.sticky-header-active .header-body {
        min-height: 60px !important;
        padding: 8px 0 !important;
    }
}

/* ================================
   MOBILE STICKY HEADER FIX ONLY
   ================================ */

/* Fix minimal para evitar que el header sticky se corte en mobile */
@media (max-width: 991.98px) {
    html.sticky-header-active #header .header-body {
        top: 0 !important;
    }
}

/* ================================
   DESKTOP HEADER ALIGNMENT
   ================================ */


