: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: #0b1320;
    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: #0b1320;
    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: 10px 36px;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 52px;
    object-fit: contain;
    display: block;
}

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

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.02rem;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0066ff;
}

.nav-link.active {
    color: #000000;
    font-weight: 800;
}

.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: #f8fafc;
    color: #0b1320;
    border: 1px solid #cbd5e1;
    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: #f1f5f9;
    border-color: #94a3b8;
    color: #000000;
}

.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: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    min-width: 155px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 3px;
    z-index: 2000;
}

.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: #334155;
    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: #f1f5f9;
    color: #000000;
}

.lang-option.active {
    background: rgba(255, 199, 0, 0.2);
    color: #000000;
    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 - 74px);
    min-height: calc(100vh - 74px);
    margin-top: 74px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 24px 30px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #0b1320;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -46%) scale(1.28);
    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 - 160px);
}

/* Hero Left Card */
.hero-card-left {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px 42px;
    max-width: 530px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    align-self: flex-end;
    margin-bottom: 32px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0b1320;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.hero-title-sub {
    color: #0b1320;
    display: block;
}

.hero-description {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 26px;
    line-height: 1.45;
}

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

.btn-hero-yellow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffc700;
    color: #0b1320;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 13px 26px;
    border-radius: 30px;
    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: 8px;
    background-color: #0066ff;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 13px 26px;
    border-radius: 30px;
    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: 24px;
    padding: 26px 30px;
    width: 350px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    align-self: flex-start;
    margin-top: 32px;
}

.status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.status-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0b1320;
    margin-bottom: 0;
}

.status-live-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
}

.status-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.status-footer-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}

.status-icon svg {
    width: 24px;
    height: 24px;
    stroke: #0066ff;
}

.status-label {
    flex: 1;
    font-weight: 700;
    font-size: 1.02rem;
    color: #0b1320;
}

.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: 1140px;
    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 - 74px);
    min-height: calc(100vh - 74px);
    margin-top: 74px;
    background-image: url('assets/servicio_barco.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
    padding: 20px 48px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cotizar-overlay,
.cotizar-section::before {
    content: '';
    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.62) 55%, rgba(11, 19, 32, 0.30) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

.cotizar-header-container {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 0 14px 0;
    width: 100%;
    text-align: left;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb span {
    color: #f8fafc;
    font-weight: 600;
}

.cotizar-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.cotizar-subtitle {
    font-size: 1.02rem;
    color: #cbd5e1;
}

.cotizar-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 36px;
    flex: 1;
}

/* Form Card */
.cotizar-form-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 30px;
    width: 100%;
    max-width: 660px;
    margin: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.form-step {
    margin-bottom: 12px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #0066ff;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 1.12rem;
    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.82rem;
    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: 8px 12px 8px 36px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.88rem;
    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.98rem;
    padding: 12px;
    border-radius: 26px;
    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);
}

/* Cotizar QR Card (WhatsApp Direct) */
.cotizar-qr-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    align-self: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cotizar-qr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.qr-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ecfdf5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid #a7f3d0;
}

.qr-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.qr-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b1320;
    margin-bottom: 6px;
    line-height: 1.25;
}

.qr-card-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 14px;
}

.qr-code-wrapper {
    margin-bottom: 16px;
}

.qr-code-box {
    position: relative;
    background: #ffffff;
    padding: 12px;
    border-radius: 18px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image {
    width: 175px;
    height: 175px;
    display: block;
    border-radius: 8px;
}

.qr-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    background-color: #25D366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.btn-whatsapp-direct:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.45);
}

.qr-card-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
}

.qr-phone-direct {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0b1320;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qr-phone-direct:hover {
    color: #25D366;
}

.qr-support-hours {
    font-size: 0.78rem;
    color: #94a3b8;
}




/* =========================================
   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(90deg, rgba(11, 19, 32, 0.88) 0%, rgba(11, 19, 32, 0.62) 55%, rgba(11, 19, 32, 0.30) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

.software-header-container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.software-hero-grid {
    display: block;
    margin-top: 2px;
}

.software-main-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.software-main-title .text-blue {
    color: #38bdf8;
    display: block;
}

.software-subtitle {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.4;
    max-width: 720px;
    margin: 0;
}

.software-cards-container {
    position: relative;
    z-index: 2;
    max-width: 1060px;
    width: 100%;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ficha Extendida RODITRACK */
.software-product-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px 34px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 1060px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    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.55rem;
    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.95rem;
    font-weight: 700;
    color: #64748b;
    margin: 0;
    line-height: 1.25;
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
    margin: 16px 0 18px;
}

.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.96rem;
    font-weight: 700;
    color: #0b1320;
    line-height: 1.25;
}

.feature-text p {
    margin: 2px 0 0 0;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.35;
}

.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 #ffffff;
    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.25);
}

.btn-demo-pill:hover {
    background-color: #ffc700;
    border-color: #ffc700;
    color: #0b1320;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 199, 0, 0.35);
}

.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: 320px;
    min-height: 320px;
    margin-top: 70px;
    background-image: url('assets/fondo servicios.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 30px 24px;
    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-container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}

.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: #070d18;
    padding: 12px 24px 16px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-grid-3 {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.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 24px 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(90deg, rgba(11, 19, 32, 0.88) 0%, rgba(11, 19, 32, 0.62) 55%, rgba(11, 19, 32, 0.30) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

.nosotros-top-container {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.nosotros-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nosotros-hero-text {
    margin-top: 0;
}

.nosotros-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
}

.nosotros-main-title .text-blue {
    color: #38bdf8;
}

.nosotros-subtitle {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.35;
    max-width: 680px;
}

.nosotros-locations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    max-width: 540px;
}

.nosotros-location-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.nosotros-location-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.25);
}

.nosotros-location-card.active {
    border-color: #0066ff;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.25);
}

.nosotros-location-card .support-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nosotros-location-card .support-icon svg {
    width: 18px;
    height: 18px;
}

.nosotros-location-card .support-text h4 {
    font-size: 0.90rem;
    font-weight: 800;
    color: #0b1320;
    margin-bottom: 2px;
}

.nosotros-location-card .support-text p {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.25;
}

.nosotros-map-container {
    width: 480px;
    height: 175px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.nosotros-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.nosotros-cards-container {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.nosotros-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nosotros-card-img-wrap {
    width: 100%;
    height: 155px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #eff6ff;
    margin-bottom: 8px;
    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.98rem;
    font-weight: 800;
    color: #0b1320;
    line-height: 1.2;
}

.nosotros-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.4;
    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.82rem;
    line-height: 1.4;
    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;
}

/* =========================================
   MOBILE MENU & NAVIGATION DRAWER
   ========================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    padding: 7px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.mobile-menu-btn .bar {
    width: 20px;
    height: 2px;
    background-color: #0b1320;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 18px 18px;
    box-sizing: border-box;
    z-index: 1500;
}

.mobile-nav-drawer.open {
    display: block;
    animation: fadeInDown 0.22s ease;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #0b1320;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f1f5f9;
    color: #0066ff;
}

.mobile-nav-link.active {
    background-color: #eff6ff;
    color: #0066ff;
    font-weight: 800;
}

/* =========================================
   RESPONSIVE (TABLETS & PHONES)
   ========================================= */
@media (max-width: 1024px) {
    body, html {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        background-color: #0b1320 !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: manipulation;
    }

    button, a, input, select {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    #main-wrapper {
        overflow-x: hidden !important;
        background-color: #0b1320 !important;
        min-height: 100vh;
    }

    .page-view {
        background-color: #0b1320 !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: calc(100vh - 58px) !important;
        padding-top: 58px !important;
    }

    #view-home, .hero,
    #view-servicios, .services-hero-banner, .services-cards-section,
    #view-sistemas, .software-section,
    #view-nosotros, .nosotros-section,
    #view-cotizar, .cotizar-section {
        height: auto !important;
        min-height: auto !important;
        overflow-x: hidden !important;
        background-color: #0b1320 !important;
        margin-top: 0 !important;
    }

    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        min-height: auto;
    }

    .services-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nosotros-top-container {
        flex-direction: column;
        gap: 20px;
    }

    .nosotros-map-container {
        width: 100%;
        height: 220px;
    }

    .nosotros-cards-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .software-cards-container {
        width: 100%;
    }

    .product-features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cotizar-container {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .cotizar-qr-card {
        max-width: 100%;
        margin-top: 0;
        padding: 22px 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 16px;
        height: 58px;
        box-sizing: border-box;
    }

    .logo-img {
        height: 38px;
    }

    .nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-right-actions {
        gap: 8px;
    }

    .lang-btn {
        padding: 5px 9px;
        font-size: 0.78rem;
        gap: 4px;
    }

    .btn-cotizar {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    /* Cobertura oscura completa en todos los overlays móviles */
    .hero-overlay,
    .software-overlay,
    .nosotros-overlay,
    .cotizar-overlay,
    .cotizar-section::before,
    .services-hero-banner::before {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(180deg, rgba(11, 19, 32, 0.95) 0%, rgba(11, 19, 32, 0.88) 50%, rgba(11, 19, 32, 0.95) 100%) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* Contención estricta de videos en móvil para evitar derrames descubiertos */
    .hero-video,
    .software-video,
    .nosotros-video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: 0 !important;
        transform: scale(1.1) !important;
    }

    /* Hero en móvil - Ajustado con precisión al tamaño de los rectángulos rojos */
    .hero {
        margin-top: 0 !important;
        padding: 8px 16px 16px !important;
        min-height: calc(100vh - 58px);
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centra las fichas en la pantalla vertical */
        background-color: #0b1320;
        position: relative;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    .hero-container {
        width: 100%;
        gap: 10px;
        padding: 0;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }

    /* Ficha 1 (Rectángulo rojo superior: ~325px) */
    .hero-card-left {
        max-width: 100%;
        width: 100%;
        padding: 20px 20px 18px;
        border-radius: 22px;
        margin-bottom: 0;
        align-self: stretch;
        box-sizing: border-box;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hero-title {
        font-size: 1.68rem;
        line-height: 1.15;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
        font-weight: 800;
        color: #0b1320;
    }

    .hero-description {
        font-size: 0.92rem;
        margin-bottom: 14px;
        line-height: 1.35;
        color: #475569;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .btn-hero-yellow,
    .btn-hero-blue {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 11px 8px;
        border-radius: 24px;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
    }

    /* Ficha 2 (Rectángulo rojo inferior: ~305px - completa y sin vacíos) */
    .hero-card-right {
        max-width: 100%;
        width: 100%;
        padding: 18px 20px 16px;
        border-radius: 22px;
        margin-top: 0;
        align-self: stretch;
        box-sizing: border-box;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 290px;
    }

    .status-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .status-live-indicator {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .status-pulse-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: #10b981;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
        animation: pulseDot 2s infinite;
    }

    .status-card-title {
        font-size: 1.15rem;
        font-weight: 800;
        color: #0b1320;
        margin-bottom: 0;
    }

    .status-live-badge {
        font-size: 0.74rem;
        font-weight: 700;
        background: #ecfdf5;
        color: #059669;
        padding: 3px 9px;
        border-radius: 20px;
        border: 1px solid #a7f3d0;
    }

    .status-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        justify-content: center;
        margin: 4px 0 8px;
    }

    .status-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .status-item-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .status-label {
        font-size: 0.94rem;
        font-weight: 700;
        color: #1e293b;
    }

    .status-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .status-icon svg {
        width: 22px;
        height: 22px;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #10b981;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
        animation: pulseDot 2s infinite;
    }

    .status-card-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }

    .status-footer-text {
        font-size: 0.78rem;
        color: #64748b;
        font-weight: 600;
    }

    /* Servicios en móvil */
    .services-hero-banner {
        margin-top: 0 !important;
        height: auto;
        min-height: 220px;
        padding: 24px 16px;
        background-color: #0b1320;
        position: relative;
        overflow-x: hidden !important;
    }

    .services-hero-title {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .services-hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 14px;
    }

    .services-cards-section {
        padding: 20px 16px 36px;
    }

    /* Software en móvil */
    .software-section {
        margin-top: 0 !important;
        padding: 20px 16px 36px;
        min-height: calc(100vh - 58px);
        height: auto;
        background-color: #0b1320;
        position: relative;
        overflow-x: hidden !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .software-header-container {
        max-width: 100%;
        position: relative;
        z-index: 2;
    }

    .software-main-title {
        font-size: 1.85rem;
        line-height: 1.15;
    }

    .software-subtitle {
        font-size: 0.92rem;
        margin-bottom: 12px;
    }

    .software-cards-container {
        position: relative;
        z-index: 2;
    }

    .software-product-card {
        padding: 20px 16px;
        border-radius: 20px;
        max-width: 100%;
    }

    .software-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .software-card-title-wrap .product-name {
        font-size: 1.35rem;
    }

    .software-card-badges {
        gap: 8px;
    }

    .product-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 14px 0 16px;
    }

    .feature-text strong {
        font-size: 0.92rem;
    }

    .feature-text p {
        font-size: 0.82rem;
    }

    .btn-product-blue {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 12px 20px;
        box-sizing: border-box;
    }

    .software-footer-action {
        margin-top: 18px;
        margin-bottom: 8px;
        position: relative;
        z-index: 2;
    }

    .btn-demo-pill {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Nosotros en móvil */
    .nosotros-section {
        margin-top: 0 !important;
        padding: 20px 16px 36px;
        min-height: calc(100vh - 58px);
        height: auto;
        background-color: #0b1320;
        position: relative;
        overflow-x: hidden !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .nosotros-header-container,
    .nosotros-top-container {
        flex-direction: column;
        gap: 16px;
        position: relative;
        z-index: 2;
    }

    .nosotros-main-title {
        font-size: 1.85rem;
        line-height: 1.15;
    }

    .nosotros-subtitle {
        font-size: 0.92rem;
    }

    .nosotros-locations-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .nosotros-location-card {
        padding: 10px 14px;
    }

    .nosotros-map-container {
        width: 100%;
        height: 190px;
    }

    .nosotros-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 18px;
        position: relative;
        z-index: 2;
    }

    /* Cotizar en móvil - Armonizado y táctil */
    .cotizar-section {
        margin-top: 0 !important;
        padding: 20px 16px 36px;
        min-height: calc(100vh - 58px);
        height: auto;
        background-color: #0b1320;
        position: relative;
        overflow-x: hidden !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .cotizar-header-container {
        max-width: 100%;
        position: relative;
        z-index: 2;
        margin-bottom: 12px;
    }

    .cotizar-main-title {
        font-size: 1.85rem;
        line-height: 1.15;
    }

    .cotizar-subtitle {
        font-size: 0.92rem;
    }

    .cotizar-container {
        width: 100%;
        position: relative;
        z-index: 2;
        flex-direction: column;
        gap: 18px;
    }

    .cotizar-form-card {
        max-width: 100%;
        width: 100%;
        padding: 20px 16px;
        border-radius: 20px;
        box-sizing: border-box;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .input-wrapper input,
    .input-wrapper select {
        font-size: 16px !important;
        padding: 10px 12px 10px 38px;
    }

    .btn-submit-cotizacion {
        width: 100%;
        font-size: 0.98rem;
        padding: 13px;
        box-sizing: border-box;
    }

    /* Ficha WhatsApp en móvil: limpia, directa y sin QR estorboso */
    .cotizar-qr-card {
        max-width: 100%;
        width: 100%;
        padding: 22px 18px;
        border-radius: 20px;
        box-sizing: border-box;
        margin-top: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    /* En teléfonos se oculta el recuadro del código QR porque no pueden auto-escanear su pantalla */
    .qr-code-wrapper {
        display: none !important;
    }

    .qr-card-title {
        font-size: 1.15rem;
    }

    .qr-card-subtitle {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .btn-whatsapp-direct {
        font-size: 0.95rem;
        padding: 13px 18px;
        border-radius: 26px;
    }

    /* Feedback táctil activo en botones móviles */
    .btn-whatsapp-direct:active,
    .btn-submit-cotizacion:active,
    .btn-hero-yellow:active,
    .btn-hero-blue:active,
    .btn-product-blue:active,
    .btn-demo-pill:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

/* Eliminar Footer completamente */
#footer, .footer {
    display: none !important;
}
