:root{
  --primary:#162b52;
  --bg:#eef3f9;
  --text:#141414;
  --muted:#5f6470;
  --line:#dfe5ed;
  --card:#ffffff;
  --radius:18px;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: linear-gradient(180deg, #f3f6fa 0%, #e4ebf3 100%);
  line-height:1.6;
}

a{ color:inherit; }

.container{
  width:92%;
  max-width:1120px;
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}

.topbar-brand{
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
}

.topbar-name{
  font-weight:750;
  letter-spacing:.2px;
  font-size:16px;
  color:var(--primary);
}

.topbar-nav{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

.topbar-nav a{
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
}

.topbar-nav a:hover{ color:var(--primary); }

.topbar-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  border:1px solid transparent;
  white-space:nowrap;
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-primary:hover{ opacity:.92; }

.btn-ghost{
  background:transparent;
  color:var(--primary);
  border-color: rgba(22,43,82,.28);
}

.btn-ghost:hover{
  background: rgba(22,43,82,.06);
}

.hero{
  background: linear-gradient(180deg, #ffffff 0%, #edf3fa 100%);
  padding:34px 0 0;
}

.hero-inner{
  display:flex;
  align-items:center;
  gap:34px;
  padding:22px 0 26px;
}

.hero-left{
  flex:0 0 auto;
  width:320px;
  text-align:center;
}

.hero-logo{
  width:240px;
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto 12px;
}

.hero-motto{
  margin:0;
  font-weight:650;
  color:var(--primary);
}

.hero-motto-sub{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  font-style:italic;
}

.hero-right{
  flex:1 1 auto;
  min-width:260px;
}

.hero-title{
  margin:0 0 12px 0;
  font-size:30px;
  font-weight:850;
  letter-spacing:.6px;
}
.hero-subtitle{
  margin:16px 0 6px;
  font-size:18px;
  font-weight:700;
  color:var(--text) !important;
}

.hero-text{
  margin:0 0 14px 0;
  color:#2b2f36;
  max-width:62ch;
}

.hero-work{
  margin-top:16px;
  padding:14px 16px;
  background:rgba(255,255,255,.76);
  border:1px solid var(--line);
  border-radius:14px;
  max-width:64ch;
  box-shadow: 0 10px 24px rgba(22,43,82,.05);
}

.hero-work-title{
  margin:0 0 6px 0;
  font-size:14px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--primary);
  text-transform:uppercase;
}

.hero-work p{
  margin:0;
  color:#2b2f36;
}

.hero-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.hero-shelf{
  position:relative;
  height:88px;
  background-image:url("biblioteca.png");
  background-size:cover;
  background-position:center;
  border-top:1px solid var(--line);
  border-bottom:1px solid rgba(22,43,82,.12);
}

.hero-shelf::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.06) 100%);
}

.section{
  padding:52px 0;
}

.section-alt{
  background: rgba(255,255,255,.56);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(4px);
}

.section-title{
  margin:0 0 18px 0;
  font-size:24px;
  font-weight:800;
  color:var(--primary);
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px 16px 14px;
  box-shadow: 0 14px 28px rgba(22,43,82,.06);
}

.card-title{
  margin:0 0 10px 0;
  font-size:17px;
  font-weight:850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-list{
  margin:0;
  padding-left:18px;
  color:#2b2f36;
}

.card-list li{ margin:8px 0; }

.note{
  margin:18px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:13.5px;
  font-weight:650;
}

.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
  margin-top:10px;
}

.contact-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: 0 10px 24px rgba(22,43,82,.05);
}

.icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(22,43,82,.06);
  color: var(--primary);
  flex:0 0 auto;
}

.icon svg{
  width:22px;
  height:22px;
  color:currentColor;
}

.icon.whatsapp{
  background: rgba(37, 211, 102, .12);
  color: #1a7f45;
}

.label{
  font-size:12.5px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.2px;
  text-transform: uppercase;
}

.value{
  margin-top:4px;
  font-size:15px;
  color:#2b2f36;
}

.value a{
  text-decoration:none;
  color: var(--primary);
}

.value a:hover{ text-decoration: underline; }

.contact-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.closing-photo{
  position:relative;
  height:340px;
  overflow:hidden;
}

.closing-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
}

.closing-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0.32) 100%);
}

.closing-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:14px;
  text-align:center;
  color:#fff;
  font-weight:750;
  letter-spacing:.2px;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.footer{
  background:rgba(255,255,255,.88);
  border-top:1px solid var(--line);
  padding:16px 0;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:14px;
}

.to-top{
  text-decoration:none;
  color:var(--primary);
}

.to-top:hover{ text-decoration:underline; }

@media (max-width: 980px){
  .topbar-nav{ display:none; }
  .hero-inner{ flex-direction:column; text-align:center; }
  .hero-left{ width:auto; }
  .hero-work{ margin-left:auto; margin-right:auto; }
  .cards{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction:column; }
  .closing-photo{ height:280px; }
}
