:root{
  --bg:#0b0f14;
  --panel:rgba(18,24,31,.22);
  --panel2:rgba(18,24,31,.22);
  --line:rgba(255,255,255,.10);
  --text:#e9eef6;
  --muted:rgba(233,238,246,.72);
  --gold:#caa24b;
  --gold2:#b9923e;
  --shadow:0 18px 45px rgba(0,0,0,.45);
  --radius:22px;
  --radius2:28px;
  --max:1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:linear-gradient(180deg,#fff 0 60px,var(--bg) 60px 100%);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-inner{
  height:64px;
  display:flex; align-items:center; justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  color:#0b0f14;
  font-weight:800; letter-spacing:.2px;
}
/* Logo responsivo: evita que se vea gigante en desktop o móvil */
.brand .logo{
  height: clamp(26px, 3.2vw, 40px);
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
}
.brand .mark{
  font-weight:900;
  line-height:1.05;
}
.brand .mark b{display:block}
.nav{
  display:flex; align-items:center; gap:18px;
  color:#111827;
  font-weight:600;
}
.nav a{opacity:.8}
.nav a:hover{opacity:1}
.cta{
  border:0;
  padding:10px 16px;
  border-radius:999px;
  background:var(--gold);
  color:#121826;
  font-weight:800;
  cursor:pointer;
}
.cta:hover{background:var(--gold2)}
@media (max-width:820px){
  .nav a{display:none}
}

/* Hero */
.hero{
  /* Un poco menos alto para que la foto se sienta más protagonista */
  min-height:520px;
  background:#0b0f14;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(202,162,75,.20), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(2,16,69,.25), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.55));
  pointer-events:none;
}
.hero-bg{
  position:absolute; inset:0;
  background-position:center;
  background-size:cover;
  filter:saturate(1.05) contrast(1.05);
  opacity:.75;
  transform:scale(1.02);
}
.hero-inner{
  position:relative;
  min-height:520px;
  display:flex;
  /* Subimos la caja para que resalte la foto */
  align-items:flex-start;
  padding-top:64px;
  justify-content:center;
}
.hero-box{
  /* Más compacto para que el fondo (foto) tenga más presencia */
  width:min(660px, 92%);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:22px 22px 18px;
  text-align:center;
  backdrop-filter: blur(6px);
}
.hero-tag{
  display:inline-flex;
  gap:8px;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.75);
}
.hero-title{
  margin:10px 0 6px;
  font-size:42px;
  line-height:1.05;
  font-weight:900;
}
.hero-desc{
  margin:0 auto 16px;
  max-width:60ch;
  color:var(--muted);
}
.hero-actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.btn{
  border:1px solid rgba(255,255,255,.16);
  background:#0b0f14;
  color:var(--text);
  padding:10px 16px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.btn.primary{
  background:var(--gold);
  border-color:transparent;
  color:#121826;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
@media (max-width:520px){
  .hero-title{font-size:34px}
}

/* Portfolio */
.section{
  padding:52px 0 70px;
  background:var(--bg);
}
.section h2{
  margin:0 0 16px;
  font-size:22px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.filters{
  display:flex; gap:10px; flex-wrap:wrap;
  margin:16px 0 26px;
}
.chip{
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:rgba(255,255,255,.86);
  padding:9px 14px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.chip.active{
  background:var(--gold);
  border-color:transparent;
  color:#121826;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
@media (max-width:980px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:620px){ .grid{grid-template-columns:1fr} }

.card{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:#0b0f14;
  min-height:360px;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(0,0,0,.32);
}
.card .img{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  filter:saturate(1.02) contrast(1.03);
  opacity:.95;
}
.card::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.75) 60%, rgba(0,0,0,.90));
}
.card .meta{
  position:absolute; left:16px; right:16px; bottom:14px;
  z-index:2;
  background:rgba(12,16,22,.10);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:14px 14px 12px;
  backdrop-filter: blur(6px);
}
.kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.62);
}
.title{
  font-size:20px; font-weight:900; margin:4px 0 4px;
}
.desc{
  font-size:13px; color:rgba(255,255,255,.74); line-height:1.35;
  margin:0 0 10px;
}
.card .meta .btn-mini{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:0;
  background:var(--gold);
  color:#121826;
  font-weight:900;
  border-radius:999px;
  padding:9px 14px;
}

/* Modal (Project view) */
.modal{
  position:fixed; inset:0;
  display:none;
  z-index:80;
}
.modal.open{display:block}
.modal-backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.72);
}
.modal-panel{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(1100px, 92vw);
  max-height:88vh;
  overflow:auto;
  border-radius:28px;
  background:rgba(12,16,22,.92);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 30px 90px rgba(0,0,0,.65);
}
.modal-header{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:16px;
  padding:18px 18px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modal-header h3{
  margin:0;
  font-size:28px;
  font-weight:950;
}
.modal-header .sub{
  margin:6px 0 0;
  color:rgba(255,255,255,.74);
  max-width:75ch;
  line-height:1.45;
}
.close{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:#fff;
  width:42px; height:42px;
  border-radius:999px;
  cursor:pointer;
  font-size:18px;
}
.modal-body{padding:18px}
.badge-row{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.80);
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
}
.action-quote{
  border:0;
  background:var(--gold);
  color:#121826;
  font-weight:900;
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
}
.action-quote:hover{background:var(--gold2)}
.block{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:24px;
  padding:14px;
  margin-top:16px;
}

/* Before/After */
.ba-title{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; margin-bottom:10px;
}
.ba-title h4{margin:0;font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75)}
.ba-wrap{
  position:relative;
  width:100%;
  height:440px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:#000;
}
@media (max-width:640px){ .ba-wrap{height:320px} }
.ba-wrap img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}
.ba-after{
  width:50%;
  overflow:hidden;
  position:absolute; inset:0;
}
.ba-handle{
  position:absolute;
  left:50%; top:0; bottom:0;
  width:2px;
  background:rgba(255,255,255,.75);
  transform:translateX(-1px);
  pointer-events:none;
}
.ba-range{
  width:100%;
  margin-top:12px;
}
.ba-label{
  position:absolute;
  top:14px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-weight:900;
  font-size:12px;
}
.ba-label.left{left:14px}
.ba-label.right{right:14px}

/* Gallery carousel */
.gallery-title{
  margin:0 0 10px;
  font-size:14px; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.75)
}
.carousel{
  display:flex;
  gap:12px;
  overflow:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
}
.thumb{
  flex:0 0 auto;
  width:170px; height:120px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  scroll-snap-align:start;
  background:#000;
}
.thumb img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .2s ease;
}
.thumb:hover img{transform:scale(1.03)}

/* Lightbox */
.lightbox{
  position:fixed; inset:0;
  display:none;
  z-index:120;
}
.lightbox.open{display:block}
.lb-backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.82);
}
.lb-inner{
  position:absolute; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.lb-img{
  max-width:min(1200px, 92vw);
  max-height:86vh;
  border-radius:18px;
  box-shadow:0 30px 90px rgba(0,0,0,.75);
  background:#000;
}
.lb-close, .lb-prev, .lb-next{
  position:absolute;
  top:18px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:#fff;
  width:44px; height:44px;
  border-radius:999px;
  cursor:pointer;
  font-size:18px;
}
.lb-close{right:18px}
.lb-prev, .lb-next{
  top:50%;
  transform:translateY(-50%);
}
.lb-prev{left:18px}
.lb-next{right:18px}
.lb-count{
  position:absolute;
  left:18px; top:18px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:rgba(255,255,255,.85);
  font-weight:900;
  font-size:12px;
}



/* ===== WhatsApp Floating Button ===== */
.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 9999;
  background: #25D366;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transition: transform .15s ease, filter .15s ease;
  text-decoration: none;
}
.whatsapp-float:hover{ transform: translateY(-2px); filter: brightness(1.05); }
.whatsapp-float:active{ transform: translateY(0px) scale(.98); }

.whatsapp-icon{
  color: #fff;
  font-weight: 900;
  letter-spacing: .5px;
  font-size: 14px;
  line-height: 1;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.whatsapp-icon::before{ content: "WA"; }

@media (max-width: 520px){
  .whatsapp-float{ right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* ===== Servicios (SEO + UX) ===== */
.section-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
.section-subtitle{
  margin: 0 0 18px;
  color: rgba(255,255,255,.72);
  max-width: 780px;
}
.services{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.service-card{
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.service-card::before{
  content: attr(data-icon);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(224,178,92,.12);
  border: 1px solid rgba(224,178,92,.25);
  font-size: 18px;
  margin-bottom: 10px;
}
.service-card:hover{
  transform: translateY(-2px);
  border-color: rgba(224,178,92,.35);
  background: rgba(0,0,0,.22);
}
.service-card h3{
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: .25px;
}
.service-card p{
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Badge de icono (se toma de data-icon en el HTML) */
.service-card::before{
  content: attr(data-icon);
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 20px;
  line-height: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.service-card:hover{
  transform: translateY(-2px);
  border-color: rgba(210,169,74,.45);
  box-shadow: 0 26px 70px rgba(0,0,0,.32);
}
.services-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 1100px){
  .services{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px){
  .services{ grid-template-columns: 1fr; }
  .service-card{ border-radius: 16px; }
}
