
:root{
  --primary:#1fb6ff;
  --secondary:#3b82f6;
  --bg1:#0b1220;
  --bg2:#0f1b2d;
  --text:#e5f0ff;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji','Segoe UI Emoji';
  color:var(--text);
  background:
    url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTYwIiB2aWV3Qm94PSIwIDAgMTYwIDE2MCI+CiAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDgpIiBzdHJva2Utd2lkdGg9IjIiPgogICAgPHBhdGggZD0iTTEwLDEwIEM1MCw1MCAxMTAsNTAgMTUwLDEwIi8+CiAgICA8cGF0aCBkPSJNMTAsMTUwIEM1MCwxMTAgMTEwLDExMCAxNTAsMTUwIi8+CiAgICA8cGF0aCBkPSJNMTAsMTAgQzEwLDE1MCAxNTAsMTUwIDE1MCwxMCIvPgogICAgPGNpcmNsZSBjeD0iNDAiIGN5PSI0MCIgcj0iMyIvPgogICAgPGNpcmNsZSBjeD0iODAiIGN5PSI4MCIgcj0iMyIvPgogICAgPGNpcmNsZSBjeD0iMTIwIiBjeT0iMTIwIiByPSIzIi8+CiAgPC9nPgo8L3N2Zz4=') repeat,
    radial-gradient(60% 80% at 20% 10%, rgba(31,182,255,.15), transparent 60%),
    radial-gradient(60% 80% at 90% 40%, rgba(59,130,246,.15), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height:100vh;
}
.container{
  max-width:1200px;
  margin:0 auto;
  padding:40px 20px 90px;
}
.header{
  text-align:center;
  margin-bottom:24px;
}
.header h1{
  font-weight:800;
  font-size:clamp(24px,3vw,36px);
  margin:0;
  letter-spacing:.5px;
}
.header p{
  margin:10px auto 0;
  opacity:.85;
  max-width:800px;
}
.carousel{
  position:relative;
  width:100%;
  height:70vh;
  min-height:520px;
  border-radius:24px;
  overflow:hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}
.slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform: scale(1.02);
  transition: opacity 800ms ease, transform 1400ms ease;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}
.slide.active{
  opacity:1;
  transform: scale(1);
}
.slide img, .slide svg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.caption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:18px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background: linear-gradient(180deg,rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.75) 100%);
}
.person{
  display:flex; flex-direction:column;
}
.name{
  font-size:clamp(18px,2vw,24px);
  font-weight:700;
  text-shadow:0 2px 8px rgba(0,0,0,.4);
}
.role{
  opacity:.9;
  font-size:clamp(12px,1.6vw,14px);
}
.whatsapp{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  background: #25D366;
  color:#001b0f;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space:nowrap;
}
.whatsapp:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.45); filter:saturate(1.1);}
.btns{
  position:absolute; inset:0; pointer-events:none;
}
.btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:48px; height:48px;
  background: rgba(0,0,0,.4);
  border:1px solid rgba(255,255,255,.12);
  color:#fff; display:grid; place-items:center;
  border-radius:999px; cursor:pointer; pointer-events:auto;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover{ background: rgba(0,0,0,.55); transform: translateY(-50%) scale(1.04);}
.btn.prev{ left:16px;} .btn.next{ right:16px;}
.dots{
  position:absolute; bottom:14px; left:0; right:0;
  display:flex; gap:10px; justify-content:center; align-items:center;
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,.38);
  border:1px solid rgba(255,255,255,.3);
  cursor:pointer;
  transition: transform .2s ease, background .2s ease;
}
.dot.active{ background:#fff; transform: scale(1.25);}

.footer{
  text-align:center; margin-top:26px; opacity:.8;
}

.grid{
  display:grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap:18px;
  margin-top:26px;
}
.card{
  position:relative; border-radius:18px; overflow:hidden; background:#0c1424; border:1px solid rgba(255,255,255,.08);
}
.card img{
  height:340px; width:100%; object-fit:cover; display:block;
}
.card .info{
  display:flex; align-items:center; justify-content:space-between; padding:12px 12px 14px;
}
@media (max-width: 720px){
  .carousel{ min-height:460px; height:64vh; }
  .whatsapp{ padding:10px 14px; }
}


/* Safer crop: adds a bit more headroom and reduces zoom-in */
.slide img, .slide svg{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: 50% 20%; /* move frame a bit up to avoid cutting heads */
  display:block;
  transform: scale(0.985);
}
.card img{
  object-position: 50% 20%;
}
/* Lightbox modal */
.modal{
  position: fixed; inset:0; display:none;
  background: rgba(0,0,0,.75);
  z-index: 60;
}
.modal.open{ display:flex; align-items:center; justify-content:center; }
.modal .inner{
  width: min(92vw, 1000px);
  max-height: 92vh;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
  display:flex; flex-direction:column;
}
.modal .media{
  background:#000;
  aspect-ratio: 16/10;
}
.modal .media img, .modal .media object{
  width:100%; height:100%;
  object-fit:cover; object-position: 50% 20%;
  display:block;
}
.modal .info{
  padding: 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.modal .title{ font-weight:800; font-size: clamp(18px,2vw,24px); }
.modal .subtitle{ opacity:.9; font-size: 14px; }
.closebtn{
  position:absolute; top: 14px; right: 14px;
  width:42px; height:42px; display:grid; place-items:center;
  border-radius: 999px; border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45); color:#fff; cursor:pointer;
}
@media (max-width:720px){
  .modal .media{ aspect-ratio: 3/4; }
}


/* v3 framing: show more torso (lower focus) + a bit more zoom-out */
.slide img, .slide object{
  object-position: 50% 60%;
  transform: scale(0.96);
}
.card img, .card object{
  object-position: 50% 60%;
}

/* Modal in natural size (contain) with button below */
.modal .inner{
  max-width: min(96vw, 1100px);
}
.modal .media{
  display:flex; align-items:center; justify-content:center;
  background:#000;
  width: 100%;
  max-height: 74vh;
}
.modal .media img, .modal .media object{
  width:auto; height:auto; max-width:100%; max-height:74vh;
  object-fit: contain;
  object-position: center;
}
.modal .footer-cta{
  padding: 14px 16px 18px;
  display:flex; align-items:center; justify-content:center;
}
.modal .footer-cta .whatsapp{
  font-size: 16px;
}


/* v4: Only the active slide can receive clicks (prevents wrong WhatsApp link) */
.slide{ pointer-events: none; z-index: 0; }
.slide.active{ pointer-events: auto; z-index: 1; }

/* v4: More uniform framing in the carousel (show a bit more frente + torso) */
.slide img, .slide object{
  object-position: 50% 45%;  /* move focus slightly upward vs torso to evitar cortes */
  transform: scale(0.90);    /* zoom out a bit to show more */
}
