/* ========================================
   RESPONSIVE CSS - Navitel GPS
   Mobile First Approach
   ======================================== */

/* ========================================
   DESKTOP (Por defecto - sin cambios)
   Todo se muestra como está actualmente
   ======================================== */

/* ========================================
   TABLET (768px - 991px)
   ======================================== */
@media (max-width: 991px) {
    .container {
        padding: 0 20px;
    }

    /* Navigation adjustments */
    .nav-menu {
        gap: 20px;
    }

    .nav-menu li a {
        font-size: 0.95rem;
    }

    /* Hero section */
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    /* Stats cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Benefits grid */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Plans grid */
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   MOBILE (max-width: 767px)
   Ocultar dashboards y mapa GPS
   ======================================== */
@media (max-width: 767px) {
    
    /* OCULTAR DASHBOARDS Y MAPA GPS EN MÓVIL */
    .dashboard-mockup {
        display: none !important;
    }

    .gps-monitoring-platform {
        display: none !important;
    }

    .gps-map-container {
        display: none !important;
    }

    /* Header adjustments */
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    /* Navigation - Hamburger menu */
    .nav-wrapper {
        position: relative;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 102, 204, 0.1);
        transition: all 0.3s ease;
    }

    .nav-menu li:hover {
        background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    }

    .nav-menu li a {
        display: flex;
        align-items: center;
        padding: 18px 30px;
        color: #1a1a2e;
        font-weight: 500;
        font-size: 1.05rem;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-menu li a::before {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-right: 15px;
        color: var(--primary-color);
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .nav-menu li a:hover {
        color: var(--primary-color);
        padding-left: 40px;
        background: none;
        border-bottom: none;
    }

    .nav-menu li a:hover::before {
        transform: translateX(5px);
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 20px 30px;
        background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
        border-top: 2px solid rgba(0, 102, 204, 0.2);
    }

    .nav-cta .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1.1rem;
        box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
    }

    /* Hamburger button */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .hamburger:hover {
        transform: scale(1.1);
    }

    .hamburger span {
        width: 28px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger.active span {
        background: var(--primary-color);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Hero section */
    .hero {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .stat-item {
        text-align: center;
    }

    /* Stats cards */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Services section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Benefits section */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Plans section */
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .plan-card {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact form */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Padding adjustments */
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* GPS Section - Ocultar completamente */
    #monitoreo {
        display: none !important;
    }

    /* Feature cards in services */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Benefit cards */
    .benefit-card h3 {
        font-size: 1.3rem;
    }

    /* CTA section */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        padding: 20px;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    .service-card,
    .benefit-card,
    .plan-card {
        padding: 20px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .top-bar {
        display: none;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

/* Hide hamburger on desktop (solo en pantallas grandes) */
@media (min-width: 768px) {
    .hamburger {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
}

/* Ensure proper image scaling on all devices */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow */
* {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
