/* Variables de colores basados en la bandera de Letonia */
:root {
    --primary-color: #9E3039; /* Rojo carmesí de Letonia */
    --secondary-color: #FFFFFF; /* Blanco */
    --accent-color: #FF9900; /* Naranja cálido para contraste */
    --dark-color: #333333;
    --light-color: #F5F5F5;
    --gray-color: #DDDDDD;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

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

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.8em;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
}

p {
    margin-bottom: 1.5em;
    font-size: 1.05rem;
}

/* Header y navegación */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--secondary-color);
    gap: 8px;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.nav-links li a::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #E08800; /* Naranja más oscuro */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-cta {
    background-color: var(--accent-color);
    padding: 1.2rem 3rem;
    border-radius: 30px;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
    z-index: -1;
}

.btn-cta:hover::before {
    left: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 6rem 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0 50 L100 50" stroke="white" stroke-width="5" stroke-opacity="0.1"/></svg>');
    opacity: 0.1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 3rem;
}

.hero-stat {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 30%;
    backdrop-filter: blur(5px);
}

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

.hero-stat-text {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Features Section */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    margin-bottom: 1.5rem;
    height: 50px;
    display: flex;
    align-items: center;
}

.feature-icon svg {
    width: 50px;
    height: 50px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* How it Works */
.how-it-works {
    background-color: var(--gray-color);
    padding: 5rem 0;
}

.steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
}

.step {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    max-width: 300px;
    margin: 0 auto;
}

.step-number {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

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

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image svg {
    max-width: 100%;
    height: auto;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.cta p {
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
    padding-left: 5px;
}

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

.footer-favicon {
    display: block;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .container {
        width: 95%;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1.2rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-column h3::after {
        left: 25%;
        width: 50%;
    }
    
    .footer-favicon {
        display: flex;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stat {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .btn-large, .btn-cta {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}
