/* ==========================================
   VARIABLES CSS
   ========================================== */
:root {
    --primary-green: #069505;
    --secondary-green: #059905;
    --primary-gold: #E09F28;
    --dark-green: #047003;
    --light-green: #e8f5ed;
    --dark-gold: #c88820;
    --gradient-green: linear-gradient(135deg, #069505 0%, #059905 100%);
    --gradient-gold: linear-gradient(135deg, #E09F28 0%, #c88820 100%);
    --dark: #1a1a1a;
    --light: #f8f9fa;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-gold);
    width: 0%;
    transition: width 0.1s ease;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-primary-custom {
    background: var(--gradient-gold);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 159, 40, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 159, 40, 0.5);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-green);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(224, 159, 40, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: movePattern 30s linear infinite;
}

@keyframes movePattern {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(224, 159, 40, 0.3);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==========================================
   FLOATING CARD
   ========================================== */
.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.service-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-green);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(6, 149, 5, 0.25);
    border-color: var(--primary-gold);
}

.service-card * {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.service-card:hover * {
    color: white !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

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

.service-card:hover .service-icon i {
    color: var(--primary-gold) !important;
}

/* ==========================================
   BENEFITS
   ========================================== */
.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-green);
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================
   PROCESS STEPS
   ========================================== */
.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(224, 159, 40, 0.4);
    transition: all 0.4s ease;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border: 3px dashed var(--primary-gold);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

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

.process-step:hover .step-number {
    transform: scale(1.15);
}

/* ==========================================
   BRANCH CARDS
   ========================================== */
.branch-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-gold);
    height: 100%;
}

.branch-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(6, 149, 5, 0.15);
}

/* ==========================================
   GLASS CARD
   ========================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
}

/* ==========================================
   ACCORDION
   ========================================== */
.accordion-button {
    font-weight: 600;
    background: white !important;
    color: var(--dark) !important;
    border: none;
    font-size: 1.1rem;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--light-green) !important;
    color: var(--primary-green) !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-body {
    padding: 1.5rem;
    background: var(--light);
}

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    color: white;
    font-size: 2rem;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 8px 50px rgba(37, 211, 102, 0.8); }
}

/* ==========================================
   SECTION TITLES
   ========================================== */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.social-icon:hover {
    background: var(--primary-gold);
    transform: translateY(-5px);
    color: white;
}

/* ==========================================
   LOADING OVERLAY
   ========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-green);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-stats {
        justify-content: center;
    }

    .floating-card {
        margin-top: 3rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .whatsapp-float i {
        font-size: 1.8rem;
    }
}