/* ---------- PALETA OTOÑAL (valores por defecto editables) ---------- */
:root{
  --bg: #f6f2ee;
  --panel-bg: #fff;
  --text: #2b2b2b;
  --muted: #7a6d60;
  --accent: #a94f2e;       /* tono terracota */
  --accent-2: #c98f62;     /* tono marrón claro */
  --shadow: rgba(40,30,20,0.08);
  --radius: 12px;
  --max-width: 1100px;
}

/* Reset básico */
*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  scroll-behavior:smooth;
}

/* Top nav fijo */
.topnav{
  position:fixed;
  top:0;left:0;right:0;
  height:64px;
  background:rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px var(--shadow);
  z-index:1000;
}
.topnav nav{height:100%; display:flex; align-items:center; justify-content:center}
.topnav ul{
  list-style:none; display:flex; gap:18px; margin:0; padding:0 20px;
}
.topnav a{
  text-decoration:none; color:var(--text); padding:10px 12px; border-radius:8px; font-weight:600;
}
.topnav a.active{ background: linear-gradient(90deg, rgba(169,79,46,0.12), rgba(201,143,98,0.06)); border-bottom:3px solid var(--accent); }

/* Main (scroll-snap) */
main#main{
  margin-top:64px;            /* dejar hueco para nav */
  height: calc(100vh - 64px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}
.panel{
  scroll-snap-align: start;
  min-height: calc(100vh - 64px);
  display:flex; align-items:center; justify-content:center;
  padding:40px 20px;
}

/* Imagen hero fullscreen */
.panel-image{
  background-image: url('img/foto.jpg'); /* reemplaza por tu imagen */
  background-size:cover;
  background-position:center;
  position:relative;
}
.hero-overlay{
  width:100%; max-width:var(--max-width);
  padding:40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.12));
  color:#fff; text-align:center; border-radius:var(--radius);
}
.hero-title{ font-size: clamp(28px, 6vw, 64px); margin:0 0 8px; letter-spacing:1px }
.hero-sub{ margin:0 0 16px; opacity:0.95 }
.hero-cta{ display:inline-block; margin-top:8px; padding:10px 18px; background:var(--accent); color:#fff; text-decoration:none; border-radius:8px; font-weight:700 }

/* Contenido general */
.panel-content{ background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.9)); }
.container{ width:100%; max-width:var(--max-width); margin:0 auto; padding:40px; }

/* Tipografía y utilidades */
h2{ margin:0 0 12px; font-size:28px; color:var(--accent) }
.muted{ color:var(--muted); margin-bottom:8px }
.note{ margin-top:12px; color:var(--muted) }

/* Contador estilo */
.contador{
  display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 24px;
}
.contador-item{
  background:var(--panel-bg); box-shadow: 0 6px 18px var(--shadow);
  padding:10px 18px; border-radius:10px; text-align:center; min-width:90px;
}
.contador-item div{ font-size:22px; font-weight:700; color:var(--accent) }
.contador-item span{ display:block; font-size:12px; color:var(--muted) }

/* Mapa */
.map-wrapper{ margin-top:18px; border-radius:10px; overflow:hidden; box-shadow: 0 8px 30px var(--shadow) }
.map-wrapper iframe{ width:100%; height:300px; border:0; display:block }

/* Timeline vertical */
.timeline{ position:relative; padding:40px 20px; }
.timeline-line{
  position:absolute; left:50%; transform:translateX(-50%); top:10px; bottom:10px; width:4px; background:linear-gradient(180deg,var(--accent),var(--accent-2)); border-radius:4px;
}
.timeline-item{
  position:relative; width:50%; padding:16px; display:flex; align-items:center; gap:12px;
}
.timeline-item.left{ left:0; text-align:left; margin-bottom:28px; }
.timeline-item.right{ left:50%; margin-left:0; text-align:left; margin-bottom:28px; flex-direction:row-reverse; justify-content:flex-end; }
.timeline-item .card{
  background:var(--panel-bg); padding:14px; border-radius:10px; box-shadow: 0 8px 20px var(--shadow); max-width:420px;
}
.timeline-item .time{ font-weight:800; color:var(--accent); min-width:60px }

/* Formulario grid */
.form-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:10px }
.form-grid label{ display:flex; flex-direction:column; gap:6px; font-weight:600; color:var(--muted) }
.form-grid input[type="text"], .form-grid input[type="email"], .form-grid input[type="tel"]{
  padding:10px; border-radius:8px; border:1px solid #e4dcd3; background:#fff;
}
.full{ grid-column:1 / -1 }
.radio-group{ display:flex; gap:12px; align-items:center; padding:10px; border-radius:8px; border:1px dashed #eee }
.form-actions{ display:flex; justify-content:flex-end }
.btn{ padding:10px 16px; border-radius:10px; border:none; background:var(--accent); color:#fff; font-weight:700; cursor:pointer }

/* Reveal animations (fade + translate) */
.reveal{ opacity:0; transform: translateY(30px); transition: all 700ms cubic-bezier(.2,.9,.3,1); will-change:transform,opacity }
.reveal.show{ opacity:1; transform: translateY(0) }

/* Responsive */
@media (max-width:900px){
  .timeline-item{ width:100%; left:0; }
  .timeline-line{ left:8px; transform:none; height:calc(100% - 20px) }
  .timeline-item.right{ flex-direction:row; justify-content:flex-start; }
  .form-grid{ grid-template-columns:1fr; }
  .hero-overlay{ padding:28px }
}

/* Small niceties */
a.btn:hover{ filter:brightness(.95) }


