/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00D531;
    --secondary-color: #1B232D;
    --accent-color: #A5A5AB;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #2c3e50;
    --text-dark: #1B232D;
    --text-light: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: #00b82a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-demo {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Dashboard Preview */
.dashboard-preview {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e9ecef;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.dashboard-dots span:first-child {
    background: #ff5f57;
}

.dashboard-dots span:nth-child(2) {
    background: #ffbd2e;
}

.dashboard-dots span:last-child {
    background: #28ca42;
}

.dashboard-title {
    font-size: 14px;
    color: var(--text-light);
}

.chart-container {
    display: flex;
    gap: 8px;
    align-items: end;
    height: 120px;
    margin-bottom: 20px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), #00b82a);
    border-radius: 4px 4px 0 0;
    animation: chartGrow 1.5s ease-out;
}

@keyframes chartGrow {
    from { height: 0 !important; }
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-card {
    background: var(--light-gray);
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1B232D !important; /* Forzar el color */
    margin-bottom: 16px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 3;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), #00b82a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon i {
    font-size: 24px;
    color: var(--white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: var(--light-gray);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-list {
    margin-top: 32px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 20px;
    color: var(--white);
}

.benefit-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.benefit-content p {
    color: var(--text-light);
}

/* Dashboard Showcase */
.dashboard-showcase {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.showcase-item {
    display: none;
    text-align: center;
}

.showcase-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.showcase-item h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.showcase-chart {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-area {
    width: 100%;
    height: 80%;
    position: relative;
}

.area-chart {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 213, 49, 0.2), rgba(0, 213, 49, 0.05));
    border-radius: var(--border-radius);
    position: relative;
}

.area-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.prediction-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    position: relative;
}

.prediction-line::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.recommendation-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.rec-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), #2c3e50);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-description {
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 20px;
    color: var(--white);
}

.contact-details h4 {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Form */
.form {
    background: var(--light-gray);
    padding: 32px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeInUp 0.4s ease;
}

.form-message i {
    font-size: 16px;
    flex-shrink: 0;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-brand-name {
    font-size: 24px;
    font-weight: 700;
}

.footer-slogan {
    color: var(--accent-color);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #3a4a5c;
    padding-top: 20px;
    text-align: center;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-30px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-bottom: 3px solid var(--primary-color);
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .nav-link {
        padding: 18px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(0, 213, 49, 0.1);
        margin: 0 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        transform: translateX(-20px);
        opacity: 0;
        animation: slideInLeft 0.5s ease forwards;
    }
    
    .nav-menu.active .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .nav-menu.active .nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .nav-menu.active .nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .nav-menu.active .btn-demo {
        animation-delay: 0.4s;
    }
    
    .nav-link:hover {
        background: rgba(0, 213, 49, 0.1);
        transform: translateX(0) scale(1.02);
        color: var(--primary-color);
    }
    
    .nav-link:last-child {
        border-bottom: 1px solid rgba(0, 213, 49, 0.1);
    }
    
    .btn-demo {
        margin: 15px 20px;
        text-align: center;
        transform: translateX(-20px);
        opacity: 0;
        animation: slideInLeft 0.5s ease forwards;
        box-shadow: 0 4px 15px rgba(0, 213, 49, 0.3);
    }
    
    .btn-demo:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 213, 49, 0.4);
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
        padding: 8px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(0, 213, 49, 0.1);
    }
    
    .nav-toggle span {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform-origin: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--primary-color);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: var(--primary-color);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .form {
        padding: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Animaciones adicionales */
.feature-card {
    animation: slideUp 0.6s ease-out;
}

.feature-card:nth-child(even) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3n) {
    animation-delay: 0.2s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}
