/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0EA5E9;
    --secondary-color: #0C4A6E;
    --dark-bg: #0F172A;
    --darker-bg: #020617;
    --accent-yellow: #FCD34D;
    --accent-red: #EF4444;
    --accent-orange: #F97316;
    --accent-blue: #3B82F6;
    --text-light: #F1F5F9;
    --text-gray: #94A3B8;
    --border-color: #1E293B;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0284C7;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/hero-truck.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.85) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(12, 74, 110, 0.7) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(0, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(0, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.highlight {
    color: var(--primary-color);
    display: block;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.accent-bar {
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-yellow));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.hero-subtitle p {
    color: var(--text-light);
    font-size: 1.125rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.btn-cta {
    background-color: var(--accent-yellow);
    color: var(--darker-bg);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(252, 211, 77, 0.3);
}

.btn-cta:hover {
    background-color: #FDE68A;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(252, 211, 77, 0.5);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Value Proposition */
.value-proposition {
    padding: 6rem 0;
    background-color: var(--darker-bg);
}

.value-proposition h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.icon-wrapper.yellow {
    background-color: rgba(252, 211, 77, 0.2);
    color: var(--accent-yellow);
}

.icon-wrapper.red {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.icon-wrapper.orange {
    background-color: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
}

.icon-wrapper.blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.value-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.875rem;
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Telemetry Section */
.telemetry {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.telemetry h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.telemetry-card {
    background-color: var(--darker-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.telemetry-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
}

.telemetry-icon {
    margin-bottom: 1.5rem;
}

.telemetry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.telemetry-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* AI Section */
.ai-section {
    padding: 6rem 0;
    background-color: var(--darker-bg);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dashboard-mockup {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    margin-bottom: 1.5rem;
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

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

.mockup-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-area {
    background-color: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    padding: 2rem;
    height: 200px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    gap: 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--accent-yellow));
    border-radius: 4px 4px 0 0;
    animation: growBar 1.5s ease-out;
}

@keyframes growBar {
    from {
        height: 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.stat-circle {
    background: conic-gradient(var(--primary-color) 0% 70%, var(--border-color) 70% 100%);
    border-radius: 50%;
    aspect-ratio: 1;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.mini-bar {
    height: 12px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: 6px;
}

.ai-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.ai-feature {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.ai-feature:last-child {
    border-bottom: none;
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 60px;
}

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Why Choose Section */
.why-choose {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.why-choose h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    background-color: var(--darker-bg);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.why-icon {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.875rem;
}

.why-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Camera Features */
.camera-features {
    padding: 6rem 0;
    background-color: var(--darker-bg);
}

.camera-features h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon-large {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background-color: var(--darker-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .value-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .value-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .telemetry-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle p {
        font-size: 1rem;
    }
}

/* Estilos del Modal de Contacto */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--primary-color);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #1E293B;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

/* Mostrar el modal */
.modal.show {
    display: flex;
}
