/* ===== VARIABLES ===== */
:root {
    --primary-color: #1871b5;
    --primary-dark: #263b56;
    --primary-light: #58c5f0;
    --bg-color: #0a0f1a;
    --bg-section: #111827;
    --bg-card: #161e2e;
    --text-color: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #1e2d45;
    --font: 'Inter', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #1560a0;
    border-color: #1560a0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 113, 181, 0.4);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--transition);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    background: rgba(24, 113, 181, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(24, 113, 181, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}
.highlight { color: var(--primary-color); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5%;
    background: transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 5%;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.logo-container img {
    height: 64px;
    width: auto;
    filter: brightness(0) invert(1);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition);
}
.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.btn-outline-nav {
    background: transparent;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}
.nav-links .btn-outline-nav:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
.hamburger { display: none; }
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,15,26,0.88) 0%, rgba(24,113,181,0.25) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: 120px 5% 80px;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== ALIADOS ===== */
.aliados {
    padding: 48px 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.aliados-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.aliados-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.aliado-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition);
    padding: 12px 24px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
}
.aliado-item:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.aliado-item img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* ===== SOLUCIONES ===== */
.soluciones {
    padding: 100px 0;
    background: var(--bg-color);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(24, 113, 181, 0.15);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(24, 113, 181, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(24, 113, 181, 0.25);
}
.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}
.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}
.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 24px;
    align-self: flex-start;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.btn-service:hover {
    gap: 12px;
    border-bottom-color: var(--primary-color);
}

/* ===== TECNOLOGÍA ===== */
.tecnologia {
    padding: 100px 0;
    background: var(--bg-section);
}
.tech-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: center;
}
.tech-features { display: flex; flex-direction: column; gap: 32px; }
.tech-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.tech-left .tech-feature { flex-direction: row-reverse; text-align: right; }
.tech-feature-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(24, 113, 181, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(24, 113, 181, 0.2);
}
.tech-feature-icon i {
    font-size: 1.1rem;
    color: var(--primary-color);
}
.tech-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.tech-feature p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}
.tech-image-center {
    width: 340px;
    display: flex;
    justify-content: center;
}
.app-mockup-large {
    max-width: 340px;
    border-radius: 24px;
    filter: drop-shadow(0 16px 48px rgba(24, 113, 181, 0.3));
}

/* ===== CONVENIOS ===== */
.convenios {
    padding: 100px 0;
    background: var(--bg-color);
}
.convenios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.convenio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.convenio-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.convenio-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #0d1420;
    border-radius: 12px 12px 0 0;
    padding: 12px;
}
.convenio-info {
    padding: 24px;
}
.convenio-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.convenio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== FLOTA ===== */
.flota {
    padding: 100px 0;
    background: var(--bg-section);
}
.flota-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.flota-card { border-radius: var(--radius-lg); overflow: hidden; }
.flota-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.flota-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.flota-card:hover .flota-img-wrap img { transform: scale(1.05); }
.flota-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,15,26,0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.flota-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.flota-cap {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.flota-cap i { color: var(--primary-color); }

/* ===== CONTACTO ===== */
.contacto {
    padding: 100px 0;
    background: var(--bg-color);
}
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.contacto-info .section-tag { display: inline-block; margin-bottom: 16px; }
.contacto-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.contacto-info > p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}
.contacto-datos { display: flex; flex-direction: column; gap: 24px; }
.contacto-dato {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contacto-dato i {
    width: 44px;
    height: 44px;
    background: rgba(24, 113, 181, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
    border: 1px solid rgba(24, 113, 181, 0.2);
}
.contacto-dato div { display: flex; flex-direction: column; gap: 2px; }
.contacto-dato span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.contacto-dato a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.contacto-dato a:hover { color: var(--primary-color); }

/* Form */
.contacto-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contacto-form form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contacto-form input,
.contacto-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-color);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(24, 113, 181, 0.05);
}
.contacto-form input::placeholder,
.contacto-form textarea::placeholder { color: var(--text-muted); }
.contacto-form textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer {
    background: #060a12;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-copy a {
    color: var(--primary-color);
    font-weight: 600;
}
.footer-copy a:hover { color: var(--primary-light); }
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--text-color); }

/* ===== WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

/* ===== ANIMATE ON SCROLL ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 5%;
        background-color: var(--bg-color);
    }
    .hamburger {
        display: flex;
        align-items: center;
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 1.6rem;
        cursor: pointer;
        padding: 6px 8px;
        z-index: 1002;
    }
    .nav-overlay.open { display: block; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 72%;
        max-width: 280px;
        height: 100vh;
        background-color: #0f1624;
        flex-direction: column;
        padding: 90px 30px 40px;
        gap: 8px;
        z-index: 1001;
        box-shadow: -8px 0 30px rgba(0,0,0,0.6);
        border-left: 1px solid var(--border-color);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; font-size: 1rem; }

    .hero {
        background-position: 65% center;
        background-attachment: scroll;
    }
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(10,15,26,0.75) 0%, rgba(10,15,26,0.92) 60%, rgba(10,15,26,0.98) 100%);
    }
    .hero-content { padding: 100px 5% 60px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { justify-content: center; text-align: center; }

    .services-grid { grid-template-columns: 1fr; }
    .convenios-grid { grid-template-columns: 1fr; }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tech-left .tech-feature { flex-direction: row; text-align: left; }
    .tech-image-center {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        order: -1;
    }
    .app-mockup-large { max-width: 280px; }

    .flota-grid { grid-template-columns: repeat(2, 1fr); }

    .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .contacto-form { padding: 28px 20px; }

    .footer-inner { gap: 16px; }
    .footer-links { gap: 16px; }
}

@media (max-width: 480px) {
    .flota-grid { grid-template-columns: 1fr; }
    .aliados-grid { gap: 24px; }
}
