/* Custom CSS for Avanza Contigo */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #5993ab;
    --accent-color: #ce975c;
    --bg-light: #e5f0f5;
    --white: #ffffff;
    --dark: #2c3e50;
    --text-dark: #333333;
    --text-light: #666666;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inconsolata', monospace;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* ===== UTILITY CLASSES ===== */
.section-bg {
    background-color: var(--bg-light);
}

.section-header h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    margin-bottom: 2rem;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #b8824f;
    border-color: #b8824f;
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    color: var(--white);
    padding: 1rem 0;
    z-index: 1050;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    color: var(--white);
    margin-bottom: 0;
}

.cookie-banner a {
    color: var(--accent-color);
}

/* ===== HEADER ===== */
header {
    background-color: var(--dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1040;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border-color: var(--accent-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28206, 151, 92, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    z-index: -1;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===== BENEFITS SECTION ===== */
.benefit-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.benefit-icon {
    color: var(--accent-color);
    font-size: 2.5rem !important;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.benefit-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== STATISTICS SECTION ===== */
.stat-card {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    position: relative;
    overflow: hidden;
}

.pricing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.1;
}

.pricing-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background: var(--accent-color);
}

.pricing-header h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.pricing-body {
    padding: 2rem 1.5rem;
}

/* ===== ARTICLES SECTION ===== */
.article-content {
    padding-right: 2rem;
}

.article-content h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(89, 147, 171, 0.25);
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

.contact-email {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark) !important;
}

footer h5, footer h6 {
    color: var(--white);
    margin-bottom: 1rem;
}

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

footer a:hover {
    color: var(--accent-color);
}

footer ul li {
    margin-bottom: 0.25rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .article-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        padding: 0.5rem 1.5rem;
    }
    
    .benefit-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .benefit-icon {
        display: block;
        margin: 0 auto 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .cookie-banner .row {
        text-align: center;
    }
    
    .cookie-banner .col-md-3 {
        margin-top: 1rem;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SCROLL PADDING FOR FIXED HEADER ===== */
section {
    scroll-margin-top: 80px;
}
