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

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #ffffff;
    background:
        #050505
        url("../images/logosHome/RGT-Fondo-Home.png")
        center center / cover
        fixed
        no-repeat;
}

/* Página principal */

.home-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 28px 40px 75px;
}

/* Header */

.home-header {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 25px;
}

/* Logo RGT */

.home-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.home-logo {
    display: block;
    width: min(470px, 70vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
}

/* Menú */

.home-nav {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-nav-item {
    min-width: 0;
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.82);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background:
        linear-gradient(
            180deg,
            rgba(55, 55, 55, 0.50),
            rgba(20, 20, 20, 0.72)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.home-nav-item i {
    color: rgba(255, 255, 255, 0.58);
    font-size: 20px;
    transition: color 0.2s ease;
}

.home-nav-item:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background:
        linear-gradient(
            180deg,
            rgba(70, 70, 70, 0.55),
            rgba(28, 28, 28, 0.78)
        );
    transform: translateY(-1px);
}

.home-nav-item:hover i {
    color: rgba(255, 255, 255, 0.85);
}

.home-nav-item--active {
    color: #ffffff;
    border-color: #d71920;
    background:
        linear-gradient(
            180deg,
            #e3262d,
            #a90f14
        );
    box-shadow:
        0 0 12px rgba(215, 25, 32, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.home-nav-item--active i {
    color: #ffffff;
}

.home-nav-item--active:hover {
    color: #ffffff;
    border-color: #ef3038;
    background:
        linear-gradient(
            180deg,
            #eb2931,
            #b81218
        );
    box-shadow: 0 0 14px rgba(215, 25, 32, 0.20);
}

/* Contenido */

.home-content {
    width: 100%;
    max-width: 1320px;
    min-height: 540px;
    margin: 0 auto;
}

/* Cambio de secciones */

.home-section {
    display: none;
    width: 100%;
}

.home-section.is-active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: sectionFade 0.28s ease;
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

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

/* Tarjetas de empresas */

.empresa-card {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns:
        minmax(240px, 390px)
        1px
        minmax(250px, 1fr)
        minmax(180px, 225px);
    align-items: center;
    column-gap: 36px;
    min-height: 110px;
    padding: 14px 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 5, 0.83),
            rgba(11, 11, 11, 0.72),
            rgba(5, 5, 5, 0.85)
        );
    backdrop-filter: blur(3px);
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.empresa-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.38);
}

.empresa-logo {
    width: 100%;
    min-width: 0;
    height: 82px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empresa-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.65));
}

.empresa-divider {
    width: 1px;
    height: 72px;
    background: rgba(255, 255, 255, 0.70);
}

.empresa-info {
    min-width: 0;
    display: flex;
    align-items: center;
}

.empresa-info p {
    margin: 0;
    color: #f1f1f1;
    font-size: 16px;
    line-height: 1.42;
}

.empresa-action {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.empresa-btn {
    width: 100%;
    max-width: 225px;
    min-height: 48px;
    padding: 10px 18px 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border: 2px solid;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.33);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.empresa-btn i {
    flex-shrink: 0;
    font-size: 25px;
}

.empresa-btn:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.035);
}

.empresa-btn--amarillo {
    color: #ffd900;
    border-color: #ffd900;
}

.empresa-btn--amarillo:hover {
    box-shadow: 0 0 12px rgba(255, 217, 0, 0.18);
}

.empresa-btn--verde {
    color: #00ef60;
    border-color: #00e65c;
}

.empresa-btn--verde:hover {
    box-shadow: 0 0 12px rgba(0, 230, 92, 0.18);
}

.empresa-btn--blanco {
    color: #ffffff;
    border-color: #d8d8d8;
}

.empresa-btn--blanco:hover {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.empresa-btn--azul {
    color: #00c6ff;
    border-color: #00c6ff;
}

.empresa-btn--azul:hover {
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.18);
}

/* Panel general */

.section-panel {
    width: 100%;
    min-height: 540px;
    padding: 38px 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            rgba(5, 5, 5, 0.90),
            rgba(17, 17, 17, 0.82)
        );
    backdrop-filter: blur(5px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.section-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(215, 25, 32, 0.60);
    border-radius: 10px;
    color: #e3262d;
    background: rgba(215, 25, 32, 0.07);
}

.section-icon i {
    font-size: 27px;
}

.section-label {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
    font-weight: 700;
}

/* Nosotros */

.nosotros-intro {
    width: 100%;
    margin-bottom: 32px;
}

.nosotros-intro h2 {
    margin-bottom: 13px;
    color: #ffffff;
    font-size: 24px;
}

.nosotros-intro p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
}

.nosotros-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    width: 100%;
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 25, 32, 0.35);
    background: rgba(255, 255, 255, 0.035);
}

.info-card-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    color: #e3262d;
    background: rgba(215, 25, 32, 0.08);
}

.info-card-icon i {
    font-size: 20px;
}

.info-card h3 {
    margin-bottom: 9px;
    color: #ffffff;
    font-size: 17px;
}

.info-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.60);
    font-size: 14px;
    line-height: 1.55;
}

/* Servicios */

.section-description {
    max-width: 800px;
    margin-bottom: 28px;
}

.section-description p {
    color: rgba(255, 255, 255, 0.70);
    font-size: 15px;
    line-height: 1.6;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.servicio-card {
    min-height: 120px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 17px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.022);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.servicio-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 25, 32, 0.30);
    background: rgba(255, 255, 255, 0.035);
}

.servicio-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: #e3262d;
    background: rgba(215, 25, 32, 0.08);
}

.servicio-icon i {
    font-size: 21px;
}

.servicio-card h3 {
    margin: 1px 0 7px;
    color: #ffffff;
    font-size: 16px;
}

.servicio-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.5;
}

.servicios-whatsapp {
    width: 100%;
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.servicios-whatsapp-btn {
    min-width: 260px;
    min-height: 48px;
    padding: 12px 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(37, 211, 102, 0.55);
    border-radius: 8px;
    color: #25d366;
    background: rgba(37, 211, 102, 0.05);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* Envíos principal */

.envios-panel {
    min-height: 540px;
}

.envios-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.envios-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.envios-intro {
    margin-bottom: 24px;
}

.envios-intro h2 {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 31px;
}

.envios-intro p {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.69);
    font-size: 16px;
    font-weight: 600;
}

.envios-features {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.envios-feature-card {
    min-height: 145px;
    padding: 18px 19px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

.envios-feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    color: #ec2730;
    background: rgba(215, 25, 32, 0.13);
}

.envios-feature-card h3 {
    margin-bottom: 7px;
    font-size: 16px;
}

.envios-feature-card p {
    color: rgba(255, 255, 255, 0.61);
    font-size: 13px;
    line-height: 1.48;
}

.envios-paqueterias {
    width: 100%;
    padding: 14px 18px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
}

.envios-paqueterias-title {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.envios-logos {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        1px
        minmax(0, 1.3fr)
        1px
        minmax(0, 1.25fr)
        1px
        minmax(0, 1.25fr);
    align-items: center;
    gap: 14px;
}

.envios-logo-item {
    min-width: 0;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envios-logo-item img {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.envios-logo-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.16);
}

.envios-map-card {
    width: 100%;
    padding: 19px 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
}

.envios-map {
    flex: 1;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.envios-map img {
    width: 100%;
    max-width: 290px;
    object-fit: contain;
}

.envios-saber-mas {
    width: 100%;
    min-height: 49px;
    padding: 10px 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid #ec2730;
    border-radius: 7px;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            #ef3038,
            #d71920
        );
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.envios-map-note {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    text-align: center;
}

/* Footer principal */

.home-footer {
    width: 100%;
    max-width: 1320px;
    margin: 28px auto 0;
    text-align: center;
}

.home-footer p {
    color: #eeeeee;
    font-size: 14px;
}

/* Login lateral */

.login-side-access {
    position: fixed;
    right: 0;
    bottom: 25px;
    display: flex;
    z-index: 100;
    transform: translateX(190px);
    transition: transform 0.25s ease;
}

.login-side-access.is-open {
    transform: translateX(0);
}

.login-side-toggle {
    width: 34px;
    min-width: 34px;
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 0;
    border-radius: 7px 0 0 7px;
    background: rgba(8, 8, 8, 0.78);
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.login-side-toggle i {
    font-size: 22px;
}

.login-side-access.is-open .login-side-toggle i {
    transform: rotate(180deg);
}

.login-side-panel {
    width: 190px;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 0;
    background: rgba(8, 8, 8, 0.88);
}

.login-side-link {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

/* Ocultar navegación en detalles */

.home-page.is-detail-open .home-header,
.home-page.is-detail-open .home-footer {
    display: none;
}

body.is-detail-open .login-side-access {
    display: none;
}

.home-page.is-detail-open {
    padding-top: 24px;
    padding-bottom: 30px;
}

/* Detalle envíos */

.envios-detail-page {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.envios-detail-top {
    position: relative;
    min-height: 110px;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envios-detail-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 62px;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(20, 20, 20, 0.85);
    cursor: pointer;
}

.envios-detail-top-logo {
    width: min(360px, 75vw);
    object-fit: contain;
}

.envios-detail-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(380px, 0.9fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.envios-detail-title-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.envios-detail-title-icon {
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envios-detail-title-icon i {
    font-size: 78px;
}

.envios-detail-title-group h1 {
    line-height: 0.92;
    text-transform: uppercase;
}

.envios-detail-title-white,
.envios-detail-title-red {
    display: block;
    font-weight: 900;
}

.envios-detail-title-white {
    font-size: clamp(42px, 5vw, 74px);
}

.envios-detail-title-red {
    color: #ff1824;
    font-size: clamp(58px, 7vw, 104px);
}

.envios-detail-main-text {
    max-width: 800px;
    margin-bottom: 22px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.envios-detail-mini-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.envios-detail-mini-feature {
    display: flex;
    gap: 12px;
}

.envios-detail-mini-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff1824;
}

.envios-detail-mini-icon i {
    font-size: 34px;
}

.envios-detail-mini-feature h3 {
    margin-bottom: 4px;
    font-size: 17px;
}

.envios-detail-mini-feature p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.envios-detail-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.envios-detail-van {
    width: 100%;
    max-width: 620px;
    object-fit: contain;
}

.envios-detail-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(290px, 0.9fr);
    gap: 18px;
    margin-bottom: 18px;
}

.envios-detail-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(5, 5, 5, 0.90);
    overflow: hidden;
}

.envios-detail-card--logos,
.envios-detail-card--mapa,
.envios-detail-card--galeria {
    padding: 18px;
}

.envios-detail-card-title {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.envios-detail-card-title-icon {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: #ff1824;
    background: rgba(255, 24, 36, 0.10);
}

.envios-detail-card-title h2 {
    margin-bottom: 3px;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.envios-detail-card-title h2 span {
    color: #ff1824;
}

.envios-detail-card-title p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.envios-detail-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.envios-detail-logo-box {
    min-height: 146px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.envios-detail-logo-box img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}

.envios-detail-card--mapa {
    display: flex;
    justify-content: center;
    align-items: center;
}

.envios-detail-map-image {
    width: 100%;
    max-width: 360px;
    object-fit: contain;
}

/* Carrusel ejemplos de envíos */

.envios-detail-card--galeria {
    width: 100%;
    padding: 22px 22px 26px;
    overflow: hidden;
}

.envios-gallery-carousel {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns:
        46px
        minmax(0, 1fr)
        46px;
    align-items: center;
    gap: 12px;
}

.envios-gallery-viewport {
    width: 100%;
    min-width: 0;
    padding: 5px 0;
    overflow: hidden;
}

.envios-detail-gallery {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 14px;
    transform: translateX(0);
    transition:
        transform 0.65s
        cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.envios-detail-gallery-item {
    flex: 0 0 calc((100% - 56px) / 5);
    min-width: 0;
    height: 270px;
    padding: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.envios-detail-gallery-item::before,
.envios-detail-gallery-item::after {
    display: none;
}

.envios-detail-gallery-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: transparent;
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.envios-detail-gallery-item:hover {
    border-color: #ff2531;
    box-shadow: 0 0 14px rgba(255, 37, 49, 0.10);
}

.envios-detail-gallery-item:hover img {
    transform: scale(1.015);
    filter:
        brightness(1.04)
        contrast(1.02);
}

.envios-gallery-carousel-btn {
    position: relative;
    z-index: 5;
    width: 46px;
    height: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ff2531;
    background: rgba(7, 7, 7, 0.92);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.envios-gallery-carousel-btn i {
    font-size: 24px;
}

.envios-gallery-carousel-btn:hover {
    border-color: #ff2531;
    background: rgba(20, 20, 20, 0.96);
    box-shadow: 0 0 12px rgba(255, 37, 49, 0.10);
}

.envios-gallery-dots {
    width: 100%;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.envios-gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    cursor: pointer;
    transition:
        width 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.envios-gallery-dot.is-active {
    width: 25px;
    border-radius: 999px;
    background: #ff2531;
    box-shadow: 0 0 8px rgba(255, 37, 49, 0.70);
}

/* WhatsApp envíos */

.envios-detail-whatsapp {
    width: 100%;
    margin-top: 45px;
    margin-bottom: 18px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(5, 5, 5, 0.90);
}

.envios-detail-whatsapp-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.envios-detail-whatsapp-icon {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #25d366;
}

.envios-detail-whatsapp-icon i {
    font-size: 42px;
}

.envios-detail-whatsapp-info h2 {
    margin-bottom: 4px;
    font-size: 20px;
    font-weight: 900;
}

.envios-detail-whatsapp-info p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
}

.envios-detail-whatsapp-btn {
    min-width: 285px;
    min-height: 60px;
    padding: 12px 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    color: #ffffff;
    background: #ff2531;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
}

.envios-detail-bottom-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.envios-detail-bottom-item {
    display: flex;
    gap: 14px;
    padding: 8px 10px;
}

.envios-detail-bottom-icon {
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff1824;
}

.envios-detail-bottom-icon i {
    font-size: 42px;
}

.envios-detail-bottom-item h3 {
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.envios-detail-bottom-item h3 span {
    color: #ff1824;
}

.envios-detail-bottom-item p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
}

.envios-detail-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.envios-detail-footer-logo {
    width: min(260px, 60vw);
    object-fit: contain;
}

/* Detalle genérico empresas */

:root {
    --empresa-color: #ff1824;
}

.empresa-detail-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 0 35px;
}

.empresa-detail-top {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
}

.empresa-detail-back {
    width: 62px;
    height: 62px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.empresa-detail-back i {
    font-size: 32px;
}

.empresa-detail-back:hover {
    transform: translateX(-3px);
    border-color: rgba(255, 255, 255, 0.40);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero empresa */

.empresa-detail-hero {
    width: 100%;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 28px;
    text-align: center;
}

.empresa-detail-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empresa-detail-logo {
    display: block;
    width: min(680px, 75vw);
    max-height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.empresa-detail-accent {
    width: 100px;
    height: 3px;
    margin: 24px auto;
    border-radius: 999px;
    background: var(--empresa-color);
}

.empresa-detail-description {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Productos destacados */

.empresa-detail-products {
    width: 100%;
    padding: 24px 28px 26px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(8, 8, 8, 0.90),
            rgba(2, 2, 2, 0.94)
        );
    overflow: hidden;
}

.empresa-detail-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.empresa-detail-section-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--empresa-color);
}

.empresa-detail-section-icon i {
    font-size: 30px;
}

.empresa-detail-section-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
    font-weight: 900;
    text-transform: uppercase;
}

.empresa-detail-section-title h2 span {
    color: var(--empresa-color);
}

/* Carrusel empresas */

.empresa-products-carousel {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns:
        48px
        minmax(0, 1fr)
        48px;
    align-items: center;
    gap: 14px;
}

.empresa-products-carousel-viewport {
    width: 100%;
    min-width: 0;
    padding: 4px 0;
    overflow: hidden;
}

.empresa-detail-products-grid {
    width: 100%;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transform: translateX(0);
    transition:
        transform 0.65s
        cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.empresa-detail-product-card {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
    height: 330px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.12);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.empresa-detail-product-card:hover {
    border-color: var(--empresa-color);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.035);
}

.empresa-detail-product-image {
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
}

.empresa-detail-product-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: transparent;
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.empresa-detail-product-card:hover .empresa-detail-product-image img {
    transform: scale(1.015);
    filter:
        brightness(1.04)
        contrast(1.02);
}

.empresa-detail-product-body {
    display: none;
}

.empresa-products-carousel-btn {
    position: relative;
    z-index: 5;
    width: 48px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: var(--empresa-color);
    background: rgba(7, 7, 7, 0.92);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.empresa-products-carousel-btn i {
    font-size: 25px;
}

.empresa-products-carousel-btn:hover {
    border-color: var(--empresa-color);
    background: rgba(20, 20, 20, 0.96);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
}

.empresa-products-dots {
    width: 100%;
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
}

.empresa-products-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition:
        width 0.25s ease,
        border-radius 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.empresa-products-dot.is-active {
    width: 27px;
    border-radius: 999px;
    background: var(--empresa-color);
    box-shadow: 0 0 9px var(--empresa-color);
}

/* Lista productos */

.empresa-detail-list-wrap {
    width: 100%;
    margin: 20px 0 26px;
    display: flex;
    justify-content: center;
}

.empresa-detail-list-btn {
    width: 100%;
    max-width: 450px;
    min-height: 62px;
    padding: 10px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    border: 2px solid var(--empresa-color);
    border-radius: 12px;
    color: var(--empresa-color);
    background: rgba(0, 0, 0, 0.65);
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.empresa-detail-list-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

/* Redes */

.empresa-detail-socials {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.empresa-detail-socials.is-empty {
    display: none;
}

.empresa-detail-social {
    width: 100%;
    min-height: 125px;
    padding: 18px 25px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025),
            rgba(0, 0, 0, 0.62)
        );
}

.empresa-detail-social-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.empresa-detail-social-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #ffffff;
}

.empresa-detail-social-icon i {
    font-size: 48px;
}

.empresa-detail-social--whatsapp .empresa-detail-social-icon {
    background: #25d366;
}

.empresa-detail-social--facebook .empresa-detail-social-icon {
    background: #1877f2;
}

.empresa-detail-social--instagram .empresa-detail-social-icon {
    background:
        radial-gradient(
            circle at 30% 110%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285aeb 90%
        );
}

.empresa-detail-social-info h3 {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
    text-transform: uppercase;
}

.empresa-detail-social-info p {
    max-width: 450px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.4;
}

.empresa-detail-social-btn {
    min-width: 260px;
    min-height: 58px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.empresa-detail-social-btn:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.045);
}

/* Beneficios */

.empresa-detail-benefits {
    width: 100%;
    margin-top: 35px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        1px
        minmax(0, 1fr)
        1px
        minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.empresa-detail-benefit {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.empresa-detail-benefit-divider {
    width: 1px;
    height: 86px;
    background: rgba(255, 255, 255, 0.28);
}

.empresa-detail-benefit-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--empresa-color);
}

.empresa-detail-benefit-icon i {
    font-size: 52px;
}

.empresa-detail-benefit h3 {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.empresa-detail-benefit h3 span {
    display: block;
    color: var(--empresa-color);
}

.empresa-detail-benefit p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.4;
}

/* Footer empresa */

.empresa-detail-footer {
    width: 100%;
    margin-top: 38px;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.empresa-detail-footer-logo {
    width: min(310px, 65vw);
    object-fit: contain;
}

.empresa-detail-footer p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

/* Responsive 1200 */

@media (max-width: 1200px) {
    .home-page {
        padding: 25px 28px 70px;
    }

    .home-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .empresa-card {
        grid-template-columns:
            minmax(220px, 300px)
            1px
            minmax(0, 1fr);
        row-gap: 15px;
    }

    .empresa-action {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .empresa-btn {
        width: 320px;
    }

    .envios-layout {
        grid-template-columns:
            minmax(0, 1fr)
            290px;
    }

    .envios-detail-hero {
        grid-template-columns: 1fr;
    }

    .envios-detail-hero-visual {
        justify-content: center;
    }

    .envios-detail-grid {
        grid-template-columns: 1fr;
    }

    .envios-detail-whatsapp {
        grid-template-columns: 1fr;
    }

    .envios-detail-whatsapp-btn {
        width: 100%;
    }
}

/* Carrusel envíos 3 imágenes */

@media (max-width: 1100px) {
    .envios-detail-gallery-item {
        flex: 0 0 calc((100% - 28px) / 3);
        height: 300px;
    }
}

/* Carrusel empresas tablet */

@media (max-width: 900px) {
    .empresa-detail-page {
        max-width: 760px;
    }

    .empresa-detail-products {
        padding: 24px 24px 28px;
    }

    .empresa-products-carousel {
        grid-template-columns:
            46px
            minmax(0, 1fr)
            46px;
        gap: 12px;
    }

    .empresa-products-carousel-btn {
        width: 46px;
        height: 66px;
    }

    .empresa-detail-products-grid {
        gap: 18px;
    }

    .empresa-detail-product-card {
        flex: 0 0 calc((100% - 18px) / 2);
        height: 320px;
    }
}

/* Tablet */

@media (max-width: 850px) {
    .home-page {
        padding: 22px 20px 65px;
    }

    .empresa-card {
        grid-template-columns:
            minmax(190px, 250px)
            1px
            minmax(0, 1fr);
    }

    .section-panel {
        padding: 30px 28px;
    }

    .nosotros-grid,
    .servicios-grid,
    .envios-layout {
        grid-template-columns: 1fr;
    }

    .envios-detail-mini-features {
        grid-template-columns: 1fr;
    }

    .envios-detail-logos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .envios-detail-bottom-features {
        grid-template-columns: 1fr;
    }
}

/* Carrusel envíos 2 imágenes */

@media (max-width: 800px) {
    .envios-gallery-carousel {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            40px;
        gap: 8px;
    }

    .envios-gallery-carousel-btn {
        width: 40px;
        height: 60px;
    }

    .envios-detail-gallery {
        gap: 12px;
    }

    .envios-detail-gallery-item {
        flex: 0 0 calc((100% - 12px) / 2);
        height: 310px;
    }
}

/* Redes responsive */

@media (max-width: 750px) {
    .empresa-detail-description {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .empresa-detail-social {
        grid-template-columns: 1fr;
    }

    .empresa-detail-social-btn {
        width: 100%;
    }

    .empresa-detail-benefits {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .empresa-detail-benefit-divider {
        width: 100%;
        height: 1px;
    }
}

/* Móvil */

@media (max-width: 650px) {
    .home-page {
        padding: 18px 12px 55px;
    }

    .home-nav {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .empresa-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 28px 18px;
        text-align: center;
    }

    .empresa-logo {
        max-width: 350px;
        height: 100px;
    }

    .empresa-divider {
        width: 72%;
        height: 1px;
    }

    .empresa-info {
        width: 100%;
        justify-content: center;
    }

    .empresa-action {
        width: 100%;
        justify-content: center;
    }

    .empresa-btn {
        width: 100%;
        max-width: 300px;
    }

    .section-panel {
        padding: 25px 20px;
    }

    .envios-features {
        grid-template-columns: 1fr;
    }

    .envios-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .envios-logo-divider {
        display: none;
    }

    .envios-detail-whatsapp-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .empresa-detail-products {
        padding: 18px 14px 24px;
    }

    .empresa-detail-section-title {
        margin-bottom: 16px;
    }

    .empresa-detail-section-title h2 {
        font-size: 21px;
    }

    .empresa-products-carousel {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            38px;
        gap: 7px;
    }

    .empresa-products-carousel-btn {
        width: 38px;
        height: 58px;
    }

    .empresa-products-carousel-btn i {
        font-size: 21px;
    }

    .empresa-products-carousel-viewport {
        padding: 8px 1px 12px;
    }

    .empresa-detail-products-grid {
        gap: 0;
    }

    .empresa-detail-product-card {
        flex: 0 0 100%;
        height: 330px;
    }
}

/* Carrusel envíos móvil */

@media (max-width: 550px) {
    .empresa-detail-page {
        padding-top: 0;
    }

    .empresa-detail-back {
        width: 50px;
        height: 50px;
    }

    .empresa-detail-back i {
        font-size: 25px;
    }

    .empresa-detail-hero {
        min-height: 260px;
        padding: 15px 10px 24px;
    }

    .empresa-detail-logo {
        width: min(95%, 520px);
        max-height: 155px;
    }

    .empresa-detail-description {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .empresa-detail-social {
        padding: 16px;
    }

    .empresa-detail-social-info {
        align-items: flex-start;
        gap: 15px;
    }

    .empresa-detail-social-icon {
        width: 62px;
        height: 62px;
    }

    .empresa-detail-social-icon i {
        font-size: 36px;
    }

    .empresa-detail-social-info h3 {
        font-size: 20px;
    }

    .empresa-detail-social-info p {
        font-size: 14px;
    }

    .empresa-detail-social-btn {
        min-width: 0;
    }

    .envios-detail-card--galeria {
        padding: 16px 10px 20px;
    }

    .envios-gallery-carousel {
        grid-template-columns:
            34px
            minmax(0, 1fr)
            34px;
        gap: 5px;
    }

    .envios-gallery-carousel-btn {
        width: 34px;
        height: 54px;
    }

    .envios-gallery-carousel-btn i {
        font-size: 19px;
    }

    .envios-detail-gallery {
        gap: 0;
    }

    .envios-detail-gallery-item {
        flex: 0 0 100%;
        width: auto;
        height: 360px;
        padding: 8px;
    }
}

/* Móvil pequeño */

@media (max-width: 420px) {
    .home-page {
        padding: 15px 8px 50px;
    }

    .empresa-btn {
        max-width: 270px;
    }

    .section-panel {
        padding: 22px 15px;
    }

    .envios-detail-logos-grid {
        grid-template-columns: 1fr;
    }

    .empresa-detail-products {
        padding: 15px 9px 20px;
    }

    .empresa-detail-section-title {
        gap: 8px;
    }

    .empresa-detail-section-icon {
        width: 34px;
        height: 34px;
    }

    .empresa-detail-section-icon i {
        font-size: 24px;
    }

    .empresa-detail-section-title h2 {
        font-size: 18px;
    }

    .empresa-products-carousel {
        grid-template-columns:
            32px
            minmax(0, 1fr)
            32px;
        gap: 5px;
    }

    .empresa-products-carousel-btn {
        width: 32px;
        height: 52px;
        border-radius: 8px;
    }

    .empresa-products-carousel-btn i {
        font-size: 18px;
    }

    .empresa-detail-product-card {
        height: 290px;
    }
}

@media (max-width: 400px) {
    .envios-detail-gallery-item {
        height: 320px;
    }
}
