/* Base Styles and Variables */
:root {
    /* Primary color palette - Spanish-inspired theme */
    --primary: #8b0000; /* Dark red/maroon - inspired by Spanish flag */
    --secondary: #f1bf00; /* Golden yellow - inspired by Spanish flag */
    --tertiary: #006f51; /* Deep green - adds contrast and Spanish cultural touch */
    --background: #f9f9f9; /* Off-white background */
    --text-dark: #333333; /* Near black for text */
    --text-light: #ffffff; /* White text */
    --card-bg: #ffffff; /* White for card backgrounds */
    --accent-light: #fff8e1; /* Light yellow accent */
    --accent-dark: #6d0000; /* Darker red for hover states */
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
    position: relative;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, var(--primary) 25%, transparent 25%),
                      linear-gradient(-45deg, var(--primary) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, var(--primary) 75%),
                      linear-gradient(-45deg, transparent 75%, var(--primary) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.03;
    z-index: -1;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
}

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary);
    opacity: 0.2;
    z-index: -1;
    border-radius: 4px;
}

/* Header Styles */
header {
    background-color: var(--card-bg);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    z-index: 101;
}

.logo-svg {
    height: 40px;
    width: auto;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style-type: none;
}

.menu li {
    margin-left: 30px;
}

.menu li a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.menu li a:hover {
    color: var(--primary);
}

.menu li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: -1;
    transform: scale(0);
}

.btn:hover::after {
    transform: scale(1);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-accent {
    background-color: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(241, 191, 0, 0.3);
    font-weight: 700;
}

.btn-accent:hover {
    background-color: #d9ab00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(241, 191, 0, 0.4);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(249,249,249,1) 0%, rgba(255,248,225,1) 100%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(241, 191, 0, 0.15);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 20px;
}

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

.hero-badge span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1px;
}

.hero-title {
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--text-dark);
    opacity: 0.85;
}

.hero-cta {
    margin-bottom: 40px;
}

.users-counter {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.counter-dots {
    display: flex;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: -5px;
    border: 2px solid var(--background);
}

.dot:nth-child(2) {
    background-color: var(--secondary);
}

.dot:nth-child(3) {
    background-color: var(--tertiary);
}

.dot:nth-child(4) {
    background-color: var(--primary);
}

.users-counter p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.users-counter strong {
    color: var(--primary);
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 500px;
    z-index: 1;
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.ai-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.decorative-element {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(241, 191, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--card-bg);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--background);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    padding: 15px;
    border-radius: 50%;
    background-color: var(--accent-light);
}

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

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    padding: 70px 0;
    color: var(--text-light);
    text-align: center;
}

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

.cta-banner h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--background);
    position: relative;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

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

.step-connector {
    flex: 0 0 80px;
    height: 24px;
    position: relative;
}

.action-center {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--card-bg);
}

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

.faq-item {
    margin-bottom: 20px;
    border-radius: 12px;
    background-color: var(--background);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
}

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

/* Footer */
footer {
    background-color: #1d1d1d;
    color: var(--text-light);
    padding: 80px 0 30px;
    position: relative;
}

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

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

.footer-icon {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.footer-branding h3 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.footer-branding p {
    opacity: 0.7;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    flex: 1 1 300px;
    justify-content: flex-end;
}

.link-column h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.link-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--secondary);
}

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

.link-column ul li {
    margin-bottom: 15px;
}

.link-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

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

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

.keywords {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 80%;
        max-width: 350px;
        margin: 50px auto 0;
    }
    
    .hero-section {
        text-align: center;
        padding: 60px 0 80px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-cta {
        justify-content: center;
        display: flex;
    }
    
    .users-counter {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 270px;
        height: 100vh;
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        right: 0;
    }
    
    .menu li {
        margin: 20px 0;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-card {
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .step-connector {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        justify-content: flex-start;
        gap: 30px;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 70px 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
}
