/* Variables globales */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --text: #1f2937;
    --text-light: #4b5563;
    --background: #f9fafb;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.05);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Botones y enlaces */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

/* Header y navegación */
header {
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.nav-links a:hover {
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1));
    border-radius: 0 0 2rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Features section */
.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
}

/* Steps section */
.steps {
    padding: 4rem 0;
    background-color: rgba(99, 102, 241, 0.05);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.step-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--primary);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.card-header h3 {
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.card-img {
    width: 100%;
    border-radius: 0.375rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
}

.testimonial-slider {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial {
    background-color: var(--card);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
}

.testimonial-content .quote {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-content .quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    color: var(--text);
}

.author-info p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .btn {
    background-color: white;
    color: var(--primary-dark);
}

.cta .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow);
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.faq-item p {
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--text);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Form styles */
.form-container {
    background-color: var(--card);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    color: var(--text);
    background-color: var(--card);
    transition: all 0.2s ease-in-out;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--background);
    padding: 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.radio-option:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.radio-option input {
    width: auto;
}

.radio-option.selected {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.1);
}

/* Progress bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    background-color: var(--background);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.progress-step.completed {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
}

.progress-label {
    text-align: center;
    width: 100px;
    margin-left: -30px;
}

.progress-label:first-child {
    margin-left: 0;
    text-align: left;
}

.progress-label:last-child {
    text-align: right;
    margin-left: -60px;
}

/* AI assistant panel */
.ai-assistant {
    background-color: var(--card);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    margin-top: 2rem;
    overflow: hidden;
}

.ai-header {
    background-color: var(--primary);
    padding: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.ai-body {
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    position: relative;
}

.message.user {
    background-color: rgba(99, 102, 241, 0.1);
    margin-left: 1.5rem;
}

.message.assistant {
    background-color: rgba(16, 185, 129, 0.1);
    margin-right: 1.5rem;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.message-header i {
    font-size: 1.25rem;
}

.message-content {
    color: var(--text);
}

.ai-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.ai-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 1rem;
}

.ai-input button {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-input button:hover {
    background-color: var(--primary-dark);
}

/* Main content section */
.main-content {
    padding: 2rem 0 4rem;
}

/* Buttons container */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .steps {
        padding: 2rem 0;
    }

    .step-cards, 
    .features-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .progress-labels {
        display: none;
    }

    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .form-buttons button {
        width: 100%;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Tema oscuro (para futura implementación) */
.dark-theme {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --text: #f9fafb;
    --text-light: #e5e7eb;
    --background: #111827;
    --card: #1f2937;
    --border: #374151;
    --shadow: rgba(0, 0, 0, 0.2);
}