:root{
  --bg:#071426; --card:#071826; --accent:#06b6d4; --muted:#b6c3cc;
  --success:#10b981; --danger:#ef4444;
}

/* Reset / base */
*{box-sizing:border-box;font-family:Inter,ui-sans-serif,system-ui,Segoe UI,Roboto,"Helvetica Neue",Arial}
body{
  margin:0;
  background:linear-gradient(180deg,#021021 0%,var(--bg) 60%);
  color:#e6eef6;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px;
}
/* Contenedor grande */
.wrap{
  width:1150px;
  max-width:100%;
  background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
  padding:28px;
  border-radius:14px;
  box-shadow:0 18px 50px rgba(2,6,23,0.75);
}

/* Header */
header{display:flex;align-items:center;gap:20px;margin-bottom:20px}
.logo{
  width:80px;height:80px;border-radius:12px;
  background:linear-gradient(135deg,var(--accent),#60a5fa);
  display:flex;align-items:center;justify-content:center;font-weight:900;color:#021;
  font-size:28px;
  box-shadow:0 6px 18px rgba(2,6,23,0.5);
}
header h1{margin:0;font-size:22px}
.lead{margin:6px 0 0;color:var(--muted);font-size:15px}

/* Grid */
.grid{display:grid;grid-template-columns:1fr 420px;gap:20px}
.card{background:var(--card);padding:20px;border-radius:12px;border:1px solid rgba(255,255,255,0.03)}

/* Forms & controls (agrandados) */
label{display:block;font-size:15px;color:var(--muted);margin-bottom:8px}
input[type=text]{width:100%;padding:14px;border-radius:10px;border:1px solid rgba(0,0,0,0.35);background:rgba(255,255,255,0.02);color:inherit;font-size:16px}
.actions{margin-top:14px;display:flex;gap:12px}
.btn{display:inline-block;padding:12px 18px;border-radius:10px;background:var(--accent);color:#022;cursor:pointer;border:none;font-weight:700;font-size:15px;box-shadow:0 6px 12px rgba(6,182,212,0.08)}
.btn.alt{background:transparent;border:1px solid rgba(255,255,255,0.05);color:var(--muted)}

/* Resultados con texto más grande */
.results{margin-top:16px;display:flex;flex-direction:column;gap:12px}
.row{display:flex;justify-content:space-between;gap:16px;align-items:center}
.row .small{font-size:15px;color:var(--muted)}
.value{background:rgba(0,0,0,0.18);padding:12px 14px;border-radius:10px;min-width:0;overflow:auto;font-size:15px}

/* Binarios: cajas más grandes */
.binary-bar{display:flex;gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.bin-seg{padding:10px 12px;border-radius:8px;font-family:monospace;font-weight:800;min-width:36px;text-align:center;font-size:16px}
.subred{background:#ef4444;color:#fff}
.red{background:#f97316;color:#fff}
.host{background:#10b981;color:#042014}

/* textos de ayuda/leyenda */
.help{font-size:15px;color:var(--muted);margin-top:10px}
.small{font-size:14px;color:var(--muted)}
footer{margin-top:18px;text-align:right;color:var(--muted);font-size:14px}
.error{color:var(--danger);font-weight:700}

/* overflow para la barra combinada */
#binOut .binary-bar{max-width:100%;overflow-x:auto;padding-bottom:6px}

/* leyenda grande */
.legend-sub{display:inline-block;width:16px;height:16px;background:#ef4444;margin:0 8px;vertical-align:middle;border-radius:3px}
.legend-host{display:inline-block;width:16px;height:16px;background:#10b981;margin:0 8px;vertical-align:middle;border-radius:3px}

/* Responsive: aún grande pero se adapta */
@media(max-width:1100px){
  .grid{grid-template-columns:1fr}
  .wrap{padding:18px}
  .logo{width:68px;height:68px;font-size:24px}
  .bin-seg{min-width:30px;padding:8px 10px;font-size:14px}
  input[type=text]{padding:12px;font-size:15px}
}
@media(max-width:520px){
  body{padding:16px}
  .wrap{width:100%;padding:14px}
  .logo{width:56px;height:56px;font-size:20px}
  .bin-seg{min-width:26px;padding:6px 8px;font-size:12px}
  .row{flex-direction:column;align-items:flex-start;gap:6px}
  .value{width:100%}
}

.cv-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 10px;
    background: #4c7bff;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;

    box-shadow: 0 6px 18px rgba(76,123,255,0.25);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.cv-button:hover {
    background: #6c8fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(76,123,255,0.35);
}

.cv-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(76,123,255,0.18);
}



