:root {
    --bg: #050814;
    --surface: #0f1b34;
    --surface-strong: #111f3b;
    --brand-orange: #f57c11;
    --brand-orange-soft: rgba(245, 124, 17, 0.12);
    --text: #eef2f7;
    --muted: #a9b2c3;
    --border: rgba(255,255,255,0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Garet', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #050814 0%, #081325 100%);
}

a {
    text-decoration: none;
}

.site-header {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    min-height: 92px;
    padding: 1.1rem 0;
    width: 100%;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.70), rgba(8, 11, 20, 0.50)),
                      url('../img/LOGO/PNG/navbar-bg.png');
    background-repeat: no-repeat, no-repeat;
    background-position: center center, bottom center;
    background-size: cover;
    background-blend-mode: multiply;
    border-bottom: none;
    backdrop-filter: blur(10px);
}
.navbar {
    position: relative !important;
    top: auto !important;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(245,124,17,0.85), rgba(255,255,255,0.1), rgba(245,124,17,0.35));
}

.navbar-brand {
    letter-spacing: 0.15em;
    font-size: 1.02rem;
}

.navbar-brand-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    color: #ffffff;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    margin-left: 1rem;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.6rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-orange) !important;
    background: transparent !important;
    border-radius: 0;
}

.btn-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    text-decoration: none;
}

.btn-portal:hover,
.btn-portal:focus {
    color: var(--brand-orange) !important;
    background: transparent !important;
}

.hero-section {
    position: relative;
    height: calc(85vh - 100px);
    min-height: calc(85vh - 100px);
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(5, 8, 20, 0.40), rgba(5, 8, 20, 0.68)),
                      url('../img/LOGO/PNG/carussel-bg.png');
    background-repeat: no-repeat;
    background-position: center center, top center;
    background-size: cover;
    background-blend-mode: overlay;
}

.hero-carousel-wrap,
#homeCarousel,
#homeCarousel .carousel-inner,
#homeCarousel .carousel-item {
    position: relative;
    height: calc(85vh - 100px);
    min-height: calc(85vh - 100px);
}

.hero-slide-bg,
.hero-slide-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-bg {
    filter: brightness(0.92);
}

.hero-slide-fallback {
    background: rgba(0, 0, 0, 0.12);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.04), rgba(0,0,0,0.30));
}

.carousel-caption {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding-left: 4rem;
    padding-right: 4rem;
}

.carousel-caption .eyebrow {
    font-weight: 700;
    color: var(--brand-orange);
    letter-spacing: 0.18em;
}

.carousel-caption h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.02;
}

.carousel-caption p.lead {
    max-width: 680px;
}

.hero-control-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
}

.hero-control-icon i {
    color: #ffffff;
    font-size: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6rem;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev {
    left: 1.5rem;
}

.carousel-control-next {
    right: 1.5rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none !important;
}

.hero-section .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
}

@media (min-width: 768px) {
    .hero-section {
        height: calc(85vh - 132px);
        min-height: calc(85vh - 132px);
    }

    #brands {
        min-height: 132px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 991px) {
    .carousel-caption {
        display: block;
        padding: 1.75rem 1.75rem 2rem;
        max-width: min(90%, 520px);
        width: 70%;
        margin: 0;
        height: auto;
        text-align: center;
    }
    .carousel-caption h1 {
        font-size: clamp(2.2rem, 6vw, 3rem);
        line-height: 1.05;
    }
    .carousel-caption p.lead {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.2rem;
    }
    .carousel-caption .d-flex {
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
        width: 100%;
    }
    .navbar-brand-logo {
        max-height: 52px;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 3.6rem;
    }
}

@media (max-width: 767px) {
    .carousel-caption {
        display: block;
        padding: 1.5rem 1rem 1.8rem;
        max-width: min(92%, 430px);
        width: 70%;
        margin: 0;
        height: auto;
        text-align: center;
    }
    .carousel-caption h1 {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
        line-height: 1.08;
    }
    .carousel-caption p.lead {
        font-size: 0.96rem;
        margin-bottom: 1rem;
    }
    .carousel-caption .d-flex {
        justify-content: center;
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .navbar-brand-logo {
        max-height: 44px;
    }
    .hero-control-icon {
        width: 50px;
        height: 50px;
    }
    .hero-control-icon i {
        font-size: 1.1rem;
    }
    .carousel-control-prev {
        width: 3rem;
        left: 0.75rem;
    }
    .carousel-control-next {
        width: 3rem;
        right: 0.75rem;
    }
}

.eyebrow {
    color: var(--brand-orange);
    font-weight: 700;
    letter-spacing: 0.16em;
    font-size: 0.9rem;
}

.hero-section h1 {
    max-width: 680px;
    line-height: 1.05;
}

.text-white-75 {
    color: rgba(255,255,255,0.78) !important;
}

.hero-card {
    background: rgba(15, 24, 48, 0.88);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-carousel .carousel-item {
    min-height: 420px;
    background: linear-gradient(180deg, rgba(5, 8, 20, 0.95), rgba(5, 8, 20, 0.75));
    position: relative;
}

.hero-carousel .carousel-fallback {
    min-height: 420px;
    background: linear-gradient(135deg, rgba(15, 24, 48, 0.95), rgba(6, 12, 30, 0.9));
}

.hero-carousel .hero-slide-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.65));
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: invert(1);
}

.portal-auth-page {
    min-height: 100vh;
    padding: 24px;
    background: radial-gradient(circle at top left, rgba(245,124,17,0.22), transparent 28%),
                linear-gradient(135deg, #030712 0%, #071224 52%, #0a162a 100%);
    color: var(--text);
}

.portal-shell {
    min-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(5, 8, 20, 0.78);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    backdrop-filter: blur(16px);
    position: relative;
}

.portal-shell::before {
    content: '';
    position: absolute;
    top: 0;
    right: 48%;
    width: 220px;
    height: 120%;
    background: rgba(255,255,255,0.03);
    transform: skewX(-18deg) translateX(50%);
    transform-origin: top right;
    pointer-events: none;
}

.portal-panel {
    position: relative;
}

.portal-visual {
    min-height: 650px;
    position: relative;
}

#portalCarousel {
    position: relative;
    width: 100%;
    height: 100%;
}

#portalCarousel .carousel-inner,
#portalCarousel .carousel-item {
    height: 100%;
    min-height: 100%;
}

#portalCarousel .carousel-item {
    position: relative;
    display: none;
    transition: opacity 1.2s ease;
    opacity: 0;
}

#portalCarousel .carousel-item.active {
    display: block;
    opacity: 1;
}

.portal-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.portal-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(1.1) brightness(1.02);
}

.portal-slide-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3,7,18,0.10) 0%, rgba(3,7,18,0.03) 35%, rgba(3,7,18,0.12) 100%);
    pointer-events: none;
}

.portal-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 2.2rem 2.2rem;
    background: linear-gradient(180deg, rgba(3,7,18,0.00) 0%, rgba(3,7,18,0.18) 70%, rgba(3,7,18,0.36) 100%);
}

.portal-visual-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.portal-visual-overlay h2 {
    max-width: 480px;
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.portal-visual-overlay p {
    max-width: 480px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.portal-card-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(145deg, rgba(10,16,33,0.96) 0%, rgba(5,10,24,0.98) 100%);
}

.portal-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80px;
    width: 140px;
    height: 120%;
    background: rgba(255,255,255,0.04);
    transform: skewX(-18deg);
    pointer-events: none;
}

.portal-card {
    position: relative;
    z-index: 2;
    width: min(92%, 720px);
    max-width: 720px;
    padding: 1.25rem;
    border-radius: 28px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.portal-card h1 {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    margin-bottom: 0.15rem;
}

.portal-card p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.72);
}

.portal-card .navbar-brand-logo { max-height: 101px; }

.form-label {
    font-size: 0.85rem;
    color: #f4f6fa;
    font-weight: 600;
}

.mode-option {
    padding: 0.52rem 0.75rem;
}

.mode-option span {
    font-size: 0.85rem;
}

.portal-card::before {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, rgba(245,124,17,0.95), rgba(255,255,255,0.15), rgba(245,124,17,0.35));
}

.portal-muted {
    color: rgba(238,242,247,0.82) !important;
}

.mode-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.mode-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.13);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-option.active {
    background: linear-gradient(90deg, var(--brand-orange), #ff9d3f);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(245,124,17,0.22);
}

.form-control {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #ffffff !important;
    border-radius: 14px;
    padding: 0.68rem 0.88rem;
    min-height: 2.6rem;
    font-size: 0.92rem;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.52);
}

.form-control:focus {
    background: rgba(255,255,255,0.09) !important;
    border-color: rgba(245,124,17,0.72) !important;
    box-shadow: 0 0 0 0.16rem rgba(245,124,17,0.18) !important;
    color: #ffffff !important;
}

.btn-warning {
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-orange), #ff9d3f);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(245,124,17,0.18);
    padding: 0.62rem 0.95rem;
    font-size: 0.98rem;
}

.btn-outline-light {
    border-radius: 999px;
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
    padding: 0.62rem 0.92rem;
}

.info-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.section-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #091228 !important;
}

.section-label {
    color: var(--brand-orange);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 2.8vw, 3rem);
    font-weight: 700;
    margin-top: 0.65rem;
}

.lead {
    color: var(--muted) !important;
}

.card {
    background: rgba(10, 18, 34, 0.96);
}

.badge.bg-orange,
.badge.bg-orange {
    background: var(--brand-orange) !important;
}

.feature-card {
    background: rgba(10, 18, 34, 0.95);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.5rem;
}

.icon-box.bg-dark {
    background: rgba(255,255,255,0.07);
}

.feature-card h5 {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.clients-logo {
    min-height: auto;
    padding: 0.75rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
}

.brand-logo-img {
    display: block;
    width: auto;
    max-width: 100px;
    max-height: 30px;
    object-fit: contain;
    filter: none;
}

@media (min-width: 1200px) {
    .brand-logo-img {
        max-width: 150px;
        max-height: 80px;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .brand-logo-img {
        max-width: 120px;
        max-height: 60px;
    }
}

.bg-dark {
    background-color: #0a1427 !important;
}

.text-orange {
    color: var(--brand-orange) !important;
}

.btn-primary {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #ec6c0d;
    border-color: #ec6c0d;
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.65);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255,255,255,0.08);
}

.contact-info i {
    font-size: 1.1rem;
}

.card-body {
    background: rgba(9, 13, 24, 0.95);
}

footer {
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 991px) {
    .hero-section {
        min-height: calc(80vh - 100px);
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: calc(80vh - 100px);
    }

    .portal-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }

    .portal-shell::before {
        display: none;
    }

    .portal-visual {
        min-height: 320px;
    }

    .portal-card-wrapper {
        padding: 1.5rem 1rem;
    }

    .portal-card {
        width: min(96%, 640px);
        padding: 1.25rem;
        border-radius: 24px;
    }

    .portal-card::before {
        margin-bottom: 1rem;
    }

    .portal-visual-overlay {
        padding: 1.3rem 1.4rem 1.4rem;
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        background: rgba(5, 8, 20, 0.98);
        padding: 1rem;
        border-radius: 18px;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* ─── CONTRASTE: textos claros legibles sobre fondo oscuro ──
   El tema es oscuro; los colores por defecto de Bootstrap
   (text-muted oscuro, etc.) se veian ilegibles. Se fuerzan
   tonos claros con buen contraste. */
.text-muted {
    color: var(--muted) !important;
}
.feature-card p,
.feature-card .text-muted,
.section-section p.text-muted,
.about-list p,
.card-body p {
    color: var(--muted) !important;
}
.form-label {
    color: #dbe3ee;
}
.form-control,
.form-control:focus {
    color: #0f172a;
    background-color: #ffffff;
    border-color: rgba(255,255,255,0.2);
}
.contact-info strong {
    color: #eef2f7;
}
.alert p,
.modal-body p {
    color: var(--muted) !important;
}

/* ─── Fondo gris para la sección de productos en index y catálogo ─── */
#services, .catalogo-section {
    background: #152238 !important;
}
#services .section-title,
#services .lead,
#services .text-muted,
#services p,
.catalogo-section .section-title,
.catalogo-section .text-muted {
    color: #f1f5f9 !important;
}
#services .btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
#catCarrusel, .catalogo-productos-wrap {
    background: transparent !important;
}
