/* Tech Agency – single portfolio (sin tailwind) */
:root{
  --primary:#43ad8b;
  --bg-light:#f6f8f7;
  --bg-dark:#141e1b;

  --text:#0f172a;
  --text-inv:#ffffff;
  --muted:#64748b;

  --card:#ffffff;
  --border:#e2e8f0;
  --border-dark:#1f2937;

  --shadow-sm: 0 1px 0 rgba(2,6,23,.05);
  --shadow-md: 0 8px 20px rgba(2,6,23,.10);
  --radius-lg: 16px;
  --radius-xl: 20px;

  --container: 1200px;
}

/* Ajusta esta condición a como Salient marque dark mode */
body.dark,
html.dark body{
  --text:#f8fafc;
  --muted:#94a3b8;
  --card:#0b1220;
  --border: var(--border-dark);
}

.ta-page{
  background: var(--bg-light);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 70vh;
}
body.dark .ta-page{ background: var(--bg-dark); }

.ta-container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HERO ===== */
.ta-hero{
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}
.ta-hero__bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
}
.ta-hero__inner{
  position: relative;
  height: 100%;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 48px;
}

.ta-badge{
  display:inline-block;
  width: fit-content;
  background: rgba(67,173,139,.9);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.ta-hero__title{
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(34px, 4.8vw, 64px);
  margin: 0 0 12px;
}

.ta-hero__lead{
  color: rgba(226,232,240,.92);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
}

/* ===== GRID ===== */
.ta-content{
  padding: 48px 0 70px;
}

.ta-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px){
  .ta-grid{
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .ta-side{ position: sticky; top: 92px; }
}

/* MAIN spacing like space-y-12 */
.ta-main > * + *{ margin-top: 48px; }

.ta-block{}

/* ===== TITLES ===== */
.ta-h2{
  display:flex;
  align-items:center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 14px;
}
.ta-h2__bar{
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  flex: 0 0 auto;
}

.ta-h3{
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.ta-p{
  color: var(--muted);
  margin: 0;
}
.ta-p--lg{
  font-size: 18px;
  line-height: 1.75;
}
.ta-p--sm{
  font-size: 14px;
  line-height: 1.75;
}

/* ===== CARDS (Challenge/Solution) ===== */
.ta-two{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 768px){
  .ta-two{ grid-template-columns: 1fr 1fr; }
}

.ta-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.ta-icon{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  margin-bottom: 14px;
}
.ta-icon--danger{
  background: #fee2e2; /* red-100 */
  color: #dc2626;     /* red-600 */
}
body.dark .ta-icon--danger{
  background: rgba(127,29,29,.30);
  color: #fca5a5;
}
.ta-icon--ok{
  background: rgba(67,173,139,.12);
  color: var(--primary);
}

/* ===== RESULTS ===== */
.ta-results{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (min-width: 768px){
  .ta-results{ grid-template-columns: repeat(4, 1fr); }
}

.ta-result{
  text-align:center;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}
body.dark .ta-result{
  background: #0f172a; /* slate-900-ish */
  border-color: #334155;
}

.ta-result__val{
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}
.ta-result__lab{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
}

/* ===== GALLERY ===== */
.ta-gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ta-gallery__item{
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow:hidden;
  box-shadow: var(--shadow-md);
}
.ta-gallery__item img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* ===== SIDEBAR PANELS ===== */
.ta-panel{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
}
.ta-panel + .ta-panel{ margin-top: 22px; }

.ta-panel__title{
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px;
}

.ta-techs{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.ta-tech{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9; /* slate-100 */
  color: #334155;      /* slate-700 */
  font-size: 12px;
  font-weight: 700;
}
body.dark .ta-tech{
  background: #1f2937;
  color: #cbd5e1;
}
.ta-tech__icon{
  font-size: 13px;
  opacity: .85;
}

/* Project Info list */
.ta-info{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.ta-info li{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
}
.ta-info span{
  color: var(--muted);
  font-size: 13px;
}
.ta-info strong{
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

/* ===== CTA ===== */
.ta-cta{
  margin-top: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 22px;
}
.ta-cta h3{
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 8px;
}
.ta-cta p{
  margin: 0 0 14px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  line-height: 1.6;
}
.ta-cta__btn{
  display:block;
  width:100%;
  text-align:center;
  padding: 12px 14px;
  background: #fff;
  color: var(--primary);
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  text-decoration:none;
}
.ta-cta__btn:hover{ filter: brightness(.98); }

/* ===== UP NEXT ===== */
.ta-upnext{
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.ta-upnext__link{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 22px;
  text-decoration:none;
  color: inherit;
}
.ta-upnext__kicker{
  display:block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ta-upnext__title{
  font-size: clamp(28px, 3.8vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.ta-upnext__circle{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 30px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ta-upnext__link:hover .ta-upnext__title{ color: var(--primary); }
.ta-upnext__link:hover .ta-upnext__circle{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Prev/Next basic */
.ta-prevnext{
  margin-top: 26px;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  font-size: 14px;
}
.ta-prevnext a{
  text-decoration:none;
  color: var(--text);
}
.ta-prevnext a:hover{ color: var(--primary); }


.ta-info__full{ justify-content: flex-end; }

.ta-btn-link{
  display:inline-block;
  width:100%;
  text-align:center;
  padding:12px 14px;
  border-radius:14px;
  background: var(--primary);
  color:#fff !important;
  font-weight:900;
  font-size:13px;
  text-decoration:none;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 25%, transparent);
  transition: transform .15s ease, filter .15s ease;
}
.ta-btn-link:hover{ transform: translateY(-1px); filter: brightness(.98); }

/* Botón del Project URL en Project Info */
.ta-info__full{
  justify-content: flex-end;
}

.ta-btn-link{
  display:inline-block;
  width:100%;
  text-align:center;
  padding:12px 14px;
  border-radius:14px;
  background: var(--primary);
  color:#fff !important;
  font-weight: 900;
  font-size: 13px;
  text-decoration:none;
  border: 2px solid var(--primary);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.ta-btn-link:hover{
  background: transparent;
  color: var(--primary) !important;
  transform: translateY(-1px);
}

/* CTA: texto en blanco y NO negrita */
.ta-cta{
  margin-top: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 22px;
}

.ta-cta h3{
  font-size: 16px;
  font-weight: 700; /* antes 900 */
  margin: 0 0 8px;
  color: #fff;
}

.ta-cta p{
  margin: 0 0 14px;
  color: rgba(255,255,255,.90);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400; /* no negrita */
}

/* CTA button: hover invierte colores */
.ta-cta__btn{
  display:block;
  width:100%;
  text-align:center;
  padding: 12px 14px;
  background: #fff;
  color: var(--primary);
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  text-decoration:none;
  border: 2px solid #fff;
  transition: background .15s ease, color .15s ease;
}
.ta-cta__btn:hover{
  background: transparent;
  color: #fff;
}

/* Gallery clickable + hover zoom */
.ta-gallery__item{
  position: relative;
  display:block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow:hidden;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
}

.ta-gallery__item img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transition: transform .35s ease;
}

.ta-gallery__item:hover img{
  transform: scale(1.06);
}

/* iconito + */
.ta-gallery__zoom{
  position:absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.ta-gallery__item:hover .ta-gallery__zoom{
  opacity: 1;
  transform: translateY(0);
}

/* Prev/Next doble (debajo del contenido) */
.ta-upnav{
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px){
  .ta-upnav{ grid-template-columns: 1fr 1fr; }
}

.ta-upnav__item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  text-decoration:none;
  color: inherit;
  padding: 10px 0;
}

.ta-upnav__text{ flex: 1; }
.ta-upnav__text--right{ text-align: right; }

.ta-upnav__kicker{
  display:block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ta-upnav__title{
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}

.ta-upnav__circle{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 30px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  flex: 0 0 auto;
}

.ta-upnav__item:hover .ta-upnav__title{ color: var(--primary); }
.ta-upnav__item:hover .ta-upnav__circle{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Upnav: 1 columna en móvil, 2 en desktop */
.ta-upnav{
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px){
  .ta-upnav{
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  /* Si NO hay prev, el next se coloca en la columna 2 (derecha) */
  .ta-upnav.ta-upnav--no-prev .ta-upnav__item--next{
    grid-column: 2;
  }

  /* Si NO hay next, el prev se coloca en la columna 1 (izquierda) */
  .ta-upnav.ta-upnav--no-next .ta-upnav__item--prev{
    grid-column: 1;
  }
}

/* Haz que los items sean “grid items” (por si el navegador es quisquilloso) */
.ta-upnav__item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  text-decoration:none;
  color: inherit;
}