/* ===========================
   ESTILOS GLOBALES - SiGem
   =========================== */

/* ---- INDEX / GENERAL ---- */
/* ----------------------------- */
/*      ESTILO GENERAL            */
/* ----------------------------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #1f2c34, #2a3b46);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

.main-content {
    display: flex;
    flex-direction: column;
    flex: 1; /* ocupa todo el espacio vertical */
    justify-content: space-between; /* hero + módulos + footer */
    padding: 2rem;
}

/* ----------------------------- */
/*           HERO                */
/* ----------------------------- */
.hero {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.hero:hover { transform: translateY(-3px); }

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}
.hero p.lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
}

/* ----------------------------- */
/*       MÓDULOS / TARJETAS      */
/* ----------------------------- */
.module-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
    align-items: stretch; /* todos los módulos igual de altos */
    margin-top: 2rem;
}
.module-card {
    flex: 1 1 220px; /* crece, se encoge, ancho mínimo */
    max-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1.8rem;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ----------------------------- */
/*           BOTONES             */
/* ----------------------------- */
.btn-acceso {
    background: linear-gradient(135deg,#f9b233,#ffc107);
    color: #000;
    border: none;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: background 0.25s, transform 0.2s;
}
.btn-acceso:hover {
    background: linear-gradient(135deg,#ffc107,#f9b233);
    transform: translateY(-2px);
    color: #000;
}

/* ----------------------------- */
/*           FOOTER              */
/* ----------------------------- */
footer {
    margin-top: auto; /* siempre al final */
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

/* ----------------------------- */
/*         RESPONSIVE            */
/* ----------------------------- */
@media(max-width: 991px) {
    .hero, .module-card { margin-bottom: 2rem; }
}
@media(max-width: 480px) {
    .module-card { flex: 1 1 100%; max-width: 100%; }
}

/* ----------------------------- */
/*          CHATBOT              */
/* ----------------------------- */
.chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg,#f9b233,#e67e00);
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform 0.2s;
}
.chat-fab:hover { transform: scale(1.12); }

.chat-fab .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #1f2c34;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.chat-window {
    position: fixed;
    bottom: 104px;
    right: 28px;
    z-index: 9998;
    width: 360px;
    height: 480px;
    background: #0b1120;
    border-radius: 20px;
    border: 1px solid #1f3056;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
    opacity: 0;
}
.chat-window.open { transform: scale(1); opacity: 1; }

.chat-header {
    background: #131c2e;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1f3056;
    flex-shrink: 0;
}
.chat-header .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.chat-header h6 {
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
}
.chat-header small { color: #4ade80; font-size: 11px; }
.chat-header .btn-close-chat {
    margin-left: auto;
    background: none;
    border: none;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}
.chat-header .btn-close-chat:hover { color: #e2e8f0; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: #1f3056; border-radius: 2px; }

.cmsg { display: flex; gap: 8px; animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.cmsg.user { flex-direction: row-reverse; }
.cavatar {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}
.cmsg.bot .cavatar { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.cmsg.user .cavatar { background: #1a2540; border: 1px solid #1f3056; }
.cbubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    max-width: calc(100% - 42px);
}
.cmsg.bot .cbubble {
    background: #131c2e;
    border: 1px solid #1f3056;
    border-top-left-radius: 3px;
    color: #e2e8f0;
}
.cmsg.user .cbubble {
    background: #1d4ed8;
    border-top-right-radius: 3px;
    color: #fff;
}
.cbubble strong { color: #60a5fa; }

.ctyping {
    display:flex;
    gap:4px;
    align-items:center;
    padding: 10px 14px;
}
.ctyping span {
    width:6px;
    height:6px;
    background:#64748b;
    border-radius:50%;
    animation:cbounce 1.2s infinite;
}
.ctyping span:nth-child(2){animation-delay:.2s}
.ctyping span:nth-child(3){animation-delay:.4s}
@keyframes cbounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }

.chat-input-area {
    padding: 10px 12px;
    background: #0b1120;
    border-top: 1px solid #1f3056;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.chat-input-area input {
    flex: 1;
    background: #131c2e;
    border: 1px solid #1f3056;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
}
.chat-input-area input:focus { border-color: #3b82f6; }
.chat-input-area input::placeholder { color: #64748b; }
.chat-input-area button {
    width: 40px; height: 40px;
    background: linear-gradient(135deg,#3b82f6,#1d4ed8);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}
.chat-input-area button:hover { transform: scale(1.08); }
.chat-input-area button:disabled { opacity: 0.5; }

@media(max-width: 480px) {
    .chat-window { width: calc(100vw - 32px); right: 16px; bottom: 90px; }
    .chat-fab { right: 16px; bottom: 16px; }
}

/* ---- LOGIN ---- */
/* ---- LOGIN MÁS PEQUEÑO ---- */
body { 
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364); 
    min-height: 100vh; 
    font-size: 0.85rem; /* texto más pequeño */
}

.card-glass { 
    background: rgba(255,255,255,0.12); 
    backdrop-filter: blur(12px); /* menos blur */
    border-radius: 12px;         /* más compacto */
    border: 1px solid rgba(255,255,255,0.15); 
    padding: 16px 20px;          /* menos padding */
    max-width: 320px;             /* más estrecho */
    margin: auto;
}

.form-control { 
    background: rgba(255,255,255,0.15); 
    border: none; 
    color: white; 
    padding: 6px 10px;           /* menos alto */
    font-size: 0.85rem;          /* más pequeño */
}

.form-control::placeholder { 
    color: #ddd; 
}

.form-control:focus { 
    background: rgba(255,255,255,0.25); 
    box-shadow: none; 
}

.btn-primary { 
    background: #f9b233; 
    border: none; 
    color: #000; 
    padding: 6px 12px;           /* menos grande */
    font-size: 0.85rem;          /* más pequeño */
    border-radius: 10px;         /* más compacto */
}


/* ---- verficiar_v2p---- */

body {
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    min-height:100vh;
}
.card-glass {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border-radius:20px;
    border:1px solid rgba(255,255,255,0.2);
}
.form-control {
    background: rgba(255,255,255,0.15);
    border:none;
    color:white;
    text-align:center;
    font-size:1.5rem;
}
.form-control::placeholder { color:#ddd; }
.form-control:focus {
    background: rgba(255,255,255,0.25);
    box-shadow:none;
}
.btn-primary { background:#f9b233; border:none; color:#000; font-weight:bold; }

/* ================================================
   DASHBOARD — Dark Theme
   Última revisión: 2026
================================================ */

/* ---- RESET BASE ---- */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-attachment: fixed;
    color: white;
}

/* ================================================
   NAVBAR
================================================ */
.navbar {
    background: rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* Botón iniciales usuario */
.navbar .dropdown.ms-auto > a.btn {
    background: #e8a917 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    font-size: .8rem !important;
    padding: 5px 14px !important;
    border-radius: 7px !important;
    letter-spacing: .5px !important;
}
.navbar .dropdown.ms-auto > a.btn:hover {
    background: #f5c842 !important;
}

/* ================================================
   DROPDOWNS
================================================ */
.dropdown-menu {
    background: rgba(15,23,42,0.95) !important;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
}
.dropdown-item {
    color: white !important;
    border-radius: 12px;
    margin: 4px 8px;
    transition: all .3s;
}
.dropdown-item:hover {
    background: rgba(249,178,51,0.35);
    color: #f9b233 !important;
    transform: translateX(6px);
}
.dropdown-item-text {
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 6px;
    color: white;
}

/* ================================================
   LAYOUT PRINCIPAL
================================================ */
#contenido-form {
    flex: 1;
    margin-top: 70px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: hidden; /* ← sin scroll aquí */
}

/* ================================================
   MAPA
================================================ */
#map {
    flex: 1;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

#map-info {
    position: absolute;
    bottom: 25px;
    left: 20px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 1000;
}

/* ================================================
   FOOTER
================================================ */
footer {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 6px 16px;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 1000;
}

/* ================================================
   DASHBOARD HOME
================================================ */
.dash-home {
    padding: 1.8rem 2.2rem 4rem;
    animation: fadeUp .45s ease both;
    overflow-y: auto;        /* ← solo cuando el contenido lo necesite */
    max-height: calc(100vh - 70px);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   HERO BAR
================================================ */
.hero-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 1.6rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero-bar::before {
    content: '';
    position: absolute;
    top: -50px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,178,51,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f9b233, transparent);
}

.hero-left h1 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.2px;
}
.hero-left h1 span { color: #f9b233; }
.hero-left p      { color: rgba(255,255,255,0.6); font-size: .875rem; margin-top: .3rem; }
.hero-left .fecha { font-size: .72rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: .4rem; }

/* Badge perfil */
.hero-badge {
    background: rgba(249,178,51,0.15);
    border: 1px solid rgba(249,178,51,0.4);
    border-radius: 50px;
    padding: .45rem 1.1rem;
    font-size: .8rem;
    color: #f9b233;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

/* Meta números */
.hero-meta {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.hero-meta-item { text-align: center; }
.hero-meta-item .val {
    font-size: 1.7rem;
    font-weight: 800;
    color: #f9b233;
    line-height: 1;
}
.hero-meta-item .lbl {
    font-size: .68rem;
    color: rgba(255,255,255,0.45);
    margin-top: .2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================
   SECTION LABEL
================================================ */
.section-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.45);
    margin-bottom: .9rem;
    font-weight: 600;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.12);
}
.section-label i { color: #f9b233; }

/* ================================================
   STAT CARDS
================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.card-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-top: 3px solid #f9b233;
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform .22s, box-shadow .22s, background .22s;
    cursor: default;
}
.card-stat:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.13);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.card-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.card-icon.gold  { background: rgba(249,178,51,0.2);  color: #f9b233; }
.card-icon.teal  { background: rgba(44,215,180,0.15); color: #2cd7b4; }
.card-icon.blue  { background: rgba(56,189,248,0.15); color: #38bdf8; }
.card-icon.green { background: rgba(74,222,128,0.15); color: #4ade80; }

.card-stat-info .val  { font-size: 1.6rem; font-weight: 800; color: #ffffff; line-height: 1; }
.card-stat-info .desc { font-size: .78rem; color: rgba(255,255,255,0.5); margin-top: .22rem; }

/* ================================================
   QUICK ACCESS CARDS
================================================ */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: .8rem;
    margin-bottom: 1.8rem;
}

.quick-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.quick-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #f9b233;
    opacity: 0;
    transition: opacity .2s;
    border-radius: 4px 0 0 4px;
}
.quick-card:hover {
    background: rgba(255,255,255,0.13);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    color: #ffffff;
    border-color: rgba(249,178,51,0.4);
    transform: translateX(3px);
}
.quick-card:hover::before { opacity: 1; }

.quick-card .q-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(249,178,51,0.15);
    color: #f9b233;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.quick-card .q-label  { font-size: .845rem; font-weight: 600; }
.quick-card .q-parent { font-size: .7rem; color: rgba(255,255,255,0.4); margin-top: .1rem; }

/* ================================================
   BUILD BANNER
================================================ */
.build-banner {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 4px solid #f9b233;
    border-radius: 14px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.5rem;
    font-size: .865rem;
    color: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.build-banner .icon  { font-size: 1.4rem; }
.build-banner strong { color: #f9b233; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 640px) {
    .dash-home  { padding: 1rem 1rem 4rem; }
    .hero-bar   { padding: 1.2rem 1rem; }
    .hero-meta  { gap: 1rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
.dash-home {
    padding: 1.8rem 2.2rem 4rem;
    animation: fadeUp .45s ease both;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
    scrollbar-width: thin;                        /* Firefox */
    scrollbar-color: rgba(249,178,51,0.4) transparent;
}

/* Chrome / Edge / Safari */
.dash-home::-webkit-scrollbar {
    width: 5px;
}
.dash-home::-webkit-scrollbar-track {
    background: transparent;
}
.dash-home::-webkit-scrollbar-thumb {
    background: rgba(249,178,51,0.4);
    border-radius: 99px;
}
.dash-home::-webkit-scrollbar-thumb:hover {
    background: rgba(249,178,51,0.75);
}

/*  inicio manuales */
/* ================================================
   MANUALES — Dark Theme
   Última revisión: 2026
================================================ */

/* ---- BASE PÁGINA MANUALES ---- */
body.manuales-page {
    display: block;
    overflow: auto;
    font-family: 'Inter', Arial, sans-serif;
    color: #e2e8f0;
    background:
        radial-gradient(ellipse at 10% 10%, rgba(249,178,51,.08) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 90%, rgba(59,130,246,.10) 0%, transparent 40%),
        linear-gradient(155deg, #080f1c 0%, #0d1524 40%, #111e35 70%, #162030 100%);
}

/* ---- TOP BAR ---- */
.man-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #e67e00, #f9b233, #3b82f6, #1d4ed8);
}

/* ---- HEADER ---- */
.man-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: rgba(13,21,36,.85);
    border-bottom: 1px solid #1f3056;
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px);
}
.man-hdr-left  { display: flex; align-items: center; gap: 14px; }
.man-hdr-div   { width: 1px; height: 26px; background: #1f3056; }
.man-hdr-logo  { font-size: 18px; font-weight: 900; letter-spacing: -.4px; color: #fff; }
.man-hdr-logo span { color: #f9b233; }
.man-hdr-sub   { font-size: 11px; color: #64748b; margin-top: 1px; }
.man-hdr-badge {
    font-size: 11px; font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #f9b233;
    background: rgba(249,178,51,.1);
    border: 1px solid rgba(249,178,51,.25);
    border-radius: 6px; padding: 3px 10px;
}

/* ---- HERO ---- */
.man-hero {
    text-align: center;
    padding: 60px 24px 44px;
    position: relative;
}
.man-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(249,178,51,.08) 0%, transparent 65%);
    pointer-events: none;
}

.man-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(249,178,51,.1);
    border: 1px solid rgba(249,178,51,.25);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: #f9b233;
    margin-bottom: 20px;
    animation: manFadeDown .5s ease both;
}

.man-title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 900; line-height: 1.07; letter-spacing: -1.5px;
    color: #fff; margin-bottom: 14px;
    animation: manFadeDown .55s .08s ease both;
}
.man-title .man-accent {
    background: linear-gradient(90deg, #e67e00, #f9b233);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.man-sub {
    font-size: 15px; color: rgba(255,255,255,.45);
    max-width: 480px; margin: 0 auto 30px; line-height: 1.7;
    animation: manFadeDown .55s .14s ease both;
}

/* ---- STATS ---- */
.man-stats {
    display: inline-flex;
    background: rgba(255,255,255,.04);
    border: 1px solid #1f3056;
    border-radius: 14px; overflow: hidden;
    margin-bottom: 24px;
    animation: manFadeDown .55s .2s ease both;
}
.man-stat {
    padding: 13px 26px;
    border-right: 1px solid #1f3056; text-align: center;
}
.man-stat:last-child { border-right: none; }
.man-stat-num {
    display: block; font-size: 20px; font-weight: 900;
    color: #f9b233; font-family: 'JetBrains Mono', monospace;
}
.man-stat-lbl { font-size: 11px; color: #64748b; font-weight: 600; letter-spacing: .5px; }

/* ---- BTN VOLVER ---- */
.man-btn-back {
    display: flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.06);
    border: 1px solid #1f3056;
    color: rgba(255,255,255,.7);
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 700;
    padding: 10px 22px; border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
    margin: 0 auto 36px; width: fit-content;
}
.man-btn-back:hover {
    background: rgba(249,178,51,.1);
    border-color: rgba(249,178,51,.3);
    color: #f9b233;
    transform: translateX(-4px);
}

/* ---- SECTION LABEL ---- */
.man-section-lbl {
    font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255,255,255,.2); text-align: center; margin-bottom: 20px;
}

/* ---- GRID ---- */
.man-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1080px; margin: 0 auto;
    padding: 0 24px 80px;
}

/* ---- CARD ---- */
.man-card {
    background: #1a2540;
    border: 1px solid #1f3056;
    border-radius: 16px;
    padding: 24px 22px 20px;
    display: flex; flex-direction: column;
    text-decoration: none; color: #e2e8f0;
    position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
    animation: manFadeUp .5s ease both;
}
.man-card:nth-child(1){animation-delay:.04s} .man-card:nth-child(2){animation-delay:.09s}
.man-card:nth-child(3){animation-delay:.14s} .man-card:nth-child(4){animation-delay:.19s}
.man-card:nth-child(5){animation-delay:.24s} .man-card:nth-child(6){animation-delay:.29s}
.man-card:nth-child(7){animation-delay:.34s} .man-card:nth-child(8){animation-delay:.39s}

.man-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249,178,51,.3);
    box-shadow: 0 20px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(249,178,51,.1);
}
.man-card:hover .man-card-bar { transform: scaleX(1); }

/* Barra top */
.man-card-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 16px 16px 0 0;
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
}
.man-bar-orange { background: linear-gradient(90deg, #e67e00, #f9b233); }
.man-bar-blue   { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.man-bar-green  { background: linear-gradient(90deg, #16a34a, #22c55e); }
.man-bar-red    { background: linear-gradient(90deg, #be123c, #ef4444); }
.man-bar-violet { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.man-bar-amber  { background: linear-gradient(90deg, #b45309, #fbbf24); }

/* Iconos */
.man-card-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 14px; flex-shrink: 0;
}
.man-icon-orange { background: rgba(249,178,51,.12); color: #f9b233;  border: 1px solid rgba(249,178,51,.2); }
.man-icon-blue   { background: rgba(59,130,246,.12); color: #3b82f6;  border: 1px solid rgba(59,130,246,.2); }
.man-icon-green  { background: rgba(34,197,94,.12);  color: #22c55e;  border: 1px solid rgba(34,197,94,.2); }
.man-icon-red    { background: rgba(239,68,68,.12);  color: #ef4444;  border: 1px solid rgba(239,68,68,.2); }
.man-icon-violet { background: rgba(124,58,237,.14); color: #c4b5fd;  border: 1px solid rgba(124,58,237,.22); }
.man-icon-amber  { background: rgba(251,191,36,.12); color: #fbbf24;  border: 1px solid rgba(251,191,36,.22); }

/* Badge NUEVO */
.man-badge-new {
    position: absolute; top: 14px; right: 14px;
    background: linear-gradient(135deg, #e67e00, #f9b233);
    color: #fff; font-size: 9px; font-weight: 800;
    letter-spacing: 1.2px; padding: 3px 9px;
    border-radius: 99px; text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(230,126,0,.45);
    animation: manPulseBadge 2s ease-in-out infinite;
}

.man-card-title {
    font-size: 14.5px; font-weight: 800; color: #f1f5f9;
    margin-bottom: 7px; line-height: 1.3;
}
.man-card-desc {
    font-size: 12.5px; color: rgba(255,255,255,.4);
    line-height: 1.65; flex: 1; margin-bottom: 16px;
}

/* Footer card */
.man-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #1f3056;
}
.man-card-tag {
    font-size: 10.5px; font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #64748b;
    background: rgba(255,255,255,.05);
    padding: 3px 9px; border-radius: 5px;
}
.man-card-dl {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    color: #f9b233; transition: gap .2s;
}
.man-card:hover .man-card-dl { gap: 10px; }

/* ---- FOOTER PÁGINA ---- */
.man-footer {
    text-align: center; color: #64748b;
    font-size: 11.5px; padding: 18px 20px;
    border-top: 1px solid #1f3056;
    font-family: 'JetBrains Mono', monospace;
}

/* ---- KEYFRAMES (prefijados para no colisionar) ---- */
@keyframes manFadeDown {
    from { opacity:0; transform:translateY(-16px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes manFadeUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes manPulseBadge {
    0%,100% { box-shadow: 0 3px 10px rgba(230,126,0,.45); }
    50%      { box-shadow: 0 3px 22px rgba(230,126,0,.85); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
    .man-header  { padding: 0 20px; }
    .man-hdr-sub { display: none; }
    .man-hero    { padding: 44px 20px 32px; }
    .man-stats   { flex-direction: column; }
    .man-stat    { border-right: none; border-bottom: 1px solid #1f3056; }
    .man-stat:last-child { border-bottom: none; }
    .man-grid    { padding: 0 16px 60px; }
}
/* fin manuales */