
:root{
  --mcc-blue:#2f3e91;
  --mcc-blue-dark:#26357f;
  --mcc-red:#ef2b35;
  --mcc-yellow:#ffc533;
  --mcc-green:#8cc63f;
  --ink:#202530;
  --muted:#6b7280;
  --line:#dde2eb;
}

*{box-sizing:border-box}
html,body{min-height:100%}

body{
  margin:0;
  color:var(--ink);
  background:
    linear-gradient(135deg,#32357d 0%,#3d4287 45%,#4a5192 100%);
  background-attachment:fixed;
  min-height:100vh;
}

.page-wrap{
  width:100%;
  max-width:1140px;
  margin:0 auto;
  padding:26px 16px 46px;
}

.main-card{
  background:#fff;
  border-radius:22px;
  box-shadow:0 18px 48px rgba(12,20,65,.26);
  overflow:hidden;
}

/* ENCABEZADO EN LA COMPOSICIÓN SOLICITADA */
.top-card-header{
  position:relative;
  background:#fff;
  padding:14px 18px 18px;
  border-bottom:1px solid #eceff5;
}

.top-card-header::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:4px;
  background:linear-gradient(
    90deg,
    var(--mcc-red) 0 25%,
    var(--mcc-yellow) 25% 50%,
    var(--mcc-green) 50% 75%,
    var(--mcc-blue) 75% 100%
  );
}

.header-row{
  display:grid;
  grid-template-columns:170px minmax(0,1fr) 62px;
  align-items:start;
  gap:22px;
}

.logo-slot{
  min-height:96px;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding:4px 0 0 4px;
}

.brand-logo{
  display:block;
  width:225px;
  max-width:100%;
  height:auto;
  max-height:64px;
  object-fit:contain;
  object-position:left top;
}

.header-center{
  min-width:0;
  max-width:620px;
  justify-self:center;
  text-align:center;
  padding:6px 12px 0;
}

.header-title{
  color:#20232b;
  font-size:clamp(1.34rem,2.25vw,2rem);
  line-height:1.1;
  font-weight:800;
  margin:0 0 8px;
  text-transform:uppercase;
}

.header-subtitle{
  margin:0;
  color:#3f4652;
  font-weight:700;
  font-size:1rem;
}

.header-note{
  margin:7px 0 0;
  color:var(--muted);
  font-size:.92rem;
}

.admin-slot{
  min-height:96px;
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  padding-top:4px;
}

.admin-link{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  color:var(--mcc-blue);
  background:#fff;
  border:1px solid #d9deeb;
  border-radius:11px;
  text-decoration:none;
  box-shadow:0 3px 10px rgba(22,31,85,.06);
}

.admin-link:hover{
  color:#fff;
  background:var(--mcc-blue);
  border-color:var(--mcc-blue);
}

.content-area{
  padding:20px 22px 24px;
}

.form-card{
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:none;
  margin-bottom:13px;
}

.section-title{
  padding:10px 14px;
  text-align:center;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.15px;
  color:#30343d;
  background:#eceef2;
  border-bottom:1px solid #dde1e8;
}

.form-card .card-body{padding:17px}
.form-label{font-weight:700;color:#343944}
.required::after{content:" *";color:#dc3545}

.form-control,.form-select{
  min-height:43px;
  border-radius:8px;
  border-color:#d6dae4;
}

textarea.form-control{min-height:auto}

.form-control:focus,.form-select:focus{
  border-color:#6873ca;
  box-shadow:0 0 0 .18rem rgba(47,62,145,.11);
}

.form-check-input:checked{
  background-color:var(--mcc-blue);
  border-color:var(--mcc-blue);
}

.form-footer{
  position:static !important;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:14px 0 4px;
  margin:0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.btn-submit{
  min-width:min(100%,300px);
  padding:12px 28px;
  border:0;
  border-radius:9px;
  font-weight:800;
  color:#fff;
  background:var(--mcc-blue);
  box-shadow:0 7px 18px rgba(47,62,145,.20);
}

.btn-submit:hover{
  color:#fff;
  background:var(--mcc-blue-dark);
}

/* Dashboard */
.dashboard-body{background:#f5f7fb}
.dashboard-nav{background:linear-gradient(90deg,#1e2c70,#36459b)}
.stat-card{border:0;border-radius:16px;box-shadow:0 7px 20px rgba(36,48,107,.09)}
.data-card{border:0;border-radius:16px;box-shadow:0 7px 20px rgba(36,48,107,.09);overflow:hidden}

/* Vistas simples */
body > .page-wrap > .public-header{
  border-radius:18px;
  box-shadow:0 15px 40px rgba(13,22,70,.24);
  background:#fff;
  padding:22px;
}

body > .page-wrap > .public-header .brand-logo{
  width:170px;
  max-width:170px;
  max-height:54px;
}

@media(max-width:767.98px){
  .page-wrap{
    padding:10px 8px 26px;
  }

  .main-card{
    border-radius:15px;
  }

  .top-card-header{
    padding:10px 10px 14px;
  }

  .header-row{
    grid-template-columns:95px minmax(0,1fr) 40px;
    gap:8px;
  }

  .logo-slot,
  .admin-slot{
    min-height:78px;
  }

  .brand-logo{
    width:98px;
    max-width:98px;
    max-height:44px;
  }

  .admin-link{
    width:36px;
    height:36px;
    border-radius:10px;
  }

  .header-center{
    max-width:none;
    padding:2px 0 0;
  }

  .header-title{
    font-size:1rem;
    margin-bottom:5px;
  }

  .header-subtitle{
    font-size:.79rem;
  }

  .header-note{
    font-size:.72rem;
    line-height:1.22;
    margin-top:5px;
  }

  .content-area{
    padding:13px 10px 17px;
  }

  .form-card{
    border-radius:9px;
  }

  .form-card .card-body{
    padding:13px;
  }

  .section-title{
    font-size:.88rem;
    padding:9px 10px;
  }

  .form-footer{
    padding:10px 0 2px;
  }
}
