/* Base styles and variables */
:root {
    --primary-color: #006847; /* Green from Mexican flag */
    --secondary-color: #ce1126; /* Red from Mexican flag */
    --accent-color: #ffffff; /* White from Mexican flag */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f5f5f5;
    --bg-light: #ffffff;
    --bg-dark: #006847;
    --font-main: 'Roboto', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

section {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

/* Mexican pattern overlay */
.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(0,104,71,0.03) 0px, rgba(0,104,71,0.03) 2px, transparent 2px, transparent 4px),
                       repeating-linear-gradient(135deg, rgba(206,17,38,0.03) 0px, rgba(206,17,38,0.03) 2px, transparent 2px, transparent 4px);
    z-index: 0;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
}

/* Button styles */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color) 60%, #00552b);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 104, 71, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 104, 71, 0.3);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color) 60%, #a80f1f);
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.2);
}

.btn-secondary:hover {
    box-shadow: 0 6px 15px rgba(206, 17, 38, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    padding-top: 130px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(0,104,71,0.05) 0%, rgba(206,17,38,0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(0,104,71,0.04);
    z-index: 0;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: rgba(206,17,38,0.04);
    z-index: 0;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Features Section */
.features {
    background-color: var(--bg-light);
    position: relative;
}

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

.feature-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary-color);
}

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

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

/* How it works */
.how-works {
    background-color: var(--bg-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
    gap: 20px;
}

.steps:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 0;
    border-radius: 2px;
}

.step {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 0 15px;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    border: 4px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.step:hover .step-number {
    background-color: var(--primary-color);
    color: var(--bg-light);
    transform: scale(1.1);
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Benefits Section */
.benefits {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.benefits-content {
    flex: 1;
    min-width: 300px;
}

.benefits-list {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 15px;
}

.benefit-text h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.benefits-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

/* FAQ Section */
.faq {
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background-color: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 20px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    color: var(--accent-color);
    margin-bottom: 25px;
}

.cta h2:after {
    background: var(--accent-color);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta .btn {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-light);
    padding: 70px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

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

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-links a {
    color: var(--accent-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .steps:before {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 50px 30px;
        z-index: 100;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        font-size: 1.2rem;
    }
    
    .hero-content, .hero-image {
        flex: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .step {
        margin-bottom: 40px;
    }
    
    .benefits-image {
        order: -1;
        margin-bottom: 40px;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .benefits-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 15px;
    }
}
