/* Variables de color */
:root {
    --indigo: #1F1147;
    --lime: #CCFF00;
    --ultramarine: #3D7FFF;
    --coral: #FF5E57;
    --gradient-bg: linear-gradient(135deg, var(--indigo) 0%, var(--ultramarine) 100%);
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px; /* Ajuste para los anclajes */
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--ultramarine);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--indigo);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--indigo);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout y contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2:after {
    content: "";
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--lime);
    bottom: 0;
    left: 25%;
}

/* Grid y Flexbox */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

/* Header y navegación */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--indigo);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--indigo);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--lime);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--gradient-bg);
    color: var(--white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--lime);
    color: var(--indigo);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--indigo);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--coral);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--indigo);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Secciones Específicas */
/* About */
.about {
    background-color: var(--white);
}

/* Services */
.services {
    background-color: var(--light-gray);
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--ultramarine);
}

/* Advantages */
.advantages {
    background-color: var(--white);
}

.advantage-card {
    border-left: 4px solid var(--lime);
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--light-gray);
    border-radius: 0 10px 10px 0;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateX(10px);
}

/* Testimonials */
.testimonials {
    background: var(--gradient-bg);
    color: var(--white);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-position {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Why Us */
.why-us {
    background-color: var(--light-gray);
}

/* FAQ */
.faq {
    background-color: var(--white);
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: var(--light-gray);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-gray);
    text-decoration: none;
}

.faq-question.active {
    background: var(--indigo);
    color: var(--white);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
    background: var(--light-gray);
}

/* Contact Form */
.contact {
    background: var(--gradient-bg);
    color: var(--white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    outline: none;
    border-color: var(--lime);
    background: rgba(255, 255, 255, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.checkbox-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: var(--indigo);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-link-item {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--lime);
}

.social-links {
    display: flex;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--lime);
    color: var(--indigo);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--white);
    color: var(--dark-gray);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
    max-width: 500px;
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-text {
    margin-right: 1rem;
    font-size: 0.875rem;
}

/* Animaciones CSS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Páginas legales */
.legal-page {
    padding-top: 100px;
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    html {
        font-size: 15px;
    }
    
    .grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 576px;
    }
    
    html {
        font-size: 14px;
    }
    
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--indigo);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: all 0.5s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        color: var(--white);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    html {
        font-size: 13px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .cookie-popup {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        flex-direction: column;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }
} 