﻿:root {
    /*--local: #fa3f1d;*/
    --local-main: #1a2b5f;
    --local-main-hover: #2e3a5c;
    --local-naranja: #f26522;
    --local-secondary: #0094ff;
    --local-secondary-hover: #45acf7;
    --primary: #4f46e5;
    --primary-light: #9fb4fa;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --whatsapp: #25d366;
    --naranja-promo: #ff7800; /* Naranja más brillante que el de marca */
    --naranja-promo-hover: #e66c00;
    --header-bg: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 3%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 80px;
    width: 200px;
    cursor: pointer;
}

    .logo:hover {
        cursor: pointer;
    }

.title {
    text-align: center;
    flex: 1;
}

    .title img {
        height: 20px;
        width: 200px;
    }

.main-header {
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-container img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.title-container {
    display: flex;
    flex-direction: column;
    justify-content: right;
}

    .title-container h1 {
        font-size: 1.4rem;
        color: var(--local-main);
        line-height: 1;
    }

    .title-container p {
        font-size: .9rem;
        color: var(--local-main);
        line-height: 1;
    }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--local-main);
    cursor: pointer;
}

.nav-btn-clients {
    background: var(--local-main);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

    .nav-btn-clients:hover {
        background: #004080;
        transform: translateY(-2px);
    }

.logo-text {
    font-family: 'Michroma', sans-serif;
    font-size: 1.2rem;
    color: var(--local-main);
    letter-spacing: 1px;
}

    .logo-text span {
        color: var(--local-naranja);
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: var(--local-naranja);
    }



/* ===== Eliminar flechas en Chrome, Safari, Edge y Opera ===== */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Eliminar flechas en Firefox ===== */
input[type=number] {
    -moz-appearance: textfield;
}


/* ===== Estilos Base y Fondo ===== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    /* Fondo degradado para escritorio */
    background: linear-gradient(135deg, rgba(100, 101, 34, 0.15) 0%, rgba(26, 43, 95, 0.15) 100%);
    background-attachment: fixed;
    color: #334155;
    overflow-x: hidden;
}

/* ===== Imprimir ===== */
@media print {
    .btn-stack, .side-img, .sucursales-section .servicios-section {
        display: none !important;
    }

    .quote-card {
        box-shadow: none;
        border: 1px solid #000;
        width: 100%;
    }
}

.brand-font {
    font-family: 'Michroma', sans-serif;
    font-style: italic;
    text-transform: uppercase;
}

.brand-font-normal {
    font-family: 'Michroma', sans-serif;
    text-transform: uppercase;
}

.promo-badge {
    position: fixed;
    /*top: 88px;*/
    top: 110px;
    right: 20px;
    background: linear-gradient(135deg, var(--naranja-promo) 0%, #ff9a44 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.70rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 120, 0, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: promoPulse 2s infinite;
}

    .promo-badge:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(255, 120, 0, 0.7);
    }

    .promo-badge i {
        font-size: 1rem;
    }

@keyframes promoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 120, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 120, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 120, 0, 0);
    }
}

/* ===== Imágenes Laterales ===== */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    padding: 20px 20px;
}

.side-img {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

.img-left {
    left: 0;
    background-image: url('../images/camion.png');
    -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
}

.img-right {
    right: 0;
    background-image: url('../images/avion.png');
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

/* ===== Tarjeta Principal ===== */
.quote-card {
    background: var(--white);
    max-width: 950px;
    width: 100%;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(26, 43, 95, 0.2);
    position: relative;
    z-index: 10;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 200px;
    margin-bottom: 35px;
    padding-left: 5px;
}


/* Estilos de Formulario */
.grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: .5rem;
}

.input-group {
    margin-bottom: 1rem;
}

    .input-group label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        color: var(--text-muted);
    }

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    font-size: 0.95rem;
    background-color: var(--white);
}

    input:focus, select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

.type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg);
    padding: 0.4rem;
    border-radius: 12px;
}

.type-option {
    flex: 1;
    text-align: center;
    padding: 0.7rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    color: var(--text-muted);
}

    .type-option.active {
        background: var(--white);
        color: var(--primary);
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

.package-item {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--local-naranja);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row-actions {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 25px;
}

    .form-row-actions .input-group {
        flex: 1;
        max-width: none !important;
    }

    .form-row-actions button {
        width: 100%;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

.btn-main, .btn-secondary {
    width: 100%;
    padding: 18px;
    font-style: italic;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-main {
    background: var(--local-main);
    color: white;
}

.btn-secondary {
    background: var(--primary);
    color: white;
}

.btn-main span {
    position: relative;
    z-index: 2;
}

.btn-main::after {
    /*content: '✈️';*/
    content: '🚚';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-main:active::after {
    left: 110%;
}

.btn-main:hover {
    background: var(--local-main-hover);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}


.btn-promos {
    width: 100%;
    padding: 18px;
    font-style: italic;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-promos {
    background: var(--local-main);
    color: white;
}

    .btn-promos span {
        position: relative;
        z-index: 2;
    }

    .btn-promos:active::after {
        left: 110%;
    }

    .btn-promos:hover {
        background: var(--local-naranja);
    }


.dim-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
}

.readonly-input {
    background-color: #f1f5f9;
    font-weight: 700;
    color: var(--primary);
    border: 1px dashed var(--primary);
}


/* SECCIÓN DE RESULTADO SERVICIOS */
.services-container-local {
    display: none;
    margin-top: 25px;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.service-card-local {
    background: var(--local-naranja);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--local-main);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

    .service-card-local:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .service-card-local.selected {
        border-color: var(--local-main);
    }

.services-container {
    display: none;
    margin-top: 25px;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    box-sizing: border-box;
}

.service-card-fedex {
    background: #302674;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

    .service-card-fedex:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .service-card-fedex.selected {
        border-color: var(--local-main);
    }

.service-card-dhl {
    background: #ffcc00;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

    .service-card-dhl:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .service-card-dhl.selected {
        border-color: var(--local-main);
    }

.svc-date {
    text-align: center;
    line-height: 1.2;
    min-width: 80px;
}

    .svc-date .month {
        font-size: 0.7rem;
        text-transform: lowercase;
    }

    .svc-date .day {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .svc-date .weekday {
        font-size: 0.7rem;
    }

.svc-info {
    font-size: 0.9rem;
    font-weight: 800;
    flex-grow: 1;
    text-align: center;
}

.svc-price-box {
    text-align: right;
    margin-right: 20px;
}

    .svc-price-box .currency {
        font-size: 0.8rem;
        display: block;
    }

    .svc-price-box .amount {
        font-size: 1.4rem;
        font-weight: 800;
    }

/* FOOTER INFO */
.info-footer {
    text-align: center;
    border-top: 2px solid var(--border);
    padding-top: 2.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: red;
    font-weight: bold;
    margin-bottom: 1rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--whatsapp);
    text-decoration: none;
    font-weight: 700;
    margin: 10px 0;
}

.whatsapp-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--whatsapp);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .wa-link:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    }


.promo-text {
    color: var(--local-main);
    font-weight: 600;
    display: block;
}

/* ===== SECCIÓN SUCURSALES ===== */
.servicios-section {
    padding: 10px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.sucursales-section {
    padding: 10px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--local-main);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--local-naranja);
        border-radius: 2px;
    }

.sucursales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.sucursal-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    /*border-top: 5px solid var(--local-main);*/
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

    .sucursal-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-color: var(--local-naranja);
    }

    .sucursal-card h4 {
        color: var(--local-main);
        margin-bottom: 0.8rem;
        font-size: 1.1rem;
    }

    .sucursal-card p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .sucursal-card .phone {
        display: block;
        margin-top: 1rem;
        font-weight: 700;
        color: var(--text-main);
        text-decoration: none;
        border: 1px solid var(--border);
        padding: 8px;
        border-radius: 8px;
        text-align: center;
    }

        .sucursal-card .phone:hover {
            background: var(--whatsapp);
            color: var(--white);
        }


.pin-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 1.1rem;
    transition: 0.3s;
}

    .pin-link:hover {
        background: var(--local-naranja);
        transform: scale(1.1);
    }

/* --- ESTILOS DEL MODAL (VENTANA EMERGENTE) --- */
#promoListContainer {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

    /* Estilo opcional para la barra de scroll */
    #promoListContainer::-webkit-scrollbar {
        width: 6px;
    }

    #promoListContainer::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.open {
    display: flex;
}

    .modal-overlay.open .modal-content {
        transform: scale(1);
    }

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    background: none;
    border: none;
}

    .close-modal:hover {
        color: var(--azul-confi);
    }

.promo-title {
    color: var(--azul-confi);
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.promo-item {
    background: #f1f5f9;
    border-left: 4px solid var(--naranja-promo);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

    .promo-item h4 {
        color: var(--naranja-promo);
        margin-bottom: 5px;
    }

    .promo-item p {
        font-size: 0.85rem;
        color: #475569;
    }


/* Estilo cuando el usuario ya inició sesión */
.nav-link.logged-in {
    color: #ef4444;
}

    .nav-link.logged-in:hover {
        color: #b91c1c;
        text-decoration: underline;
    }


/* ===== Mobile Optimization vuelve a una sola columna  ===== */

/* ===== Mobile Celular ===== */
@media (max-width: 576px) {

    body {
        background: var(--white) !important;
    }



    .header {
        flex-direction: column;
        gap: 5px;
    }

    .logo {
        height: 75px;
        width: 150px;
    }

    .title img {
        height: 20px;
        width: 180px;
    }



    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 2px solid var(--local-naranja);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

        .main-nav.active {
            display: flex;
        }

    .nav-btn-clients {
        width: 100%;
        text-align: center;
    }

    .side-img {
        display: none !important;
    }

    .quote-card {
        box-shadow: none;
        padding: 20px;
    }

    .form-grid, .actions-result-grid, .sucursales-grid, .dim-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        padding: 20px 10px;
    }

    .header-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .logo-container img {
        height: 55px;
        margin: 0 auto;
    }

    .title-container h1 {
        font-size: 0.9rem;
    }

    .dim-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-section {
        grid-template-columns: 1fr;
    }

    .btn-main {
        min-height: 60px;
    }

    .form-row-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .promo-badge {
        top: auto;
        bottom: 20px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.7rem;
    }

    .services-container-local {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .svc-info {
        font-size: 0.7rem;
    }
}

/* ===== Mobile Tablet ===== */
@media (min-width: 577px) and (max-width: 768px) {

    body {
        background: var(--white) !important;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 2px solid var(--local-naranja);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

        .main-nav.active {
            display: flex;
        }

    .nav-btn-clients {
        width: 100%;
        text-align: center;
    }

    .side-img {
        display: none !important;
    }

    .quote-card {
        box-shadow: none;
        padding: 20px;
    }

    .form-grid, .actions-result-grid, .sucursales-grid, .dim-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        padding: 20px 10px;
    }

    .header-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .logo-container img {
        height: 55px;
        margin: 0 auto;
    }

    .title-container h1 {
        font-size: 1.5rem;
    }

    .dim-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-section {
        grid-template-columns: 1fr;
    }

    .btn-main {
        min-height: 60px;
    }

    .form-row-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .promo-badge {
        top: auto;
        bottom: 20px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.7rem;
    }

    .services-container-local {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .svc-info {
        font-size: 0.7rem;
    }
}
