:root{
  --bg0:#0b0a10;
  --bg1:#151323;
  --card:#ffffff;
  --text:#ffffff;
  --muted:#cfcfe3;
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --rowGap: 18px;
  --pillRadius: 999px;
  --danger:#e11d2e;
  --ink:#0a0a0a;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height:100svh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 500px at 85% 30%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  color: var(--text);
  padding: 44px 22px;
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 24px;
}

.title{
  margin:0;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  text-shadow: 0 6px 26px rgba(0,0,0,.35);
}

.btn-add{
  border: 0;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  padding: 16px 36px;
  border-radius: var(--pillRadius);
  box-shadow: var(--shadow);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  font-size: 22px;
  white-space: nowrap;
}
.btn-add:active{ transform: translateY(1px) scale(.99); }
.btn-add:hover{ box-shadow: 0 22px 70px rgba(0,0,0,.55); }

/* Tabla */
.table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

thead th{
  text-align:left;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.70);
  padding: 14px 18px;
  letter-spacing: .35px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
}

thead th:last-child{
  border-right: none;
}

tbody tr{
  border-bottom: 1px solid rgba(255,255,255,.10);
}

tbody tr:last-child{
  border-bottom: none;
}

tbody td{
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.10);
}

tbody td:last-child{
  border-right: none;
}

tbody td:first-child{
  font-weight: 650;
}

/* Columnas */
.col-name{ width: 22%; }
.col-email{ width: 44%; }
.col-phone{ width: 18%; }
.col-actions{ width: 16%; }

/* Acciones */
.actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap: 14px;
}

.icon-btn{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease;
  flex: 0 0 auto;
}
.icon-btn:hover{
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  transform: translateY(-1px);
}
.icon-btn:active{ transform: translateY(0px) scale(.99); }

.icon-btn.danger{
  background: var(--danger);
  color: #fff;
}

.icon{
  width: 26px;
  height: 26px;
  display:block;
}

/* Responsive */
@media (max-width: 860px){
  thead{ display:none; }
  .table{ border-spacing: 0 14px; }
  tbody td{
    font-size: 18px;
    padding: 14px 14px;
  }

  tbody tr{
    display:grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  tbody td{
    border-radius: 18px;
  }

  tbody td:first-child,
  tbody td:last-child{
    border-radius: 18px;
  }

  .actions{ justify-content:flex-start; }
  .col-name,.col-email,.col-phone,.col-actions{ width:auto; }

  tbody td[data-label]{
    position: relative;
    padding-top: 34px;
    white-space: normal;
  }
  tbody td[data-label]::before{
    content: attr(data-label);
    position:absolute;
    top: 10px;
    left: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: rgba(0,0,0,.55);
  }
}
