:root{
  --bg-start:#161b2f;
  --bg-end:#0f1726;
  --panel:#222b3c;
  --panel-soft:#2b364b;
  --panel-strong:#34425d;
  --text:#f5f7fb;
  --muted:#d9e1f2;
  --line:#4a5a7d;
  --accent:#ffbf3c;
  --accent-2:#63d2ff;
  --accent-3:#8ef0c4;
  --danger:#ff7373;
  --ok:#8ef0c4;
  --radius:18px;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(99,210,255,.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255,191,60,.07), transparent 24%),
    linear-gradient(180deg, #13203a 0%, #101b31 52%, #101b31 100%);
}

a{color:inherit}

.app-topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(15,23,38,.90);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.app-topbar-inner{
  width:100%;
  max-width:none;
  margin:0;
  padding:12px 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.3px;
}

.brand img{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:12px;
}

.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-title small{
  color:var(--accent);
  font-size:11px;
  font-weight:700;
  margin-top:4px;
}

.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.nexus-btn{
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 15px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  color:#2a1b00;
  background:linear-gradient(180deg, #ffd155, #f7b500);
  box-shadow:0 10px 22px rgba(247,181,0,.20);
}

.nexus-btn.secondary{
  color:#06172f;
  background:linear-gradient(180deg, #7be0ff, #3796ff);
}

.nexus-btn.ghost{
  color:var(--text);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  box-shadow:none;
}

.nexus-btn.danger{
  color:#fff;
  background:linear-gradient(180deg, #ff7777, #d94141);
}

.public-wrap{
  width:100%;
  max-width:none;
  margin:0;
  padding:24px 26px 34px;
}

.hero-nexus{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:26px;
  padding:36px;
  background:
    radial-gradient(circle at 90% 20%, rgba(99,210,255,.16), transparent 30%),
    linear-gradient(180deg, rgba(43,54,75,.96), rgba(34,43,60,.96));
  box-shadow:0 18px 48px rgba(0,0,0,.28);
}

.hero-nexus h1{
  margin:0 0 10px;
  font-size:clamp(34px, 5vw, 56px);
  color:#fff9ee;
}

.hero-nexus p{
  margin:0;
  max-width:780px;
  color:var(--muted);
  line-height:1.55;
  font-size:17px;
}

.home-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  margin-top:18px;
}

.nexus-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:24px;
  background:linear-gradient(180deg, rgba(43,54,75,.96), rgba(34,43,60,.96));
  box-shadow:0 16px 36px rgba(0,0,0,.22);
}

.nexus-card h2,
.nexus-card h3{
  margin-top:0;
  color:#fff9ee;
}

.nexus-card p{
  color:var(--muted);
  line-height:1.5;
}

.note-nexus{
  margin-top:18px;
  border:1px solid rgba(99,210,255,.22);
  border-radius:18px;
  padding:14px 16px;
  background:rgba(99,210,255,.08);
  color:#dcecff;
}

.soffast-footer{
  margin-top:22px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  color:rgba(245,247,251,.72);
  font-size:12px;
}

.soffast-footer img{
  width:28px;
  height:28px;
  object-fit:contain;
}

.calendar-layout{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:18px;
  align-items:start;
  width:100%;
}

.request-panel{
  position:sticky;
  top:86px;
  width:100%;
}

.form-group{
  margin-bottom:13px;
}

.form-group label{
  display:block;
  margin-bottom:6px;
  color:#fff4d7;
  font-size:13px;
  font-weight:800;
}

.nexus-input,
.nexus-select,
.nexus-textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px 12px;
  color:var(--text);
  background:rgba(255,255,255,.09);
  outline:none;
}

.nexus-input:focus,
.nexus-select:focus,
.nexus-textarea:focus{
  border-color:rgba(255,191,60,.75);
  box-shadow:0 0 0 4px rgba(255,191,60,.14);
}

.nexus-textarea{
  min-height:82px;
  resize:vertical;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.calendar-shell{
  overflow:hidden;
  min-width:0;
  width:100%;
}

.calendar-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.calendar-title{
  font-size:20px;
  font-weight:900;
  color:#fff9ee;
}

.calendar-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.calendar-grid{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  overflow:auto;
  background:rgba(13,22,38,.70);
}

.calendar-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:980px;
}

.calendar-table th,
.calendar-table td{
  border-right:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.09);
}

.calendar-table th{
  position:sticky;
  top:0;
  z-index:2;
  background:rgba(18,25,39,.96);
  color:#fff4d7;
  padding:10px 8px;
  font-size:13px;
  text-align:center;
}

.calendar-table th:first-child{
  left:0;
  z-index:3;
}

.hour-cell{
  width:72px;
  min-width:72px;
  color:var(--muted);
  background:rgba(18,25,39,.82);
  font-size:12px;
  text-align:center;
  vertical-align:top;
  padding:10px 6px;
}

.slot-cell{
  height:54px;
  min-width:120px;
  padding:5px;
  vertical-align:top;
  cursor:pointer;
  background:rgba(255,255,255,.025);
}

.slot-cell:hover{
  background:rgba(99,210,255,.10);
}

.slot-cell.selected{
  background:rgba(255,191,60,.20);
  box-shadow:inset 0 0 0 2px rgba(255,191,60,.55);
}

.slot-badge{
  display:block;
  width:100%;
  border-radius:10px;
  padding:5px 6px;
  margin-bottom:4px;
  font-size:11px;
  line-height:1.2;
  font-weight:800;
}

.slot-badge.pendiente{
  color:#06172f;
  background:linear-gradient(180deg, #7be0ff, #3796ff);
}

.slot-badge.aprobado,
.slot-badge.entregado{
  color:#2a1b00;
  background:linear-gradient(180deg, #ffd155, #f7b500);
}

.slot-badge.rechazado,
.slot-badge.cancelado{
  color:#fff;
  background:rgba(255,115,115,.75);
}

.slot-badge.devuelto{
  color:#ecf2ff;
  background:rgba(255,255,255,.18);
}

.capacity-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(142,240,196,.28);
  border-radius:999px;
  padding:8px 12px;
  color:#dffff1;
  background:rgba(142,240,196,.10);
  font-weight:800;
  font-size:13px;
}

.alert-box{
  display:none;
  margin:12px 0;
  padding:11px 12px;
  border-radius:13px;
  font-weight:700;
  line-height:1.35;
}

.alert-box.ok{
  display:block;
  color:#073b25;
  background:#baf7d8;
}

.alert-box.error{
  display:block;
  color:#fff;
  background:rgba(255,115,115,.78);
}

.admin-layout{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  min-height:100vh;
}

.admin-sidebar{
  background:rgba(15,23,38,.94);
  border-right:1px solid rgba(255,255,255,.10);
  padding:18px;
}

.admin-sidebar .brand{
  margin-bottom:20px;
}

.admin-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  margin-bottom:6px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  font-weight:700;
}

.admin-nav a:hover{
  background:rgba(255,255,255,.09);
  color:var(--accent);
}

.admin-main{
  padding:22px;
}

.admin-header-card,
.admin-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:22px;
  background:linear-gradient(180deg, rgba(43,54,75,.96), rgba(34,43,60,.96));
  box-shadow:0 16px 36px rgba(0,0,0,.22);
}

.admin-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:16px;
}

.metric{
  font-size:34px;
  font-weight:900;
  color:var(--accent);
  margin:8px 0 0;
}

.table-wrap{
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
}

.nexus-table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
  background:rgba(13,22,38,.60);
}

.nexus-table th,
.nexus-table td{
  padding:11px 10px;
  border-bottom:1px solid rgba(255,255,255,.09);
  text-align:left;
  vertical-align:top;
}

.nexus-table th{
  color:#fff4d7;
  background:rgba(18,25,39,.92);
  font-size:13px;
}

.estado-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.estado-pendiente{background:#63d2ff;color:#06172f}
.estado-aprobado{background:#ffbf3c;color:#2a1b00}
.estado-entregado{background:#8ef0c4;color:#06351f}
.estado-devuelto{background:rgba(255,255,255,.18);color:#fff}
.estado-rechazado,
.estado-cancelado{background:#ff7373;color:#fff}

.inline-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.inline-actions form{
  display:inline;
}

.login-page{
  display:grid;
  min-height:100vh;
  place-items:center;
  padding:20px;
}

.login-card{
  width:min(430px, 94vw);
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  padding:28px;
  background:linear-gradient(180deg, rgba(43,54,75,.96), rgba(34,43,60,.96));
  box-shadow:0 18px 48px rgba(0,0,0,.30);
}

.login-card h1{
  margin:14px 0 8px;
  color:#fff9ee;
}

.login-card p{
  color:var(--muted);
}

.login-logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.login-logo img{
  width:54px;
  height:54px;
  object-fit:contain;
}

@media (min-width:1600px){
  .calendar-layout{
    grid-template-columns:380px minmax(0,1fr);
  }

  .calendar-table{
    min-width:1200px;
  }

  .slot-cell{
    min-width:140px;
  }
}

@media (max-width:920px){
  .home-grid,
  .calendar-layout,
  .admin-layout{
    grid-template-columns:1fr;
  }

  .request-panel{
    position:static;
  }

  .admin-sidebar{
    position:static;
  }
}

@media (max-width:560px){
  .public-wrap,
  .admin-main,
  .app-topbar-inner{
    padding:16px;
  }

  .hero-nexus{
    padding:24px;
  }

  .form-row{
    grid-template-columns:1fr;
  }

  .top-actions{
    gap:6px;
  }

  .nexus-btn{
    padding:9px 12px;
  }
}

.calendar-month-page{
  width:100%;
}

.month-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.month-head h1{
  margin:0 0 8px;
  font-size:34px;
  color:#fff9ee;
}

.month-head p{
  margin:0;
  color:var(--muted);
}

.month-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:10px 4px 14px;
}

.month-title-row h2{
  margin:0;
  font-size:30px;
  color:#fff9ee;
}

.month-legend{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-weight:700;
}

.dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-right:5px;
}

.dot.ok{background:#8ef0c4}
.dot.pending{background:#63d2ff}
.dot.busy{background:#ffbf3c}

.month-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(130px, 1fr));
  gap:10px;
  width:100%;
}

.month-day-name{
  padding:10px 12px;
  border-radius:14px;
  text-align:center;
  font-weight:900;
  color:#fff4d7;
  background:rgba(18,25,39,.86);
  border:1px solid rgba(255,255,255,.10);
}

.month-cell{
  min-height:150px;
  display:flex;
  flex-direction:column;
  gap:10px;
  text-decoration:none;
  border-radius:18px;
  padding:13px;
  background:linear-gradient(180deg, rgba(43,54,75,.96), rgba(34,43,60,.96));
  border:1px solid rgba(142,240,196,.18);
  box-shadow:0 12px 26px rgba(0,0,0,.18);
  transition:.15s ease;
}

.month-cell:hover{
  transform:translateY(-2px);
  border-color:rgba(255,191,60,.65);
  box-shadow:0 16px 34px rgba(0,0,0,.28);
}

.month-cell.muted{
  opacity:.25;
  pointer-events:none;
}

.month-cell.today{
  box-shadow:0 0 0 2px rgba(99,210,255,.45), 0 14px 32px rgba(0,0,0,.25);
}

.month-cell.has-pending{
  border-color:rgba(99,210,255,.42);
}

.month-cell.has-busy{
  border-color:rgba(255,191,60,.42);
}

.month-cell-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.month-cell-top strong{
  font-size:24px;
  color:#fff9ee;
}

.month-cell-top span{
  font-size:12px;
  font-weight:900;
  color:#06172f;
  background:#63d2ff;
  padding:5px 8px;
  border-radius:999px;
}

.month-status{
  display:grid;
  gap:8px;
}

.month-status div{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:8px 9px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
}

.month-status b{
  color:#fff4d7;
  font-size:13px;
}

.month-status small{
  color:var(--muted);
  text-align:right;
}

.month-status .pending-line{
  display:block;
  color:#06172f;
  background:linear-gradient(180deg, #7be0ff, #3796ff);
  font-weight:900;
  text-align:center;
}

.day-table{
  min-width:100%;
}

.day-slot{
  min-width:auto;
  height:68px;
}

.day-slot-main{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.day-slot-main strong{
  color:#fff9ee;
}

.day-slot-main span{
  color:#8ef0c4;
  font-weight:900;
}

@media (max-width:980px){
  .month-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .month-day-name{
    display:none;
  }

  .month-head,
  .month-title-row{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (max-width:560px){
  .month-grid{
    grid-template-columns:1fr;
  }

  .month-cell{
    min-height:auto;
  }
}

.calendar-page-split{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:18px;
  width:100%;
  align-items:start;
}

.calendar-side-menu{
  position:sticky;
  top:86px;
  min-height:calc(100vh - 120px);
}

.calendar-side-menu h2{
  font-size:30px;
  margin-bottom:8px;
}

.side-filter-form{
  margin-top:18px;
}

.side-info{
  margin-top:20px;
  border:1px solid rgba(255,191,60,.28);
  background:rgba(255,191,60,.08);
  border-radius:16px;
  padding:14px;
  display:grid;
  gap:6px;
}

.side-info strong{
  color:#fff4d7;
}

.side-info span{
  color:var(--accent);
  font-weight:900;
  font-size:20px;
}

.side-legend{
  margin-top:18px;
  display:grid;
  gap:10px;
  color:var(--muted);
  font-weight:800;
  font-size:14px;
}

.side-full-btn{
  width:100%;
  margin-top:22px;
}

.calendar-main-panel{
  min-width:0;
  width:100%;
}

.month-title-row.clean{
  margin:8px 2px 14px;
}

.clean-calendar{
  grid-template-columns:repeat(7, minmax(90px, 1fr));
  gap:8px;
}

.clean-cell{
  min-height:118px;
  justify-content:space-between;
  position:relative;
  padding:14px;
  background:linear-gradient(180deg, rgba(43,54,75,.96), rgba(34,43,60,.96));
}

.clean-cell:hover{
  transform:translateY(-2px);
}

.clean-day-number{
  font-size:34px;
  font-weight:900;
  color:#fff9ee;
  line-height:1;
}

.clean-cell.muted .clean-day-number{
  color:rgba(255,255,255,.28);
}

.clean-day-markers{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  min-height:24px;
}

.mini-badge{
  min-width:26px;
  height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
}

.mini-badge.busy{
  background:var(--accent);
  color:#2a1b00;
}

.mini-badge.pending{
  background:var(--accent-2);
  color:#06172f;
}

.today-label{
  position:absolute;
  top:10px;
  right:10px;
  font-size:11px;
  font-weight:900;
  background:var(--accent-2);
  color:#06172f;
  border-radius:999px;
  padding:4px 8px;
}

.clean-cell.has-busy{
  border-color:rgba(255,191,60,.55);
}

.clean-cell.has-pending{
  border-color:rgba(99,210,255,.55);
}

.clean-cell:not(.has-busy):not(.has-pending):not(.muted){
  border-color:rgba(142,240,196,.22);
}

@media (max-width:980px){
  .calendar-page-split{
    grid-template-columns:1fr;
  }

  .calendar-side-menu{
    position:static;
    min-height:auto;
  }

  .clean-calendar{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:560px){
  .clean-calendar{
    grid-template-columns:1fr;
  }

  .clean-cell{
    min-height:84px;
  }
}

/* ===== VISTA PUBLICA TIPO NEXUS INTERNO ===== */

.nexus-shell-public{
  min-height:100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(50, 120, 255, .10), transparent 35%),
    linear-gradient(180deg, #101827 0%, #0d1424 100%);
  color:#edf3ff;
}

.nexus-topbar-public{
  height:58px;
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px 0 86px;
  background:#0c1322;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.nexus-logo-pill{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#fff;
  font-weight:900;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:#101a2e;
}

.nexus-logo-pill img{
  width:58px;
  height:22px;
  object-fit:contain;
}

.nexus-logo-pill span{
  color:#f4c546;
  font-size:12px;
  letter-spacing:.4px;
}

.nexus-left-rail{
  position:fixed;
  z-index:60;
  left:0;
  top:58px;
  bottom:0;
  width:68px;
  background:#0d172b;
  border-right:1px solid rgba(255,255,255,.10);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding-top:18px;
}

.nexus-left-rail a{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#c8d6f4;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  font-size:18px;
}

.nexus-left-rail a:hover{
  color:#f4c546;
  background:rgba(244,197,70,.12);
  border-color:rgba(244,197,70,.35);
}

.nexus-public-content{
  margin-left:68px;
  padding:22px 22px 34px;
}

.annual-calendar-card{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:#101827;
  box-shadow:0 18px 38px rgba(0,0,0,.25);
  padding:18px;
}

.annual-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}

.annual-head h1{
  margin:0 0 6px;
  color:#ffffff;
  font-size:22px;
}

.annual-head p{
  margin:0;
  color:#c9d6ef;
  font-size:14px;
}

.annual-controls{
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap;
}

.annual-controls label{
  color:#dce7ff;
  font-weight:800;
  font-size:13px;
  display:grid;
  gap:6px;
}

.annual-controls .nexus-select{
  width:180px;
  padding:9px 10px;
  border-radius:10px;
}

.annual-subtitle{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:16px;
  padding:12px 14px;
  border-radius:14px;
  background:#0c1322;
  border:1px solid rgba(255,255,255,.08);
}

.annual-subtitle strong{
  color:#f4c546;
  font-size:16px;
}

.annual-subtitle span{
  color:#c9d6ef;
  font-size:13px;
}

.annual-months-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(180px, 1fr));
  gap:12px;
}

.mini-month{
  min-height:238px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:#0d1424;
  padding:12px;
}

.mini-month h2{
  margin:0 0 12px;
  color:#ffffff;
  font-size:15px;
}

.mini-weekdays{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:5px;
  margin-bottom:7px;
}

.mini-weekdays span{
  text-align:center;
  color:#8fb3e8;
  font-size:12px;
  font-weight:800;
}

.mini-days{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:6px;
}

.mini-day{
  height:26px;
  border-radius:9px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#dce7ff;
  background:#121d31;
  border:1px solid rgba(255,255,255,.04);
  font-size:12px;
  font-weight:800;
  position:relative;
}

.mini-day:hover{
  background:#1b2b47;
  color:#ffffff;
  border-color:rgba(244,197,70,.40);
}

.mini-day.other-month{
  opacity:.26;
}

.mini-day.today{
  outline:2px solid #f4c546;
  color:#ffffff;
}

.mini-day.busy{
  background:rgba(25, 171, 111, .18);
  color:#dfffea;
  border-color:rgba(25, 171, 111, .35);
}

.mini-day.pending{
  background:rgba(96, 170, 255, .18);
  color:#e7f2ff;
  border-color:rgba(96, 170, 255, .40);
}

.mini-day.busy.pending::after{
  content:"";
  position:absolute;
  right:4px;
  top:4px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#f4c546;
}

.annual-legend{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-top:16px;
  color:#c9d6ef;
  font-size:13px;
}

.legend-dot{
  display:inline-block;
  width:11px;
  height:11px;
  border-radius:50%;
  margin-right:6px;
  vertical-align:-1px;
}

.legend-dot.busy{background:#19ab6f}
.legend-dot.pending{background:#60aaff}
.legend-dot.today{background:#f4c546}

@media (max-width:1300px){
  .annual-months-grid{
    grid-template-columns:repeat(4, minmax(180px, 1fr));
  }
}

@media (max-width:920px){
  .annual-months-grid{
    grid-template-columns:repeat(2, minmax(160px, 1fr));
  }

  .annual-head,
  .annual-subtitle{
    flex-direction:column;
    align-items:stretch;
  }
}

@media (max-width:620px){
  .nexus-topbar-public{
    padding-left:76px;
  }

  .nexus-public-content{
    padding:14px;
  }

  .annual-months-grid{
    grid-template-columns:1fr;
  }

  .annual-controls .nexus-select{
    width:100%;
  }

  .annual-controls{
    display:grid;
  }
}

/* Corrección: quitar barra lateral de iconos y conservar lateral de filtros */
.nexus-left-rail{
  display:none !important;
}

.nexus-public-content{
  margin-left:0 !important;
}

.calendar-page-split{
  display:grid !important;
  grid-template-columns:320px minmax(0,1fr) !important;
  gap:18px !important;
  width:100% !important;
  align-items:start !important;
}

.calendar-side-menu{
  position:sticky !important;
  top:86px !important;
  min-height:calc(100vh - 120px) !important;
}

.calendar-main-panel{
  min-width:0 !important;
  width:100% !important;
}

.annual-calendar-card{
  width:100% !important;
}

.annual-months-grid{
  display:grid !important;
  grid-template-columns:repeat(6, minmax(180px, 1fr)) !important;
  gap:12px !important;
}

@media (max-width:1300px){
  .annual-months-grid{
    grid-template-columns:repeat(4, minmax(180px, 1fr)) !important;
  }
}

@media (max-width:980px){
  .calendar-page-split{
    grid-template-columns:1fr !important;
  }

  .calendar-side-menu{
    position:static !important;
    min-height:auto !important;
  }

  .annual-months-grid{
    grid-template-columns:repeat(2, minmax(160px, 1fr)) !important;
  }
}

@media (max-width:620px){
  .annual-months-grid{
    grid-template-columns:1fr !important;
  }
}

/* Ajuste fino lateral solicitud */
.solicitud-side{
  padding:18px !important;
  background:linear-gradient(180deg, rgba(28,38,58,.96), rgba(24,32,50,.96)) !important;
}

.solicitud-side .side-kicker{
  color:#f4c546;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.8px;
  margin-bottom:8px;
}

.solicitud-side h2{
  font-size:22px !important;
  line-height:1.15;
  margin:0 0 8px !important;
  color:#ffffff;
}

.solicitud-side p{
  font-size:14px;
  line-height:1.45;
  color:#c9d6ef;
  margin:0 0 16px;
}

.equipment-choice{
  display:grid;
  gap:10px;
  margin:14px 0 16px;
}

.equipment-option{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  border-radius:15px;
  padding:12px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
  color:#eaf1ff;
  transition:.15s ease;
}

.equipment-option:hover{
  transform:translateY(-1px);
  border-color:rgba(244,197,70,.45);
  background:rgba(244,197,70,.08);
}

.equipment-option.active{
  border-color:rgba(244,197,70,.72);
  background:linear-gradient(180deg, rgba(244,197,70,.22), rgba(244,197,70,.10));
  box-shadow:0 0 0 3px rgba(244,197,70,.08);
}

.equipment-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#111a2d;
  color:#f4c546;
  border:1px solid rgba(244,197,70,.28);
  flex:0 0 auto;
}

.equipment-option strong{
  display:block;
  font-size:14px;
  color:#ffffff;
  margin-bottom:2px;
}

.equipment-option small{
  display:block;
  font-size:12px;
  color:#aebce0;
}

.side-info.refined{
  margin-top:14px;
  border-color:rgba(96,170,255,.24);
  background:rgba(96,170,255,.07);
}

.side-info.refined span{
  color:#f4c546;
  font-size:18px;
}

.side-legend.refined{
  margin-top:16px;
  padding:12px;
  border-radius:15px;
  background:rgba(0,0,0,.13);
  border:1px solid rgba(255,255,255,.07);
  gap:9px;
  font-size:13px;
}

.year-info-box{
  min-width:110px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:10px 14px;
  background:#0c1322;
  text-align:center;
}

.year-info-box span{
  display:block;
  color:#c9d6ef;
  font-size:12px;
  font-weight:800;
  margin-bottom:3px;
}

.year-info-box strong{
  display:block;
  color:#f4c546;
  font-size:18px;
}

@media (max-width:980px){
  .year-info-box{
    text-align:left;
  }
}

/* ===== DETALLE DEL DIA REFINADO ===== */
.detail-day-layout{
  grid-template-columns: 350px minmax(0,1fr) !important;
  gap:16px !important;
  align-items:start !important;
}

.day-request-panel{
  padding:20px !important;
  background:linear-gradient(180deg, rgba(34,44,66,.97), rgba(27,35,55,.97)) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 14px 32px rgba(0,0,0,.18) !important;
}

.soft-back-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:#eef4ff;
  font-weight:800;
  font-size:14px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  margin-bottom:14px;
}

.soft-back-link:hover{
  border-color:rgba(244,197,70,.45);
  background:rgba(244,197,70,.08);
  color:#fff;
}

.panel-section-head{
  margin-bottom:14px;
}

.panel-section-head .side-kicker{
  margin-bottom:8px;
}

.panel-section-head h2{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.15;
  color:#ffffff;
}

.panel-section-head p{
  margin:0;
  color:#cbd7ef;
  font-size:14px;
  line-height:1.45;
}

.refined-form .form-group{
  margin-bottom:12px;
}

.refined-form .form-group label{
  margin-bottom:6px;
  color:#f4f7ff;
  font-size:13px;
  font-weight:800;
}

.refined-form .nexus-input,
.refined-form .nexus-select,
.refined-form .nexus-textarea{
  min-height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#eef4ff;
  font-size:14px;
  transition:.15s ease;
}

.refined-form .nexus-input::placeholder,
.refined-form .nexus-textarea::placeholder{
  color:#9eb0d1;
}

.refined-form .nexus-input:focus,
.refined-form .nexus-select:focus,
.refined-form .nexus-textarea:focus{
  border-color:rgba(96,170,255,.55);
  box-shadow:0 0 0 3px rgba(96,170,255,.10);
  background:rgba(255,255,255,.08);
}

.refined-form .nexus-textarea{
  min-height:72px;
}

.detail-submit-btn{
  width:100%;
  justify-content:center;
  margin-top:6px;
  min-height:44px;
}

.detail-day-shell{
  padding:20px !important;
  background:linear-gradient(180deg, rgba(37,48,72,.97), rgba(28,38,60,.97)) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 14px 32px rgba(0,0,0,.18) !important;
}

.detail-day-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:12px;
}

.detail-day-title-wrap h1{
  margin:0 0 10px;
  font-size:18px;
  color:#ffffff;
}

.detail-day-subinfo{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.detail-mini-note{
  color:#b7c8e5;
  font-size:13px;
}

.detail-day-actions{
  gap:8px;
}

.detail-day-actions .nexus-btn{
  min-height:40px;
  padding:9px 14px;
  font-size:13px;
}

.detail-day-tip{
  margin-bottom:14px;
  border-radius:14px;
  padding:12px 14px;
  color:#dce9ff;
  font-size:14px;
  line-height:1.4;
  background:rgba(96,170,255,.10);
  border:1px solid rgba(96,170,255,.22);
}

.detail-grid{
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:16px !important;
  overflow:auto !important;
  background:rgba(8,14,26,.18) !important;
}

.detail-table{
  min-width:100% !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}

.detail-table th{
  background:#11192d !important;
  color:#eef4ff !important;
  font-size:13px !important;
  font-weight:800 !important;
  padding:12px 10px !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}

.detail-table .hour-cell{
  width:84px !important;
  min-width:84px !important;
  background:#10182c !important;
  color:#d9e4f8 !important;
  font-weight:800 !important;
  font-size:13px !important;
  text-align:center !important;
  padding:12px 8px !important;
  border-right:1px solid rgba(255,255,255,.07) !important;
}

.detail-table .day-slot{
  height:58px !important;
  background:rgba(255,255,255,.015) !important;
  transition:.12s ease;
  padding:0 !important;
}

.detail-table .day-slot:hover{
  background:rgba(96,170,255,.08) !important;
}

.detail-table .day-slot.selected{
  background:rgba(244,197,70,.15) !important;
  box-shadow:inset 0 0 0 1px rgba(244,197,70,.65) !important;
}

.detail-table .day-slot-main{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:14px !important;
  padding:0 14px !important;
  height:58px !important;
  margin:0 !important;
}

.detail-table .day-slot-main strong{
  font-size:14px !important;
  font-weight:800 !important;
  color:#ffffff !important;
}

.detail-table .day-slot-main span{
  color:#8ef0c4 !important;
  font-weight:900 !important;
  font-size:14px !important;
}

.detail-table .slot-badge{
  margin:0 10px 10px 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  padding:5px 10px !important;
  border-radius:999px !important;
  font-size:11px !important;
  font-weight:900 !important;
}

.capacity-pill{
  border:1px solid rgba(96,170,255,.24) !important;
  background:rgba(96,170,255,.10) !important;
  color:#dff0ff !important;
  font-size:13px !important;
  padding:8px 12px !important;
}

.alert-box{
  margin-bottom:12px !important;
  border-radius:14px !important;
  font-size:14px !important;
}

@media (max-width:1100px){
  .detail-day-layout{
    grid-template-columns:1fr !important;
  }

  .detail-day-header{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .detail-day-actions{
    flex-wrap:wrap !important;
  }
}

.detail-day-header.no-nav-day{
  margin-bottom:10px;
}

.detail-day-header.no-nav-day .detail-day-title-wrap{
  width:100%;
}

.detail-day-header.no-nav-day h1{
  margin-bottom:8px;
}

.detail-day-actions{
  margin-left:auto !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:flex-start !important;
}

.detail-day-actions .nexus-btn{
  white-space:nowrap !important;
}

.detail-day-header{
  align-items:flex-start !important;
}

/* Disponibilidad pública simple: no mostrar capacidades internas */
.capacity-pill{
  color:#dff0ff !important;
}

.public-availability .availability-row{
  height:58px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.public-availability strong{
  display:block;
  color:#ffffff;
  font-size:14px;
  margin-bottom:3px;
}

.public-availability small{
  display:block;
  color:#9fb0d1;
  font-size:12px;
  font-weight:700;
}

.availability-pill{
  min-width:96px;
  text-align:center;
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:900;
}

.availability-pill.free{
  color:#dffff1;
  background:rgba(25,171,111,.14);
  border:1px solid rgba(25,171,111,.35);
}

.availability-pill.full{
  color:#ffdede;
  background:rgba(255,115,115,.14);
  border:1px solid rgba(255,115,115,.35);
}

.public-availability.is-free{
  background:rgba(255,255,255,.015) !important;
}

.public-availability.is-full{
  background:rgba(255,115,115,.075) !important;
}

.public-availability.is-full strong{
  color:#ffdede !important;
}

.public-availability.is-full:hover{
  background:rgba(255,115,115,.12) !important;
  cursor:not-allowed;
}

.public-availability.is-free:hover{
  background:rgba(25,171,111,.075) !important;
}

.detail-table .day-slot-main{
  display:none !important;
}

.mini-day.busy{
  background:rgba(255, 87, 87, .20) !important;
  color:#ffdede !important;
  border-color:rgba(255, 87, 87, .45) !important;
}

.legend-dot.busy{
  background:#ff5757 !important;
}

/* =========================================================
   EMBELLECIMIENTO VISTA DETALLE DE PRESTAMO
   ========================================================= */

.detail-day-layout{
  grid-template-columns: 330px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

/* Panel izquierdo */
.day-request-panel{
  position: sticky !important;
  top: 88px !important;
  padding: 22px 18px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.05), transparent 40%),
    linear-gradient(180deg, rgba(37,47,73,.97), rgba(26,34,56,.98)) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow:
    0 10px 30px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.panel-section-head{
  margin-bottom: 16px !important;
}

.panel-section-head .side-kicker{
  display: inline-block;
  margin-bottom: 8px !important;
  color: #f4c546 !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  letter-spacing: .7px !important;
  text-transform: uppercase !important;
}

.panel-section-head h2{
  margin: 0 0 10px !important;
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

.panel-section-head p{
  margin: 0 !important;
  color: #c9d6ef !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.refined-form .form-group{
  margin-bottom: 13px !important;
}

.refined-form .form-group label{
  display:block !important;
  margin-bottom: 6px !important;
  color: #f0f5ff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.refined-form .nexus-input,
.refined-form .nexus-select,
.refined-form .nexus-textarea{
  width: 100% !important;
  min-height: 46px !important;
  padding: 11px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035)) !important;
  color: #eef3ff !important;
  font-size: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
  transition: .18s ease !important;
}

.refined-form .nexus-input::placeholder,
.refined-form .nexus-textarea::placeholder{
  color: #9aaed1 !important;
}

.refined-form .nexus-input:focus,
.refined-form .nexus-select:focus,
.refined-form .nexus-textarea:focus{
  outline: none !important;
  border-color: rgba(244,197,70,.55) !important;
  box-shadow:
    0 0 0 3px rgba(244,197,70,.10),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05)) !important;
}

.refined-form .nexus-textarea{
  min-height: 82px !important;
  resize: vertical !important;
}

.refined-form .form-row{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.detail-submit-btn{
  width: 100% !important;
  min-height: 46px !important;
  margin-top: 6px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  background: linear-gradient(180deg, #f4c546, #e6b733) !important;
  color: #1b2336 !important;
  border: none !important;
  box-shadow: 0 10px 20px rgba(244,197,70,.18) !important;
}

.detail-submit-btn:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 26px rgba(244,197,70,.22) !important;
}

/* Panel derecho */
.detail-day-shell{
  padding: 18px 18px 16px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top right, rgba(96,170,255,.08), transparent 30%),
    linear-gradient(180deg, rgba(38,49,78,.97), rgba(27,36,60,.98)) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow:
    0 12px 30px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.detail-day-header{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
}

.detail-day-title-wrap .side-kicker{
  display: inline-block !important;
  margin-bottom: 6px !important;
  color: #8cbfff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .7px !important;
  text-transform: uppercase !important;
}

.detail-day-title-wrap h1{
  margin: 0 0 10px !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

.detail-day-subinfo{
  display:flex !important;
  flex-wrap:wrap !important;
  gap: 10px !important;
  align-items:center !important;
}

.capacity-pill{
  display:inline-flex !important;
  align-items:center !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: rgba(96,170,255,.10) !important;
  color: #dcecff !important;
  border: 1px solid rgba(96,170,255,.22) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.detail-mini-note{
  color: #bccbe5 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.detail-day-actions{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
}

.detail-day-actions .nexus-btn{
  min-height: 40px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.detail-day-actions .ghost{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #f4f7ff !important;
}

.detail-day-actions .ghost:hover{
  border-color: rgba(244,197,70,.50) !important;
  background: rgba(244,197,70,.08) !important;
  color: #fff !important;
}

.detail-day-tip{
  margin-bottom: 14px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(96,170,255,.10), rgba(96,170,255,.06)) !important;
  border: 1px solid rgba(96,170,255,.20) !important;
  color: #dce9ff !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* Tabla de horarios */
.detail-grid{
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(7,13,24,.14) !important;
}

.detail-table{
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.detail-table thead th{
  background: linear-gradient(180deg, rgba(13,19,36,.98), rgba(11,17,31,.98)) !important;
  color: #f6f8ff !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.detail-table .hour-cell{
  width: 84px !important;
  min-width: 84px !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: linear-gradient(180deg, rgba(13,20,36,.96), rgba(10,16,29,.96)) !important;
  color: #dce8ff !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  border-right: 1px solid rgba(255,255,255,.07) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  padding: 0 8px !important;
}

.detail-table .day-slot{
  height: 68px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  transition: .14s ease !important;
}

.detail-table .day-slot.selected{
  box-shadow: inset 0 0 0 1px rgba(244,197,70,.60) !important;
  background: linear-gradient(180deg, rgba(244,197,70,.09), rgba(244,197,70,.04)) !important;
}

.detail-table .day-slot:hover{
  transform: none !important;
}

/* Nueva forma más viva del estado */
.public-availability .availability-row{
  min-height: 68px !important;
  padding: 10px 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 16px !important;
}

.public-availability .availability-main{
  display:flex !important;
  align-items:center !important;
  gap: 12px !important;
}

.public-availability .availability-dot{
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  flex: 0 0 auto !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.02) !important;
}

.public-availability .availability-text{
  display:flex !important;
  flex-direction:column !important;
  gap: 2px !important;
}

.public-availability strong{
  display:block !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.public-availability small{
  display:block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #a8b9d6 !important;
  margin: 0 !important;
}

.availability-pill{
  min-width: 122px !important;
  text-align:center !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .2px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

/* Disponible */
.public-availability.is-free{
  background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.01)) !important;
}

.public-availability.is-free:hover{
  background: linear-gradient(90deg, rgba(44,166,116,.09), rgba(44,166,116,.04)) !important;
}

.public-availability.is-free .availability-dot{
  background: #44d69d !important;
  box-shadow:
    0 0 0 4px rgba(68,214,157,.10),
    0 0 12px rgba(68,214,157,.18) !important;
}

.public-availability.is-free .availability-pill{
  color: #dffdf1 !important;
  background: linear-gradient(180deg, rgba(32,153,109,.20), rgba(32,153,109,.11)) !important;
  border: 1px solid rgba(68,214,157,.35) !important;
}

/* No disponible */
.public-availability.is-full{
  background: linear-gradient(90deg, rgba(255,104,104,.08), rgba(255,104,104,.03)) !important;
}

.public-availability.is-full:hover{
  background: linear-gradient(90deg, rgba(255,104,104,.12), rgba(255,104,104,.05)) !important;
  cursor: not-allowed !important;
}

.public-availability.is-full .availability-dot{
  background: #ff7f7f !important;
  box-shadow:
    0 0 0 4px rgba(255,127,127,.10),
    0 0 12px rgba(255,127,127,.15) !important;
}

.public-availability.is-full strong{
  color: #ffe4e4 !important;
}

.public-availability.is-full .availability-pill{
  color: #fff1f1 !important;
  background: linear-gradient(180deg, rgba(173,60,60,.24), rgba(173,60,60,.12)) !important;
  border: 1px solid rgba(255,127,127,.34) !important;
}

/* Alertas */
.alert-box{
  margin-bottom: 12px !important;
  padding: 11px 13px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.alert-box.ok{
  color: #e2fff0 !important;
  background: rgba(33,153,107,.13) !important;
  border: 1px solid rgba(68,214,157,.28) !important;
}

.alert-box.error{
  color: #ffe3e3 !important;
  background: rgba(173,60,60,.14) !important;
  border: 1px solid rgba(255,127,127,.26) !important;
}

/* Responsive */
@media (max-width: 1150px){
  .detail-day-layout{
    grid-template-columns: 1fr !important;
  }

  .day-request-panel{
    position: static !important;
  }
}

@media (max-width: 700px){
  .refined-form .form-row{
    grid-template-columns: 1fr !important;
  }

  .public-availability .availability-row{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .availability-pill{
    min-width: auto !important;
  }

  .detail-day-header{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .detail-day-actions{
    justify-content: flex-start !important;
  }
}

/* Días pasados bloqueados */
.mini-day.blocked-past{
  opacity:.22 !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
  color:#6f7b95 !important;
  background:#0d1424 !important;
  border-color:rgba(255,255,255,.03) !important;
  text-decoration:none !important;
}

.mini-day.blocked-past:hover{
  background:#0d1424 !important;
  color:#6f7b95 !important;
  border-color:rgba(255,255,255,.03) !important;
}

.alert-box.warning{
  display:block;
  color:#fff4d0;
  background:rgba(244,197,70,.12);
  border:1px solid rgba(244,197,70,.28);
}

.public-availability.is-past{
  opacity:.55 !important;
  background:rgba(255,255,255,.025) !important;
  cursor:not-allowed !important;
}

.public-availability.is-past .availability-dot{
  background:#7d879c !important;
  box-shadow:0 0 0 4px rgba(125,135,156,.08) !important;
}

.public-availability.is-past strong,
.public-availability.is-past small{
  color:#aeb7c9 !important;
}

.public-availability.is-past .availability-pill{
  color:#c7cfdd !important;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.10) !important;
}

.selected-summary{
  display:grid;
  gap:10px;
  margin:14px 0 14px;
}

.selected-summary > div{
  border:1px solid rgba(96,170,255,.18);
  border-radius:15px;
  padding:12px;
  background:rgba(96,170,255,.06);
}

.selected-summary span{
  display:block;
  color:#aebfe0;
  font-size:12px;
  font-weight:800;
  margin-bottom:4px;
}

.selected-summary strong{
  display:block;
  color:#ffffff;
  font-size:15px;
  font-weight:900;
}

.detail-submit-btn:disabled{
  opacity:.55 !important;
  cursor:not-allowed !important;
  filter:grayscale(.2);
}

.public-availability.selected{
  background:linear-gradient(90deg, rgba(244,197,70,.16), rgba(244,197,70,.06)) !important;
  box-shadow:inset 0 0 0 1px rgba(244,197,70,.70) !important;
}

.public-availability.selected .availability-dot{
  background:#f4c546 !important;
  box-shadow:0 0 0 4px rgba(244,197,70,.12), 0 0 12px rgba(244,197,70,.18) !important;
}

.public-availability.selected .availability-pill{
  color:#1b2336 !important;
  background:linear-gradient(180deg, #f4c546, #dfaa22) !important;
  border-color:rgba(244,197,70,.7) !important;
}

.detail-table .day-slot{
  height:56px !important;
}

.public-availability .availability-row{
  min-height:56px !important;
}

.public-availability.selected{
  background:linear-gradient(90deg, rgba(244,197,70,.17), rgba(244,197,70,.07)) !important;
  box-shadow:inset 0 0 0 1px rgba(244,197,70,.72) !important;
}

.public-availability.selected .availability-dot{
  background:#f4c546 !important;
  box-shadow:0 0 0 4px rgba(244,197,70,.12), 0 0 12px rgba(244,197,70,.20) !important;
}

.public-availability.selected .availability-pill{
  color:#1b2336 !important;
  background:linear-gradient(180deg, #f4c546, #dfaa22) !important;
  border-color:rgba(244,197,70,.7) !important;
}

.selected-summary{
  display:grid;
  gap:10px;
  margin:14px 0 14px;
}

.selected-summary > div{
  border:1px solid rgba(96,170,255,.18);
  border-radius:15px;
  padding:12px;
  background:rgba(96,170,255,.06);
}

.selected-summary span{
  display:block;
  color:#aebfe0;
  font-size:12px;
  font-weight:800;
  margin-bottom:4px;
}

.selected-summary strong{
  display:block;
  color:#ffffff;
  font-size:15px;
  font-weight:900;
}

.detail-submit-btn:disabled{
  opacity:.55 !important;
  cursor:not-allowed !important;
  filter:grayscale(.2);
}

/* Modal central de confirmación */
.success-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(3,8,18,.55);
  backdrop-filter:blur(6px);
}

.success-modal.show{
  display:flex;
  animation:modalFadeIn .18s ease-out;
}

.success-modal-card{
  width:min(420px, calc(100vw - 32px));
  border-radius:24px;
  padding:30px 26px;
  text-align:center;
  background:
    radial-gradient(circle at top, rgba(68,214,157,.14), transparent 38%),
    linear-gradient(180deg, rgba(35,48,74,.98), rgba(22,31,50,.98));
  border:1px solid rgba(68,214,157,.28);
  box-shadow:0 24px 70px rgba(0,0,0,.38);
}

.success-icon{
  width:64px;
  height:64px;
  margin:0 auto 14px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#10261d;
  background:linear-gradient(180deg, #6cf2b9, #30c987);
  font-size:34px;
  font-weight:900;
  box-shadow:0 10px 28px rgba(48,201,135,.26);
}

.success-modal-card h2{
  margin:0 0 8px;
  color:#ffffff;
  font-size:24px;
  font-weight:900;
}

.success-modal-card p{
  margin:0;
  color:#d7e4f6;
  line-height:1.45;
  font-size:15px;
}

/* Estado solicitado: visible, pero no bloquea */
.public-availability.is-requested{
  background:linear-gradient(90deg, rgba(244,197,70,.11), rgba(244,197,70,.04)) !important;
}

.public-availability.is-requested .availability-dot{
  background:#f4c546 !important;
  box-shadow:0 0 0 4px rgba(244,197,70,.10), 0 0 12px rgba(244,197,70,.18) !important;
}

.public-availability.is-requested .availability-pill{
  color:#302100 !important;
  background:linear-gradient(180deg, #ffd867, #e9b931) !important;
  border-color:rgba(244,197,70,.60) !important;
}

.public-availability.is-requested strong{
  color:#fff3cc !important;
}

@keyframes modalFadeIn{
  from{
    opacity:0;
    transform:scale(.98);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* Modal central de confirmación */
.success-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(3,8,18,.55);
  backdrop-filter:blur(6px);
}

.success-modal.show{
  display:flex;
  animation:modalFadeIn .18s ease-out;
}

.success-modal-card{
  width:min(420px, calc(100vw - 32px));
  border-radius:24px;
  padding:30px 26px;
  text-align:center;
  background:
    radial-gradient(circle at top, rgba(68,214,157,.14), transparent 38%),
    linear-gradient(180deg, rgba(35,48,74,.98), rgba(22,31,50,.98));
  border:1px solid rgba(68,214,157,.28);
  box-shadow:0 24px 70px rgba(0,0,0,.38);
}

.success-icon{
  width:64px;
  height:64px;
  margin:0 auto 14px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#10261d;
  background:linear-gradient(180deg, #6cf2b9, #30c987);
  font-size:34px;
  font-weight:900;
  box-shadow:0 10px 28px rgba(48,201,135,.26);
}

.success-modal-card h2{
  margin:0 0 8px;
  color:#ffffff;
  font-size:24px;
  font-weight:900;
}

.success-modal-card p{
  margin:0;
  color:#d7e4f6;
  line-height:1.45;
  font-size:15px;
}

/* Estado solicitado: visible, pero no bloquea */
.public-availability.is-requested{
  background:linear-gradient(90deg, rgba(244,197,70,.11), rgba(244,197,70,.04)) !important;
}

.public-availability.is-requested .availability-dot{
  background:#f4c546 !important;
  box-shadow:0 0 0 4px rgba(244,197,70,.10), 0 0 12px rgba(244,197,70,.18) !important;
}

.public-availability.is-requested .availability-pill{
  color:#302100 !important;
  background:linear-gradient(180deg, #ffd867, #e9b931) !important;
  border-color:rgba(244,197,70,.60) !important;
}

.public-availability.is-requested strong{
  color:#fff3cc !important;
}

@keyframes modalFadeIn{
  from{
    opacity:0;
    transform:scale(.98);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* =========================
   HEADER PUBLICO REFINADO
   ========================= */
.refined-topbar{
  min-height:72px;
  padding:10px 22px !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:
    linear-gradient(180deg, rgba(7,14,29,.98), rgba(9,19,40,.95)),
    radial-gradient(circle at top left, rgba(64,133,255,.12), transparent 28%);
  border-bottom:1px solid rgba(98,136,211,.18);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.refined-brand{
  display:flex !important;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.brand-logo-wrap{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(112,145,220,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  overflow:hidden;
  flex:0 0 48px;
}

.brand-logo{
  max-width:38px;
  max-height:38px;
  object-fit:contain;
  display:block;
}

.brand-text-wrap{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-main{
  color:#ffffff;
  font-weight:900;
  font-size:26px;
  letter-spacing:-.02em;
}

.brand-sub{
  color:#f4c546;
  font-size:12px;
  font-weight:800;
  margin-top:4px;
}

.compact-login-btn{
  min-height:auto !important;
  padding:10px 18px !important;
  font-size:15px !important;
  font-weight:800 !important;
  border-radius:999px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

.compact-login-btn:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg, rgba(244,197,70,.18), rgba(244,197,70,.08)) !important;
  border-color:rgba(244,197,70,.35) !important;
}

/* =========================
   PANEL IZQUIERDO REFINADO
   ========================= */
.refined-request-panel{
  border-radius:24px !important;
  padding:18px 16px 18px !important;
  background:
    linear-gradient(180deg, rgba(36,47,76,.96), rgba(24,33,55,.96)),
    radial-gradient(circle at top left, rgba(244,197,70,.10), transparent 30%);
  border:1px solid rgba(123,148,206,.16) !important;
  box-shadow:
    0 20px 38px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.refined-panel-head{
  padding-bottom:10px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.refined-request-panel .side-kicker{
  color:#f4c546 !important;
  font-size:13px !important;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:900 !important;
  margin-bottom:8px;
}

.refined-request-panel h2{
  color:#ffffff !important;
  font-size:20px !important;
  line-height:1.1;
  margin:0 0 10px !important;
  font-weight:900 !important;
  letter-spacing:-.02em;
}

.refined-request-panel p{
  color:#d0dbef !important;
  font-size:14px !important;
  line-height:1.45;
  margin:0 0 14px !important;
}

.refined-request-panel .form-group{
  margin-bottom:12px !important;
}

.refined-request-panel label{
  display:block;
  color:#eef4ff !important;
  font-size:13px !important;
  font-weight:800 !important;
  margin-bottom:6px !important;
}

.refined-request-panel .nexus-input,
.refined-request-panel .nexus-select,
.refined-request-panel .nexus-textarea{
  border-radius:16px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)) !important;
  border:1px solid rgba(120,145,203,.22) !important;
  color:#ffffff !important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.08);
}

.refined-request-panel .nexus-input::placeholder,
.refined-request-panel .nexus-textarea::placeholder{
  color:#9eb0d1 !important;
}

.refined-request-panel .nexus-input:focus,
.refined-request-panel .nexus-select:focus,
.refined-request-panel .nexus-textarea:focus{
  outline:none !important;
  border-color:rgba(244,197,70,.45) !important;
  box-shadow:0 0 0 3px rgba(244,197,70,.10) !important;
}

.refined-selected-summary{
  gap:10px !important;
}

.refined-selected-summary > div{
  border-radius:16px !important;
  background:
    linear-gradient(180deg, rgba(64,105,192,.18), rgba(64,105,192,.08)) !important;
  border:1px solid rgba(105,141,221,.18) !important;
  padding:12px 14px !important;
}

.refined-selected-summary span{
  color:#a9bce0 !important;
  font-size:11px !important;
  font-weight:900 !important;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.refined-selected-summary strong{
  color:#ffffff !important;
  font-size:16px !important;
  font-weight:900 !important;
}

.refined-request-panel .alert-box{
  border-radius:16px !important;
  padding:12px 14px !important;
}

.refined-request-panel .detail-submit-btn,
.refined-request-panel .nexus-btn[type="submit"]{
  width:100%;
  border-radius:18px !important;
  min-height:48px !important;
  font-size:15px !important;
  font-weight:900 !important;
  letter-spacing:.01em;
  background:linear-gradient(180deg, #f4c546, #dca41b) !important;
  color:#1c2130 !important;
  border:1px solid rgba(244,197,70,.55) !important;
  box-shadow:0 14px 28px rgba(244,197,70,.15);
}

.refined-request-panel .detail-submit-btn:disabled,
.refined-request-panel .nexus-btn[type="submit"]:disabled{
  background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05)) !important;
  color:#9eacc8 !important;
  border-color:rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}

/* Mejora visual de selects */
.refined-request-panel select option{
  background:#1b2440;
  color:#ffffff;
}

/* Responsive */
@media (max-width: 900px){
  .brand-main{
    font-size:20px;
  }

  .brand-sub{
    font-size:11px;
  }

  .brand-logo-wrap{
    width:42px;
    height:42px;
    flex-basis:42px;
  }

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

  .compact-login-btn{
    padding:9px 14px !important;
    font-size:14px !important;
  }
}

/* =========================
   HEADER PUBLICO LIMPIO
   ========================= */
.public-header-clean{
  position:sticky;
  top:0;
  z-index:100;
  background:
    linear-gradient(180deg, rgba(6,12,25,.98), rgba(8,18,39,.96)),
    radial-gradient(circle at top left, rgba(57,104,211,.12), transparent 25%);
  border-bottom:1px solid rgba(91,120,188,.18);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.public-header-inner{
  max-width: 1600px;
  margin: 0 auto;
  min-height: 74px;
  padding: 10px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.public-brand-clean{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width:0;
}

.public-brand-logo-box{
  width:50px;
  height:50px;
  flex:0 0 50px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.public-brand-logo{
  max-width:38px;
  max-height:38px;
  object-fit:contain;
  display:block;
  mix-blend-mode:multiply;
}

.public-brand-texts{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.public-brand-title{
  color:#ffffff;
  font-size:29px;
  font-weight:900;
  line-height:1;
  letter-spacing:-0.02em;
  white-space:nowrap;
}

.public-brand-subtitle{
  margin-top:5px;
  color:#f4c546;
  font-size:12px;
  font-weight:800;
  line-height:1.1;
  white-space:nowrap;
}

.public-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.header-btn-clean{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  text-decoration:none;
  font-size:15px;
  font-weight:800;
  color:#ffffff;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  transition:.18s ease;
}

.header-btn-clean:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg, rgba(244,197,70,.20), rgba(244,197,70,.08));
  border-color:rgba(244,197,70,.38);
  color:#fffaf0;
}

.public-main-wrap{
  max-width: 100%;
}

/* Si el logo tiene fondo feo o blanco, que no se note tanto */
.public-brand-logo-box img[src$=".png"]{
  background:transparent;
}

/* Responsive */
@media (max-width: 900px){
  .public-header-inner{
    padding:10px 14px;
    min-height:68px;
  }

  .public-brand-logo-box{
    width:42px;
    height:42px;
    flex-basis:42px;
  }

  .public-brand-logo{
    max-width:32px;
    max-height:32px;
  }

  .public-brand-title{
    font-size:21px;
  }

  .public-brand-subtitle{
    font-size:10px;
  }

  .header-btn-clean{
    min-height:40px;
    padding:0 14px;
    font-size:14px;
  }
}

@media (max-width: 640px){
  .public-brand-subtitle{
    display:none;
  }

  .public-brand-title{
    font-size:18px;
  }
}

/* =========================
   HEADER FINAL UFBP
   ========================= */
.ufbp-header{
  position:sticky;
  top:0;
  z-index:100;
  background:
    radial-gradient(circle at top left, rgba(64,126,255,.12), transparent 28%),
    linear-gradient(180deg, #080f20 0%, #0b1730 100%);
  border-bottom:1px solid rgba(118,148,220,.16);
  box-shadow:0 10px 28px rgba(0,0,0,.20);
}

.ufbp-header-inner{
  width:100%;
  min-height:72px;
  padding:10px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.ufbp-brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width:0;
}

.ufbp-logo-box{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  overflow:hidden;
}

.ufbp-logo{
  max-width:46px;
  max-height:46px;
  object-fit:contain;
  display:block;
  background:transparent !important;
}

.ufbp-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.ufbp-title{
  color:#ffffff;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.02em;
  white-space:nowrap;
}

.ufbp-subtitle{
  margin-top:5px;
  color:#f4c546;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.ufbp-header-actions{
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.ufbp-login-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:999px;
  color:#eef4ff;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:none;
  transition:.16s ease;
}

.ufbp-login-btn:hover{
  color:#fff;
  background:rgba(244,197,70,.11);
  border-color:rgba(244,197,70,.36);
  transform:translateY(-1px);
}

@media (max-width:700px){
  .ufbp-header-inner{
    padding:9px 14px;
    min-height:64px;
  }

  .ufbp-logo-box{
    width:44px;
    height:44px;
    flex-basis:44px;
  }

  .ufbp-logo{
    max-width:38px;
    max-height:38px;
  }

  .ufbp-title{
    font-size:18px;
  }

  .ufbp-subtitle{
    display:none;
  }

  .ufbp-login-btn{
    min-height:36px;
    padding:0 13px;
    font-size:13px;
  }
}

/* =========================
   HEADER NEXUS UFBP
   ========================= */
.ufbp-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(circle at top left, rgba(64,126,255,.10), transparent 30%),
    linear-gradient(180deg, #071120 0%, #0a1730 100%);
  border-bottom: 1px solid rgba(118,148,220,.14);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.ufbp-header-inner{
  width: 100%;
  min-height: 74px;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ufbp-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.ufbp-logo-large{
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.ufbp-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.ufbp-title{
  color:#ffffff;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.02em;
  white-space:nowrap;
}

.ufbp-subtitle{
  margin-top:4px;
  color:#f4c546;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.ufbp-header-actions{
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.ufbp-login-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:999px;
  color:#eef4ff;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.13);
  transition:.16s ease;
}

.ufbp-login-btn:hover{
  color:#fff;
  background:rgba(244,197,70,.11);
  border-color:rgba(244,197,70,.36);
  transform:translateY(-1px);
}

/* Oculta cajas viejas del logo si quedaron */
.public-brand-logo-box,
.brand-logo-wrap,
.ufbp-logo-box{
  display:none !important;
}

@media (max-width:700px){
  .ufbp-header-inner{
    padding:8px 14px;
    min-height:64px;
  }

  .ufbp-logo-large{
    height:42px;
  }

  .ufbp-title{
    font-size:18px;
  }

  .ufbp-subtitle{
    display:none;
  }

  .ufbp-login-btn{
    min-height:36px;
    padding:0 13px;
    font-size:13px;
  }
}

/* ==========================================
   HEADER PUBLICO ELEGANTE - UFBP
   ========================================== */
.ufbp-header-clean{
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 12% 30%, rgba(77, 129, 255, 0.14), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(244, 197, 70, 0.08), transparent 22%),
    linear-gradient(180deg, #06101f 0%, #0a1730 100%);
  border-bottom: 1px solid rgba(111, 144, 219, 0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.ufbp-header-clean-inner{
  width: 100%;
  min-height: 82px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ufbp-brand-clean{
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
}

.ufbp-brand-logo-clean{
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}

.ufbp-brand-copy-clean{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ufbp-brand-title-clean{
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ufbp-brand-subtitle-clean{
  margin-top: 4px;
  color: #f4c546;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ufbp-header-right-clean{
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ufbp-login-clean{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  color: #eef4ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: all .18s ease;
}

.ufbp-login-clean:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(244,197,70,.18), rgba(244,197,70,.08));
  border-color: rgba(244,197,70,.34);
  color: #fff;
}

/* Oculta restos de headers anteriores si quedaron estilos viejos */
.ufbp-logo-box,
.public-brand-logo-box,
.public-brand-logo,
.public-brand-clean,
.public-brand-title,
.public-brand-subtitle,
.ufbp-title,
.ufbp-subtitle{
  all: unset;
}

@media (max-width: 900px){
  .ufbp-header-clean-inner{
    min-height: 72px;
    padding: 10px 14px;
    gap: 12px;
  }

  .ufbp-brand-logo-clean{
    height: 46px;
  }

  .ufbp-brand-title-clean{
    font-size: 19px;
  }

  .ufbp-brand-subtitle-clean{
    font-size: 10px;
  }

  .ufbp-login-clean{
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
}

@media (max-width: 640px){
  .ufbp-brand-subtitle-clean{
    display: none;
  }

  .ufbp-brand-title-clean{
    font-size: 16px;
  }

  .ufbp-brand-logo-clean{
    height: 40px;
  }
}

/* ==========================================
   HEADER PUBLICO ELEGANTE - UFBP
   ========================================== */
.ufbp-header-clean{
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 12% 30%, rgba(77, 129, 255, 0.14), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(244, 197, 70, 0.08), transparent 22%),
    linear-gradient(180deg, #06101f 0%, #0a1730 100%);
  border-bottom: 1px solid rgba(111, 144, 219, 0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.ufbp-header-clean-inner{
  width: 100%;
  min-height: 82px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ufbp-brand-clean{
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
}

.ufbp-brand-logo-clean{
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}

.ufbp-brand-copy-clean{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ufbp-brand-title-clean{
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ufbp-brand-subtitle-clean{
  margin-top: 4px;
  color: #f4c546;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ufbp-header-right-clean{
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ufbp-login-clean{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  color: #eef4ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: all .18s ease;
}

.ufbp-login-clean:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(244,197,70,.18), rgba(244,197,70,.08));
  border-color: rgba(244,197,70,.34);
  color: #fff;
}

/* Oculta restos de headers anteriores si quedaron estilos viejos */
.ufbp-logo-box,
.public-brand-logo-box,
.public-brand-logo,
.public-brand-clean,
.public-brand-title,
.public-brand-subtitle,
.ufbp-title,
.ufbp-subtitle{
  all: unset;
}

@media (max-width: 900px){
  .ufbp-header-clean-inner{
    min-height: 72px;
    padding: 10px 14px;
    gap: 12px;
  }

  .ufbp-brand-logo-clean{
    height: 46px;
  }

  .ufbp-brand-title-clean{
    font-size: 19px;
  }

  .ufbp-brand-subtitle-clean{
    font-size: 10px;
  }

  .ufbp-login-clean{
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
}

@media (max-width: 640px){
  .ufbp-brand-subtitle-clean{
    display: none;
  }

  .ufbp-brand-title-clean{
    font-size: 16px;
  }

  .ufbp-brand-logo-clean{
    height: 40px;
  }
}

/* ==========================================
   HEADER COMPACTO ELEGANTE UFBP
   ========================================== */

.ufbp-top-elegant{
  position:sticky;
  top:0;
  z-index:100;
  background:
    radial-gradient(circle at 8% 0%, rgba(65,126,255,.16), transparent 28%),
    radial-gradient(circle at 72% 0%, rgba(244,197,70,.08), transparent 24%),
    linear-gradient(180deg, #06101f 0%, #09162d 100%);
  border-bottom:1px solid rgba(126,154,221,.16);
  box-shadow:0 10px 26px rgba(0,0,0,.22);
}

.ufbp-top-inner-elegant{
  min-height:76px;
  padding:8px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.ufbp-brand-elegant{
  display:flex;
  align-items:center;
  gap:18px;
  text-decoration:none;
  min-width:0;
}

.ufbp-logo-elegant{
  height:58px;
  width:auto;
  max-width:190px;
  object-fit:contain;
  display:block;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:drop-shadow(0 7px 12px rgba(0,0,0,.22));
}

.ufbp-identity-elegant{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.ufbp-chip-elegant{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 16px;
  border-radius:999px;
  color:#1b2435;
  font-size:16px;
  font-weight:950;
  letter-spacing:.08em;
  background:linear-gradient(180deg, #ffd866 0%, #e6ad24 100%);
  border:1px solid rgba(255,216,102,.72);
  box-shadow:
    0 10px 22px rgba(244,197,70,.18),
    inset 0 1px 0 rgba(255,255,255,.35);
}

.ufbp-caption-elegant{
  color:#d9e5ff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
  opacity:.88;
  white-space:nowrap;
}

.ufbp-actions-elegant{
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.ufbp-login-elegant{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  text-decoration:none;
  color:#edf4ff;
  font-size:14px;
  font-weight:800;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.13);
  transition:.16s ease;
}

.ufbp-login-elegant:hover{
  transform:translateY(-1px);
  color:#ffffff;
  background:rgba(244,197,70,.12);
  border-color:rgba(244,197,70,.38);
}

@media (max-width:800px){
  .ufbp-top-inner-elegant{
    min-height:66px;
    padding:8px 14px;
  }

  .ufbp-logo-elegant{
    height:44px;
    max-width:145px;
  }

  .ufbp-caption-elegant{
    display:none;
  }

  .ufbp-chip-elegant{
    min-height:30px;
    padding:0 12px;
    font-size:13px;
  }

  .ufbp-login-elegant{
    min-height:34px;
    padding:0 12px;
    font-size:13px;
  }
}

/* ==========================================
   HEADER FINAL LIMPIO SIN CAPSULA
   ========================================== */

.ufbp-header-final{
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 10% 10%, rgba(53, 108, 219, 0.15), transparent 28%),
    radial-gradient(circle at 72% 10%, rgba(244, 197, 70, 0.06), transparent 22%),
    linear-gradient(180deg, #07101f 0%, #0a1730 100%);
  border-bottom: 1px solid rgba(108, 138, 214, 0.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.ufbp-header-final-inner{
  min-height: 78px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ufbp-header-brand-final{
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
}

.ufbp-header-logo-final{
  height: 56px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.18));
}

.ufbp-header-text-final{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ufbp-header-title-final{
  color: #f4f7ff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.ufbp-header-subtitle-final{
  margin-top: 3px;
  color: #f4c546;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ufbp-header-actions-final{
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ufbp-header-login-final{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #edf4ff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  transition: .16s ease;
}

.ufbp-header-login-final:hover{
  transform: translateY(-1px);
  color: #fff;
  background: rgba(244,197,70,.10);
  border-color: rgba(244,197,70,.35);
}

@media (max-width: 900px){
  .ufbp-header-final-inner{
    min-height: 70px;
    padding: 8px 14px;
    gap: 12px;
  }

  .ufbp-header-logo-final{
    height: 44px;
    max-width: 150px;
  }

  .ufbp-header-title-final{
    font-size: 18px;
  }

  .ufbp-header-subtitle-final{
    font-size: 10px;
  }

  .ufbp-header-login-final{
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px){
  .ufbp-header-title-final{
    font-size: 15px;
  }

  .ufbp-header-subtitle-final{
    display: none;
  }

  .ufbp-header-logo-final{
    height: 38px;
    max-width: 120px;
  }
}

/* ==========================================
   PORTADA PRINCIPAL ELEGANTE
   ========================================== */

.ufbp-home-hero{
  margin: 8px 0 18px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(103, 131, 199, 0.22);
  background:
    radial-gradient(circle at 82% 18%, rgba(127, 185, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(244, 197, 70, 0.10), transparent 22%),
    linear-gradient(135deg, rgba(27,36,67,.94) 0%, rgba(37,47,78,.96) 38%, rgba(56,79,110,.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 38px rgba(0,0,0,.22);
}

.ufbp-home-hero-inner{
  padding: 34px 30px 32px;
}

.ufbp-home-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f4c546;
  background: rgba(9,16,33,.28);
  border: 1px solid rgba(244,197,70,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.ufbp-home-title{
  margin: 18px 0 12px;
  line-height: .98;
  letter-spacing: -0.03em;
}

.ufbp-home-title-top{
  display: block;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 900;
  background: linear-gradient(90deg, #f7fbff 0%, #d9e7ff 32%, #9ec1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.ufbp-home-title-bottom{
  display: block;
  margin-top: 4px;
  font-size: clamp(28px, 3.3vw, 46px);
  font-weight: 900;
  background: linear-gradient(90deg, #ffd86e 0%, #f4c546 34%, #fff0b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.ufbp-home-subtitle{
  max-width: 920px;
  margin: 0;
  color: #e5eefc;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
  text-wrap: balance;
}

.ufbp-home-grid{
  display: grid;
  grid-template-columns: 1.2fr .95fr;
  gap: 16px;
  margin-top: 18px;
}

.ufbp-home-card{
  position: relative;
  border-radius: 26px;
  padding: 28px 22px 22px;
  background:
    linear-gradient(180deg, rgba(43,54,89,.92) 0%, rgba(36,45,78,.94) 100%);
  border: 1px solid rgba(104, 132, 199, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 12px 28px rgba(0,0,0,.18);
}

.ufbp-home-card-accent{
  position: absolute;
  top: 0;
  left: 22px;
  width: 88px;
  height: 4px;
  border-radius: 999px;
}

.ufbp-home-card-accent-gold{
  background: linear-gradient(90deg, #ffd45f 0%, #f4c546 100%);
  box-shadow: 0 0 18px rgba(244,197,70,.35);
}

.ufbp-home-card-accent-blue{
  background: linear-gradient(90deg, #62b5ff 0%, #4b8eff 100%);
  box-shadow: 0 0 18px rgba(75,142,255,.30);
}

.ufbp-home-card h2{
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 850;
  color: #f7faff;
  letter-spacing: -0.02em;
}

.ufbp-home-card p{
  margin: 0;
  color: #deebff;
  font-size: 16px;
  line-height: 1.65;
}

.ufbp-home-card-actions{
  margin-top: 22px;
}

.ufbp-btn-primary-gold,
.ufbp-btn-primary-blue{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
  transition: .18s ease;
}

.ufbp-btn-primary-gold{
  color: #16140d;
  background: linear-gradient(180deg, #ffd45f 0%, #f4c546 100%);
  box-shadow: 0 10px 20px rgba(244,197,70,.22);
}

.ufbp-btn-primary-gold:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.ufbp-btn-primary-blue{
  color: #ffffff;
  background: linear-gradient(180deg, #69bbff 0%, #4d90ff 100%);
  box-shadow: 0 10px 20px rgba(77,144,255,.20);
}

.ufbp-btn-primary-blue:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.ufbp-home-footer-strip{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #d7e5fb;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(20,46,89,.85), rgba(29,64,116,.65));
  border: 1px solid rgba(84, 131, 205, 0.24);
}

.ufbp-home-footer-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4c546;
  flex: 0 0 auto;
}

@media (max-width: 980px){
  .ufbp-home-grid{
    grid-template-columns: 1fr;
  }

  .ufbp-home-hero-inner{
    padding: 24px 18px 24px;
  }

  .ufbp-home-subtitle{
    font-size: 17px;
  }

  .ufbp-home-footer-strip{
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .ufbp-home-footer-dot{
    display: none;
  }
}

/* ==========================================
   HEADER SIN PARPADEO DE LOGO
   ========================================== */

.nexus-head-noflash{
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 12% 10%, rgba(44, 105, 230, .14), transparent 28%),
    linear-gradient(180deg, #07101f 0%, #0a1730 100%);
  border-bottom: 1px solid rgba(113, 145, 216, .17);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.nexus-head-noflash-inner{
  min-height: 74px;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nexus-brand-noflash{
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
}

.nexus-logo-noflash{
  width: 178px;
  height: 58px;
  flex: 0 0 178px;
  display: block;
  background-image: url("/static/img/nexus-logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.20));
}

.nexus-brand-copy-noflash{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.nexus-brand-title-noflash{
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 0%, #dce8ff 48%, #9fbfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nexus-brand-subtitle-noflash{
  margin-top: 4px;
  color: #f4c546;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nexus-head-actions-noflash{
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nexus-login-noflash{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #edf4ff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  transition: .16s ease;
}

.nexus-login-noflash:hover{
  transform: translateY(-1px);
  color: #ffffff;
  background: rgba(244,197,70,.10);
  border-color: rgba(244,197,70,.35);
}

/* Anula logos anteriores para que no aparezcan dobles ni parpadeen */
.ufbp-logo-elegant,
.ufbp-header-logo-final,
.ufbp-brand-logo-clean,
.ufbp-logo-large,
.public-brand-logo,
.brand-logo{
  display: none !important;
}

@media (max-width: 900px){
  .nexus-head-noflash-inner{
    min-height: 66px;
    padding: 8px 14px;
    gap: 12px;
  }

  .nexus-logo-noflash{
    width: 132px;
    height: 46px;
    flex-basis: 132px;
  }

  .nexus-brand-title-noflash{
    font-size: 17px;
  }

  .nexus-brand-subtitle-noflash{
    font-size: 10px;
  }

  .nexus-login-noflash{
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px){
  .nexus-brand-subtitle-noflash{
    display: none;
  }

  .nexus-brand-title-noflash{
    font-size: 14px;
  }

  .nexus-logo-noflash{
    width: 110px;
    height: 40px;
    flex-basis: 110px;
  }
}

/* Corrección final: logo estable sin efecto cortina */
.nexus-logo-noflash,
.ufbp-header-logo-final,
.ufbp-brand-logo-clean,
.ufbp-logo-elegant,
.ufbp-logo-large{
  background-image: url("/static/img/nexus-logo-clean.png?v=20260526clean") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
}

.nexus-logo-noflash{
  width: 178px !important;
  height: 58px !important;
  flex: 0 0 178px !important;
  display: block !important;
  overflow: hidden !important;
  contain: layout paint style !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Si alguna imagen del logo queda en plantilla, que no genere salto visual */
.ufbp-header-logo-final,
.ufbp-brand-logo-clean,
.ufbp-logo-elegant,
.ufbp-logo-large{
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  width: auto !important;
  height: 56px !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ==========================================
   HOME PREMIUM - CUERPO PRINCIPAL
   ========================================== */

.home-premium{
  padding: 18px 20px 34px;
}

.home-premium-hero{
  min-height: 300px;
  border-radius: 30px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(105, 171, 255, .20), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(244, 197, 70, .13), transparent 25%),
    linear-gradient(135deg, rgba(37, 47, 78, .98), rgba(48, 66, 101, .96));
  border: 1px solid rgba(121, 150, 218, .22);
  box-shadow:
    0 24px 55px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

.home-premium-kicker{
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffd65f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(6, 12, 26, .34);
  border: 1px solid rgba(244, 197, 70, .22);
}

.home-premium-hero h1{
  margin: 20px 0 14px;
  line-height: .98;
  letter-spacing: -.04em;
}

.home-premium-hero h1 span{
  display: block;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 950;
  background: linear-gradient(90deg, #ffffff, #dfeaff, #9bbcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-premium-hero h1 strong{
  display: block;
  margin-top: 4px;
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 950;
  background: linear-gradient(90deg, #ffd45f, #f4c546, #fff0ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-premium-hero p{
  max-width: 780px;
  margin: 0;
  color: #e7eefc;
  font-size: 19px;
  line-height: 1.55;
}

.home-premium-actions{
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-btn{
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  transition: .18s ease;
}

.home-btn:hover{
  transform: translateY(-1px);
}

.home-btn-gold{
  color: #19160d;
  background: linear-gradient(180deg, #ffd96a, #f1bd32);
  box-shadow: 0 14px 28px rgba(244,197,70,.22);
}

.home-btn-soft{
  color: #edf4ff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
}

.home-premium-panel{
  display: grid;
  gap: 14px;
}

.home-status-card{
  border-radius: 24px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(6, 12, 26, .30);
  border: 1px solid rgba(255,255,255,.09);
}

.home-status-dot{
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: #44d69d;
  box-shadow: 0 0 0 6px rgba(68,214,157,.10), 0 0 18px rgba(68,214,157,.24);
}

.home-status-card strong{
  display: block;
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 6px;
}

.home-status-card small{
  display: block;
  color: #c8d6ee;
  font-size: 14px;
  line-height: 1.45;
}

.home-mini-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-mini-grid div{
  min-height: 96px;
  border-radius: 22px;
  padding: 16px;
  background: rgba(9, 18, 39, .34);
  border: 1px solid rgba(255,255,255,.08);
}

.home-mini-grid strong{
  display: block;
  color: #ffd65f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.home-mini-grid span{
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
}

.home-feature-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.home-feature-card{
  position: relative;
  min-height: 210px;
  border-radius: 28px;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(43, 54, 89, .94), rgba(35, 44, 75, .96));
  border: 1px solid rgba(118, 148, 218, .20);
  box-shadow:
    0 18px 38px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.035);
  overflow: hidden;
}

.home-feature-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 86px;
  height: 4px;
  border-radius: 999px;
}

.feature-gold::before{
  background: #ffd45f;
  box-shadow: 0 0 20px rgba(244,197,70,.38);
}

.feature-blue::before{
  background: #66b7ff;
  box-shadow: 0 0 20px rgba(102,183,255,.34);
}

.home-feature-icon{
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 18px;
}

.home-feature-card h2{
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.home-feature-card p{
  margin: 0;
  color: #dfeaff;
  font-size: 16px;
  line-height: 1.62;
}

.home-feature-card a{
  margin-top: 20px;
  display: inline-flex;
  color: #ffd65f;
  font-weight: 900;
  text-decoration: none;
}

.feature-blue a{
  color: #8dccff;
}

.home-process{
  margin-top: 18px;
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(102,183,255,.11), transparent 22%),
    linear-gradient(180deg, rgba(23, 38, 72, .90), rgba(18, 30, 59, .92));
  border: 1px solid rgba(99, 136, 205, .22);
}

.home-process-head span{
  color: #ffd65f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-process-head h2{
  margin: 8px 0 20px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.home-process-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-step{
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.home-step b{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #162033;
  background: linear-gradient(180deg, #ffd96a, #f1bd32);
  margin-bottom: 14px;
}

.home-step strong{
  display: block;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 8px;
}

.home-step span{
  color: #cbd8ef;
  font-size: 14px;
  line-height: 1.45;
}

.home-footer-premium{
  margin-top: 18px;
  min-height: 48px;
  border-radius: 22px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #e1ebff;
  font-weight: 850;
  background: linear-gradient(90deg, rgba(30, 58, 110, .70), rgba(25, 49, 92, .82));
  border: 1px solid rgba(102, 153, 225, .25);
}

.home-footer-premium i{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd65f;
}

@media (max-width: 1100px){
  .home-premium-hero{
    grid-template-columns: 1fr;
  }

  .home-premium-panel{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px){
  .home-feature-grid,
  .home-process-steps,
  .home-premium-panel{
    grid-template-columns: 1fr;
  }

  .home-premium{
    padding: 12px;
  }

  .home-premium-hero{
    padding: 24px 18px;
  }

  .home-premium-hero p{
    font-size: 16px;
  }

  .home-footer-premium{
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .home-footer-premium i{
    display: none;
  }
}

/* =========================================================
   PORTADA TIPO CONSOLA - AZUL Y AMARILLO
   ========================================================= */

.np-console-page{
  min-height:calc(100vh - 84px);
  padding:26px;
  display:grid;
  grid-template-columns:340px minmax(0, 1fr) 350px;
  grid-template-rows:minmax(0, 1fr) 136px;
  gap:18px;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(106,168,255,.16), transparent 55%),
    radial-gradient(700px 420px at 15% 80%, rgba(242,201,76,.08), transparent 55%),
    linear-gradient(180deg, #050c1a, #08142a 55%, #081126);
}

.np-console-panel{
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.050), rgba(255,255,255,.025));
  box-shadow:
    0 24px 54px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.np-console-left{
  border-radius:30px;
  padding:22px;
  display:flex;
  flex-direction:column;
}

.np-console-kicker{
  color:#f2c94c;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.np-console-left h1{
  margin:14px 0 10px;
  color:#f3f7ff;
  font-size:32px;
  line-height:1.05;
  letter-spacing:-1px;
  font-weight:950;
}

.np-console-intro{
  margin:0;
  color:#b9c6df;
  font-size:15px;
  line-height:1.5;
}

.np-action-list{
  margin-top:28px;
  display:grid;
  gap:14px;
}

.np-action-card{
  min-height:115px;
  border-radius:24px;
  padding:18px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.020));
  position:relative;
  overflow:hidden;
  text-decoration:none;
  display:block;
  transition:.16s ease;
}

.np-action-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
}

.np-action-line{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
}

.np-action-gold .np-action-line{
  background:#f2c94c;
}

.np-action-blue .np-action-line{
  background:#6aa8ff;
}

.np-action-card strong{
  display:block;
  color:#ffffff;
  font-size:21px;
  font-weight:900;
  margin-bottom:7px;
}

.np-action-card small{
  display:block;
  color:#b9c6df;
  font-size:14px;
  line-height:1.42;
}

.np-action-card em{
  display:inline-flex;
  margin-top:13px;
  font-style:normal;
  font-weight:900;
}

.np-action-gold em{
  color:#ffd968;
}

.np-action-blue em{
  color:#8fc1ff;
}

.np-left-note{
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#9eb1d3;
  font-size:13px;
  line-height:1.45;
}

.np-console-center{
  border-radius:34px;
  padding:28px;
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto minmax(0, 1fr);
}

.np-console-center::before{
  content:"";
  position:absolute;
  width:560px;
  height:560px;
  left:50%;
  top:55%;
  transform:translate(-50%, -50%);
  border-radius:50%;
  background:
    radial-gradient(circle, rgba(242,201,76,.10), transparent 35%),
    conic-gradient(from 90deg, rgba(106,168,255,.22), rgba(242,201,76,.18), rgba(106,168,255,.22));
  opacity:.8;
  pointer-events:none;
}

.np-console-center::after{
  content:"";
  position:absolute;
  width:340px;
  height:340px;
  left:50%;
  top:55%;
  transform:translate(-50%, -50%);
  border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:
    0 0 0 68px rgba(255,255,255,.024),
    0 0 0 136px rgba(255,255,255,.016);
  pointer-events:none;
}

.np-center-head{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

.np-center-head h2{
  margin:0;
  max-width:640px;
  color:#ffffff;
  font-size:40px;
  line-height:1.06;
  letter-spacing:-1.2px;
  font-weight:950;
}

.np-center-head h2 span{
  color:#ffd968;
}

.np-center-badge{
  padding:10px 14px;
  border-radius:18px;
  border:1px solid rgba(242,201,76,.24);
  background:rgba(242,201,76,.08);
  color:#ffeaa7;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}

.np-orbit-zone{
  position:relative;
  z-index:3;
  min-height:430px;
}

.np-orbit-core{
  position:absolute;
  left:50%;
  top:54%;
  transform:translate(-50%, -50%);
  width:255px;
  height:255px;
  border-radius:50%;
  background:linear-gradient(180deg, #0d1d3c, #132850);
  border:1px solid rgba(255,255,255,.14);
  display:grid;
  place-items:center;
  text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
}

.np-orbit-core strong{
  display:block;
  color:#ffffff;
  font-size:28px;
  font-weight:950;
}

.np-orbit-core small{
  display:block;
  margin-top:8px;
  color:#b9c6df;
  font-size:14px;
}

.np-orbit-node{
  position:absolute;
  width:210px;
  min-height:100px;
  border-radius:24px;
  padding:16px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(8,16,34,.70);
  backdrop-filter:blur(10px);
}

.np-orbit-node b{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  color:#132038;
  font-weight:950;
  margin-bottom:10px;
}

.np-node-1 b,
.np-node-3 b{
  background:#f2c94c;
}

.np-node-2 b,
.np-node-4 b{
  background:#8fc1ff;
}

.np-orbit-node strong{
  display:block;
  color:#ffffff;
  font-size:17px;
  font-weight:900;
}

.np-orbit-node small{
  display:block;
  margin-top:5px;
  color:#b9c6df;
  font-size:13px;
  line-height:1.35;
}

.np-node-1{
  left:5%;
  top:16%;
}

.np-node-2{
  right:4%;
  top:22%;
}

.np-node-3{
  right:12%;
  bottom:14%;
}

.np-node-4{
  left:10%;
  bottom:12%;
}

.np-console-right{
  border-radius:30px;
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.np-summary-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.np-summary-head h3{
  margin:0;
  color:#ffffff;
  font-size:23px;
  font-weight:950;
}

.np-summary-head span{
  color:#f2c94c;
  font-weight:950;
}

.np-summary-card{
  border-radius:24px;
  padding:18px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(135deg, rgba(12,24,50,.72), rgba(21,38,73,.60));
}

.np-summary-card small{
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.np-summary-gold small{
  color:#f2c94c;
}

.np-summary-blue small{
  color:#8fc1ff;
}

.np-summary-card strong{
  display:block;
  margin-top:9px;
  color:#ffffff;
  font-size:22px;
  font-weight:950;
}

.np-summary-card p{
  margin:8px 0 0;
  color:#b9c6df;
  line-height:1.42;
  font-size:14px;
}

.np-summary-note{
  margin-top:auto;
  border-radius:26px;
  padding:18px;
  border:1px solid rgba(106,168,255,.18);
  background:rgba(106,168,255,.08);
}

.np-summary-note strong{
  display:block;
  color:#eaf3ff;
  font-size:20px;
  font-weight:950;
}

.np-summary-note span{
  display:block;
  margin-top:8px;
  color:#c2d4ef;
  line-height:1.4;
  font-size:14px;
}

.np-console-bottom{
  grid-column:1 / -1;
  border-radius:30px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  overflow:hidden;
}

.np-bottom-step{
  padding:20px 22px;
  border-right:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.030);
}

.np-bottom-step:last-child{
  border-right:0;
}

.np-bottom-step span{
  font-size:12px;
  font-weight:950;
  letter-spacing:.12em;
}

.np-bottom-step:nth-child(odd) span{
  color:#f2c94c;
}

.np-bottom-step:nth-child(even) span{
  color:#8fc1ff;
}

.np-bottom-step strong{
  display:block;
  margin-top:9px;
  color:#ffffff;
  font-size:22px;
  font-weight:950;
}

.np-bottom-step p{
  margin:6px 0 0;
  color:#b9c6df;
  font-size:14px;
  line-height:1.35;
}

@media(max-width:1200px){
  .np-console-page{
    min-height:auto;
    grid-template-columns:1fr;
    grid-template-rows:auto;
  }

  .np-orbit-zone{
    min-height:520px;
  }

  .np-console-bottom{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:760px){
  .np-console-page{
    padding:14px;
    gap:14px;
  }

  .np-center-head{
    flex-direction:column;
  }

  .np-center-head h2{
    font-size:28px;
  }

  .np-orbit-zone{
    min-height:auto;
    display:grid;
    gap:12px;
    padding-top:18px;
  }

  .np-console-center::before,
  .np-console-center::after,
  .np-orbit-core{
    display:none;
  }

  .np-orbit-node{
    position:relative;
    width:100%;
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
  }

  .np-console-bottom{
    grid-template-columns:1fr;
  }

  .np-bottom-step{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .np-bottom-step:last-child{
    border-bottom:0;
  }
}
