:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2440;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #f97316;
    --light: #f8fafc;
    --dark: #0f172a;
    --success: #22c55e;
    --gradient-solar: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
    --gradient-primary: linear-gradient(135deg, #1a3a5c 0%, #2563eb 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-solar);
    border-radius: 2px;
}

.section-title p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(245, 158, 11, 0.3);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-header .navbar {
    padding: 12px 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 1050;
    background: white;
    box-shadow: var(--shadow);
}

.site-header .navbar-brand {
    font-size: 1.5rem;
}

.site-header .navbar-brand img {
    max-height: 55px;
    width: auto;
}

.site-header .nav-link {
    font-weight: 500;
    color: var(--primary) !important;
    padding: 10px 15px !important;
    position: relative;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--secondary) !important;
}

.site-header .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--secondary);
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.85) 0%, rgba(26, 58, 92, 0.7) 50%, rgba(245, 158, 11, 0.3) 100%);
}

.hero-slider .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 10%;
    right: 10%;
    max-width: 800px;
}

.hero-slider .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-slider .carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    margin: 0 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary);
}

.btn-warning {
    background: var(--gradient-solar);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    color: white;
}

.btn-outline-warning {
    border-color: var(--secondary);
    color: var(--secondary);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
}

.btn-outline-warning:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 58, 92, 0.4);
    color: white;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-solar);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(10deg);
}

.service-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-card .product-img {
    height: 220px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card .product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card .badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-solar);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-card .product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-body h5 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-card .product-body .price {
    color: var(--secondary-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.installation-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    height: 280px;
}

.installation-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.installation-card:hover img {
    transform: scale(1.1);
}

.installation-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 36, 64, 0.9));
    padding: 30px 20px 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.installation-card:hover .overlay {
    transform: translateY(0);
}

.installation-card .overlay h5 {
    color: white;
    margin-bottom: 5px;
}

.installation-card .overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.installation-card .badge-capacity {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-solar);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.stat-item .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.stat-item .counter {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.testimonial-card .stars {
    color: var(--secondary);
    margin-bottom: 15px;
}

.testimonial-card .quote {
    font-style: italic;
    color: #475569;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--secondary);
}

.testimonial-card .author {
    display: flex;
    align-items: center;
}

.testimonial-card .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-solar);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
}

.cta-banner {
    background: var(--gradient-solar);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-banner h2 {
    color: white;
    font-size: 2.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

.whatsapp-btn {
    background: #25D366;
}

.call-btn {
    background: var(--secondary);
    animation: pulse 2s infinite;
}

.scroll-top-btn {
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
}

.cart-badge {
    font-size: 0.7rem;
    padding: 4px 6px;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid var(--secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.why-choose-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.why-choose-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

.form-control,
.form-select {
    border-radius: var(--radius);
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideUp {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.site-footer a:hover {
    opacity: 1 !important;
    color: var(--secondary) !important;
}

@media (max-width: 991.98px) {
    .hero-slider .carousel-item {
        height: 60vh;
    }
    
    .hero-slider .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .hero-slider .carousel-caption {
        left: 5%;
        right: 5%;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-item .counter {
        font-size: 2.2rem;
    }
    
    .cta-banner h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slider .carousel-item {
        height: 50vh;
    }
    
    .hero-slider .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.95rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}
