/* ============ RESET & BASE MOBILE-FIRST ============ */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg-1:#0a0a0b;
  --bg-2:#141417;
  --bg-3:#1c1c20;
  --metal-1:#2a2a2f;
  --metal-2:#3a3a42;
  --metal-3:#4a4a55;
  --line:#3a3a42;
  --white:#f5f5f7;
  --white-soft:#c8c8cf;
  --accent:#e8e8ef;
  --glow:rgba(255,255,255,0.08);
}
html,body{height:100%;font-size:16px}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03), transparent 40%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color:var(--white);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
.bg-glow{
  position:fixed;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(500px circle at 85% 70%, rgba(255,255,255,0.04), transparent 60%);
}

/* ============ CONTAINER ============ */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:20px 16px;
  position:relative;
  z-index:1;
}

/* ============ HERO ============ */
.hero{text-align:center;padding:30px 10px 20px}
.logo{
  font-size:48px;
  display:inline-block;
  width:80px;height:80px;line-height:80px;
  border-radius:50%;
  background:linear-gradient(145deg,var(--metal-2),var(--metal-1));
  box-shadow:
    inset 2px 2px 6px rgba(255,255,255,0.15),
    inset -2px -2px 6px rgba(0,0,0,0.6),
    0 8px 20px rgba(0,0,0,0.5);
  margin-bottom:20px;
  color:var(--white);
}
.hero h1{
  font-size:24px;
  font-weight:300;
  letter-spacing:1px;
  background:linear-gradient(180deg,#fff 0%,#888 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  line-height:1.3;
}
.subtitle{
  color:var(--white-soft);
  margin-top:10px;
  letter-spacing:2px;
  font-size:11px;
  text-transform:uppercase;
}

/* ============ SEARCH PANEL ============ */
.search-panel{
  margin:24px 0;
  background:linear-gradient(145deg,var(--metal-1),var(--bg-2));
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.08),
    inset -1px -1px 2px rgba(0,0,0,0.5),
    0 15px 40px rgba(0,0,0,0.4);
}
.search-panel h2{
  font-weight:300;
  font-size:18px;
  margin-bottom:16px;
  color:var(--white);
  letter-spacing:0.5px;
}
.search-form .input-wrap{
  display:flex;
  gap:0;
  background:var(--bg-1);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  box-shadow:inset 2px 2px 6px rgba(0,0,0,0.6);
}
.search-form input[type=text]{
  flex:1;
  padding:16px 18px;
  background:transparent;
  border:none;
  outline:none;
  color:var(--white);
  font-size:15px;
  min-height:48px;
}
.search-form input[type=text]::placeholder{color:#666}
.search-form button{
  padding:0 24px;
  background:linear-gradient(145deg,#fff,#b8b8c0);
  border:none;
  color:#111;
  font-weight:600;
  cursor:pointer;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:12px;
  transition:all .3s;
  min-height:48px;
  white-space:nowrap;
}
.search-form button:hover{background:linear-gradient(145deg,#fff,#e0e0e5)}
.search-form button:active{transform:scale(0.98)}
.filters{margin-top:16px;display:flex;gap:12px;flex-wrap:wrap}
.filters label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  background:var(--bg-1);
  border:1px solid var(--line);
  border-radius:30px;
  cursor:pointer;
  font-size:13px;
  color:var(--white-soft);
  transition:all .3s;
  min-height:44px;
}
.filters label:hover{border-color:#666;color:var(--white)}
.filters input[type=checkbox]{
  accent-color:#fff;
  width:18px;
  height:18px;
}

/* ============ STATS ============ */
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:12px;
  margin-top:20px;
}
.stat-card{
  text-align:center;
  padding:20px 16px;
  background:linear-gradient(145deg,var(--metal-1),var(--bg-3));
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.08),
    inset -1px -1px 2px rgba(0,0,0,0.5);
}
.stat-num{
  font-size:32px;
  font-weight:200;
  background:linear-gradient(180deg,#fff,#666);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.stat-label{
  margin-top:6px;
  color:var(--white-soft);
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
}

/* ============ MINI HERO ============ */
.mini-hero{padding:20px 0 30px;border-bottom:1px solid var(--line);margin-bottom:30px}
.back{
  color:var(--white-soft);
  text-decoration:none;
  font-size:14px;
  letter-spacing:0.5px;
  display:inline-block;
  padding:8px 0;
}
.back:hover{color:var(--white)}
.mini-hero h1{
  font-weight:300;
  font-size:22px;
  margin:10px 0 6px;
  line-height:1.4;
}
.mini-hero h1 span{
  background:linear-gradient(180deg,#fff,#888);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.mini-hero p{color:var(--white-soft);font-size:13px}

/* ============ DX CARD ============ */
.dx-card{
  margin-bottom:24px;
  background:linear-gradient(145deg,var(--metal-1),var(--bg-2));
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.4), inset 1px 1px 2px rgba(255,255,255,0.06);
}
.dx-header{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.dx-code{
  font-family:'Courier New',monospace;
  padding:5px 12px;
  background:linear-gradient(145deg,#fff,#c0c0c8);
  color:#111;
  border-radius:6px;
  font-weight:700;
  font-size:12px;
}
.dx-type{
  padding:5px 12px;
  border-radius:6px;
  font-size:11px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  font-weight:600;
}
.type-real{background:linear-gradient(145deg,#2a4a3a,#1a3028);color:#9fd8b8;border:1px solid #2a4a3a}
.type-riesgo{background:linear-gradient(145deg,#4a3a2a,#302818);color:#e0c080;border:1px solid #4a3a2a}
.type-promociondelasalud{background:linear-gradient(145deg,#2a3a4a,#182830);color:#80c0e0;border:1px solid #2a3a4a}
.dx-name{
  font-size:20px;
  font-weight:400;
  margin-bottom:10px;
  color:var(--white);
  line-height:1.3;
}
.dx-def{
  color:var(--white-soft);
  line-height:1.6;
  margin-bottom:14px;
  font-size:14px;
}
.dx-meta{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--white-soft);
  padding-top:12px;
  border-top:1px solid var(--line);
}
.dx-meta b{color:var(--white)}

/* ============ GRID ============ */
.grid-3{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:20px;
}
.info-box{
  background:var(--bg-1);
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  box-shadow:inset 2px 2px 6px rgba(0,0,0,0.5);
}
.info-box h3{
  font-size:13px;
  font-weight:600;
  margin-bottom:10px;
  color:var(--white);
  letter-spacing:0.5px;
}
.info-box ul{list-style:none}
.info-box li{
  padding:8px 0 8px 16px;
  border-bottom:1px dashed rgba(255,255,255,0.06);
  color:var(--white-soft);
  font-size:13px;
  line-height:1.5;
  position:relative;
}
.info-box li::before{content:"▸";position:absolute;left:0;color:#888}
.info-box li:last-child{border-bottom:none}

/* ============ NIC SECTION ============ */
.nic-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.nic-section > h3{
  font-size:16px;
  font-weight:400;
  margin-bottom:16px;
  color:var(--white);
  letter-spacing:0.5px;
}
.nic-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.nic-card{
  background:linear-gradient(145deg,var(--bg-3),var(--bg-1));
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
  transition:all .3s;
}
.nic-card:hover{border-color:#555;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.4)}
.nic-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.nic-code{
  font-family:'Courier New',monospace;
  padding:4px 10px;
  background:var(--metal-2);
  color:var(--white);
  border-radius:4px;
  font-size:11px;
  font-weight:700;
}
.nic-head h4{
  font-size:14px;
  font-weight:500;
  color:var(--white);
  line-height:1.3;
}
.nic-def{
  color:var(--white-soft);
  font-size:13px;
  line-height:1.6;
  margin-bottom:12px;
}
.act-box,.noc-box{
  margin-top:12px;
  padding:12px;
  background:rgba(0,0,0,0.3);
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
}
.act-box b,.noc-box > b{
  font-size:11px;
  color:var(--white);
  letter-spacing:0.5px;
  text-transform:uppercase;
  display:block;
  margin-bottom:8px;
}
.act-box ul{list-style:none}
.act-box li{
  padding:4px 0 4px 14px;
  color:var(--white-soft);
  font-size:12px;
  position:relative;
  line-height:1.5;
}
.act-box li::before{content:"•";position:absolute;left:0;color:#666}

.noc-item{
  margin-top:10px;
  padding:12px;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:8px;
}
.noc-head{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:6px;
  flex-wrap:wrap;
}
.noc-code{
  font-family:'Courier New',monospace;
  padding:3px 8px;
  background:linear-gradient(145deg,#fff,#c0c0c8);
  color:#111;
  border-radius:4px;
  font-size:10px;
  font-weight:700;
}
.noc-head span:last-child{
  font-size:13px;
  color:var(--white);
  font-weight:500;
  line-height:1.3;
}
.noc-def{
  font-size:12px;
  color:var(--white-soft);
  line-height:1.5;
  margin-bottom:8px;
}
.ind-box{
  margin-top:8px;
  padding:10px;
  background:rgba(0,0,0,0.25);
  border-radius:6px;
}
.ind-box b{
  font-size:10px;
  color:var(--white);
  letter-spacing:0.5px;
  text-transform:uppercase;
  display:block;
  margin-bottom:6px;
}
.ind-box ul{list-style:none}
.ind-box li{
  padding:3px 0 3px 14px;
  color:var(--white-soft);
  font-size:11px;
  position:relative;
  line-height:1.4;
}
.ind-box li::before{content:"◇";position:absolute;left:0;color:#555}

.empty{
  text-align:center;
  padding:40px 20px;
  background:var(--bg-2);
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--white-soft);
  font-size:14px;
}

/* ============ TABLET (768px+) ============ */
@media (min-width:768px){
  .container{padding:30px 24px}
  .hero{padding:50px 20px 30px}
  .logo{width:90px;height:90px;line-height:90px;font-size:54px}
  .hero h1{font-size:32px}
  .subtitle{font-size:12px;letter-spacing:3px}
  .search-panel{padding:28px}
  .search-panel h2{font-size:20px}
  .search-form input[type=text]{font-size:16px;padding:18px 20px}
  .search-form button{padding:0 32px;font-size:13px}
  .stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
  .stat-card{padding:24px 20px}
  .stat-num{font-size:36px}
  .stat-label{font-size:12px}
  .mini-hero h1{font-size:28px}
  .dx-card{padding:28px}
  .dx-name{font-size:24px}
  .dx-def{font-size:15px}
  .grid-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
  .nic-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}
  .nic-head h4{font-size:15px}
}

/* ============ DESKTOP (1024px+) ============ */
@media (min-width:1024px){
  .container{padding:40px 32px}
  .hero{padding:60px 20px 40px}
  .logo{width:100px;height:100px;line-height:100px;font-size:60px}
  .hero h1{font-size:42px;letter-spacing:2px}
  .subtitle{font-size:13px;letter-spacing:4px}
  .search-panel{padding:36px}
  .search-panel h2{font-size:22px}
  .stats{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
  .stat-card{padding:30px 20px}
  .stat-num{font-size:42px}
  .stat-label{font-size:12px;letter-spacing:2px}
  .mini-hero{padding:30px 0 40px;margin-bottom:40px}
  .mini-hero h1{font-size:32px}
  .dx-card{padding:32px;margin-bottom:40px}
  .dx-name{font-size:26px}
  .dx-def{font-size:16px}
  .grid-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
  .info-box{padding:20px}
  .info-box h3{font-size:14px}
  .info-box li{font-size:13px}
  .nic-section{margin-top:32px;padding-top:24px}
  .nic-section > h3{font-size:18px}
  .nic-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:18px}
  .nic-card{padding:22px}
  .nic-head h4{font-size:15px}
  .nic-def{font-size:13px}
}

/* ============ TOUCH OPTIMIZATIONS ============ */
@media (hover:none){
  .nic-card:hover{transform:none;box-shadow:none}
  .search-form button:active{background:linear-gradient(145deg,#e0e0e5,#b8b8c0)}
}

/* ============ DARK MODE PREFERENCES ============ */
@media (prefers-color-scheme:dark){
  :root{
    --bg-1:#0a0a0b;
    --bg-2:#141417;
  }
}

/* ============ RESET & BASE ============ */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg-1:#0a0a0b;
  --bg-2:#141417;
  --bg-3:#1c1c20;
  --metal-1:#2a2a2f;
  --metal-2:#3a3a42;
  --metal-3:#4a4a55;
  --line:#3a3a42;
  --white:#f5f5f7;
  --white-soft:#c8c8cf;
  --accent:#e8e8ef;
}
html,body{height:100%;font-size:16px}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03), transparent 40%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color:var(--white);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
}
.bg-glow{
  position:fixed;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(500px circle at 85% 70%, rgba(255,255,255,0.04), transparent 60%);
}
.container{
  max-width:1200px;
  margin:0 auto;
  padding:20px 16px;
  position:relative;
  z-index:1;
  flex:1;
}

/* ============ HERO ============ */
.hero{text-align:center;padding:30px 10px 20px}
.logo{
  font-size:48px;
  display:inline-block;
  width:80px;height:80px;line-height:80px;
  border-radius:50%;
  background:linear-gradient(145deg,var(--metal-2),var(--metal-1));
  box-shadow:
    inset 2px 2px 6px rgba(255,255,255,0.15),
    inset -2px -2px 6px rgba(0,0,0,0.6),
    0 8px 20px rgba(0,0,0,0.5);
  margin-bottom:20px;
}
.hero h1{
  font-size:24px;
  font-weight:300;
  letter-spacing:1px;
  background:linear-gradient(180deg,#fff 0%,#888 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  line-height:1.3;
}
.subtitle{
  color:var(--white-soft);
  margin-top:10px;
  letter-spacing:2px;
  font-size:11px;
  text-transform:uppercase;
}

/* ============ SEARCH PANEL ============ */
.search-panel{
  margin:24px 0;
  background:linear-gradient(145deg,var(--metal-1),var(--bg-2));
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.08),
    inset -1px -1px 2px rgba(0,0,0,0.5),
    0 15px 40px rgba(0,0,0,0.4);
}
.search-panel h2{
  font-weight:300;
  font-size:18px;
  margin-bottom:16px;
  color:var(--white);
  letter-spacing:0.5px;
}
.search-wrapper{position:relative}
.search-form .input-wrap,
.input-wrap{
  display:flex;
  gap:0;
  background:var(--bg-1);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  box-shadow:inset 2px 2px 6px rgba(0,0,0,0.6);
}
.input-wrap input[type=text]{
  flex:1;
  padding:16px 18px;
  background:transparent;
  border:none;
  outline:none;
  color:var(--white);
  font-size:15px;
  min-height:48px;
}
.input-wrap input[type=text]::placeholder{color:#666}
.input-wrap input[type=text]:focus{background:rgba(255,255,255,0.02)}
.input-wrap button{
  padding:0 24px;
  background:linear-gradient(145deg,#fff,#b8b8c0);
  border:none;
  color:#111;
  font-weight:600;
  cursor:pointer;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:12px;
  transition:all .3s;
  min-height:48px;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:6px;
}
.input-wrap button:hover{background:linear-gradient(145deg,#fff,#e0e0e5)}
.input-wrap button:active{transform:scale(0.98)}
.filters{margin-top:16px;display:flex;gap:12px;flex-wrap:wrap}
.filters label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  background:var(--bg-1);
  border:1px solid var(--line);
  border-radius:30px;
  cursor:pointer;
  font-size:13px;
  color:var(--white-soft);
  transition:all .3s;
  min-height:44px;
  user-select:none;
}
.filters label:hover{border-color:#666;color:var(--white)}
.filters input[type=checkbox]{
  accent-color:#fff;
  width:18px;
  height:18px;
}

/* ============ SUGERENCIAS (DROPDOWN) ============ */
.suggestions-box{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:12px;
  max-height:320px;
  overflow-y:auto;
  z-index:100;
  box-shadow:0 15px 40px rgba(0,0,0,0.6);
  animation:slideDown .2s ease;
}
@keyframes slideDown{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:translateY(0)}
}
.suggestion-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,0.04);
  transition:background .2s;
}
.suggestion-item:last-child{border-bottom:none}
.suggestion-item:hover{background:var(--metal-1)}
.suggestion-item.empty{
  cursor:default;
  color:var(--white-soft);
  font-size:13px;
  justify-content:center;
}
.suggestion-item.empty:hover{background:transparent}
.sug-code{
  font-family:'Courier New',monospace;
  padding:4px 10px;
  background:linear-gradient(145deg,#fff,#c0c0c8);
  color:#111;
  border-radius:6px;
  font-weight:700;
  font-size:11px;
  min-width:60px;
  text-align:center;
}
.sug-name{
  flex:1;
  font-size:14px;
  color:var(--white);
  line-height:1.3;
}
.sug-type{
  padding:4px 10px;
  border-radius:6px;
  font-size:10px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  font-weight:600;
  white-space:nowrap;
}
.type-real{background:linear-gradient(145deg,#2a4a3a,#1a3028);color:#9fd8b8;border:1px solid #2a4a3a}
.type-riesgo{background:linear-gradient(145deg,#4a3a2a,#302818);color:#e0c080;border:1px solid #4a3a2a}
.type-promocióndelasalud{background:linear-gradient(145deg,#2a3a4a,#182830);color:#80c0e0;border:1px solid #2a3a4a}

/* ============ STATS ============ */
.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:20px;
}
.stat-card{
  text-align:center;
  padding:20px 12px;
  background:linear-gradient(145deg,var(--metal-1),var(--bg-3));
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.08),
    inset -1px -1px 2px rgba(0,0,0,0.5);
}
.stat-icon{font-size:28px;margin-bottom:8px}
.stat-num{
  font-size:28px;
  font-weight:200;
  background:linear-gradient(180deg,#fff,#666);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.stat-label{
  margin-top:6px;
  color:var(--white-soft);
  font-size:10px;
  letter-spacing:1px;
  text-transform:uppercase;
  line-height:1.3;
}

/* ============ LOADING ============ */
.loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  gap:16px;
}
.spinner{
  width:40px;height:40px;
  border:3px solid var(--line);
  border-top-color:var(--white);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.loading p{color:var(--white-soft);font-size:14px}

/* ============ DX CARD ============ */
.dx-card{
  margin-top:24px;
  background:linear-gradient(145deg,var(--metal-1),var(--bg-2));
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.4), inset 1px 1px 2px rgba(255,255,255,0.06);
}
.fade-in{animation:fadeIn .4s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.dx-header{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.dx-code{
  font-family:'Courier New',monospace;
  padding:5px 12px;
  background:linear-gradient(145deg,#fff,#c0c0c8);
  color:#111;
  border-radius:6px;
  font-weight:700;
  font-size:12px;
}
.dx-type{
  padding:5px 12px;
  border-radius:6px;
  font-size:11px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  font-weight:600;
}
.dx-name{
  font-size:20px;
  font-weight:400;
  margin-bottom:10px;
  color:var(--white);
  line-height:1.3;
}
.dx-def{
  color:var(--white-soft);
  line-height:1.6;
  margin-bottom:14px;
  font-size:14px;
}
.dx-meta{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--white-soft);
  padding-top:12px;
  border-top:1px solid var(--line);
}
.dx-meta b{color:var(--white)}

/* ============ GRID 3 COLUMNAS ============ */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:20px;
}
.info-box{
  background:var(--bg-1);
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  box-shadow:inset 2px 2px 6px rgba(0,0,0,0.5);
}
.info-box h3{
  font-size:13px;
  font-weight:600;
  margin-bottom:10px;
  color:var(--white);
  letter-spacing:0.5px;
}
.info-box ul{list-style:none}
.info-box li{
  padding:8px 0 8px 16px;
  border-bottom:1px dashed rgba(255,255,255,0.06);
  color:var(--white-soft);
  font-size:13px;
  line-height:1.5;
  position:relative;
}
.info-box li::before{content:"▸";position:absolute;left:0;color:#888}
.info-box li:last-child{border-bottom:none}

/* ============ NIC SECTION ============ */
.nic-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.nic-section > h3{
  font-size:16px;
  font-weight:400;
  margin-bottom:16px;
  color:var(--white);
  letter-spacing:0.5px;
}
.nic-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.nic-card{
  background:linear-gradient(145deg,var(--bg-3),var(--bg-1));
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
  transition:all .3s;
}
.nic-card:hover{border-color:#555;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.4)}
.nic-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.nic-code{
  font-family:'Courier New',monospace;
  padding:4px 10px;
  background:var(--metal-2);
  color:var(--white);
  border-radius:4px;
  font-size:11px;
  font-weight:700;
}
.nic-head h4{
  font-size:14px;
  font-weight:500;
  color:var(--white);
  line-height:1.3;
}
.nic-def{
  color:var(--white-soft);
  font-size:13px;
  line-height:1.6;
  margin-bottom:12px;
}
.act-box,.noc-box{
  margin-top:12px;
  padding:12px;
  background:rgba(0,0,0,0.3);
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
}
.act-box b,.noc-box > b{
  font-size:11px;
  color:var(--white);
  letter-spacing:0.5px;
  text-transform:uppercase;
  display:block;
  margin-bottom:8px;
}
.act-box ul,.noc-box ul{list-style:none}
.act-box li,.noc-box li{
  padding:4px 0 4px 14px;
  color:var(--white-soft);
  font-size:12px;
  position:relative;
  line-height:1.5;
}
.act-box li::before{content:"•";position:absolute;left:0;color:#666}
.noc-box li::before{content:"◇";position:absolute;left:0;color:#555}

.noc-item{
  margin-top:10px;
  padding:12px;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:8px;
}
.noc-head{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:6px;
  flex-wrap:wrap;
}
.noc-code{
  font-family:'Courier New',monospace;
  padding:3px 8px;
  background:linear-gradient(145deg,#fff,#c0c0c8);
  color:#111;
  border-radius:4px;
  font-size:10px;
  font-weight:700;
}
.noc-head span:last-child{
  font-size:13px;
  color:var(--white);
  font-weight:500;
  line-height:1.3;
}
.noc-def{
  font-size:12px;
  color:var(--white-soft);
  line-height:1.5;
  margin-bottom:8px;
}
.ind-box{
  margin-top:8px;
  padding:10px;
  background:rgba(0,0,0,0.25);
  border-radius:6px;
}
.ind-box b{
  font-size:10px;
  color:var(--white);
  letter-spacing:0.5px;
  text-transform:uppercase;
  display:block;
  margin-bottom:6px;
}
.ind-box ul{list-style:none}
.ind-box li{
  padding:3px 0 3px 14px;
  color:var(--white-soft);
  font-size:11px;
  position:relative;
  line-height:1.4;
}
.ind-box li::before{content:"◇";position:absolute;left:0;color:#555}

.empty{
  text-align:center;
  padding:40px 20px;
  background:var(--bg-2);
  border:1px dashed var(--line);
  border-radius:14px;
  color:var(--white-soft);
  font-size:14px;
}

/* ============ FOOTER ============ */
.site-footer{
  margin-top:auto;
  background:linear-gradient(180deg,var(--bg-2),#050506);
  border-top:1px solid var(--line);
  padding:24px 16px;
  position:relative;
  z-index:1;
}
.footer-content{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:var(--white);
  font-weight:500;
}
.footer-logo{
  font-size:24px;
  width:40px;height:40px;line-height:40px;
  text-align:center;
  background:linear-gradient(145deg,var(--metal-2),var(--metal-1));
  border-radius:50%;
  box-shadow:inset 1px 1px 3px rgba(255,255,255,0.15), inset -1px -1px 3px rgba(0,0,0,0.6);
}
.footer-info{
  text-align:center;
  flex:1;
}
.footer-info p{
  color:var(--white-soft);
  font-size:13px;
  line-height:1.5;
}
.footer-info strong{
  color:var(--white);
  background:linear-gradient(180deg,#fff,#888);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  font-weight:700;
}
.footer-small{
  font-size:11px !important;
  color:#666 !important;
  margin-top:4px;
}
.footer-links{
  color:var(--white-soft);
  font-size:12px;
  padding:4px 12px;
  background:var(--metal-1);
  border:1px solid var(--line);
  border-radius:20px;
}

/* ============ TABLET (768px+) ============ */
@media (min-width:768px){
  .container{padding:30px 24px}
  .hero{padding:50px 20px 30px}
  .logo{width:90px;height:90px;line-height:90px;font-size:54px}
  .hero h1{font-size:32px}
  .subtitle{font-size:12px;letter-spacing:3px}
  .search-panel{padding:28px}
  .search-panel h2{font-size:20px}
  .input-wrap input[type=text]{font-size:16px;padding:18px 20px}
  .input-wrap button{padding:0 32px;font-size:13px}
  .stats{gap:16px}
  .stat-card{padding:24px 16px}
  .stat-num{font-size:32px}
  .stat-label{font-size:11px}
  .dx-card{padding:28px}
  .dx-name{font-size:24px}
  .dx-def{font-size:15px}
  .grid-3{gap:16px}
  .nic-grid{gap:16px}
  .nic-head h4{font-size:15px}
  .footer-content{padding:0 24px}
}

/* ============ DESKTOP (1024px+) ============ */
@media (min-width:1024px){
  .container{padding:40px 32px}
  .hero{padding:60px 20px 40px}
  .logo{width:100px;height:100px;line-height:100px;font-size:60px}
  .hero h1{font-size:42px;letter-spacing:2px}
  .subtitle{font-size:13px;letter-spacing:4px}
  .search-panel{padding:36px}
  .search-panel h2{font-size:22px}
  .stats{gap:20px}
  .stat-card{padding:30px 20px}
  .stat-num{font-size:36px}
  .stat-label{font-size:12px;letter-spacing:2px}
  .dx-card{padding:32px;margin-top:40px}
  .dx-name{font-size:26px}
  .dx-def{font-size:16px}
  .grid-3{gap:16px}
  .info-box{padding:20px}
  .info-box h3{font-size:14px}
  .info-box li{font-size:13px}
  .nic-section{margin-top:32px;padding-top:24px}
  .nic-section > h3{font-size:18px}
  .nic-grid{gap:18px}
  .nic-card{padding:22px}
  .nic-head h4{font-size:15px}
  .nic-def{font-size:13px}
}

/* ============ MOBILE (<768px) - 1 columna para info-boxes ============ */
@media (max-width:767px){
  .grid-3{
    grid-template-columns:1fr;
  }
  .nic-grid{
    grid-template-columns:1fr;
  }
  .stats{
    grid-template-columns:repeat(3,1fr);
  }
  .stat-label{font-size:9px}
  .stat-num{font-size:24px}
  .footer-content{
    flex-direction:column;
    text-align:center;
  }
  .suggestion-item{
    padding:12px 14px;
  }
  .sug-name{font-size:13px}
  .sug-type{display:none}
}

/* ============ TOUCH ============ */
@media (hover:none){
  .nic-card:hover{transform:none;box-shadow:none}
  .input-wrap button:active{background:linear-gradient(145deg,#e0e0e5,#b8b8c0)}
}

/* ============ ESTRUCTURA PES NANDA ============ */
.pes-structure {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(145deg, var(--bg-1), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 4px solid #fff;
}

.pes-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--white);
}

.pes-label:first-child {
  margin-top: 0;
}

.pes-icon {
  font-size: 18px;
}

.pes-label strong {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pes-text {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pes-list li {
  padding: 10px 16px 10px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  margin-bottom: 6px;
  color: var(--white-soft);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.pes-list li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.pes-list li::before {
  content: "▸";
  position: absolute;
  left: 16px;
  color: #888;
  font-size: 12px;
}

.pes-list li:last-child {
  margin-bottom: 0;
}

/* ============ RESPONSIVE PES ============ */
@media (max-width: 767px) {
  .pes-structure {
    padding: 16px;
  }
  
  .pes-label {
    font-size: 13px;
  }
  
  .pes-text {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .pes-list li {
    font-size: 13px;
    padding: 8px 12px 8px 32px;
  }
}

/* ============ ICONOS SVG METÁLICOS ============ */
.stat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  height: 60px;
}

.stat-icon-img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover .stat-icon-img {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.15));
}

/* Iconos en secciones NIC/NOC */
.nic-icon, .noc-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Animación sutil de entrada */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.stat-card:hover .stat-icon-img {
  animation: iconFloat 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 767px) {
  .stat-icon { height: 48px; }
  .stat-icon-img { width: 44px; height: 44px; }
}


/* ============ ICONO DE BÚSQUEDA METÁLICO ============ */
#searchBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px !important;
}

.search-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
}

#searchBtn:hover .search-icon {
  transform: scale(1.15) rotate(-10deg);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.2));
}

#searchBtn:active .search-icon {
  transform: scale(0.95);
}

/* Animación de búsqueda activa */
@keyframes searchPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.searching .search-icon {
  animation: searchPulse 1s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 767px) {
  .search-icon {
    width: 18px;
    height: 18px;
  }
  
  #searchBtn span {
    display: none; /* En móvil solo muestra el icono */
  }
  
  #searchBtn {
    padding: 0 16px !important;
  }
}


/* Icono dentro del input */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 16px;
  pointer-events: none;
  z-index: 2;
}

.input-search-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.input-wrap input[type=text] {
  padding-left: 48px !important; /* Espacio para el icono */
}

.input-wrap input[type=text]:focus + .input-icon-left .input-search-icon,
.input-wrap input[type=text]:not(:placeholder-shown) + .input-icon-left .input-search-icon {
  opacity: 0.8;
}

/* Ajuste del botón para que no se superponga */
.input-wrap button {
  position: relative;
  z-index: 2;
}