:root {
    /* Paleta de luz y minimalista basada en la referencia */
    --bg-light: #f4f7fb;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #1e3a8a; /* Azul oscuro */
    --accent: #2563eb;  /* Azul medio */
    --border: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.text-accent {
    color: var(--accent);
}

/* =========================================
   PRELOADER 2D
   ========================================= */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--bg-light);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scene2d {
    position: relative;
    width: 400px;
    height: 150px;
    margin-bottom: 20px;
}

.road2d {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background-color: var(--border);
    border-radius: 2px;
}

.warehouse2d {
    position: absolute;
    bottom: 4px; right: 20px;
    width: 80px; height: 80px;
    opacity: 0;
    animation: fade-in 1s ease forwards;
}

.truck2d {
    position: absolute;
    bottom: 4px; left: -100px;
    width: 80px; height: 40px;
}

.truck2d-1 {
    animation: drive-2d 2s ease-in-out forwards;
    animation-delay: 0.5s;
}

.truck2d-2 {
    animation: drive-2d 2.5s ease-in-out forwards;
    animation-delay: 1.5s;
}

@keyframes drive-2d {
    0% { left: -100px; }
    100% { left: 200px; } /* Se detiene frente al almacén */
}

@keyframes fade-in {
    to { opacity: 1; }
}

#preloader-logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease;
}
#preloader-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden-main {
    display: none;
    opacity: 0;
}
.visible-main {
    display: block;
    animation: fade-in-main 1s ease forwards;
}
@keyframes fade-in-main { to { opacity: 1; } }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 14px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b1320;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-img {
    height: 46px;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffc700;
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-editor {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-editor:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffc700;
}

.btn-guardar {
    background-color: #10b981;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-guardar:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-selector-wrap {
    position: relative;
    user-select: none;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 7px 13px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffc700;
    color: #ffffff;
}

.lang-flag-current {
    font-size: 1rem;
    line-height: 1;
}

.lang-code-current {
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    min-width: 155px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 3px;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.lang-dropdown-menu.show {
    display: flex;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.lang-option.active {
    background: rgba(255, 199, 0, 0.15);
    color: #ffc700;
    font-weight: 700;
}

.lang-option .lang-flag {
    font-size: 1.05rem;
}

.lang-option .lang-name {
    flex: 1;
}

.btn-cotizar {
    background-color: #ffc700;
    color: #0b1320;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cotizar:hover {
    background-color: #e6b400;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 199, 0, 0.4);
}

/* =========================================
   HERO SECTION
   ========================================= */
#view-home {
    padding-top: 0;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.hero {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 30px 60px 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(11, 19, 32, 0.88) 0%, rgba(11, 19, 32, 0.60) 55%, rgba(11, 19, 32, 0.25) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: calc(100vh - 150px);
}

/* Hero Left Card */
.hero-card-left {
    background: #ffffff;
    border-radius: 20px;
    padding: 26px 30px;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    align-self: flex-end;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0b1320;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.hero-title-sub {
    color: #0b1320;
    display: block;
}

.hero-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-yellow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffc700;
    color: #0b1320;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-yellow:hover {
    background-color: #e6b400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 199, 0, 0.4);
}

.btn-hero-blue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #0066ff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-blue:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.arrow {
    font-size: 1rem;
    line-height: 1;
}

/* Hero Right Card */
.hero-card-right {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 22px;
    width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
    margin-top: 30px;
}

.status-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0b1320;
    margin-bottom: 14px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon svg {
    width: 18px;
    height: 18px;
}

.status-label {
    flex: 1;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e293b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* =========================================
   APPS / ECOSYSTEM SECTION
   ========================================= */
.apps-section {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.app-icon {
    height: 250px;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.app-card-content {
    padding: 30px;
}

.app-card-content h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.app-card-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ver-mas {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   SERVICE VIEWS (PAGES)
   ========================================= */
.page-view {
    min-height: 100vh;
    padding-top: 80px; /* Para no quedar debajo del header */
}

.service-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Oscurecer la imagen para resaltar texto */
}

.banner-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 60px;
    border-radius: 15px;
    text-align: center;
    max-width: 800px;
    box-shadow: var(--shadow-hover);
}

.banner-box h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.banner-box .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.service-details {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 30px;
}

.service-details h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.service-details p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 40px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-title {
    font-size: 0.90rem;
    font-weight: 800;
    color: #fff;
    background-color: var(--primary);
    margin-bottom: 15px;
    padding: 10px 20px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95%;
    min-height: 65px;
}

.feature-desc {
    background: var(--card-bg);
    padding: 25px 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
    width: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-desc:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.pricing {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.plan {
    flex: 1;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
}

.plan.highlight {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--accent);
    position: relative;
}

.plan h4 { margin-bottom: 10px; color: var(--text-muted); font-size: 1rem; text-transform: uppercase; font-weight: 800;}
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 0; }
.plan .unit { font-size: 1rem; color: var(--text-muted); font-weight: 400;}

.promo {
    position: absolute;
    top: -12px; right: -10px;
    background: var(--accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}

/* --- SERVICES SECTION (NEW) --- */
.services-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f8fafc;
}

.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.services-intro p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.service-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-item-content {
    padding: 40px;
}

.service-item-content h3 {
    color: #1a839a; /* Custom cyan-blue matching reference */
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.service-item-content h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.4;
}

.service-item-content ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #475569;
}

.service-item-content ul li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--card-bg);
    padding: 60px 50px 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 5px;
    text-align: right;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   AI WIDGET
   ========================================= */
.ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: none !important; /* Oculto temporalmente */
}

.ai-btn {
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    transition: transform 0.3s ease;
}
.ai-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}
.ai-btn svg { width: 30px; height: 30px; }

.ai-chat {
    position: absolute;
    bottom: 80px; right: 0;
    width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ai-chat.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    background: var(--bg-light);
    color: var(--primary);
    padding: 15px 20px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.close-chat {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
}
.close-chat:hover { color: var(--primary); }

.chat-body {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ai-message {
    background: var(--bg-light);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}

.chat-input input {
    flex: 1;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    outline: none;
    color: var(--text-main);
    padding: 10px 15px;
}
.chat-input button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    margin-left: 10px;
}

/* =========================================
   COTIZAR TRANSPORTE VIEW
   ========================================= */
#view-cotizar {
    height: calc(100vh - 70px);
    overflow: hidden;
    padding-top: 0;
}

.cotizar-section {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    background-image: url('assets/servicio_barco.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 16px 50px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cotizar-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(244, 247, 251, 0.94) 0%, rgba(244, 247, 251, 0.8) 50%, rgba(244, 247, 251, 0.35) 100%);
    z-index: 1;
}

.cotizar-header-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto 10px;
    width: 100%;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 2px;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0b1320;
}

.breadcrumb span {
    color: #0b1320;
    font-weight: 600;
}

.cotizar-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0b1320;
    margin-bottom: 2px;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.cotizar-subtitle {
    font-size: 0.88rem;
    color: #64748b;
}

.cotizar-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

/* Form Card */
.cotizar-form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 28px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-step {
    margin-bottom: 12px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0066ff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0b1320;
}

.form-grid {
    display: grid;
    gap: 10px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 10px;
    width: 15px;
    height: 15px;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 7px 10px 7px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #0f172a;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #0066ff;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.btn-submit-cotizacion {
    width: 100%;
    background-color: #ffc700;
    color: #0b1320;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit-cotizacion:hover {
    background-color: #e6b400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 199, 0, 0.4);
}



/* =========================================
   SOFTWARE SECTION (CONOCER SOFTWARE VIEW)
   ========================================= */
#view-sistemas {
    padding-top: 0;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.software-section {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    position: relative;
    padding: 14px 40px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.software-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.software-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(244, 247, 251, 0.95) 0%, rgba(244, 247, 251, 0.85) 50%, rgba(244, 247, 251, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.software-header-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.software-hero-grid {
    display: block;
    margin-top: 2px;
}

.software-main-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0b1320;
    line-height: 1.15;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.software-main-title .text-blue {
    color: #0066ff;
    display: block;
}

.software-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.35;
    max-width: 650px;
    margin: 0;
}

.software-cards-container {
    position: relative;
    z-index: 2;
    max-width: 980px;
    width: 100%;
    margin: 8px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ficha Extendida RODITRACK */
.software-product-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 980px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.software-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.software-card-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.software-card-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.software-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.software-badge-android {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.software-badge-gps {
    background-color: #eff6ff;
    color: #0066ff;
    border: 1px solid #dbeafe;
}

.product-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card-icon.yellow-theme {
    background-color: #fef9c3;
}

.product-card-logo-wrap {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
    box-sizing: border-box;
}

.roditrack-card-logo,
.rodilaw-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.software-card-title-wrap {
    flex: 1;
}

.software-card-title-wrap .product-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b1320;
    margin: 0 0 2px 0;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.software-card-title-wrap .product-feature-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
    margin: 12px 0 14px;
}

.product-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: center;
    margin: 8px 0 12px;
}

.product-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-bullet {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-bullet.yellow-bullet {
    background-color: #fef9c3;
    color: #ca8a04;
}

.feature-bullet.blue-bullet {
    background-color: #dbeafe;
    color: #0066ff;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b1320;
    line-height: 1.2;
}

.feature-text p {
    margin: 1px 0 0 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.25;
}

.software-card-action {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.btn-product-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    background-color: #ffc700;
    color: #0b1320;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 9px 18px;
    border-radius: 20px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.btn-product-yellow:hover {
    background-color: #e6b400;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 199, 0, 0.4);
}

.btn-product-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    background-color: #0066ff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 9px 18px;
    border-radius: 20px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.btn-product-blue.btn-product-wide {
    width: auto;
    min-width: 280px;
    padding: 10px 32px;
    font-size: 0.90rem;
    margin: 0 auto;
}

.btn-product-blue:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
}

.software-footer-action {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
}

.btn-demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #0b1320;
    border: 2px solid #0b1320;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 8px 22px;
    border-radius: 26px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-demo-pill:hover {
    background-color: #0b1320;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 19, 32, 0.2);
}

.btn-demo-pill:hover svg {
    stroke: #ffffff;
}

/* =========================================
   SERVICIOS LOGISTICOS VIEW (COMPACTED TO FIT 100VH)
   ========================================= */
#view-servicios {
    padding-top: 0;
    height: calc(100vh - 70px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services-hero-banner {
    height: 340px;
    min-height: 340px;
    margin-top: 70px;
    background-image: url('assets/fondo servicios.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 35px 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.services-hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(11, 19, 32, 0.92) 0%, rgba(11, 19, 32, 0.75) 60%, rgba(11, 19, 32, 0.35) 100%);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.services-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.services-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.services-hero-title .text-blue {
    color: #38bdf8;
}

.services-hero-subtitle {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 14px;
    line-height: 1.35;
}

.services-hero-content .btn-hero-yellow {
    padding: 8px 18px;
    font-size: 0.82rem;
    border-radius: 20px;
}

/* Services Cards Section */
.services-cards-section {
    background-color: #f4f7fb;
    padding: 10px 50px 14px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
}

.services-grid-3 {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card-new {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-card-img-wrap {
    width: 100%;
    height: 110px;
    overflow: hidden;
}

.service-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-new:hover .service-card-img-wrap img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0b1320;
    margin-bottom: 8px;
}

.service-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.service-card-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 14px;
    height: 14px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0066ff;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
}

.service-card-link:hover {
    color: #0044cc;
}

/* =========================================
   NOSOTROS VIEW
   ========================================= */
#view-nosotros {
    padding-top: 0;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.nosotros-section {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    position: relative;
    padding: 14px 50px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.nosotros-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.nosotros-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(244, 247, 251, 0.95) 0%, rgba(244, 247, 251, 0.88) 50%, rgba(244, 247, 251, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.nosotros-top-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.nosotros-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nosotros-hero-text {
    margin-top: 0;
}

.nosotros-main-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0b1320;
    line-height: 1.15;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.nosotros-main-title .text-blue {
    color: #0066ff;
}

.nosotros-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.3;
    max-width: 650px;
}

.nosotros-locations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    max-width: 560px;
}

.nosotros-location-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 9px 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.nosotros-location-card:hover {
    border-color: #0066ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.12);
}

.nosotros-location-card.active {
    border-color: #0066ff;
    background: #f8faff;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
}

.nosotros-location-card .support-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nosotros-location-card .support-icon svg {
    width: 15px;
    height: 15px;
}

.nosotros-location-card .support-text h4 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0b1320;
    margin-bottom: 2px;
}

.nosotros-location-card .support-text p {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.2;
}

.nosotros-map-container {
    width: 480px;
    height: 165px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 3px solid #ffffff;
    flex-shrink: 0;
}

.nosotros-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.nosotros-cards-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.nosotros-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nosotros-card-img-wrap {
    width: 100%;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #eff6ff;
    margin-bottom: 10px;
    position: relative;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nosotros-card-img-wrap:hover {
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.15);
}

.nosotros-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.nosotros-card-img-placeholder {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0066ff;
    text-align: center;
    padding: 8px 12px;
    user-select: none;
}

.nosotros-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.nosotros-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.nosotros-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nosotros-icon.blue-theme {
    background-color: #eff6ff;
}

.nosotros-icon.yellow-theme {
    background-color: #fef9c3;
}

.nosotros-card-title {
    font-size: 0.90rem;
    font-weight: 800;
    color: #0b1320;
    line-height: 1.2;
}

.nosotros-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.32;
    flex: 1;
}

.nosotros-card-body p {
    margin: 0;
}

.nosotros-card-body .highlight-text {
    font-weight: 700;
    color: #0066ff;
}

.pilares-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pilares-list li {
    position: relative;
    padding-left: 14px;
    font-size: 0.73rem;
    line-height: 1.35;
    color: #334155;
}

.pilares-list li::before {
    content: '\2022';
    color: #0066ff;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9rem;
    line-height: 1.35;
}

.pilares-list strong {
    color: #0b1320;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .hero-card-right {
        margin-bottom: 0;
    }
    .nosotros-top-container {
        flex-direction: column;
        gap: 16px;
    }
    .nosotros-map-container {
        width: 100%;
        height: 180px;
    }
    .nosotros-cards-container {
        grid-template-columns: 1fr;
    }
    .cotizar-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .software-cards-container {
        width: 100%;
    }
    .product-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #view-nosotros, .nosotros-section, #view-cotizar, .cotizar-section, #view-sistemas, .software-section {
        height: auto;
        min-height: auto;
        overflow: auto;
    }
}

@media (max-width: 768px) {
    .header { padding: 10px 16px; }
    .logo-img { height: 34px; }
    .nav { display: none; }
    .header-right-actions { gap: 8px; }
    .lang-btn { padding: 5px 9px; font-size: 0.78rem; gap: 5px; }
    .btn-cotizar { padding: 7px 16px; font-size: 0.84rem; }
    .hero { padding: 30px 20px; margin-top: 65px; min-height: auto; }
    .hero-card-left { padding: 28px 22px; max-width: 100%; }
    .hero-title { font-size: 2.1rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-hero-yellow, .btn-hero-blue { justify-content: center; width: 100%; }
    .hero-card-right { width: 100%; padding: 22px 24px; }
    .software-card-top { flex-direction: column; align-items: flex-start; gap: 10px; }
    .btn-product-blue.btn-product-wide { width: 100%; }
    .apps-section { padding: 50px 20px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .contact-info p { text-align: center; }
    .pricing { flex-direction: column; }
    .ai-chat { width: 300px; right: -10px; }
    .nosotros-locations-wrapper { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}
