:root{
  --bg: #0b0f16;
  --bg2:#0f1622;
  --card:#121a28;
  --text:#eaf0ff;
  --muted:#a9b4cf;
  --line: rgba(255,255,255,.10);
  --accent:#00e5ff;
  --accent2:#7c4dff;
  --shadow: 0 20px 50px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 26px;
  --container: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(0,229,255,.15), transparent 55%),
              radial-gradient(900px 650px at 80% 10%, rgba(124,77,255,.13), transparent 55%),
              var(--bg);
  color: var(--text);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.sr{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,15,22,.55);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand__logo{
  height: 100px;
  width:auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
}

.nav__menu{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav__menu a{
  font-size: 14px;
  color: rgba(234,240,255,.88);
  padding: 10px 12px;
  border-radius: 999px;
}
.nav__menu a:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}
.nav__menu .pill{
  border:1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.15);
}

.nav__toggle{
  display:none;
  border:0;
  background: transparent;
  padding: 10px;
  border-radius: 12px;
}
.nav__toggle span{
  display:block;
  width: 22px;
  height:2px;
  margin: 5px 0;
  background: rgba(234,240,255,.85);
}

/* Hero */
.hero{
  position:relative;
  min-height: 78vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.05);
}
.hero__overlay{
  position:absolute;
  inset:0;
  background: radial-gradient(800px 420px at 30% 30%, rgba(0,0,0,.05), rgba(0,0,0,.55) 55%, rgba(11,15,22,.92) 100%),
              linear-gradient(90deg, rgba(11,15,22,.70), rgba(11,15,22,.40), rgba(11,15,22,.78));
}
.hero__content{
  position:relative;
  padding: 68px 0 56px 0;
  max-width: 820px;
}
.hero__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  color: rgba(234,240,255,.85);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding: 10px 12px;
  border-radius: 999px;
}
.hero__title{
  margin: 18px 0 10px 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero__lead{
  margin: 0 0 22px 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(234,240,255,.86);
  max-width: 54ch;
}
.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 8px;
}
.hero__badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 22px;
}
.badge{
  font-size: 12px;
  color: rgba(234,240,255,.86);
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(11,15,22,.28);
}

/* Sections */
.section{ padding: 74px 0; }
.section--dark{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{
  margin-bottom: 22px;
}
.section__head h2{
  margin:0;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.section__head p{
  margin: 8px 0 0 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background: linear-gradient(135deg, rgba(0,229,255,.95), rgba(124,77,255,.75));
  color: #071018;
  border-color: rgba(255,255,255,.00);
  box-shadow: 0 18px 40px rgba(0,229,255,.12);
}
.btn--primary:hover{
  box-shadow: 0 18px 50px rgba(124,77,255,.18), 0 18px 50px rgba(0,229,255,.12);
}
.btn--ghost{
  background: rgba(255,255,255,.06);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}
.btn--full{ width:100%; }

/* Cards */
.grid{
  display:grid;
  gap:16px;
}
.cards{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card{
  background: rgba(18,26,40,.72);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px 18px 16px 18px;
  box-shadow: var(--shadow);
}
.card h3{ margin: 0 0 8px 0; font-size: 18px; }
.card p{ margin:0 0 12px 0; color: rgba(234,240,255,.84); line-height:1.5; }
.card ul{ margin:0; padding-left: 18px; color: var(--muted); line-height:1.6; }
.card li{ margin: 4px 0; }

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery__item{
  border:0;
  padding:0;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  cursor:pointer;
  min-height: 160px;
}
.gallery__item img{
  width:100%;
  height:100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery__item:hover img{ transform: scale(1.04); }

.gallery__item:nth-child(1){ grid-column: span 6; min-height: 260px; }
.gallery__item:nth-child(2){ grid-column: span 3; }
.gallery__item:nth-child(3){ grid-column: span 3; }
.gallery__item:nth-child(4){ grid-column: span 4; }
.gallery__item:nth-child(5){ grid-column: span 4; }
.gallery__item:nth-child(6){ grid-column: span 4; }

/* Split */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items:start;
}
.checks{ display:grid; gap: 14px; margin: 16px 0; }
.check{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.check__dot{
  width: 10px; height:10px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0,229,255,.12);
  margin-top: 6px;
}
.muted{ color: var(--muted); }
.note{
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,229,255,.20);
  background: rgba(0,229,255,.06);
  color: rgba(234,240,255,.90);
}

.stacked-photos{
  display:grid;
  gap: 12px;
}
.stacked-photos img{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  height: 260px;
  object-fit: cover;
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
}
.contact__box{
  background: rgba(18,26,40,.72);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}
.contact__links{ display:grid; gap: 10px; margin-top: 14px; }
.mini{ margin-top: 16px; display:grid; gap: 10px; color: rgba(234,240,255,.86); }
.mini span{ display:inline-block; width: 20px; opacity:.9; }

.contact__form{
  background: rgba(18,26,40,.72);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}
.field{ display:grid; gap: 8px; margin-bottom: 12px; }
label{ font-size: 13px; color: rgba(234,240,255,.88); }
input, textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(11,15,22,.55);
  padding: 12px 12px;
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{
  border-color: rgba(0,229,255,.40);
  box-shadow: 0 0 0 4px rgba(0,229,255,.10);
}
.tiny{ font-size: 12px; opacity: .9; margin-top: 10px; }
.tiny code{ padding: 2px 6px; border-radius: 10px; background: rgba(255,255,255,.08); }

/* Footer */
.footer{
  padding: 26px 0;
  background: rgba(0,0,0,.20);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.footer__logo{ height: 22px; width:auto; opacity:.95; }
.footer a{ color: rgba(234,240,255,.85); }
.footer a:hover{ color:#fff; }

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.78);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 24px;
  z-index: 60;
}
.lightbox img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
}
.lightbox__close{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  cursor:pointer;
}

/* Responsive */
@media (max-width: 920px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .stacked-photos img{ height: 220px; }
}
@media (max-width: 720px){
  .nav__toggle{ display:block; }
  .nav__menu{
    position:absolute;
    right: 20px;
    top: 64px;
    background: rgba(11,15,22,.92);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 10px;
    flex-direction:column;
    align-items:stretch;
    width: min(280px, calc(100vw - 40px));
    display:none;
  }
  .nav__menu a{ width:100%; }
  .cards{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(6, 1fr); }
  .gallery__item:nth-child(1){ grid-column: span 6; }
  .gallery__item:nth-child(2){ grid-column: span 3; }
  .gallery__item:nth-child(3){ grid-column: span 3; }
  .gallery__item:nth-child(4){ grid-column: span 6; }
  .gallery__item:nth-child(5){ grid-column: span 3; }
  .gallery__item:nth-child(6){ grid-column: span 3; }
}


/* === Proyectos: ocultos y botón === */
.gallery__item.is-hidden{
  display: none;
}

.gallery__more{
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.btn--more{
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(230,235,255,.9);
}

.btn--more:hover{
  background: rgba(0,229,255,.18);
  border-color: rgba(0,229,255,.35);
}
