:root{
  --primary:#1e3d34;
  --accent:#25D366;
  --light:#f5f7f4;
  --dark:#222
}

*{
  box-sizing:border-box
}
header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: hidden;
}

header .container {
  position: relative;
}
html, body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--dark);
  background:var(--light);
  line-height:1.5;
}

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

/* ===== HEADER ===== */
header{
  background:#fff;
  border-bottom:1px solid #e6e6e6;
  position:sticky;
  top:0;
  z-index:100;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 18px;
}

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

.brand{
  display:flex;
  align-items:center;
  gap:8px;
}

.topbar img{
  height:48px;
  width:48px;
  border-radius:50%;
  object-fit:cover
}

/* ===== MENÚ ===== */
.menu{
  display:flex;
  gap:14px;
}

.menu a{
  padding:8px 10px;
  border-radius:6px;
}

.menu a:hover{
  background:#f0f0f0;
}

/* Botón hamburguesa */
.menu-toggle{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  cursor:pointer;
}

/* ===== HERO ===== */
.hero{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:24px;
  align-items:center;
  padding:28px 0;
}

.hero img{
  width:100%;
  border-radius:14px
}

.hero h1{
  margin:0 0 8px 0;
  font-size:clamp(28px,5vw,44px);
  color:var(--primary)
}

.hero p{
  margin:0 0 10px 0
}

/* ===== BOTONES ===== */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:10px;
  background:var(--primary);
  color:#fff;
  font-weight:600
}

.btn.secondary{
  background:#fff;
  color:var(--primary);
  border:2px solid var(--primary)
}

/* ===== CONTENIDO ===== */
.section{
  padding:36px 0
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px
}

.card{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:12px;
  overflow:hidden
}

.card img{
  width:100%;
  height:190px;
  object-fit:cover
}

.card .pad{
  padding:14px
}

.muted, small{
  color:#666
}

/* ===== FOOTER ===== */
footer{
  background:#fff;
  border-top:1px solid #e6e6e6;
  margin-top:30px
}

footer .cols{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  padding:24px 0
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  background:var(--accent);
  color:#fff;
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  box-shadow:0 8px 20px rgba(0,0,0,.18)
}

/* ===== BLOG TIMELINE ===== */
.timeline{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px
}

.timeline-item{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:12px;
  overflow:hidden
}

.timeline-item img{
  width:100%;
  display:block
}

.timeline-item figcaption{
  padding:10px 12px;
  font-size:.95rem;
  background:var(--light)
}

/* ===== RESPONSIVE ===== */
@media (max-width:820px){
  .hero{
    grid-template-columns:1fr
  }
}

@media (max-width:768px){
  .menu-toggle{
    display:block
  }

  .menu{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    flex-direction:column;
    padding:10px 18px;
    display:none;
  }

  .menu.active{
    display:flex
  }

  .menu a{
    padding:12px 0;
    border-top:1px solid rgba(0,0,0,.1)
  }
}

img, iframe{
  max-width:100%
}