/* public/assets/style.css */

:root{
  --wine:#86283A;
  --wine-dark:#852938;
  --gold:#CE8C4D;
  --ivory:#FFFBFA;
  --ink:#44232d;
  --ink-soft:#6c4a54;
  --line:rgba(134,40,58,.12);
  --line-strong:rgba(134,40,58,.22);
  --accent-soft:rgba(206,140,77,.16);
  --accent-strong:#b8773f;
  --ok:#2f7d63;
  --warn:#c98a43;
  --bad:#b5475f;
  --shadow:0 16px 36px rgba(96,49,60,.10);
  --shadow-soft:0 10px 22px rgba(96,49,60,.06);
  --radius:14px;
  --mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";

  --bg:linear-gradient(180deg, #fffdfa 0%, #fbf4ef 42%, #f6eee7 100%);
  --panel:#fffdfa;
  --panel2:#fff7f1;
  --surface:#ffffff;
  --surface-2:#faf2ec;
  --text:var(--ink);
  --muted:rgba(68,35,45,.72);
  --border:var(--line);
  --accent:var(--gold);
  --btn:#f2e0cf;
}

*{ box-sizing:border-box; }
html{ color-scheme: light; }
body{
  margin:0;
  font-family:var(--sans);
  background:
    radial-gradient(1100px 560px at 12% -10%, rgba(206,140,77,.16), transparent 52%),
    radial-gradient(900px 460px at 100% 0%, rgba(134,40,58,.08), transparent 42%),
    linear-gradient(180deg, #fffdfa 0%, #fbf4ef 42%, #f5ede6 100%);
  color:var(--text);
}

::selection{
  background:rgba(206,140,77,.24);
  color:var(--ink);
}

a{ color:var(--wine); text-decoration:none; }
a:hover{ color:var(--accent-strong); text-decoration:underline; }

.container{
  width:min(1240px, calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  background:linear-gradient(135deg, rgba(134,40,58,.96), rgba(133,41,56,.94));
  border-bottom:1px solid rgba(255,251,250,.14);
  box-shadow:0 10px 26px rgba(96,24,39,.18);
  backdrop-filter:blur(8px);
  position:sticky;
  top:0;
  z-index:5;
}
.topbar,
.topbar a,
.topbar .name,
.topbar .logo,
.topbar .userbox,
.topbar .userbox span{ color:var(--ivory); }
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo{ font-size:20px; filter:drop-shadow(0 2px 4px rgba(0,0,0,.12)); }
.name{ font-weight:700; letter-spacing:.3px; }
.userbox{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar .badge{
  color:var(--ivory);
  background:rgba(255,251,250,.10);
  border-color:rgba(255,251,250,.18);
}
.topbar .btn-outline{
  color:var(--ivory);
  background:rgba(255,251,250,.08);
  border-color:rgba(255,251,250,.18);
}
.topbar .btn-outline:hover{
  background:rgba(255,251,250,.16);
  border-color:rgba(255,251,250,.28);
}

.navbar{
  background:rgba(255,251,250,.82);
  border-bottom:1px solid rgba(134,40,58,.08);
  backdrop-filter:blur(10px);
}
.navgrid{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  padding:12px 0;
}
.navbar a{
  color:var(--wine);
  padding:9px 13px;
  border-radius:12px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(206,140,77,.22);
  box-shadow:var(--shadow-soft);
}
.navbar a:hover{
  background:rgba(206,140,77,.12);
  border-color:rgba(206,140,77,.34);
  text-decoration:none;
}

main.container{ padding:18px 0 38px; }

.panel{
  background:linear-gradient(180deg, rgba(255,253,250,.98), rgba(255,247,241,.98));
  border:1px solid rgba(134,40,58,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:900px){
  .grid{ grid-template-columns:1fr; }
}

h1,h2,h3{ margin:10px 0 12px; }
h1{ font-size:22px; color:var(--wine); }
h2{ font-size:18px; color:var(--wine); }
h3{ font-size:16px; color:var(--wine); }

.muted{ color:var(--muted); }
.badge{
  font-family:var(--mono);
  font-size:12px;
  padding:4px 9px;
  border:1px solid rgba(206,140,77,.30);
  border-radius:999px;
  background:rgba(206,140,77,.10);
  color:var(--wine);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.70);
}

.alert{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  margin:0 0 14px;
  background:#fffdfa;
  color:var(--text);
}
.alert-info{
  border-color:rgba(206,140,77,.30);
  background:rgba(206,140,77,.10);
}
.alert-success{
  border-color:rgba(47,125,99,.22);
  background:rgba(47,125,99,.08);
}
.alert-warning{
  border-color:rgba(201,138,67,.24);
  background:rgba(201,138,67,.09);
}
.alert-danger{
  border-color:rgba(181,71,95,.22);
  background:rgba(181,71,95,.08);
}

.form-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
  min-width:240px;
  flex:1 1 240px;
}
label{ font-size:13px; color:var(--muted); }
input, select, textarea{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(134,40,58,.16);
  color:var(--text);
  padding:10px 10px;
  border-radius:12px;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
input::placeholder, textarea::placeholder{ color:rgba(68,35,45,.38); }
textarea{ min-height:86px; resize:vertical; }
input:focus, select:focus, textarea:focus{
  border-color:rgba(206,140,77,.66);
  box-shadow:0 0 0 4px rgba(206,140,77,.14);
}
input[type="file"]{
  background:#fffaf7;
}
input[type="file"]::file-selector-button{
  margin-right:10px;
  border:1px solid rgba(206,140,77,.36);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(206,140,77,.22), rgba(206,140,77,.12));
  color:var(--wine);
  padding:8px 12px;
  cursor:pointer;
}
input[type="file"]::file-selector-button:hover{
  background:linear-gradient(180deg, rgba(206,140,77,.28), rgba(206,140,77,.18));
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 12px;
  border-radius:12px;
  background:linear-gradient(180deg, #e9c59f, #d9a86f);
  border:1px solid rgba(206,140,77,.54);
  color:var(--wine);
  cursor:pointer;
  text-decoration:none;
  box-shadow:0 8px 16px rgba(206,140,77,.14), inset 0 1px 0 rgba(255,255,255,.46);
  transition:transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  font-weight:600;
}
.btn:hover{
  text-decoration:none;
  background:linear-gradient(180deg, #efcfac, #deaf79);
  border-color:rgba(206,140,77,.70);
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(206,140,77,.18), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-outline{
  background:#ffffff;
  border:1px solid rgba(134,40,58,.18);
  color:var(--wine);
  box-shadow:var(--shadow-soft);
}
.btn-outline:hover{
  background:#fff7f1;
  border-color:rgba(206,140,77,.34);
}
.btn-danger{
  background:linear-gradient(180deg, #f5dde2, #edcbd2);
  border:1px solid rgba(181,71,95,.26);
  color:var(--wine);
}
.btn-danger:hover{
  background:linear-gradient(180deg, #f8e4e8, #efd3d9);
  border-color:rgba(181,71,95,.34);
}
.btn-warning{
  background:linear-gradient(180deg, #f1d4b3, #e7be8d);
  border:1px solid rgba(206,140,77,.44);
  color:var(--wine);
}
.btn-warning:hover{
  background:linear-gradient(180deg, #f4dbc1, #eac497);
}
.btn-success{
  background:linear-gradient(180deg, #edd0ac, #dfb27c);
  border:1px solid rgba(206,140,77,.48);
  color:var(--wine);
}
.btn-success:hover{
  background:linear-gradient(180deg, #f1d7b8, #e4b986);
}

.table-wrap{
  overflow:auto;
  border-radius:12px;
  border:1px solid rgba(134,40,58,.10);
  background:#fffdfa;
}
table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
}
th, td{
  padding:10px 10px;
  border-bottom:1px solid rgba(134,40,58,.08);
  vertical-align:top;
}
th{
  text-align:left;
  font-size:12px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:var(--wine);
  background:linear-gradient(180deg, #fbf2eb, #f6ebe3);
  position:sticky;
  top:0;
  z-index:1;
}
tr:hover td{
  background:rgba(206,140,77,.06);
}
td small{ color:var(--muted); }

.footer{
  border-top:1px solid rgba(134,40,58,.08);
  background:rgba(255,251,250,.76);
  padding:16px 0;
  color:var(--muted);
}

.kpi{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.kpi .card{
  flex:1 1 220px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(206,140,77,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,247,241,.98));
  box-shadow:var(--shadow-soft);
}
.kpi .value{
  font-size:20px;
  font-weight:700;
  color:var(--wine);
}
.code{
  font-family:var(--mono);
  font-size:12px;
  white-space:pre-wrap;
  word-break:break-word;
  color:var(--wine-dark);
}
/* ===== Fondo con 2 logos solo para login ===== */
.contenedor-login{
display:flex;
align-items:center;
justify-content:space-between;
width:100%;
padding:60px 40px;
min-height:71vh;
margin-top:40px;
}

.lado-izq,
.lado-der{
width:30%;
text-align:center;
}

.centro-login{
width:40%;
}

.logo-coop{
max-width:90%;
}

.nombre-coop{
max-width:90%;
}