/* Base Styles */
:root {
    --primary: #AA151B;     /* Rojo español */
    --secondary: #F1BF00;   /* Amarillo dorado español */
    --text-dark: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --light-bg: #F8F8F8;
    --border: #E5E5E5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

p {
    margin-bottom: 1.2em;
}

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

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

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
}

.section-title span {
    color: var(--primary);
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 0.5em auto;
}

.section-title-left {
    font-size: 2.5rem;
    margin-bottom: 1em;
    position: relative;
}

.section-title-left span {
    color: var(--primary);
}

.section-title-left::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 0.5em 0;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3em;
    color: var(--text-light);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: block;
}

.menu {
    display: flex;
}

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

.menu a {
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(170, 21, 27, 0.05) 0%, rgba(241, 191, 0, 0.05) 100%);
    z-index: 1;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2em;
}

.hero-buttons {
    margin-bottom: 2em;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Como Funciona Section */
.como-funciona {
    padding: 100px 0;
}

.proceso {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3em;
}

.paso {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
}

.paso-icono {
    margin-bottom: 1.5em;
    display: flex;
    justify-content: center;
}

.paso h3 {
    margin-bottom: 1em;
    font-size: 1.3rem;
}

.conector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}

.cta-center {
    text-align: center;
    margin-top: 2em;
}

/* Características Section */
.caracteristicas {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.feature {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 1.5em;
    display: flex;
    justify-content: center;
}

.feature h3 {
    margin-bottom: 1em;
    font-size: 1.3rem;
}

/* Nosotros Section */
.nosotros {
    padding: 100px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-content {
    flex: 1;
}

.cta-left {
    margin-top: 2em;
}

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

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

.footer-branding {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-favicon {
    margin-top: 20px;
}

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

.footer-column h4 {
    color: var(--secondary);
    margin-bottom: 1.5em;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
}

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

.footer-column a {
    color: #CCC;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #AAA;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-flex {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-flex {
        flex-direction: column-reverse;
    }
    
    .about-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .cta-left {
        text-align: center;
    }
    
    .section-title-left::after {
        margin: 0.5em auto;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-branding {
        margin-bottom: 40px;
        text-align: center;
        max-width: none;
    }
    
    .footer-logo, .footer-favicon {
        display: flex;
        justify-content: center;
    }
    
    .footer-nav {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .section-title, .section-title-left {
        font-size: 2rem;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px 0;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 10px 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .proceso {
        flex-direction: column;
    }
    
    .paso {
        margin-bottom: 30px;
    }
    
    .conector {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
