:root {
    --primary-blue: #007BFF;
    --secondary-cyan: #00E0FF;
    --light-bg: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --section-padding: 80px 0;
    --footer-bg: #1a1a1a;
    --navbar-height: 96px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    max-width: 100%;
}

.img_logo {
    height: 80px;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-gradient {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    border: none;
    color: white;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* Hero Section - CORREGIDO */
.hero-section {
    height: 740px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-content: center;
    padding: 0px;
}

.swiper-slide {
    position: relative;
    height:740px;
    display: flex;
    align-items: center;
    color: white;
    background-color: #00E0FF;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    display: flex;
    align-content: center;
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 40px;
    text-align: left;
    margin-top: 150px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Swiper Styles - Mejorado */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}

.swiper-slide-active {
    opacity: 1 !important;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    z-index: 11; /* Mayor que el order-status */
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-blue);
}

/* Order Status Overlay - Alineado con container */
.order-status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 1320px; /* Máximo del container de Bootstrap */
    padding: 0 var(--bs-gutter-x, 0.75rem);
    display: none;
    pointer-events: none; /* Para que no interfiera con los controles */
}

.order-status-overlay .order-status-wrapper {
    margin-left: auto;
    max-width: 450px;
    pointer-events: all; /* Reactiva los eventos en el formulario */
}

.order-status-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.order-status-section .section-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.order-status-section p {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.order-status-section .section-title i {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sección de seguimiento móvil con más espaciado */
#seguimiento {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

#seguimiento .order-status-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
        margin-top: 120px;
    }
    
    /* En móvil, el seguimiento va FUERA y ABAJO del hero */
    .hero-section {
        height: auto;
        min-height: 600px;
        padding-top: 80px;
    }
    
    .swiper-slide {
        height: 600px;
    }
    
    .order-status-overlay {
        display: block;
        position: static;
        transform: none;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Para la versión móvil fuera del hero */
    #seguimiento {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    #seguimiento .order-status-section .section-title {
        color: #1a1a1a;
        text-shadow: none;
    }
    
    #seguimiento .order-status-section p {
        color: #333;
        text-shadow: none;
    }
    
    #seguimiento .order-status-section .section-title i {
        color: var(--primary-blue, #0d6efd);
        text-shadow: none;
    }
}

/* Pantallas grandes (Desktop) */
@media (min-width: 992px) {
    .order-status-overlay {
        display: block;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .order-status-overlay .order-status-wrapper {
        max-width: 400px;
    }
}

/* Pantallas muy grandes (Large Desktop) */
@media (min-width: 1200px) {
    .order-status-overlay {
        max-width: 1140px;
    }
    
    .order-status-overlay .order-status-wrapper {
        max-width: 420px;
    }
}

@media (min-width: 1400px) {
    .order-status-overlay {
        max-width: 1320px;
    }
    
    .order-status-overlay .order-status-wrapper {
        max-width: 480px;
    }
    
    .order-status-section {
        padding: 2.5rem;
    }
    
    .order-status-section .section-title {
        font-size: 1.5rem;
    }
    
    .order-status-section p {
        font-size: 0.95rem;
    }
}

/* Ajuste para navegación suave con navbar fixed */
html {
    scroll-padding-top: 80px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nosotros-card{
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 40px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nosotros-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 224, 255, 0.3);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 224, 255, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-img {
    width: 70px;
    height: 70px;
    object-fit: contain;   /* evita deformaciones */
    margin-bottom: 20px; 
}

/* Section Titles */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    border-radius: 2px;
}

/* Counter Section */
.counter-item {
    text-align: center;
    padding: 20px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Location Cards */
.location-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.15);
}

.map-container {
    height: 250px;
    background-color: #f1f3f5;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer - Nuevo Color */
footer {
    background-color: var(--footer-bg);
    padding: 60px 0 20px;
    /* margin-top: 60px; */
    color: #ddd;
}

footer h3, footer h5 {
    color: white;
}

footer p {
    color: #bbb;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
    color: #ddd;
}

.social-icons a:hover {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    color: white;
    transform: translateY(-3px);
}

/* Loading Animation */
.loader {
    border: 5px solid rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    border-top: 5px solid var(--primary-blue);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Order Status Section */
.order-status-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 224, 255, 0.03));
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
}

/* Section Spacing */
section {
    padding: var(--section-padding);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-progress {
    background-color: #cce7ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-ready {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Modal Styles */
.modal-header {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    color: white;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.btn-close-white {
    filter: invert(1);
}

/* Background Sections */
.bg-light-custom {
    background-color: #f0f4f8 !important;
}

/* Social Followers Section Styles */
.social-followers-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 224, 255, 0.03));
    /* border-bottom: 1px solid rgba(0, 123, 255, 0.1); */
}

.social-followers-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.social-follower-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.social-follower-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.8rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
}

.social-icon i {
    position: relative;
    z-index: 2;
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000000, #69C9D0, #EE1D52);
    box-shadow: 0 5px 15px rgba(238, 29, 82, 0.3);
}

.social-icon.youtube {
    background: linear-gradient(135deg, #FF0000, #FF3333);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877F2, #3B5998);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-icon.instagram {
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4, #5851DB, #405DE6);
    box-shadow: 0 5px 15px rgba(193, 53, 132, 0.3);
}

.social-follower-item:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
}

.social-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Animación de pulso para los iconos */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.social-icon {
    animation: pulse 2s infinite;
}

.social-icon.tiktok {
    animation-delay: 0s;
}

.social-icon.youtube {
    animation-delay: 0.5s;
}

.social-icon.facebook {
    animation-delay: 1s;
}

.social-icon.instagram {
    animation-delay: 1.5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-followers-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .social-follower-item {
        width: 100%;
        max-width: 280px;
    }
    
    .social-info h3 {
        font-size: 1.5rem;
    }
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    background-color: var(--light-bg);
    overflow: visible;
    position: relative;
}

.brands-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    width: 200%; /* Ahora contiene 10 items (5 + 5 duplicados) */
    animation: slide 40s linear infinite;
}

.brand-item {
    flex: 0 0 10%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.brand-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brands-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    /* TU CSS ACTUAL - NO CAMBIAR */
    .brands-section .brand-item {
        flex: 0 0 13.333%;
        padding: 0 12px;
    }
    
    .brands-section .brand-logo {
        height: 130px;
        padding: 20px;
    }
    
    .brands-section .brand-logo img {
        max-height: 80px;
        max-width: 100%;
    }

    /* AGREGAR ESTO: */
    .brands-track {
        animation: slideMobile 30s linear infinite !important;
    }
    
    @keyframes slideMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-66.666%); /* Mueve 2/3 del track */
        }
    }
}

@media (max-width: 480px) {
    .brands-section {
        padding: 30px 0;
    }
    
    .brand-item {
        flex: 0 0 50%; /* Mantener 2 por fila */
        padding: 0 10px;
    }
    
    .brand-logo {
        height: 120px;
        padding: 18px;
    }
    
    .brand-logo img {
        max-height: 70px;
    }
    
    .brands-track {
        animation: slide 20s linear infinite !important; /* Más rápido en pantallas pequeñas */
    }
}



/* Para móvil - más rápido y menos marcas visibles */
@media (max-width: 768px) {
    .brands-track {
        width: calc(200% * 2.5); /* 5 items × 2 repeticiones × 50% width */
        animation: slide 25s linear infinite !important;
    }
    
    .brand-item {
        flex: 0 0 50%; /* 2 items por fila = 50% cada uno */
        padding: 0 12px;
    }
    
   @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%); /* Mueve 50% = 5 items (una repetición completa) */
        }
    }
}

/* Animación más rápida para móvil */
@keyframes slide-mobile {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* About Carousel Styles */
.about-carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.about-carousel:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
}

.about-carousel .carousel-inner {
    border-radius: 15px;
    height: 100%;
}

.about-carousel .carousel-item {
    height: 100%;
}

.about-carousel .carousel-img {
    border-radius: 15px;
    height: auto;
    min-height: 400px;
    max-height: min(60vh, 540px);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-carousel .carousel-item:hover .carousel-img {
    transform: scale(1.05);
}

.about-carousel .carousel-indicators {
    margin-bottom: 15px;
}

.about-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0.7;
    border: none;
    transition: all 0.3s ease;
}

.about-carousel .carousel-indicators .active {
    opacity: 1;
    background: var(--primary-blue);
    transform: scale(1.2);
}

.about-carousel .carousel-control-prev-icon,
.about-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 20px;
    transition: all 0.3s ease;
}

.about-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.about-carousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.carousel-caption{
    backdrop-filter: blur(10px); 
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3),    
        rgba(30, 30, 30, 0.2)  
    );
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

/* Imagen del hero slide - SEO optimizado */
.hero-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.modal-dialog.modal-under-navbar {
  margin: calc(var(--navbar-height) + 12px) auto 0; /* separacion debajo navbar */
  transform: none; /* evitar conflictos si tienes transform */
}

/* Si quieres más separación lateral en móviles muy pequeños */
@media (max-width: 430px) {
  .modal-dialog.modal-under-navbar {
    width: calc(100% - 1.2rem);     /* deja ~1.2rem a cada lado */
    margin-top: calc(var(--navbar-height) + 8px);
  }
}