:root{
  --bg: #0b1220;
  --bg2:#0f1b33;
  --surface:#0f172a;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#5b6473;
  --line:#e6eaf0;

  --brand:#7bd44a;          /* verde acento */
  --brand2:#33c2ff;         /* acento secundario sutil */
  --shadow: 0 14px 34px rgba(2, 6, 23, .14);
  --shadow2: 0 10px 24px rgba(2, 6, 23, .10);

  --radius: 18px;
  --radius2: 24px;
  --container: 1160px;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fontH: "Sora", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --speed: 220ms;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

/* === Marca de agua global (logo) === */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image: url("./unnamed.png"); /* o ./assets/unnamed.png */
  background-repeat:no-repeat;
  background-position:center;
  background-size: min(520px, 70vw);
  opacity:0.06;             /* controla qué tan sutil se ve */
  pointer-events:none;      /* no bloquea clicks */
  z-index:0;
}

/* Asegura que el contenido quede por encima */
.header,
main,
.footer{
  position:relative;
  z-index:1;
}

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:#fff;
  line-height:1.55;
}



img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 18px;
}

/* Accesibilidad */
.skip{
  position:absolute;
  left:-9999px;
  top:12px;
  background:#fff;
  padding:10px 12px;
  border-radius:12px;
  box-shadow:var(--shadow2);
  z-index:9999;
}
.skip:focus{ left:12px; }

.sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(230,234,240,.7);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{
  width:160px;
  height:auto;
  object-fit:contain;
}

/* Nav */
.nav{ display:flex; align-items:center; gap:10px; }
.nav__toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(2,6,23,.06);
}
.burger{
  width:22px;
  height:2px;
  background:var(--bg);
  display:block;
  position:relative;
}
.burger::before,.burger::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:var(--bg);
  transition:transform var(--speed) ease;
}
.burger::before{ top:-7px; }
.burger::after{ top:7px; }

.nav__list{
  list-style:none;
  display:flex;
  align-items:center;
  gap:16px;
  margin:0;
  padding:0;
}
.nav__list a{
  font-weight:600;
  color:#111827;
  opacity:.86;
  padding:10px 10px;
  border-radius:12px;
  transition: background var(--speed) ease, opacity var(--speed) ease, transform var(--speed) ease;
}
.nav__list a:hover{
  background:rgba(15, 23, 42, .06);
  opacity:1;
}

.header__cta{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease, border-color var(--speed) ease;
  user-select:none;
  will-change: transform;
}
.btn--primary{
  background:linear-gradient(135deg, var(--brand), #b7ff86);
  color:#05210a;
  box-shadow: 0 12px 26px rgba(123, 212, 74, .25);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 34px rgba(123, 212, 74, .28); }

.btn--ghost{
  background:#fff;
  border-color: var(--line);
  color:#0b1220;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}
.btn--ghost:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(2,6,23,.10); }

.btn--full{ width:100%; }

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  padding:78px 0 42px;
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:start;
}
.hero__bg{
  position:absolute;
  inset:-40% -10% auto -10%;
  height:520px;
  background:
    radial-gradient(600px 240px at 15% 25%, rgba(123,212,74,.22), transparent 60%),
    radial-gradient(520px 240px at 70% 30%, rgba(51,194,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(11,18,32,.06), transparent 70%);
  pointer-events:none;
}
.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border:1px solid rgba(230,234,240,.9);
  background:rgba(255,255,255,.75);
  border-radius:999px;
  font-weight:700;
  color:#0b1220;
  box-shadow:0 10px 22px rgba(2,6,23,.06);
}
h1,h2,h3{
  font-family:var(--fontH);
  letter-spacing:-.02em;
}
.hero h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height:1.1;
  color:#0b1220;
}
.lead{
  margin:0 0 18px;
  font-size: 1.06rem;
  color:#334155;
  max-width: 56ch;
}
.hero__actions{ display:flex; gap:12px; flex-wrap:wrap; }

.hero__stats{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.stat{
  border:1px solid rgba(230,234,240,.9);
  background:rgba(255,255,255,.75);
  border-radius:16px;
  padding:12px 12px;
  box-shadow:0 10px 22px rgba(2,6,23,.06);
}
.stat strong{
  display:block;
  font-family:var(--fontH);
  font-size:1.02rem;
  margin-bottom:2px;
}
.stat span{ color:#475569; font-weight:600; font-size:.92rem; }

/* Card form */
.hero__card{
  border-radius:var(--radius2);
  border:1px solid rgba(230,234,240,.9);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardTop{
  padding:18px 18px 8px;
  background:
    radial-gradient(520px 240px at 10% 10%, rgba(123,212,74,.20), transparent 60%),
    radial-gradient(520px 240px at 90% 0%, rgba(51,194,255,.14), transparent 60%);
  border-bottom:1px solid rgba(230,234,240,.9);
}
.cardTop h3{ margin:0 0 4px; }
.cardTop p{ margin:0; color:#475569; font-weight:600; }

.miniForm{ padding:16px 18px 18px; display:grid; gap:12px; }
label{ display:grid; gap:6px; font-weight:700; color:#0b1220; }
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  outline:none;
  transition:border-color var(--speed) ease, box-shadow var(--speed) ease;
  font: inherit;
}
textarea{ resize:vertical; min-height:110px; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(123,212,74,.9);
  box-shadow: 0 0 0 4px rgba(123,212,74,.18);
}

.fineprint{
  margin:0;
  font-size:.86rem;
  color:#64748b;
  font-weight:600;
}

/* Sections */
.section{ padding:84px 0; }
.section--alt{ background:#f6f8fb; border-top:1px solid rgba(230,234,240,.9); border-bottom:1px solid rgba(230,234,240,.9); }

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}
.section__head h2{
  margin:0;
  font-size: clamp(24px, 2.2vw, 34px);
}
.sub{
  margin:0;
  color:#475569;
  font-weight:600;
  max-width: 60ch;
}

/* Cards & grids */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.card{
  background:#fff;
  border:1px solid rgba(230,234,240,.9);
  border-radius:var(--radius2);
  padding:18px;
  box-shadow:0 10px 24px rgba(2,6,23,.06);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow:0 18px 34px rgba(2,6,23,.10);
  border-color: rgba(123,212,74,.45);
}
.icon{
  width:46px;height:46px;
  display:grid;place-items:center;
  border-radius:16px;
  background: linear-gradient(135deg, rgba(123,212,74,.20), rgba(51,194,255,.12));
  border:1px solid rgba(230,234,240,.9);
  margin-bottom:10px;
  font-size:22px;
}
.card h3{ margin:0 0 8px; }
.card p{ margin:0 0 10px; color:#475569; font-weight:600; }
.bullets{
  margin:0;
  padding-left:18px;
  color:#334155;
  font-weight:700;
}
.bullets li{ margin:6px 0; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}
.step{
  display:flex;
  gap:14px;
  padding:16px;
  background:#fff;
  border:1px solid rgba(230,234,240,.9);
  border-radius:var(--radius2);
  box-shadow:0 10px 24px rgba(2,6,23,.06);
}
.step__n{
  font-family:var(--fontH);
  font-weight:800;
  color:#05210a;
  background:linear-gradient(135deg, var(--brand), #b7ff86);
  border-radius:16px;
  width:48px; height:48px;
  display:grid; place-items:center;
}
.step h3{ margin:0 0 6px; }
.step p{ margin:0; color:#475569; font-weight:600; }

/* Logos */
.logos{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
}
.logoBox{
  height:56px;
  border-radius:16px;
  border:1px dashed rgba(15,23,42,.18);
  background:#fff;
  display:grid;
  place-items:center;
  color:#64748b;
  font-weight:800;
}

/* CTA band */
.ctaBand{
  margin-top:18px;
  border-radius:var(--radius2);
  border:1px solid rgba(230,234,240,.9);
  background:
    radial-gradient(520px 240px at 10% 20%, rgba(123,212,74,.22), transparent 60%),
    radial-gradient(520px 240px at 90% 0%, rgba(51,194,255,.14), transparent 60%),
    #fff;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow:0 12px 28px rgba(2,6,23,.08);
}
.ctaBand h3{ margin:0 0 4px; }
.ctaBand p{ margin:0; color:#475569; font-weight:600; }

/* Contact */
.contactGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
}
.form label{ font-weight:800; }
.info h3{ margin:0 0 8px; }
.info p{ margin:0 0 14px; color:#475569; font-weight:600; }
.info__list{ display:grid; gap:10px; }
.info__item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid rgba(230,234,240,.9);
  border-radius:16px;
  background:#fff;
}
.k{ color:#64748b; font-weight:800; }
.v{ color:#0b1220; font-weight:800; }

/* Footer */
.footer{
  background:#0b1220;
  color:#e5e7eb;
  padding:26px 0;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.muted{ color:#cbd5e1; }

/* WhatsApp floating */
.wabtn{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
  padding:12px 14px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand), #b7ff86);
  color:#05210a;
  font-weight:900;
  box-shadow:0 16px 34px rgba(123,212,74,.28);
  border:1px solid rgba(5,33,10,.12);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}
.wabtn:hover{ transform: translateY(-3px); box-shadow:0 22px 40px rgba(123,212,74,.30); }

/* Reveal on scroll (ligero) */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* === Logos de clientes === */
.logos{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:20px;
  align-items:center;
}

.logoBox{
  height:90px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(2,6,23,.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.logoBox img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  filter: grayscale(100%) opacity(.85);
  transition: filter 220ms ease, transform 220ms ease;
}

.logoBox:hover img{
  filter:none;
  transform:scale(1.05);
}


/* Responsive */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .header__cta{ display:none; }
  .grid3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .logos{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contactGrid{ grid-template-columns: 1fr; }
  .section__head{ flex-direction:column; align-items:flex-start; }
  .nav__toggle{ display:inline-flex; }
  .nav__list{
    position:absolute;
    right:18px;
    top:64px;
    width:min(320px, calc(100vw - 36px));
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:10px;
    border-radius:18px;
    border:1px solid rgba(230,234,240,.9);
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 40px rgba(2,6,23,.16);
    display:none;
  }
  .nav__list.is-open{ display:flex; }
}

/* ============================= */
/* GALERÍA FLOTANTE (MODAL) */
/* ============================= */

.galleryModal{
  position:fixed;
  inset:0;
  z-index:999;
  display:none;
}

.galleryModal.active{
  display:block;
}

.galleryOverlay{
  position:absolute;
  inset:0;
  background:rgba(11,18,32,.75);
  backdrop-filter: blur(6px);
}

.galleryContent{
  position:relative;
  max-width:1100px;
  margin:6vh auto;
  background:#fff;
  border-radius:22px;
  padding:22px;
  box-shadow:0 30px 60px rgba(0,0,0,.35);
  animation: modalIn .35s ease;
}

.galleryContent h3{
  margin:0 0 14px;
  font-family:var(--fontH);
  font-size:1.4rem;
}

.galleryGrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:18px;
}

.galleryGrid img{
  width:100%;
  height:120px;
  object-fit:contain;
  background:#fff;
  border-radius:16px;
  padding:12px;
  border:1px solid rgba(15,23,42,.12);
  cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.galleryGrid img:hover{
  transform:scale(1.05);
  box-shadow:0 14px 30px rgba(0,0,0,.18);
}

.galleryClose{
  position:absolute;
  top:14px;
  right:14px;
  border:none;
  background:#0b1220;
  color:#fff;
  width:40px;
  height:40px;
  border-radius:50%;
  font-size:18px;
  cursor:pointer;
}

@keyframes modalIn{
  from{
    opacity:0;
    transform:translateY(20px) scale(.96);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/* ============================= */
/* ZOOM INDIVIDUAL (LIGHTBOX) */
/* ============================= */
.zoomModal{
  position:fixed;
  inset:0;
  z-index:1000;   /* encima del modal de galería */
  display:none;
}
.zoomModal.active{ display:block; }

.zoomOverlay{
  position:absolute;
  inset:0;
  background:rgba(11,18,32,.82);
  backdrop-filter: blur(6px);
}

.zoomContent{
  position:relative;
  max-width:min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  padding: 12px;
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  display:grid;
  gap:10px;
  animation: modalIn .25s ease;
}

#zoomImg{
  width:100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 14px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
}

.zoomCaption{
  margin:0;
  color:#334155;
  font-weight:700;
  text-align:center;
}

.zoomClose{
  position:absolute;
  top:10px;
  right:10px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:none;
  background:#0b1220;
  color:#fff;
  cursor:pointer;
  font-size:18px;
}


/* Responsive */
@media(max-width:768px){
  .galleryContent{
    margin:4vh 12px;
  }
}


/* Proyectos administrables */
.projectTile{margin:0;background:#fff;border:1px solid rgba(15,23,42,.12);border-radius:16px;overflow:hidden;cursor:pointer;box-shadow:0 8px 20px rgba(2,6,23,.06);transition:transform .22s ease,box-shadow .22s ease}
.projectTile:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(2,6,23,.13)}
.galleryGrid .projectTile img{height:180px;border:0;border-radius:0;padding:0;object-fit:cover}
.galleryGrid .projectTile img:hover{transform:none;box-shadow:none}
.projectTile div{padding:12px 14px}.projectTile p{font-size:.86rem;color:#64748b;margin:5px 0 0}
.projectTile{cursor:pointer}.photoCount{display:block;margin-top:8px;color:#64748b}.projectGalleryGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;max-height:68vh;overflow:auto}.projectPhoto{border:0;background:transparent;padding:0;cursor:pointer}.projectPhoto img{width:100%;height:220px;object-fit:cover;border-radius:14px;display:block}.projectPhoto:hover img{transform:scale(1.01)}


/* =========================================================
   FASE 3.3.1 - GALERIA PUBLICA RESPONSIVE
   Mantiene intacta la logica de Fase 3.2
   ========================================================= */

/* Modal de galeria de proyecto */
#projectGalleryModal .galleryContent{
  width:min(1180px, calc(100vw - 32px));
  max-width:1180px;
  max-height:90vh;
  margin:5vh auto;
  padding:24px;
  overflow:hidden;
  box-sizing:border-box;
}

/* Titulo con espacio reservado para cerrar */
#projectGalleryModal .galleryContent h3{
  padding-right:52px;
  margin-bottom:18px;
}

/* Rejilla de fotografias */
.projectGalleryGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
  width:100%;
  max-height:72vh;
  overflow-y:auto;
  overflow-x:hidden;
  padding:2px 6px 6px 2px;
  box-sizing:border-box;
}

/* Cada fotografia */
.projectPhoto{
  display:block;
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:16px;
  background:#f8fafc;
  overflow:hidden;
  cursor:pointer;
  aspect-ratio:4 / 3;
}

/* Imagen uniforme */
.projectPhoto img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
  transition:transform .22s ease, filter .22s ease;
}

.projectPhoto:hover img{
  transform:scale(1.025);
  filter:brightness(.96);
}

/* Mejor scrollbar */
.projectGalleryGrid{
  scrollbar-width:thin;
  scrollbar-color:#94a3b8 transparent;
}

.projectGalleryGrid::-webkit-scrollbar{
  width:8px;
}

.projectGalleryGrid::-webkit-scrollbar-thumb{
  background:#94a3b8;
  border-radius:999px;
}

/* Tablet */
@media (max-width:768px){
  #projectGalleryModal .galleryContent{
    width:calc(100vw - 20px);
    max-height:92vh;
    margin:4vh 10px;
    padding:18px;
    border-radius:18px;
  }

  .projectGalleryGrid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    max-height:74vh;
  }

  .projectPhoto{
    border-radius:12px;
  }

  .projectPhoto img{
    border-radius:12px;
  }
}

/* Celular */
@media (max-width:520px){
  #projectGalleryModal .galleryContent{
    width:calc(100vw - 16px);
    margin:2vh 8px;
    padding:16px;
    max-height:96vh;
  }

  #projectGalleryModal .galleryContent h3{
    font-size:1.2rem;
    padding-right:46px;
  }

  .projectGalleryGrid{
    grid-template-columns:1fr;
    gap:12px;
    max-height:78vh;
  }

  .projectPhoto{
    aspect-ratio:16 / 10;
  }
}


/* =========================================================
   FASE 3.3.2 - LIGHTBOX PROFESIONAL
   Navegacion visual + contador
   ========================================================= */

#zoomModal .zoomOverlay{
  background:rgba(2,6,23,.92);
  backdrop-filter:blur(8px);
}

#zoomModal .zoomContent{
  position:relative;
  width:min(1200px, calc(100vw - 32px));
  max-width:1200px;
  height:calc(100vh - 32px);
  max-height:900px;
  margin:16px auto;
  padding:54px 70px 22px;
  box-sizing:border-box;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;

  background:#0b1220;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  overflow:hidden;
}

/* Imagen ampliada */
#zoomModal #zoomImg{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:calc(100% - 70px);
  object-fit:contain;
  border:0;
  border-radius:14px;
  background:#fff;
}

/* Boton cerrar */
#zoomModal .zoomClose{
  position:absolute;
  z-index:5;
  top:14px;
  right:14px;

  display:flex;
  align-items:center;
  justify-content:center;

  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;

  background:rgba(15,23,42,.82);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;

  transition:background .2s ease, transform .2s ease;
}

#zoomModal .zoomClose:hover{
  background:#1e293b;
  transform:scale(1.05);
}

/* Flechas anterior / siguiente */
#zoomModal .zoomNav{
  position:absolute;
  z-index:4;
  top:50%;
  transform:translateY(-50%);

  display:flex;
  align-items:center;
  justify-content:center;

  width:50px;
  height:58px;
  padding:0;

  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;

  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;

  transition:
    background .2s ease,
    transform .2s ease,
    opacity .2s ease;
}

#zoomModal .zoomPrev{
  left:12px;
}

#zoomModal .zoomNext{
  right:12px;
}

#zoomModal .zoomNav:hover{
  background:rgba(30,41,59,.96);
  transform:translateY(-50%) scale(1.06);
}

/* Estado deshabilitado */
#zoomModal .zoomNav:disabled{
  opacity:.25;
  cursor:default;
  pointer-events:none;
}

/* Informacion inferior */
#zoomModal .zoomInfo{
  width:100%;
  min-height:36px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;

  color:#e2e8f0;
}

#zoomModal .zoomCaption{
  margin:0;
  color:#e2e8f0;
  font-weight:600;
  text-align:center;
}

#zoomModal .zoomCounter{
  flex:0 0 auto;
  padding:5px 10px;

  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;

  background:rgba(255,255,255,.08);
  color:#fff;

  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
}

/* Tablet */
@media (max-width:768px){
  #zoomModal .zoomContent{
    width:calc(100vw - 16px);
    height:calc(100vh - 16px);
    margin:8px;
    padding:52px 52px 18px;
    border-radius:18px;
  }

  #zoomModal .zoomNav{
    width:42px;
    height:52px;
    font-size:25px;
  }

  #zoomModal .zoomPrev{
    left:6px;
  }

  #zoomModal .zoomNext{
    right:6px;
  }
}

/* Celular */
@media (max-width:520px){
  #zoomModal .zoomContent{
    width:100vw;
    height:100vh;
    max-height:none;
    margin:0;
    padding:58px 12px 18px;
    border:0;
    border-radius:0;
  }

  #zoomModal #zoomImg{
    max-height:calc(100% - 105px);
    border-radius:10px;
  }

  #zoomModal .zoomClose{
    top:10px;
    right:10px;
    width:42px;
    height:42px;
  }

  #zoomModal .zoomNav{
    top:auto;
    bottom:18px;
    width:46px;
    height:46px;
    border-radius:50%;
    transform:none;
  }

  #zoomModal .zoomNav:hover{
    transform:scale(1.05);
  }

  #zoomModal .zoomPrev{
    left:14px;
  }

  #zoomModal .zoomNext{
    right:14px;
  }

  #zoomModal .zoomInfo{
    padding:0 52px;
    box-sizing:border-box;
    flex-direction:column;
    gap:4px;
  }

  #zoomModal .zoomCaption{
    font-size:.82rem;
  }

  #zoomModal .zoomCounter{
    font-size:.78rem;
  }
}

/* =========================================================
   FASE 3.5.2 - CATEGORIA Y PROYECTO DESTACADO
   ========================================================= */

.projectMeta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:9px;
}

.projectCategory,
.projectFeatured{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:5px 9px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  line-height:1;
  letter-spacing:.03em;
}

.projectCategory{
  color:#475569;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
}

.projectFeatured{
  color:#315a21;
  background:#edfbe5;
  border:1px solid #cceeb9;
}

.projectTile:has(.projectFeatured){
  border-color:rgba(123,212,74,.45);
  box-shadow:0 12px 30px rgba(2,6,23,.08);
}

@media (max-width:640px){
  .projectMeta{
    gap:6px;
    margin-bottom:8px;
  }

  .projectCategory,
  .projectFeatured{
    font-size:.64rem;
    padding:5px 8px;
  }
}
