/* Base Styles & Variables */
:root {
    --primary: #002D62;         /* Chilean blue */
    --secondary: #DE2035;       /* Chilean red */
    --accent: #FFFFFF;          /* White accent */
    --dark: #0A1626;            /* Dark shade */
    --light: #F8F9FC;           /* Light background */
    --text: #333333;            /* Main text */
    --text-light: #666666;      /* Secondary text */
    --gradient-primary: linear-gradient(135deg, #002D62, #001A3A);
    --gradient-secondary: linear-gradient(135deg, #DE2035, #B71B2C);
    --shadow: 0 5px 20px rgba(0, 45, 98, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.accent {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(222, 32, 53, 0.3);
    border: none;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(222, 32, 53, 0.4);
    color: white;
}

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

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(248, 249, 252, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.logo-svg {
    margin-right: 10px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav ul li a:hover {
    color: var(--secondary);
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--light);
    z-index: 999;
    padding: 100px 20px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-btn.mobile {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    color: white;
    background: var(--gradient-secondary);
    border-radius: 50px;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(0, 45, 98, 0.05);
    border-radius: 50px;
}

.badge svg {
    margin-right: 8px;
}

.badge span {
    font-size: 0.9rem;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.hero-visual svg {
    width: 100%;
    height: auto;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: rgba(0, 45, 98, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-slide {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-secondary);
    transition: var(--transition);
}

.feature-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-slide:hover::before {
    height: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.feature-slide h3 {
    margin-bottom: 15px;
}

.feature-slide p {
    color: var(--text-light);
}

/* How it Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: white;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 60px 0;
    position: relative;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-connector {
    flex-grow: 1;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    margin: 25px 10px 0;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 45, 98, 0.3);
}

.step-icon span {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cta-box {
    background: var(--gradient-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 45, 98, 0.2);
}

.cta-box h3 {
    color: white;
    margin-bottom: 10px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.cta-box .primary-btn {
    background: var(--gradient-secondary);
    border: 2px solid white;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: rgba(222, 32, 53, 0.03);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(0, 45, 98, 0.02);
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.toggle-icon span {
    position: absolute;
    background-color: var(--secondary);
    width: 20px;
    height: 2px;
    top: 50%;
    left: 50%;
    transition: var(--transition);
}

.toggle-icon span:first-child {
    transform: translate(-50%, -50%);
}

.toggle-icon span:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.active .toggle-icon span:last-child {
    transform: translate(-50%, -50%) rotate(0);
    opacity: 0;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 20px 20px;
    max-height: 300px;
}

/* Keywords Section */
.keywords {
    padding: 60px 0;
    background-color: white;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.keyword {
    padding: 8px 16px;
    background-color: rgba(0, 45, 98, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

.keyword:hover {
    background-color: rgba(222, 32, 53, 0.1);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-logo .logo-svg {
    margin-right: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .badge-row {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .step-connector {
        width: 3px;
        height: 30px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .feature-carousel {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
}
