:root{ --primary:#006241; --accent:#00a36c; --bg:#ffffff; --ink:#1b1b1b; --muted:#5f6b6b; --surface:#f6f8f8; }
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}
img{max-width:100%;display:block}
.container{width:min(1200px,92%);margin-inline:auto}
.flex{display:flex;gap:1rem} .between{justify-content:space-between} .center-v{align-items:center}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.list-plain{list-style:none;padding:0;margin:0} .list-plain li{margin:.35rem 0}

/* Evita cualquier fondo sobre la imagen */
.img-transparent { background: transparent !important; }
/* (Opcional) si quieres que la tarjeta tampoco agregue fondo visible detrás del logo */
.card.noimgbg { background: transparent; border: 1px solid #e5eded; }
.cards-noimgbg .card .p { background: transparent; }

/* Topbar */
.topbar{background:var(--surface);border-bottom:1px solid #e5eded}
.brand{display:flex;gap:.75rem;align-items:center;text-decoration:none;color:inherit}
.brand img{width:48px;height:48px}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-size:1.05rem}
.menu-toggle{display:none;background:none;border:none;font-size:1.5rem}


.nav{display:flex;gap:1rem}
.nav a{color:var(--ink);text-decoration:none;padding:.75rem;border-radius:.5rem;margin:5px;}
.nav a:hover{background:#e9f3f0}





/* Hero */
.hero{position:relative;background:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)), url('../img/hero.jpg') center/cover no-repeat;min-height:46vh;color:#fff;display:grid;place-items:center;text-align:center}
.hero h1{font-size:clamp(1.6rem,3vw,2.6rem);margin:.4rem 0}
.hero p{color:#e6f2ee;max-width:60ch;margin-inline:auto}
.hero .cta{margin-top:1rem;display:flex;gap:.75rem;justify-content:center}
.btn{appearance:none;border:none;background:var(--primary);color:#fff;padding:.75rem 1rem;border-radius:.6rem;cursor:pointer}
.btn.alt{background:transparent;border:2px solid #fff}


/* Cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card{background:#ddf;border:1px solid #e5eded;border-radius:.8rem;overflow:hidden;display:flex;flex-direction:column;box-shadow: 0 4px 8px rgba(0,0,0,0.5);}
.card .p{padding:1rem}
.card h3{margin:.2rem 0}
.card time{color:var(--muted);font-size:.9rem}


/* Sections */
.section{padding:2.5rem 0}
.section h2{margin:0 0 1rem 0;font-size:1.6rem}


/* Footer */
.footer{background:var(--surface);margin-top:2rem;padding:2rem 0;border-top:1px solid #e5eded}
.footer .copy{text-align:center;margin-top:1rem;color:var(--muted);font-size:.9rem}
.mini-search{display:flex;gap:.5rem}
.mini-search input{flex:1;padding:.6rem;border:1px solid #cbd5d6;border-radius:.5rem}
.mini-search button{padding:.6rem .9rem;border:1px solid var(--primary);background:var(--primary);color:#fff;border-radius:.5rem}


/* Responsive */
@media (max-width: 960px){ .grid-3{grid-template-columns:1fr} .cards{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 640px){
.nav{display:none;position:absolute;inset:64px 0 auto 0;background:#fff;border-bottom:1px solid #e5eded;flex-direction:column;padding:1rem}
.menu-toggle{display:block}
.cards{grid-template-columns:1fr}
}


/* Botón hamburguesa: oculto en escritorio */
.menu-toggle {
  display: none;
  border: 1px solid #e5eded;
  background: #fff;
  border-radius: .5rem;
  padding: .5rem .75rem;
  cursor: pointer;
}

/* Menú horizontal por defecto (escritorio) */
.nav a {
  text-decoration: none;
  color: #223;
  padding: .5rem .75rem;
  border-radius: .5rem;
}
.nav a:hover { background: #f2f6f7; }

/* --- Responsive: off-canvas desde la izquierda --- */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; }

  /* El contenedor superior debe permitir que el nav salga del flujo */
  .topbar { position: relative; z-index: 100; }

  /* El nav se vuelve panel lateral */
  .nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 80%; max-width: 320px;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
    padding: 1rem;
    display: block;
    z-index: 1000;
  }
  .nav a {
    display: block;
    padding: .9rem 1rem;
    margin: .25rem 0;
  }
  .nav.is-open {
    transform: translateX(0);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }

  /* Backdrop */
  .backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.50);
    z-index: 900;
  }
  .backdrop[hidden] { display: none; }
  
    #mainNav a {
    display: block;
    padding: .9rem 1rem;
    text-decoration: none;
    color: #223;
    background: rgba(200,200,200,.80);
    border-bottom: 1px solid var(--divider, #e5eded); /* ← separador */
  }
  /* Quita la línea del último ítem */
  #mainNav a:last-child {
    border-bottom: 0;
  }
  
  
  
  
  
}
