/* ============================================================
   JER ÁGUILAS DORADAS 2026 - Stylesheet
   Colores: Rojo #CC0000, Amarillo #FFE100, Azul #010370, Naranja #FF6600
   ============================================================ */

:root {
    --jer-red: #CC0000;
    --jer-red-dark: #a00000;
    --jer-yellow: #FFE100;
    --jer-blue: #010370;
    --jer-orange: #FF6600;
    --jer-white: #ffffff;
    --jer-gray: #f4f5f7;
    --jer-text: #1a1a2e;
    --jer-card-bg: #0d0e3a;
}

/* ---- TIPOGRAFÍA ---- */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f0f2f5;
    color: var(--jer-text);
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ---- NAVBAR ---- */
.navbar-jer {
    background: var(--jer-white);
    border-bottom: 3px solid var(--jer-red);
}
.navbar-jer .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--jer-text) !important;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.navbar-jer .nav-link:hover,
.navbar-jer .nav-link.active {
    background: var(--jer-red);
    color: #fff !important;
}
.navbar-brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--jer-text);
    letter-spacing: -0.5px;
}
.nav-divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: #ddd;
    vertical-align: middle;
    margin: 0 4px;
}
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--jer-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.navbar-toggler {
    outline: none !important;
    box-shadow: none !important;
}

/* ---- LOGIN PAGE ---- */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--jer-blue) 0%, #030a7a 40%, var(--jer-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}
.login-header {
    background: #f8f9fa;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border-bottom: 2px solid #eee;
}
.login-body {
    padding: 2rem;
}
.login-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--jer-blue);
    font-size: 1.4rem;
    margin: 0;
}
.login-subtitle {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.form-control-jer {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-control-jer:focus {
    border-color: var(--jer-red);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
}
.btn-jer-primary {
    background: var(--jer-red);
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.btn-jer-primary:hover {
    background: var(--jer-red-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(204,0,0,0.35);
}

/* ---- BANNER CAROUSEL ---- */
.banner-carousel {
    border-radius: 0;
    overflow: hidden;
}
.banner-carousel .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

/* ---- HEADER USUARIO ---- */
.user-header {
    background: linear-gradient(135deg, var(--jer-blue) 0%, #030a7a 100%);
    padding: 1.5rem 0 1rem;
    color: #fff;
}
.user-header .user-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin: 0;
}
.user-header .user-meta {
    font-size: 0.85rem;
    opacity: 0.75;
}
.ultima-actualizacion {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 0.4rem 0;
    background: rgb(0 0 0);
}

/* ---- TARJETAS DE PRODUCTOS ---- */
.productos-section {
    padding: 1.5rem 0 2rem;
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
}
.producto-card {
    background: #010370;
    border-radius: 16px;
    padding: 1.25rem 0.75rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: default;
}
.producto-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,225,0,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.producto-card .producto-logo {
    height: 52px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.producto-card .producto-pct {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.producto-card .btn-ver-mas {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    margin-top: 0.25rem;
}
.producto-card .btn-ver-mas:hover {
    background: var(--jer-yellow);
    color: var(--jer-blue);
    border-color: var(--jer-yellow);
}

/* Barra de progreso mini en tarjeta */
.producto-mini-bar {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 0.6rem auto 0.5rem;
    width: 80%;
    overflow: hidden;
}
.producto-mini-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}

/* ---- PÁGINA DETALLE PRODUCTO ---- */
.detalle-header {
    background: var(--jer-blue);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}
.card-presupuesto {
    border: 2px solid var(--jer-yellow);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.pct-grande {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 1;
}
.card-busqueda {
    border: 2px solid var(--jer-blue);
    border-radius: 16px;
    padding: 1.25rem;
    background: #fff;
}
.tabla-ventas {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--jer-blue);
}
.tabla-ventas thead {
    background: var(--jer-blue);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
}
.tabla-ventas tbody tr:hover {
    background: #f0f4ff;
}

/* ---- ESTRELLAS PAGE ---- */
.estrellas-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.tabla-estrellas {
    font-size: 0.82rem;
    min-width: 900px;
}
.tabla-estrellas thead th {
    background: var(--jer-blue);
    color: #fff;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    padding: 0.6rem 0.4rem;
    white-space: nowrap;
}
.tabla-estrellas thead th:first-child {
    text-align: left;
    min-width: 130px;
}
.tabla-estrellas tbody td {
    text-align: center;
    vertical-align: middle;
    padding: 0.4rem 0.3rem;
}
.tabla-estrellas tbody td:first-child {
    text-align: left;
    font-weight: 600;
    padding-left: 0.75rem;
    background: #fafafa;
}
.fila-estrella {
    background: var(--jer-blue) !important;
    color: #fff;
}
.fila-estrella td:first-child {
    background: var(--jer-blue) !important;
    color: #fff !important;
}
.icon-estrella-si {
    color: var(--jer-yellow);
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 3px rgba(255,200,0,0.5));
}
.icon-estrella-no {
    color: var(--jer-red);
    font-size: 1.1rem;
}
.pct-cell {
    font-weight: 600;
    font-size: 0.8rem;
}

/* ---- INCENTIVOS PAGE ---- */
.incentivo-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    background: #fff;
}
.incentivo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.incentivo-card img {
    width: 100%;
    height: auto;
    display: block;
}
.incentivo-card .incentivo-label {
    padding: 0.9rem;
    background: var(--jer-red);
    color: #fff;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ---- CONTACTO PAGE ---- */
.card-contacto {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}
.contacto-header {
    background: linear-gradient(135deg, var(--jer-blue), #030a7a);
    padding: 2rem;
    color: #fff;
    text-align: center;
}

/* ---- CONDICIONES PAGE ---- */
.pdf-viewer {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ---- FOOTER ---- */
.footer-jer {
    background: var(--jer-red);
    color: #fff;
    margin-top: 0;
}
.footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--jer-yellow);
    line-height: 1;
    font-style: italic;
    letter-spacing: -1px;
}
.footer-social {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    margin-top: 0.25rem;
}
.footer-social:hover {
    color: var(--jer-yellow);
}
.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.btn-footer-contact {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s;
}
.btn-footer-contact:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}
.footer-bottom {
    background: rgba(0,0,0,0.2);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
}

/* ---- CARRUSEL LOGOS ---- */
.carrusel-logos {
    background: #f0f2f5;
    padding: 0.75rem 0;
    overflow: hidden;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
    margin-bottom: 0 !important;
}
.carrusel-logos-inner {
    display: flex;
    gap: 2.5rem;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
    will-change: transform;
}
.carrusel-logos-inner img {
    height: 38px;
    width: auto;
    opacity: 1;
    filter: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.carrusel-logos-inner img:hover {
    opacity: 0.75;
}
@keyframes scrollLogos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}
/* Detener animación al hacer hover */
.carrusel-logos:hover .carrusel-logos-inner {
    animation-play-state: paused;
}

/* ---- ALERTAS / MISC ---- */
.alert-jer {
    border-radius: 12px;
    border: none;
    font-weight: 600;
}
.page-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--jer-blue);
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--jer-yellow);
    display: inline-block;
    margin-bottom: 1.25rem;
}
.btn-filtro {
    background: var(--jer-red);
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.45rem 1.25rem;
    font-size: 0.88rem;
    transition: background 0.2s;
}
.btn-filtro:hover {
    background: var(--jer-red-dark);
    color: #fff;
}
.select-jer {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
}
.select-jer:focus {
    border-color: var(--jer-red);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
    outline: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .producto-card .producto-pct {
        font-size: 1.6rem;
    }
    .banner-carousel .carousel-item img {
        height: auto;
    }
}
@media (max-width: 360px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
