@charset "utf-8";

/* ==========================================================
   HERO PORTFOLIO – PIXELDOT
   ========================================================== */

#hero-portfolio {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#hero-portfolio .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero/hero-portfolio.webp");
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.05);
}

#hero-portfolio .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,67,143,.75) 0%,
    rgba(20,67,143,.85) 60%,
    rgba(20,67,143,.95) 100%
  );
  z-index: 2;
}

#hero-portfolio .hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 0 20px;
  color: #fff;
}

#hero-portfolio h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 18px;
}

#hero-portfolio p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  opacity: .95;
}


/* =============================
   SLIDER DE IMAGENES EN CARD
============================= */

.media-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  z-index: 1;

  transition:
    opacity 1.4s ease-in-out;
  will-change: opacity;
}

.media-slider img.is-active {
  opacity: 1;
  z-index: 2;
}

@media (max-width: 768px) {
  .portfolio-header.disruptive {
    margin-bottom: 100px;
  }

  .portfolio-header.disruptive .portfolio-title {
    font-size: 2.8rem;
    margin-bottom: 36px;
  }

  .portfolio-manifesto-block {
    padding: 24px;
  }
}

.offset-title {
  text-align: center;
}

.offset-title .line-1,
.offset-title .line-2 {
  display: inline-block;
  width: 100%;
}

.offset-title .line-2 {
  position: relative;
  left: 64px; /* DESPLAZAMIENTO CONTROLADO */
}

/* =============================
   HEADER DISRUPTIVO + MANIFIESTO
============================= */

.portfolio-header.disruptive {
  margin-bottom: 70px;
  position: relative;
}

/* TÍTULO */
.portfolio-header.disruptive .portfolio-title {
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #111;
  margin-bottom: 48px;
}

/* Palabras secundarias */
.portfolio-title .muted {
  color: #c4c4c4;
}

@media (min-width: 1200px) {
  .portfolio-header.disruptive {
    margin-bottom: 64px;
  }
}

/* Highlight protagonista */
.portfolio-title .highlight {
  position: relative;
  display: inline-block;
  padding: 0 .18em;
  z-index: 1;
}

.portfolio-title .highlight::before {
  content: "";
  position: absolute;
  left: -6%;
  bottom: 0.08em;
  width: 112%;
  height: 0.48em;
  background: #149bd7;
  opacity: .9;
  z-index: -1;
  transform: skewX(-7deg);
}

.portfolio-title .highlight.alt::before {
  background: rgba(20,155,215,.25);
}

/* =============================
   MANIFIESTO COMO BASE
============================= */

.portfolio-manifesto-impact {
  margin: 160px auto 140px;
  max-width: 1100px;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.impact-grid h3 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111;
}

.impact-grid h3 span {
  color: #149bd7;
}

.impact-grid p {
  font-size: 17px;
  line-height: 1.85;
  color: #444;
}

.portfolio-manifesto-impact p {
  font-size: 18px;
  line-height: 1.8;
  color: #222;

  max-width: 760px;

  padding-left: 28px;
  position: relative;
}

/* Línea de énfasis (criterio / decisión) */
.portfolio-manifesto-impact p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: calc(100% - 12px);
  background: linear-gradient(
    180deg,
    #149bd7 0%,
    rgba(20,155,215,.35) 100%
  );
  border-radius: 4px;
}

/* Resaltado de marca */
.portfolio-manifesto-impact p strong {
  font-weight: 900;
  color: #111;
}

/* =============================
   PORTFOLIO FILTERS – CENTRADO
============================= */

.portfolio-filters {
  display: flex;
  justify-content: center;

    flex-wrap: nowrap;
    padding-bottom: 10px;
  gap: 14px;
  margin: 40px auto 80px;
  max-width: 100%;
	  border-bottom: 1px solid #ddd;
	}
@media (max-width: 992px) {
  .portfolio-filters {
    flex-wrap: wrap;
  }
}

.filter-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100%;
  height: 2px;
  background: #149bd7;
}


.filter-btn {
  padding: 10px 25px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
}

/* Hover */
.filter-btn:hover {
     border-color: var(--secondary);
  color: #fff;
  transform: translateY(-1px);
	  background: #111;
   background: var(--secondary);
	
}

/* Activo */
.filter-btn.active {
  background: #111;
  border-color: #111;
  color: #fff !important;
}

.filter-btn.active:hover {
  color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
  .portfolio-filters {
    gap: 12px;
    margin-bottom: 60px;
	      overflow-x: auto;
    padding-left: 10px;
  }

 .filter-btn {
  border-radius: 8px;
  background: transparent;
  border: 1px solid #ddd;
	     white-space: nowrap;

}
}

/* =============================
   GRID
============================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
    gap: 36px;	
	  margin-bottom: 120px;

}

/* =============================
   CARD
============================= */

.project-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
	transition: 
    transform .45s cubic-bezier(.22,.61,.36,1),
    box-shadow .45s cubic-bezier(.22,.61,.36,1);
	transition: opacity .3s ease, transform .3s ease;

}


.project-card.fade-out {
  opacity: 0;
  transform: scale(.96);
}

.project-card.is-hidden {
  display: none;
}

/* Media */
.project-media {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim sutil */
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.45),
    rgba(0,0,0,.15),
    transparent
  );
}

.project-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;

  color: #555;

  padding: 8px 14px 8px 16px;
  margin-bottom: 12px;

  background: rgba(245,247,250,.85);
  backdrop-filter: blur(6px);

  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,.06);
}

/* =============================
   CONTENT
============================= */

.project-content {
    padding: 26px 26px 16px;
}

.project-title {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #111;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.45;
  max-width: 85%;
	  margin-bottom: 12px;
}

.project-type .project-icon::before {
  border-color: var(--primary);

}

/* Insight */
.project-insight {
	 margin-top: auto;
  padding: 0 26px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #111;
  opacity: .55;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}

.project-card:hover .project-insight {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-section {
    padding: 80px 0;
  }

  .portfolio-title {
    font-size: 2.2rem;
  }
}

/* =============================
   CARD HOVER
============================= */

.project-card {
  transition: transform .35s ease, box-shadow .35s ease;
	display: flex;
  flex-direction: column;
}

.project-media img {
  transition: transform .8s ease;
}

/* Hover */
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 36px 80px rgba(0,0,0,.18);
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-insight::before {
  content: "— ";
  color: #149bd7;
}

/* =============================
   TRANSICIÓN DE CARDS
============================= */

.project-card {
  transition: opacity .3s ease, transform .3s ease;
}

.project-card.is-hidden {
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
	display: none;
}

/* =============================
   ICONOS DE PROYECTO
============================= */

.project-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
}

/* Diseño & Web */
.project-icon[data-icon="design"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  border-radius: 2px;
}

/* Social Media */
.project-icon[data-icon="social"]::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* Marketing */
.project-icon[data-icon="marketing"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Paid Media */
.project-icon[data-icon="paid"]::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2px solid #fff;
}

/* Imprenta */
.project-icon[data-icon="print"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  border-radius: 3px;
}

/* Merchandising */
.project-icon[data-icon="merch"]::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

/* Multimedia */
.project-icon[data-icon="media"]::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid #fff;
  transform: rotate(45deg);
}

/* =============================
   CHEVRON SLIDER EN IMAGEN
============================= */

.media-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 3;

  opacity: .75;
  transition: opacity .25s ease, transform .25s ease;
}

.media-chevron:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

/* Posición derecha */
.media-chevron-right {
  right: 14px;
}

/* Flecha */
.media-chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Chevron izquierda */
.media-chevron-left {
  left: 14px;
}

.media-chevron-left::before {
  transform: rotate(135deg);
}

/* Chevron derecha */
.media-chevron-right {
  right: 14px;
}

.media-chevron-right::before {
  transform: rotate(-45deg);
}

/* =============================
   DOTS SLIDER
============================= */

.media-dots {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
	    margin-bottom: 14px;
}

.media-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db; /* gris suave */
  transition: background .3s ease, transform .3s ease;
   }

.media-dots .dot.active {
background: var(--primary);
  transform: scale(1.25);
}