:root{
  --bg: #DCEFF4;       
  --surface: #E8F3F6;   
  --primary: #00A7C5;   
  --primary-hover: #0092AC; 
  --text: #0F2024;     
  --white: #FFFFFF;
  --maxw: 1100px;
}


*{ box-sizing:border-box; margin:0; padding:0; }
html, body{ height:100%; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

body > header,
body > nav,
body > section,
body > aside,
body > footer{
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}


header{
  background: var(--bg);
  text-align: center;
  padding-block: 24px 16px;
  border-bottom: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 167, 197, 0.15);
}
header .vn17{
  display:block;
  max-width: 100%;
  height:auto;
  margin-inline:auto;
}


body > nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
  padding-block: 16px 10px;
}
body > nav h3{
  margin:0 10px 0 0;
  font-size:1.05rem;
}
body > nav a{
  text-decoration:none;
  background: var(--primary);
  color: var(--white);
  padding:10px 14px;
  border-radius:999px;
  font-weight:600;
  transition:transform .06s ease, background .25s ease, color .25s ease;
}
body > nav a:hover,
body > nav a:focus{
  background: var(--white);
  color: var(--primary);
  transform:translateY(-1px);
}


section.Proyecto{
  margin-top: 8px;
}
section.Proyecto nav{
  background: transparent;
  padding-block: 8px 2px;
  border-top: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
}
section.Proyecto h2{
  margin: 8px 0 6px;
  font-size: 1.25rem;
}
section.Proyecto ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
section.Proyecto a{
  display:inline-block;
  text-decoration:none;
  background: var(--primary);
  color: var(--white);
  padding:10px 16px;
  border-radius: 999px;
  font-weight:600;
  transition:transform .06s ease, background .25s ease, color .25s ease;
}
section.Proyecto a:hover,
section.Proyecto a:focus{
  background: var(--white);
  color: var(--primary);
  transform:translateY(-1px);
}


body > section:not(.Proyecto){
  margin-top: 18px;
  display:grid;
  gap:14px;
}
body > section:not(.Proyecto) article{
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--surface) 70%, #0000);
  border-radius:16px;
  padding:14px 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
a.FADU{
  color: var(--primary);
  font-weight:700;
  text-decoration:none;
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
}
a.FADU:hover{ filter:brightness(1.1); }


@media (min-width: 720px){
  body > section:not(.Proyecto){
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (min-width: 1024px){
  body > section:not(.Proyecto){
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}


aside{
  margin-top:18px;
  background: var(--surface);
  border-radius:14px;
  padding:14px 16px;
}


footer{
  margin-top:24px;
  background: var(--bg);
  padding:16px 20px 24px;
  font-size:.95rem;
  border-top: 1px solid rgba(0,0,0,.05);
  text-align:center;
}


.btn{
  display:inline-block;
  background: var(--primary);
  color: var(--white);
  padding:12px 20px;
  border:none;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  transition: all .2s ease;
}
.btn:hover,
.btn:focus{
  background: var(--white);
  color: var(--primary);
  transform:translateY(-1px);
}
.btn:active{
  background: var(--primary-hover);
  color:var(--white);
}


.text-center{ text-align:center; }
.hide{ display:none !important; }


@media (prefers-color-scheme: dark){
  :root{ --text:#EAF3EC; --bg:#0C1519; --surface:#17242A; }
  body > section:not(.Proyecto) article{ background:#0f0f0f; }
}