:root{
  --primary:#2563eb;
  --secondary:#f97316;
  --accent:#14b8a6;

  --bg:#f1f5f9;           /* fondo general suave */
  --section1:#ffffff;
  --section2:#eef2f7;     /* gris azulado muy claro */
  --section3:#f8fafc;     /* tono neutro */

  --text:#0f172a;
  --muted:#64748b;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,0.07);
  --line: rgba(15,23,42,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.container{
  width:min(1100px,92%);
  margin:auto;
}

/* TOP BAR */
.topbar{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
  padding:10px 0;
  font-weight:700;
}
.topbar__inner{
  display:flex;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
}
.topbar a{color:white}

/* HEADER */
.header{
  background:white;
  box-shadow:var(--shadow);
  position:sticky;
  top:0;
  z-index:100;
}
.header__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}

.brand__mark{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
}

.nav{
  display:flex;
  gap:16px;
  align-items:center;
}
.nav a{
  font-weight:800;
  color:var(--text);
}
.nav a:hover{
  color:var(--primary);
}

/* BOTONES */
.btn{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
  padding:12px 18px;
  border-radius:999px;
  font-weight:900;
  border:none;
  cursor:pointer;
  box-shadow:var(--shadow);
}
.btn--ghost{
  background:white;
  border:2px solid var(--primary);
  color:var(--primary);
}

/* HERO */
.hero-full{
  min-height:85vh;
  background:url('../img/hero.jpg') center/cover no-repeat;
  position:relative;
}
.hero-overlay{
  min-height:85vh;
  background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px 0;
}
.hero-content{
  color:white;
  max-width:900px;
  padding:0 16px;
}
.hero-content h1{
  margin:0 0 15px;
  font-size: clamp(32px, 6vw, 56px);
}
.hero-content p{
  margin:0;
  font-size: clamp(16px, 3vw, 20px);
  opacity:.95;
}

/* SECCIONES */
.section{
  padding:70px 0;
}

/* alternancia automática */
.section:nth-of-type(odd){
  background:var(--section1);
}
.section:nth-of-type(even){
  background:var(--section2);
}

/* sección más clara especial */
.section--alt{
  background:var(--section3);
}

.section__head{
  text-align:center;
  margin-bottom:40px;
}
.section__head h2{
  margin:0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
}
.section__head p{
  margin:0;
  color:var(--muted);
}

/* CARDS */
.card{
  background:white;
  padding:24px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  transition:.2s ease;
}
.card:hover{
  transform:translateY(-4px);
}

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

/* PORTFOLIO */
.masonry{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.tile{
  overflow:hidden;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.tile img{
  width:100%;
  height:240px;
  object-fit:cover;
  transition:.3s;
}
.tile:hover img{
  transform:scale(1.05);
}

/* MAPA */
.mapWrap iframe{
  width:100%;
  height:320px;
  border:none;
  border-radius:var(--radius);
}

/* FOOTER */
.footer{
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:white;
  padding:35px 0;
}
.footer a{
  color:white;
}

/* BURGER */
.burger{
  display:none;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid var(--line);
  background:white;
  box-shadow:var(--shadow);
}
.burger span{
  display:block;
  height:2px;
  margin:7px 12px;
  background:var(--text);
}

/* MOBILE */
@media (max-width: 920px){

  .grid--3,
  .grid--2{
    grid-template-columns:1fr;
  }

  .masonry{
    grid-template-columns:1fr;
  }

  .nav{
    position:absolute;
    right:4%;
    top:72px;
    width:min(360px, 92vw);
    display:none;
    flex-direction:column;
    background:white;
    padding:14px;
    border-radius:18px;
    box-shadow:var(--shadow);
  }
  .nav.is-open{display:flex}

  .burger{display:block}
}
