:root{
    --azul:#1E3A8A;
    --azul2:#2563EB;
    --dorado:#D6A84F;
    --fondo:#F8FAFC;
    --texto:#1F2937;
    --gris:#E5E7EB;
    --blanco:#FFFFFF;
    --verde:#15803D;
    --rojo:#B91C1C;
}
*{box-sizing:border-box}
body{
    margin:0;
    font-family:Inter,Arial,sans-serif;
    background:var(--fondo);
    color:var(--texto);
}
a{color:inherit}
.fc-header{
    background:var(--blanco);
    border-bottom:1px solid var(--gris);
    position:sticky;
    top:0;
    z-index:10;
}
.fc-nav{
    max-width:1180px;
    margin:auto;
    min-height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 18px;
}
.fc-logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:900;
    text-decoration:none;
    color:var(--azul);
    font-size:21px;
}
.fc-logo-mark{
    width:42px;height:42px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--azul),var(--azul2));
    color:#fff;
    display:grid;
    place-items:center;
}
.fc-menu{
    display:flex;
    gap:10px;
    align-items:center;
}
.fc-menu a{
    text-decoration:none;
    font-weight:700;
    padding:10px 13px;
    border-radius:12px;
    color:#374151;
}
.fc-menu a:hover{background:#eaf1ff;color:var(--azul)}
.fc-hero{
    background:linear-gradient(135deg,var(--azul),var(--azul2));
    color:#fff;
    padding:70px 18px;
}
.fc-hero-inner{max-width:1180px;margin:auto}
.fc-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.05;margin:0 0 15px;font-weight:900}
.fc-hero p{font-size:18px;max-width:780px;line-height:1.65;margin:0 0 24px}
.fc-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:46px;
    padding:12px 18px;
    border-radius:14px;
    border:0;
    text-decoration:none;
    font-weight:800;
    cursor:pointer;
}
.btn-primary{background:var(--azul);color:#fff}
.btn-gold{background:var(--dorado);color:#111827}
.btn-light{background:#fff;color:var(--azul)}
.btn-outline{border:1px solid var(--gris);background:#fff;color:var(--azul)}
.btn-danger{background:var(--rojo);color:#fff}
.btn-block{width:100%}
.fc-container{max-width:1180px;margin:auto;padding:26px 18px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{
    background:#fff;
    border:1px solid var(--gris);
    border-radius:22px;
    padding:22px;
    box-shadow:0 12px 28px rgba(15,23,42,.07);
}
.card h3{margin-top:0}
.form-card{max-width:460px;margin:38px auto}
label{display:block;font-weight:800;margin-bottom:7px}
.form-control{
    width:100%;
    min-height:46px;
    border:1px solid #d1d5db;
    border-radius:14px;
    padding:11px 14px;
    font-size:16px;
    outline:none;
}
.form-group{margin-bottom:15px}
.alert{
    padding:13px 15px;
    border-radius:14px;
    margin-bottom:16px;
}
.alert-error{background:#fee2e2;color:#991b1b}
.alert-success{background:#dcfce7;color:#166534}
.dashboard{
    display:grid;
    grid-template-columns:260px 1fr;
    min-height:100vh;
}
.sidebar{
    background:#0f1f4a;
    color:#fff;
    padding:20px;
}
.sidebar a{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:12px 14px;
    border-radius:12px;
    margin-bottom:6px;
}
.sidebar a:hover,.sidebar a.active{background:rgba(255,255,255,.12)}
.main-panel{padding:24px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stat-card{
    background:#fff;border:1px solid var(--gris);border-radius:20px;padding:18px;
    box-shadow:0 10px 22px rgba(15,23,42,.06)
}
.stat-number{font-size:30px;font-weight:900;color:var(--azul)}
.table-wrap{overflow:auto;background:#fff;border-radius:20px;border:1px solid var(--gris)}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{padding:12px 14px;border-bottom:1px solid var(--gris);text-align:left}
th{background:#f1f5f9}
.badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900}
.badge-success{background:#dcfce7;color:#166534}
.badge-warning{background:#fef3c7;color:#92400e}
.badge-danger{background:#fee2e2;color:#991b1b}
.badge-muted{background:#e5e7eb;color:#374151}
.mobile-bottom-nav{display:none}
@media(max-width:850px){
    .fc-menu{display:none}
    .grid,.stats{grid-template-columns:1fr}
    .dashboard{grid-template-columns:1fr}
    .sidebar{position:relative}
    .main-panel{padding:16px}
    body{padding-bottom:70px}
    .mobile-bottom-nav{
        display:grid;
        grid-template-columns:repeat(5,1fr);
        position:fixed;
        bottom:0;left:0;right:0;
        background:#fff;
        border-top:1px solid var(--gris);
        z-index:50;
    }
    .mobile-bottom-nav a{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        min-height:64px;
        font-size:11px;
        text-decoration:none;
        color:#6b7280;
        font-weight:800;
    }
}

/* FeUniversal logo oficial en encabezados públicos */
.fc-logo-mark.fc-logo-image-mark{
  padding:0 !important;
  overflow:hidden !important;
  background:transparent !important;
  color:transparent !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.fc-logo-mark.fc-logo-image-mark img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:inherit !important;
}

/* Corrección: el icono Fe debe mantenerse pequeño dentro del encabezado */
.fc-logo-mark.fc-logo-image-mark,
.fc-header .fc-logo-image-mark{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  min-height:42px !important;
  max-height:42px !important;
  flex:0 0 42px !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:14px !important;
  background:transparent !important;
}
.fc-logo-mark.fc-logo-image-mark img,
.fc-header .fc-logo-image-mark img,
.fc-logo-icon-img{
  width:100% !important;
  height:100% !important;
  max-width:42px !important;
  max-height:42px !important;
  object-fit:cover !important;
  display:block !important;
}
