/* =============================================
   TEAM ANDES REWORK — DARK THEME GLOBAL
   Paleta: Navy #010b1f | Azul #0039A6 | Rojo #D52B1E
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Poppins:wght@300;400;500;600;700&display=swap');

/* =============================================
   VARIABLES
============================================= */
:root {
    --color-bg: #010b1f;
    --color-bg-2: #05091a;
    --color-blue: #0039A6;
    --color-red: #D52B1E;
    --color-white: #ffffff;
    --color-text: rgba(255, 255, 255, 0.82);
    --color-muted: rgba(255, 255, 255, 0.4);
    --color-border: rgba(255, 255, 255, 0.09);
    --font-main: 'Poppins', sans-serif;
    --font-display: 'Russo One', sans-serif;
    --bs-body-color: rgba(255, 255, 255, 0.82);
    --bs-body-bg: #010b1f;
}

/* =============================================
   RESET & BASE
============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fondo de estrellas fijo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, .55) 0%, transparent 100%),
        radial-gradient(1px 1px at 22% 38%, rgba(255, 255, 255, .40) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 8%, rgba(255, 255, 255, .65) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 22%, rgba(255, 255, 255, .35) 0%, transparent 100%),
        radial-gradient(1px 1px at 42% 52%, rgba(255, 255, 255, .45) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 68% 58%, rgba(255, 255, 255, .55) 0%, transparent 100%),
        radial-gradient(1px 1px at 12% 68%, rgba(255, 255, 255, .30) 0%, transparent 100%),
        radial-gradient(1px 1px at 88% 78%, rgba(255, 255, 255, .45) 0%, transparent 100%),
        radial-gradient(1px 1px at 32% 82%, rgba(255, 255, 255, .35) 0%, transparent 100%),
        radial-gradient(1px 1px at 92% 42%, rgba(255, 255, 255, .40) 0%, transparent 100%),
        radial-gradient(1px 1px at 3% 45%, rgba(255, 255, 255, .30) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 92%, rgba(255, 255, 255, .35) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 30%, rgba(255, 255, 255, .40) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 75%, rgba(255, 255, 255, .30) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Brillo azul ambiente superior-izquierdo */
body::after {
    content: '';
    position: fixed;
    top: -150px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 57, 166, .16) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Todo el contenido sobre las estrellas */
body>* {
    position: relative;
    z-index: 1;
}

/* Tipografía base */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-white);
}

p {
    color: var(--color-text);
}

a {
    color: #6ea8fe;
}

a:hover {
    color: #9ec5fe;
}

.text-muted {
    color: var(--color-muted) !important;
}

.text-primary {
    color: #6ea8fe !important;
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
    background: rgba(5, 9, 26, 0.90) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 57, 166, 0.30);
    padding: 0.55rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    pointer-events: none;
    overflow: visible;
    height: auto;
}

.navbar * {
    pointer-events: auto;
}

.navbar>.container {
    position: relative;
    z-index: 1001;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, .65) !important;
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.55rem 1rem !important;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    border-bottom-color: var(--color-blue);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--color-red);
}

/* Botón "Inicia Sesión" en navbar */
.btn-navbar-grad {
    background: linear-gradient(90deg, #0039A6 0%, #D52B1E 100%);
    border: none;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem !important;
    border-radius: 50px;
    letter-spacing: 0.05em;
    border-bottom: none !important;
    transition: transform .15s, box-shadow .2s;
}

.btn-navbar-grad:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(213, 43, 30, .4);
    border-bottom: none !important;
}

/* Dropdown usuario */
.dropdown-menu {
    background: rgba(5, 9, 26, 0.97) !important;
    border: 1px solid rgba(0, 57, 166, 0.3) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(14px);
    min-width: 180px;
}

.dropdown-item {
    color: rgba(255, 255, 255, .7) !important;
    font-size: 0.88rem;
    transition: background .2s, color .2s;
}

.dropdown-item:hover {
    background: rgba(0, 57, 166, .2) !important;
    color: #fff !important;
}

.dropdown-item.text-danger {
    color: #ff6b6b !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, .08) !important;
}

/* =============================================
   HERO
============================================= */
.hero-section {
    min-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 160px;
    /* espacio para la montaña */
}

/* Brillo rojo inferior-derecho */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -60px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(213, 43, 30, .13) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

/* Logo animado */
.hero-logo {
    width: 130px;
    filter: drop-shadow(0 0 18px rgba(0, 57, 166, .7)) drop-shadow(0 0 36px rgba(213, 43, 30, .3)) brightness(0) invert(1);
    animation: logo-pulse 3.5s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

@keyframes logo-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 14px rgba(0, 57, 166, .6)) drop-shadow(0 0 28px rgba(213, 43, 30, .25)) brightness(0) invert(1);
    }

    50% {
        filter: drop-shadow(0 0 32px rgba(0, 57, 166, .9)) drop-shadow(0 0 56px rgba(213, 43, 30, .45)) brightness(0) invert(1);
    }
}

/* Badge "En vivo" */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

/* Título principal */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    color: #fff;
    line-height: 1.05;
    letter-spacing: .02em;
    margin-bottom: .4rem;
}

.hero-title .grad-text {
    background: linear-gradient(90deg, #4d8fff 0%, #ff6b5b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--color-muted);
    font-size: clamp(.82rem, 1.5vw, .95rem);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 2.4rem;
}

/* CTAs */
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    background: linear-gradient(90deg, #0039A6 0%, #D52B1E 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: .8rem 2.2rem;
    border-radius: 50px;
    font-size: .9rem;
    letter-spacing: .06em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: transform .15s, box-shadow .2s;
}

.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(213, 43, 30, .42), 0 4px 14px rgba(0, 57, 166, .3);
}

.btn-hero-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
    padding: .8rem 2.2rem;
    border-radius: 50px;
    font-size: .9rem;
    letter-spacing: .06em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: border-color .2s, color .2s, background .2s;
}

.btn-hero-outline:hover {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

/* Divisor decorativo */
.hero-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    max-width: 320px;
    margin: 0 auto 0;
    color: rgba(255, 255, 255, .2);
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 57, 166, .5), transparent);
}

/* Montaña decorativa hero */
.mountain-hero {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   SECCIÓN CATÁLOGO
============================================= */
.catalogo-section {
    padding: 1rem 0 5rem;
    position: relative;
}

/* Header de sección */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #6ea8fe;
    background: rgba(0, 57, 166, .12);
    border: 1px solid rgba(0, 57, 166, .3);
    border-radius: 50px;
    padding: .25rem .9rem;
    margin-bottom: .75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff;
    margin-bottom: .4rem;
}

.section-title .grad-text {
    background: linear-gradient(90deg, #4d8fff, #ff6b5b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: .88rem;
}

/* Wrapper oscuro del carousel */
.carousel-dark-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 57, 166, .12);
}

/* Slides */
#catalogoCarousel .carousel-item {
    height: 420px;
}

#catalogoCarousel .carousel-item img {
    object-fit: cover;
    height: 420px;
    width: 100%;
    filter: brightness(40%);
}

/* Overlay degradado sobre imágenes */
#catalogoCarousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 11, 31, .92) 0%, rgba(1, 11, 31, .1) 55%, transparent 100%);
    pointer-events: none;
}

/* Slide 1 sin imagen */
.carousel-bg {
    background: linear-gradient(135deg, #010b1f 0%, #001233 50%, #130018 100%);
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-bg::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 57, 166, .28) 0%, transparent 65%);
}

.carousel-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(213, 43, 30, .18) 0%, transparent 65%);
}

/* Captions */
.carousel-caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 2.5rem 2rem 2.5rem !important;
    background: none !important;
    text-align: center;
    z-index: 2;
}

.catalogo-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    color: #fff;
    letter-spacing: .04em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .8);
    margin-bottom: .4rem;
}

.catalogo-desc {
    font-size: clamp(.82rem, 1.4vw, .95rem);
    color: rgba(255, 255, 255, .72);
    margin-bottom: 1rem;
}

/* Botones de slide (inline style override) */
#catalogoCarousel .btn {
    border-radius: 50px !important;
    padding: .5rem 1.6rem !important;
    font-size: .82rem !important;
    letter-spacing: .05em !important;
}

/* Indicators */
#catalogoCarousel .carousel-indicators {
    bottom: 0.6rem;
    gap: 0.3rem;
}

#catalogoCarousel .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, .35);
    border: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 3px;
    transition: background-color .3s, width .3s;
    opacity: 1;
}

#catalogoCarousel .carousel-indicators .active {
    background: linear-gradient(90deg, #0039A6, #D52B1E);
    width: 24px;
    border-radius: 4px;
}

/* Controles prev/next */
.carousel-control-prev,
.carousel-control-next {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 .8rem;
    opacity: 1;
    transition: background .2s, border-color .2s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 57, 166, .35);
    border-color: rgba(0, 57, 166, .5);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

/* =============================================
   MODAL ANUNCIO
============================================= */
.modal-content {
    background: rgba(5, 9, 26, .97) !important;
    border: 1px solid rgba(0, 57, 166, .35) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(16px);
    color: var(--color-text);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

.modal-title {
    color: #fff !important;
    font-family: var(--font-display);
}

.btn-close {
    filter: invert(1) opacity(.65);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
}

.modal-footer .btn-primary {
    background: linear-gradient(90deg, #0039A6 0%, #D52B1E 100%);
    border: none;
    border-radius: 50px;
    padding: .45rem 1.4rem;
}

/* =============================================
   FOOTER
============================================= */
footer {
    background: rgba(0, 4, 14, .85);
    border-top: 1px solid rgba(0, 57, 166, .2);
    padding: 2.2rem 0 2.5rem;
    position: relative;
    text-align: center;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0039A6 35%, #D52B1E 65%, transparent);
}

.social-label {
    font-family: var(--font-display);
    font-size: .65rem;
    letter-spacing: .25em;
    color: rgba(255, 255, 255, .3);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.social-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    font-size: 1.55rem;
    color: rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .25s, transform .2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-links a i {
    font-size: 1.3rem;
    line-height: 1;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links a:nth-child(1):hover {
    color: #1877f2;
}

.social-links a:nth-child(2):hover {
    color: #e1306c;
}

.social-links a:nth-child(3):hover {
    color: #ff0000;
}

/* =============================================
   ANIMACIONES & UTILIDADES
============================================= */
.imagenopaca {
    filter: brightness(40%) !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

.reveal {
    animation: fadeUp .65s ease both;
}

.reveal-d1 {
    animation-delay: .1s;
}

.reveal-d2 {
    animation-delay: .2s;
}

.reveal-d3 {
    animation-delay: .35s;
}

.reveal-d4 {
    animation-delay: .5s;
}

/* =============================================
   FIX MODAL Z-INDEX (Por encima del navbar)
============================================= */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop,
.modal-backdrop.show {
    z-index: 9998 !important;
}

.modal-dialog {
    z-index: 10000 !important;
}

.modal-content {
    z-index: 10001 !important;
}

body.modal-open {
    overflow: auto !important;
}