
:root{
  --azul:#1983DD;
  --blanco:#FFFFFF;
  --naranja:#FD9830;
  --texto:#1d1d1f;
  --gris:#f5f5f7;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--texto);
  background:#fff;
  line-height:1.6;
}

/* Header */
.header{
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(8px);
  box-shadow:0 0 0 transparent;
  transition:box-shadow .3s ease;
}
.header.scrolled{ box-shadow:0 8px 24px rgba(0,0,0,.08); }
.nav{
  max-width:1200px; margin:0 auto; padding:10px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{display:flex; align-items:center; gap:12px}
.brand img{ height:64px; width:auto; transform:scale(1.5); transform-origin:left center; margin-top:8px;}
.menu{ display:flex; align-items:center; gap:18px; }
.menu a{ text-decoration:none; color:var(--texto); font-weight:600; }
.menu a:hover{ color:var(--azul); }
.social{ display:flex; align-items:center; gap:12px; }
.social a{ color:var(--texto); font-size:1rem; }
.social a:hover{ color:var(--azul); }

/* Mobile */
.burger{ display:none; font-size:1.4rem; border:0; background:transparent; }
@media (max-width:900px){
  .menu{ display:none; position:absolute; left:0; right:0; top:70px; background:#fff; padding:16px 20px; border-top:1px solid #eee; flex-direction:column; }
  .menu.open{ display:flex; }
  .burger{ display:inline-flex; }
}

/* Buttons */
.btn{
  display:inline-block; width:auto; max-width:fit-content;
  background:var(--azul); color:#fff; padding:12px 20px; border-radius:14px;
  text-decoration:none; font-weight:700; border:0; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(25,131,221,.25); }
.btn.light{ background:#fff; color:var(--azul); }
.btn.orange{ background:var(--naranja); color:#111; }
.btn.ghost{ background:transparent; color:var(--azul); border:2px solid var(--azul); }

.section{ padding:64px 20px; }
.container{ max-width:1200px; margin:0 auto; }

/* Hero video */
.hero{
  position:relative; height:70vh; min-height:420px; overflow:hidden;
}
.hero video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(.85) contrast(1.05); }
.hero .overlay{
  position:absolute; inset:0; display:grid; place-items:center;
  background:linear-gradient( to bottom, rgba(0,0,0,.45), rgba(0,0,0,.25) );
  text-align:center; color:#fff; padding:20px;
}
.hero h1{ font-size:clamp(28px, 5vw, 54px); margin:0 0 16px; font-weight:800; }
.hero .cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* Diagonal twin sections */
.slab{ display:grid; grid-template-columns: 1.1fr 1fr; min-height:440px; padding:0; }
.slab.reverse{ grid-template-columns: 1fr 1.1fr; }
.slab .text{ padding:48px; display:flex; flex-direction:column; justify-content:center; gap:14px; }
.slab .text h2{ font-size:clamp(26px,3.2vw,36px); margin:0; }
.slab .text p{ max-width:60ch; }
.slab .art{
  position:relative; overflow:hidden; min-height:440px;
}
/* grayscale images at full height */
.slab .art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:grayscale(100%); }

/* The diagonal overlap effect */
.slab.qs{ background:var(--naranja); }
.slab.cand{ background:var(--naranja); }

/* Create the diagonal using clip-path; the two sections touch with opposite diagonals */
.slab.qs .art{ clip-path:polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.slab.cand .art{ clip-path:polygon(0 0, 78% 0, 100% 100%, 0 100%); }

/* Remove vertical gap between twins */
.slab + .slab{ margin-top:-2px; }

@media (max-width:1000px){
  .slab, .slab.reverse{ grid-template-columns:1fr; }
  .slab .art{ height:320px; }
  .slab.qs .art, .slab.cand .art{ clip-path:none; }
}

/* Cards grid for candidaturas page */
.grid{
  display:grid; gap:22px;
  grid-template-columns:repeat(2, 1fr);
}
@media (max-width:720px){ .grid{ grid-template-columns:1fr; } }
.card{
  background:#fff; border-radius:18px; padding:24px; text-align:center;
  box-shadow:0 6px 22px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 18px 36px rgba(0,0,0,.12); }
.card img{
  width:140px; height:140px; border-radius:50%; object-fit:cover; display:block; margin:0 auto 12px;
  transition:transform .2s ease, filter .2s ease;
}
.card:hover img{ transform:scale(1.04); filter:saturate(1.2); }
.card h3{ margin:.2rem 0 .1rem; }
.card p{ margin:0; color:#555; }

/* Contact */
.form{ max-width:720px; margin-inline:auto; }
label{ display:block; font-weight:600; margin:10px 0 6px; }
input, textarea{
  width:100%; padding:12px 14px; border:1px solid #ddd; border-radius:12px; font:inherit; background:#fff;
}
textarea{ min-height:120px; resize:vertical; }
.helper{ font-size:.9rem; color:#666; }
.success{ background:#e9f8ee; color:#065f46; border:1px solid #a7f3d0; padding:10px 14px; border-radius:12px; display:none; margin-top:12px; }

/* Footer */
footer{ background:#fff; color:#111; }
.footer-top{ position:relative; }
.footer-top img.guarda{ display:block; width:100%; height:auto; max-height:160px; object-fit:cover; }
.footer-inner{ padding:24px 20px; }
.footer-grid{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
footer .social a{ font-size:1.2rem; }

/* Utilities & animations */
.muted{ color:#444; }
.fade-in{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.fade-in.visible{ opacity:1; transform:none; }
