/* ==========================================================
   LAGPAQ CORE V3
   IDENTIDAD VISUAL AZUL Y NARANJA
========================================================== */

:root {

    --navy: #061e38;
    --navy-light: #0b2c50;

    --primary: #087de1;
    --primary-dark: #0562b4;
    --primary-light: #e9f4ff;

    --secondary: #ff8a00;
    --secondary-dark: #e87200;
    --secondary-light: #fff3e5;

    --background: #f3f6fa;
    --card: #ffffff;

    --text: #172b44;
    --text-light: #64748b;

    --border: #dce5ef;

    --success: #16a34a;
    --error: #dc2626;

    --radius-small: 12px;
    --radius: 18px;
    --radius-large: 24px;

    --shadow-small:
        0 5px 15px
        rgba(6, 30, 56, 0.07);

    --shadow:
        0 12px 32px
        rgba(6, 30, 56, 0.10);

    --shadow-hover:
        0 20px 45px
        rgba(8, 125, 225, 0.18);

}


/* ==========================================================
   CONFIGURACIÓN GENERAL
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(8, 125, 225, 0.07),
            transparent 420px
        ),
        var(--background);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: none;
}

img {
    max-width: 100%;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}


/* ==========================================================
   ENCABEZADO
========================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 999;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-light)
        );

    border-bottom:
        2px solid
        rgba(255, 138, 0, 0.85);

    box-shadow:
        0 8px 28px
        rgba(6, 30, 56, 0.22);
}

header .container {
    min-height: 88px;
    padding: 12px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* ==========================================================
   LOGO
========================================================== */

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 90px;
    height: 68px;
    object-fit: contain;

    border-radius: 12px;

    filter:
        drop-shadow(
            0 5px 10px
            rgba(0, 0, 0, 0.25)
        );
}

.logo:hover img {
    transform: scale(1.03);
}

.logo img {
    transition: transform 0.25s ease;
}


/* ==========================================================
   NAVEGACIÓN
========================================================== */

.navegacion-principal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

header .enlace-navegacion {
    min-height: 44px;
    padding: 10px 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff !important;
    background: transparent !important;

    font-size: 15px;
    font-weight: 700;

    border:
        1px solid
        transparent;

    border-radius: var(--radius-small);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

header .enlace-navegacion:hover,
header .enlace-navegacion:focus-visible {
    color: #ffffff !important;

    background:
        rgba(255, 255, 255, 0.10)
        !important;

    border-color:
        rgba(255, 255, 255, 0.22);

    transform: translateY(-2px);
}

.login-btn {
    min-height: 46px;
    padding: 12px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--secondary),
            #ffac35
        );

    border-radius: var(--radius-small);

    font-weight: 800;

    box-shadow:
        0 7px 20px
        rgba(255, 138, 0, 0.28);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.login-btn:hover {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--secondary-dark),
            var(--secondary)
        );

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(255, 138, 0, 0.35);
}


/* ==========================================================
   HERO
========================================================== */

.hero {
    position: relative;
    padding: 55px 0 25px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: -1;

    width: 70%;
    height: 260px;

    background:
        radial-gradient(
            circle,
            rgba(8, 125, 225, 0.10),
            transparent 70%
        );

    transform: translateX(-50%);
}

.hero h2 {
    margin-bottom: 38px;

    color: var(--navy);

    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
}

.hero h2::after {
    content: "";
    display: block;

    width: 75px;
    height: 5px;
    margin: 14px auto 0;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    border-radius: 999px;
}


/* ==========================================================
   TARJETAS PRINCIPALES
========================================================== */

.cards {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.card {
    position: relative;
    overflow: hidden;

    min-height: 220px;
    padding: 32px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--text);
    text-align: center;

    background: var(--card);

    border:
        1px solid
        rgba(8, 125, 225, 0.12);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow);

    cursor: pointer;

    opacity: 1;
    transform: none;

    transition:
        transform 0.30s ease,
        box-shadow 0.30s ease,
        border-color 0.30s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    opacity: 0;
    transition: opacity 0.30s ease;
}

.card::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;

    width: 150px;
    height: 150px;

    background:
        radial-gradient(
            circle,
            rgba(8, 125, 225, 0.10),
            transparent 70%
        );

    border-radius: 50%;
}

.card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(8, 125, 225, 0.45);

    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    opacity: 1;
}

.icon {
    width: 82px;
    height: 82px;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--primary-light),
            #ffffff
        );

    border:
        1px solid
        rgba(8, 125, 225, 0.14);

    border-radius: 22px;

    font-size: 44px;

    box-shadow: var(--shadow-small);

    transition:
        transform 0.30s ease,
        background-color 0.30s ease;
}

.card:hover .icon {
    transform:
        translateY(-3px)
        rotate(-2deg);
}

.card h3 {
    margin-bottom: 10px;

    color: var(--navy);

    font-size: 22px;
    font-weight: 800;
}

.card p {
    max-width: 420px;

    color: var(--text-light);

    font-size: 16px;
}


/* ==========================================================
   COTIZADOR
========================================================== */

.cotizador {
    position: relative;
    overflow: hidden;

    margin-top: 50px;
    margin-bottom: 45px;
    padding: 38px;

    background: var(--card);

    border:
        1px solid
        rgba(8, 125, 225, 0.12);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow);
}

.cotizador::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 6px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );
}

.cotizador h2 {
    margin-bottom: 28px;

    color: var(--navy);

    font-size: 28px;
    font-weight: 800;
}

.cotizador-contenido {
    width: 100%;
}

#formCotizador {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px 22px;
}

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.campo label {
    margin-bottom: 8px;

    color: var(--text);

    font-size: 15px;
    font-weight: 700;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;

    color: var(--text);
    background: #fbfdff;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-small);

    font-size: 16px;
    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.campo input:hover,
.campo select:hover,
.campo textarea:hover {
    border-color:
        rgba(8, 125, 225, 0.45);
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    background: #ffffff;

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(8, 125, 225, 0.12);
}

#btnCotizar {
    grid-column: 1 / -1;

    width: 100%;
    min-height: 58px;
    padding: 15px 22px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--secondary),
            #ffad38
        );

    border: none;
    border-radius: 14px;

    font-size: 18px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 9px 24px
        rgba(255, 138, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#btnCotizar:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 30px
        rgba(255, 138, 0, 0.34);
}

#btnCotizar:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

#mensajeSistema {
    grid-column: 1 / -1;

    margin-top: 2px;

    color: var(--text);
    text-align: center;
    font-weight: 700;
}


/* ==========================================================
   RESULTADOS DE COTIZACIÓN
========================================================== */

.resultado-cotizacion {
    margin-top: 32px;
    padding: 24px;

    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #f1f6fc
        );

    border:
        1px solid
        var(--border);

    border-radius: var(--radius);

    animation:
        aparecer
        0.35s ease;
}

.resultado-cotizacion h3 {
    margin-bottom: 15px;
    color: var(--navy);
}

.resultado-cotizacion hr {
    margin: 20px 0;

    border: none;
    border-top:
        1px solid
        var(--border);
}

.resultado-item {
    margin-bottom: 14px;
    padding: 18px;

    background: var(--card);
    border-radius: 14px;

    box-shadow: var(--shadow-small);
}


/* ==========================================================
   TARJETAS DE PAQUETERÍAS
========================================================== */

.tarjeta-paqueteria {
    position: relative;

    margin-top: 20px;
    padding: 22px;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-left:
        5px solid
        var(--primary);

    border-radius: var(--radius);

    box-shadow: var(--shadow-small);

    transition:
        transform 0.30s ease,
        box-shadow 0.30s ease,
        border-color 0.30s ease;
}

.tarjeta-paqueteria:hover {
    transform: translateY(-5px);

    border-color:
        rgba(8, 125, 225, 0.45);

    border-left-color:
        var(--secondary);

    box-shadow: var(--shadow-hover);
}

.encabezado-paqueteria {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-temporal {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    overflow: hidden;

    color: var(--primary);
    background: var(--primary-light);

    border:
        1px solid
        rgba(8, 125, 225, 0.14);

    border-radius: 16px;

    font-size: 30px;
    font-weight: 800;
}

.logo-temporal img,
.logo-paqueteria {
    display: block;
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
}

.precio-paqueteria {
    margin-top: 18px;

    color: var(--navy);

    font-size: 34px;
    font-weight: 900;
}

.badge-mejor {
    position: absolute;
    top: 15px;
    right: 15px;

    padding: 7px 13px;

    color: #ffffff;
    background: var(--success);

    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 5px 14px
        rgba(22, 163, 74, 0.22);
}

.btn-seleccionar {
    width: 100%;
    min-height: 58px;
    margin-top: 20px;
    padding: 15px 22px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--secondary),
            #ffad38
        );

    border: none;
    border-radius: 14px;

    font-size: 18px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 22px
        rgba(255, 138, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-seleccionar:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px
        rgba(255, 138, 0, 0.34);
}


/* ==========================================================
   PANEL DE COMPRA
========================================================== */

.panel-compra {
    border:
        1px solid
        rgba(8, 125, 225, 0.12);

    border-top:
        6px solid
        var(--secondary);

    box-shadow: var(--shadow) !important;
}

.panel-compra h2 {
    color: var(--navy);
}

.resumen-servicio {
    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            var(--navy-light),
            var(--primary-dark)
        ) !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);
}

.grupo-direccion {
    background: #fbfdff;

    border-color:
        var(--border) !important;
}

.grupo-direccion legend {
    color:
        var(--primary-dark) !important;
}

.acciones-compra button {
    min-height: 56px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

#btnCrearEnvio {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--secondary),
            #ffad38
        );

    box-shadow:
        0 8px 22px
        rgba(255, 138, 0, 0.25);
}

#btnCrearEnvio:hover {
    transform: translateY(-2px);
}

.btn-secundario {
    color: var(--primary-dark) !important;
    background: var(--primary-light) !important;

    border:
        1px solid
        rgba(8, 125, 225, 0.25) !important;
}


/* ==========================================================
   SECCIONES NOSOTROS Y CONTACTO
========================================================== */

.seccion-informativa {
    border:
        1px solid
        rgba(8, 125, 225, 0.12);

    border-radius:
        var(--radius-large) !important;

    box-shadow:
        var(--shadow) !important;
}

.seccion-informativa h2 {
    color:
        var(--navy) !important;

    font-size: 29px;
    font-weight: 800;
}

.beneficio-lagpaq {
    background:
        linear-gradient(
            145deg,
            #f7fbff,
            #ffffff
        ) !important;

    border:
        1px solid
        rgba(8, 125, 225, 0.14) !important;

    border-radius:
        var(--radius) !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.beneficio-lagpaq:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-small);
}

.beneficio-lagpaq h3 {
    color:
        var(--navy) !important;
}

.boton-whatsapp {
    background:
        linear-gradient(
            135deg,
            #18b957,
            #25d366
        ) !important;

    border-radius: 14px !important;

    box-shadow:
        0 9px 24px
        rgba(37, 211, 102, 0.25) !important;
}


/* ==========================================================
   PIE DE PÁGINA
========================================================== */

.pie-pagina {
    position: relative;

    color: #dbeafe !important;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-light)
        ) !important;

    border-top:
        3px solid
        var(--secondary);
}

.pie-pagina::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;

    width: 140px;
    height: 3px;

    background: var(--primary);

    transform: translateX(-50%);
}

.pie-pagina strong {
    color:
        #ffffff !important;
}


/* ==========================================================
   VISTAS
========================================================== */

.vista {
    display: none;
}

.vista.activa {
    display: block;
}


/* ==========================================================
   MENSAJES
========================================================== */

.mensaje-error {
    margin-top: 20px;
    padding: 15px;

    color: #991b1b;
    background: #fee2e2;

    border:
        1px solid
        #fca5a5;

    border-radius: var(--radius-small);
}

.mensaje-exito {
    margin-top: 20px;
    padding: 15px;

    color: #166534;
    background: #dcfce7;

    border:
        1px solid
        #86efac;

    border-radius: var(--radius-small);
}

.mensaje-info {
    margin-top: 20px;
    padding: 15px;

    color: #1d4ed8;
    background: #dbeafe;

    border:
        1px solid
        #93c5fd;

    border-radius: var(--radius-small);
}


/* ==========================================================
   ANIMACIONES
========================================================== */

@keyframes aparecer {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    #formCotizador {
        grid-template-columns: 1fr;
    }

    #btnCotizar,
    #mensajeSistema {
        grid-column: auto;
    }

}


/* ==========================================================
   CELULARES
========================================================== */

@media (max-width: 768px) {

    header {
        position: relative;
    }

    header .container {
        padding: 16px 0;

        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .logo img {
        width: 82px;
        height: 62px;
    }

    .navegacion-principal {
        width: 100%;

        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    header .enlace-navegacion {
        padding: 9px 10px;
        font-size: 14px;
    }

    .navegacion-principal .login-btn {
        grid-column: 1 / -1;

        width: 100%;
        min-width: 0;
    }

    .hero {
        padding: 32px 0 15px;
    }

    .hero h2 {
        margin-bottom: 28px;
        font-size: 29px;
    }

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

    .card {
        min-height: 190px;
        padding: 24px;
    }

    .icon {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
        font-size: 38px;
    }

    .cotizador {
        margin-top: 32px;
        padding: 25px 18px;
    }

    .cotizador h2 {
        font-size: 25px;
    }

    .resultado-cotizacion {
        padding: 15px;
    }

    .tarjeta-paqueteria {
        padding: 18px;
    }

    .encabezado-paqueteria {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .precio-paqueteria {
        font-size: 28px;
    }

    .badge-mejor {
        position: static;
        display: inline-flex;
        margin-bottom: 12px;
    }

}


/* ==========================================================
   CELULARES PEQUEÑOS
========================================================== */

@media (max-width: 420px) {

    .container {
        width: 94%;
    }

    .hero h2 {
        font-size: 26px;
    }

    .card {
        padding: 21px 16px;
    }

    .cotizador {
        padding: 23px 15px;
    }

    .precio-paqueteria {
        font-size: 25px;
    }

    #btnCotizar,
    .btn-seleccionar {
        font-size: 16px;
    }

}