/* Contenido del archivo estilos.css */
body {
    font-family: 'Open Sans', sans-serif;
    opacity: 1 !important; 
}

h1, h2, h3, h4, h5, h6, .nav-link, .cta-button {
    font-family: 'Montserrat', sans-serif;
}

.is-invalid {border: 1px solid #f75353 !important;}
.invalid-feedback {
    display: none;
    width: 100%;
    font-size: .875em;
    color: #df0016 !important;
    text-align: left;
    font-weight: 500;
    margin-top: 0;}

/* --- Preloader --- */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.preloader-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}
.spinner {
    border: 6px solid rgba(243, 146, 0, 0.2);
    border-top-color: var(--color-primario-marca);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Hero Carousel Section --- */
.hero-carousel-section {
    height: 60vh; 
    min-height: 350px; 
    max-height: 550px; 
    position: relative; 
}

.carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out; 
    z-index: 1; 
    display: flex; 
    align-items: center; 
    /* Por defecto (móvil): texto centrado */
    justify-content: center; 
    text-align: center; 
    padding: 1rem; /* Padding base para móviles */
}

.carousel-slide.active-slide {
    opacity: 1;
    z-index: 2; 
}

.slide-text-overlay {
    position: relative; 
    z-index: 10; 
    color: white; 
    background-color: rgba(0, 0, 0, 0.65); 
    padding: 1.25rem 1.5rem; 
    border-radius: 8px;
    max-width: 90%; /* Más ancho en móviles */
    margin-left: auto; /* Centra el bloque si el padre es flex-start */
    margin-right: auto; /* Centra el bloque si el padre es flex-start */
}

.slide-text-overlay h2 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    line-height: 1.2; 
    font-size: 1.75rem; 
}

.slide-text-overlay p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    margin-top: 0.75rem; 
    font-size: 1rem; 
}
.slide-text-overlay .cta-button {
    font-size: 0.875rem; 
    padding: 0.625rem 1.25rem; 
}


/* Controles del Carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 8px 12px; 
    font-size: 20px;
    cursor: pointer;
    z-index: 15; 
    border-radius: 50%;
    width: 40px; 
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.carousel-control.prev {
    left: 10px; 
}
.carousel-control.next {
    right: 10px; 
}

/* Indicadores del Carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 15px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px; 
    z-index: 15;
}
.indicator {
    width: 10px; 
    height: 10px; 
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.indicator:hover,
.indicator.active-indicator {
    background-color: white;
}


/* --- Estilos Generales de Navegación y Botones con Efectos --- */
.nav-link, .nav-link-mobile, .footer-link { 
    color: var(--color-texto-principal);
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.nav-link:hover, .nav-link-mobile:hover, .footer-link:hover {
    color: var(--color-primario-marca);
    background-color: rgba(243, 146, 0, 0.05);
    transform: translateY(-2px);
}
.nav-link-mobile {
    padding: 12px 24px;
    width: 100%;
    box-sizing: border-box;
}
.footer-link-contact { 
    color: #9ca3af; 
    transition: color 0.3s ease;
}
.footer-link-contact:hover { 
    color: var(--color-primario-marca); 
}

/* Estilos para el botón del dropdown */
.dropdown-toggle {
    cursor: pointer;
    background: none; 
    border: none; 
    padding: 8px 12px; 
    color: var(--color-texto-principal); 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1rem; 
}
.dropdown-toggle:hover {
     color: var(--color-primario-marca);
}
.dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.7em; 
}
.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* Estilos para el contenido del dropdown */
.dropdown-content {
    display: none; 
    position: absolute;
    background-color: white; 
    min-width: 220px; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 
    z-index: 60; 
    border-radius: 0.375rem; 
    margin-top: 0.25rem; 
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown:hover .dropdown-content {
    display: block; 
    opacity: 1;
    transform: translateY(0);
}
.dropdown-item {
    color: var(--color-texto-principal);
    padding: 0.75rem 1rem; 
    text-decoration: none;
    display: block;
    font-size: 0.9rem; 
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover {
    background-color: #f3f4f6; 
    color: var(--color-primario-marca);
}


.cta-button {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.cta-button:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-login {
    background-color: var(--color-primario-marca);
    color: var(--color-texto-sobre-primario);
    padding: 0.5rem 1rem; 
}
.btn-login:hover {
    background-color: var(--color-primario-marca-hover);
}


.btn-rastrear { 
    background-color: var(--color-primario-marca);
    color: var(--color-texto-sobre-primario);
    padding: 0.5rem 1rem; 
}
.btn-rastrear:hover { background-color: var(--color-primario-marca-hover); }

.btn-primario {
    background-color: var(--color-primario-marca);
    color: var(--color-texto-sobre-primario);
    font-size: 1.125rem;
}
.btn-primario:hover { background-color: var(--color-primario-marca-hover); }

.btn-secundario-hero {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    font-size: 1.125rem;
}
.btn-secundario-hero:hover { background-color: white; color: var(--color-primario-marca); }

.btn-primario-alternativo {
    background-color: var(--color-primario-marca);
    color: var(--color-texto-sobre-primario);
}
.btn-primario-alternativo:hover { background-color: var(--color-primario-marca-hover); }

.btn-primario-modal {
    background-color: var(--color-primario-marca);
    color: var(--color-texto-sobre-primario);
    padding-top: 0.85rem; 
    padding-bottom: 0.85rem;
}
.btn-primario-modal:hover { background-color: var(--color-primario-marca-hover); }

.btn-secundario {
    background-color: white;
    color: var(--color-primario-marca);
    font-weight: bold;
    font-size: 1.125rem;
}
.btn-secundario:hover { background-color: #f0f0f0; }

.tracking-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.4);
    border-color: var(--color-primario-marca);
}
.service-card { transition-property: transform, box-shadow; }
.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.step-card {
    border-left-width: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.icon-feature { transition: transform 0.3s ease; }
.icon-feature:hover { transform: scale(1.1) rotate(5deg); }

.testimonial-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.social-icon {
    color: #9ca3af; 
    font-size: 1.875rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icon:hover { color: var(--color-primario-marca); transform: scale(1.15); }

/* --- Modales --- */
.modal-container { }
.modal-content {
    background-color: #fff;
    border-radius: 0.75rem; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 10px 10px -5px rgba(0,0,0,0.1); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out; 
    width: 100%;
    overflow-y: auto; 
}

#cotizarModal .modal-content {
    max-width: 42rem; 
    padding: 1.5rem 2rem 2rem 2rem; 
    max-height: 90vh; 
}
#cotizarModal h3 {
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--color-texto-principal);
    padding-bottom: 1rem; 
    margin-bottom: 1.5rem; 
    border-bottom: 1px solid #e5e7eb; 
}

#rastreoModal .modal-content,
#loginModal .modal-content,
#registerModal .modal-content { 
    max-width: 28rem; 
    padding: 1.5rem; 
    max-height: 90vh; 
}
#loginModal h3,
#registerModal h3 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--color-texto-principal);
    padding-bottom: 1rem; 
    margin-bottom: 1.5rem; 
    border-bottom: 1px solid #e5e7eb; 
}


.modal-close-btn {
    transition: color 0.2s ease, transform 0.2s ease;
}
.modal-close-btn:hover {
    color: var(--color-primario-marca);
    transform: rotate(90deg) scale(1.1);
}

.modal-form-input, 
.modal-form-textarea {
    background-color: #f9fafb; 
    border: 1px solid #d1d5db; 
    border-radius: 0.375rem; 
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%; 
    font-size: 1rem;
}
.modal-form-input:focus, 
.modal-form-textarea:focus {
    border-color: var(--color-primario-marca);
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.3);
    background-color: #fff; 
}
.modal-form-label {
    display: block;
    margin-bottom: 0.375rem; 
    font-weight: 500; 
    color: var(--color-texto-principal);
    font-size: 0.95rem;
}
.modal-form-group:not(:last-child) { 
    margin-bottom: 1rem; 
}

#cotizarModal .form-input {
    composes: modal-form-input; 
}
#cotizarModal textarea.form-input {
    composes: modal-form-textarea; 
    min-height: 80px; 
}
#cotizarModal label {
    composes: modal-form-label; 
}
#cotizarModal form > div:not(:last-child) {
    composes: modal-form-group; 
}
#cotizarModal form .grid > div:not(:last-child) { }
.form-input-dim { 
    composes: modal-form-input;
    width: 33.3333%;
}


/* --- Estilos para Formulario de Comentarios --- */
#dejar-comentario .form-input {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    font-size: 1rem;
}
#dejar-comentario .form-input:focus {
    border-color: var(--color-primario-marca);
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.3);
    background-color: #fff;
}
#dejar-comentario label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--color-texto-principal);
    font-size: 0.95rem;
}
.star-rating .fa-star {
    font-size: 1.75rem; 
    color: #d1d5db; 
    cursor: pointer;
    transition: color 0.2s ease;
}
.star-rating .fa-star:hover,
.star-rating .fa-star.fas { 
    color: #facc15; 
}


/* --- Message Box --- */
.message-box-style {
    transform: translateY(100%);
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.message-box-style.opacity-100 { opacity: 1; transform: translateY(0); }
.scroll-reveal { visibility: hidden; }

:root {
    --color-primario-marca: #F39200;
    --color-primario-marca-hover: #D87F00;
    --color-acento-marca: #2D3748;
    --color-acento-marca-hover: #1A202C;
    --color-texto-sobre-primario: #FFFFFF;
    --color-texto-principal: #2D3748;
}
.navbar-logo {
    height: 100px; 
    width: auto;
    object-fit: contain;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 50px; 
    height: 50px; 
    bottom: 20px; 
    right: 20px; 
    background-color: #25D366; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 26px; 
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1DA851; 
}

.whatsapp-float i { }

/* --- Contenedor del Mapa --- */
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 75%; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; 
}

/* Media Queries para ajustes más específicos */
@media (min-width: 768px) { /* md breakpoint de Tailwind y mayores */
    .hero-carousel-section {
        height: 60vh; 
        min-height: 350px; 
        max-height: 550px; 
    }
    .carousel-slide { /* Texto a la izquierda en desktop */
        justify-content: flex-start;
        text-align: left;
        padding: 20px 40px;
    }
    .slide-text-overlay {
        max-width: 45%; /* Más angosto en desktop para que se vea más la imagen */
        margin-left: 5%; /* Un margen para separarlo del borde */
        margin-right: auto; /* Asegura que se quede a la izquierda */
    }
    .slide-text-overlay h2 {
        font-size: 2.25rem; 
    }
    .slide-text-overlay p {
        font-size: 1.125rem; 
    }
     .slide-text-overlay .cta-button {
        font-size: 1.125rem;
        padding: 0.75rem 1.5rem;
    }
    .carousel-control {
        width: 50px; 
        height: 50px;
        font-size: 24px;
    }
    .carousel-control.prev { left: 20px; }
    .carousel-control.next { right: 20px; }
    .carousel-indicators { bottom: 20px; }
    .indicator { width: 12px; height: 12px; }

    section#servicios, 
    section#como-funciona,
    section#nosotros,
    section#dejar-comentario,
    section.py-16 { 
        padding-top: 4rem; 
        padding-bottom: 4rem; 
    }
    section.bg-gray-200.py-8 { 
        padding-top: 2rem; 
        padding-bottom: 2rem; 
    }
    h2.text-3xl {
        font-size: 1.875rem; 
        margin-bottom: 1rem; 
    }
    p.mb-12 { 
        margin-bottom: 3rem; 
        font-size: 1rem;
    }
     #cotizarModal .modal-content {
        max-width: 42rem; 
        padding: 1.5rem 2rem 2rem 2rem; 
    }
    #cotizarModal h3 {
        font-size: 1.75rem; 
    }
    #rastreoModal .modal-content,
    #loginModal .modal-content,
    #registerModal .modal-content {
        max-width: 32rem;
        padding: 2rem;
    }
    #loginModal h3, #registerModal h3 {
        font-size: 1.75rem;
    }
     #cotizarModal .form-input-dim {
        width: 33.3333%; 
    }
    #cotizarModal .flex.space-x-2 {
        flex-direction: row;
    }
     #cotizarModal .flex.space-x-2 > input {
        margin-bottom: 0; 
    }
    .navbar-logo {
        height: 55px;
    }
     .whatsapp-float {
        width: 60px; 
        height: 60px; 
        font-size: 30px; 
        bottom: 40px; 
        right: 40px; 
    }
    .map-container {
        padding-top: 56.25%; 
    }
}

@media (max-width: 480px) { 
    .navbar-logo {
        height: 40px;
    }
    .hero-carousel-section {
        min-height: 250px;
    }
     .slide-text-overlay h2 {
        font-size: 1.25rem; 
    }
    .slide-text-overlay p {
        font-size: 0.875rem; 
        margin-top: 0.5rem; 
    }
    .slide-text-overlay .cta-button {
        font-size: 0.75rem; 
        padding: 0.5rem 0.75rem;
        margin-top: 1rem; 
    }
    .carousel-indicators {
        bottom: 10px;
    }
    .indicator {
        width: 8px;
        height: 8px;
    }
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

}
