
/* ==========================================================
   AGENCIA CREATIVA V2
   PORTAFOLIO GENERAL — VERSIÓN CONSOLIDADA
   ========================================================== */

/* 01. BASE Y VARIABLES */

.cp-portfolio {
  --cp-ink: #102f35;
  --cp-teal: #008c8c;
  --cp-lime: #d8fa52;
  --cp-muted: #607377;
  --cp-border: #dce6e2;

  width: 100%;
  background: #f6f8f6;
  color: var(--cp-ink);
  padding: clamp(65px, 7vw, 105px) 0 85px;
}

.cp-portfolio,
.cp-portfolio * {
  box-sizing: border-box;
}

.cp-portfolio__container {
  width: min(calc(100% - 72px), 1240px);
  margin-inline: auto;
}

/* 02. INTRODUCCIÓN */

.cp-portfolio__intro {
  max-width: 950px;
  margin-bottom: clamp(38px, 5vw, 56px);
}

.cp-portfolio__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  color: var(--cp-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}

.cp-portfolio__eyebrow span {
  color: var(--cp-teal);
}

.cp-portfolio__eyebrow i {
  flex: 0 0 36px;
  width: 36px;
  height: 1px;
  background: var(--cp-teal);
}

.cp-portfolio__intro h1 {
  max-width: 900px;
  margin: 0 0 22px;
  color: var(--cp-ink);
  font-size: clamp(36px, 4.15vw, 58px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.cp-portfolio__intro h1 em {
  display: block;
  color: var(--cp-teal);
  font-style: normal;
}

.cp-portfolio__intro p {
  max-width: 720px;
  margin: 0;
  color: var(--cp-muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.75;
}

/* 03. CUADRÍCULA */

.cp-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

/* 04. TARJETAS GENERALES */

.cp-project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  border-radius: 19px;
  background: #fff;
  color: var(--cp-ink);
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(16,47,53,.025);
}

.cp-project--live {
  cursor: pointer;
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.cp-project--live:hover {
  transform: translateY(-5px);
  border-color: #92c5ba;
  box-shadow: 0 20px 45px rgba(16,47,53,.105);
}

.cp-project--live:focus-visible {
  outline: 3px solid var(--cp-teal);
  outline-offset: 4px;
}

/* 05. VISUALES SUPERIORES */

.cp-project__visual,
.cp-project__pending-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  aspect-ratio: 1.55;
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
}

.cp-project__visual {
  isolation: isolate;
  color: #fff;
  background: var(--cp-ink);
}

.cp-project__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .6s ease;
}

.cp-project--live:hover .cp-project__visual::before {
  transform: scale(1.045);
}

.cp-project__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8,32,37,.42) 0%,
    rgba(8,32,37,.20) 36%,
    rgba(8,32,37,.88) 100%
  );
}

/* 06. IMÁGENES DE LOS CASOS PUBLICADOS */

.cp-project__visual--sanus::before {
  background-image: url("https://agcreativa.cl/wp-content/uploads/2026/10/creativa_v2_sanus_hero_escritorio.webp");
}

.cp-project__visual--cidstem::before {
  background-image: url("https://agcreativa.cl/wp-content/uploads/2026/10/creativa_v2_cidstem_hero_escritorio.webp");
}

/* 07. ETIQUETAS Y TEXTOS SOBRE IMÁGENES */

.cp-project__visual-top,
.cp-project__pending-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.cp-project__visual-top span,
.cp-project__pending-top span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cp-project__visual-top span:last-child {
  color: var(--cp-lime);
  text-align: right;
}

.cp-project__visual-title {
  min-width: 0;
}

.cp-project__visual-title > span {
  display: block;
  margin-bottom: 12px;
  color: var(--cp-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.cp-project__visual-title strong {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 53px);
  line-height: 1.08;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}

.cp-project__visual-title small {
  display: block;
  max-width: 350px;
  margin-top: 12px;
  color: #e0ebea;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* 08. TARJETAS EN PREPARACIÓN */

.cp-project__pending-visual {
  isolation: isolate;
  background: var(--cp-ink);
  color: #fff;
}

.cp-project__pending-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  right: -145px;
  top: 15%;
  border: 1px solid rgba(216,250,82,.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(216,250,82,.035),
    0 0 0 105px rgba(216,250,82,.025);
  pointer-events: none;
}

.cp-project__pending-top {
  color: #c8dcda;
}

.cp-project__pending-symbol {
  color: var(--cp-lime);
  font-size: 24px;
}

.cp-project__pending-center {
  position: relative;
  min-width: 0;
}

.cp-project__pending-center > span {
  color: var(--cp-lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.cp-project__pending-center strong {
  display: block;
  max-width: 100%;
  margin: 12px 0;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}

.cp-project__pending-center p {
  max-width: 320px;
  margin: 0;
  color: #c0d3d1;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cp-project__pending-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce8e5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}

.cp-project__pending-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cp-lime);
}

/* 09. CUERPO DE LAS TARJETAS */

.cp-project__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 27px;
}

.cp-project__category {
  color: var(--cp-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  overflow-wrap: anywhere;
}

.cp-project__body h2 {
  max-width: 100%;
  margin: 13px 0 12px;
  color: var(--cp-ink);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.cp-project__body > p {
  flex: 1;
  max-width: 100%;
  margin: 0 0 25px;
  color: var(--cp-muted);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* 10. PIE DE TARJETAS */

.cp-project__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid #e1e9e6;
  color: var(--cp-ink);
  font-size: 12px;
  font-weight: 750;
}

/* 11. CTA LIMA PARA CASOS PUBLICADOS */

.cp-project--live .cp-project__footer {
  justify-content: flex-start;
  gap: 0;
  padding-top: 20px;
}

.cp-project--live .cp-project__footer > span:first-child {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
  border-radius: 40px 0 0 40px;
  background: var(--cp-lime);
  color: var(--cp-ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

.cp-project__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: -1px;
  border-radius: 0 40px 40px 0;
  background: var(--cp-lime);
  color: var(--cp-ink);
  font-size: 20px;
  transition: color .3s ease, transform .3s ease;
}

.cp-project--live:hover .cp-project__arrow {
  transform: translate(3px, -2px);
}

/* 12. REFLEJO LUMINOSO DEL CTA */

.cp-project--live .cp-project__footer > span:first-child::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 38%;
  height: 200%;
  transform: rotate(25deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.65),
    transparent
  );
  pointer-events: none;
  animation: cp-portfolio-shine 5s ease-in-out infinite;
}

@keyframes cp-portfolio-shine {
  0%, 60% {
    left: -70%;
  }

  85%, 100% {
    left: 140%;
  }
}

/* 13. PIE DE CASOS EN PREPARACIÓN */

.cp-project__footer--pending {
  color: #718583;
  font-weight: 600;
}

.cp-project__footer--pending > span:last-child {
  color: #a9c0b7;
  font-size: 23px;
}

/* 14. CIERRE DEL PORTAFOLIO */

.cp-portfolio__closing {
  margin-top: 75px;
  padding-top: 30px;
  border-top: 1px solid var(--cp-border);
}

.cp-portfolio__closing span {
  color: var(--cp-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.cp-portfolio__closing p {
  max-width: 780px;
  margin: 15px 0 0;
  color: var(--cp-ink);
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.45;
  letter-spacing: -.025em;
}

/* 15. TABLET */

@media (max-width: 1024px) {

  .cp-portfolio__container {
    width: calc(100% - 56px);
  }

  .cp-project__visual,
  .cp-project__pending-visual {
    padding: 25px;
  }

  .cp-project__visual-title strong,
  .cp-project__pending-center strong {
    font-size: clamp(30px, 4vw, 43px);
  }

  .cp-project__body {
    padding: 23px;
  }
}

/* 16. MÓVIL */

@media (max-width: 767px) {

  .cp-portfolio {
    padding: 62px 0 70px;
  }

  .cp-portfolio__container {
    width: calc(100% - 38px);
  }

  .cp-portfolio__intro {
    margin-bottom: 37px;
  }

  .cp-portfolio__eyebrow {
    margin-bottom: 24px;
    gap: 11px;
    font-size: 10px;
  }

  .cp-portfolio__eyebrow i {
    flex-basis: 28px;
    width: 28px;
  }

  .cp-portfolio__intro h1 {
    font-size: clamp(32px, 7.7vw, 42px);
    line-height: 1.15;
    letter-spacing: -.045em;
  }

  .cp-portfolio__intro p {
    font-size: 15px;
    line-height: 1.75;
  }

  .cp-portfolio__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }

  .cp-project__visual,
  .cp-project__pending-visual {
    aspect-ratio: auto;
    min-height: 240px;
    padding: 22px;
  }

  .cp-project__visual-top,
  .cp-project__pending-top {
    gap: 8px;
    font-size: 9px;
    letter-spacing: .075em;
  }

  .cp-project__visual-top span:last-child {
    text-align: right;
  }

  .cp-project__visual-title > span,
  .cp-project__pending-center > span {
    font-size: 9px;
    line-height: 1.5;
  }

  .cp-project__visual-title strong {
    font-size: clamp(29px, 7.5vw, 40px);
    line-height: 1.12;
  }

  .cp-project__visual-title small {
    font-size: 12px;
    line-height: 1.55;
  }

  .cp-project__pending-center strong {
    font-size: clamp(31px, 8vw, 43px);
  }

  .cp-project__pending-center p {
    font-size: 12px;
    line-height: 1.6;
  }

  .cp-project__body {
    padding: 22px;
  }

  .cp-project__category {
    font-size: 9px;
    line-height: 1.6;
  }

  .cp-project__body h2 {
    font-size: 25px;
  }

  .cp-project__body > p {
    font-size: 13px;
    line-height: 1.7;
  }

  .cp-project--live .cp-project__footer {
    width: 100%;
    gap: 0;
  }

  .cp-project--live .cp-project__footer > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }

  .cp-project__arrow {
    flex: 0 0 44px;
  }

  .cp-portfolio__closing {
    margin-top: 55px;
  }
}

/* 17. MÓVILES PEQUEÑOS */

@media (max-width: 380px) {

  .cp-portfolio__container {
    width: calc(100% - 30px);
  }

  .cp-project__visual,
  .cp-project__pending-visual {
    padding: 19px;
  }

  .cp-project__body {
    padding: 19px;
  }

  .cp-project__visual-title strong {
    font-size: 28px;
  }

  .cp-project__pending-center strong {
    font-size: 30px;
  }
}

/* 18. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

  .cp-project--live,
  .cp-project__visual::before,
  .cp-project__arrow {
    transition: none !important;
    transform: none !important;
  }

  .cp-project--live .cp-project__footer > span:first-child::after {
    animation: none !important;
  }
}


/* ==========================================================
   CREATIVA V2 — CIERRE EDITORIAL Y CTA
   ========================================================== */

.cp-portfolio__closing {
  margin-top: clamp(55px, 7vw, 95px);
  padding: clamp(34px, 5vw, 70px);
  border: 0;
  border-radius: 28px;
  background: #102f35;
  color: #fff;
  box-shadow: 0 18px 50px rgba(16,47,53,.07);
}

.cp-portfolio__closing-label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 38px;
  color: #b9d1d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}

.cp-portfolio__closing-dot {
  display: block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8fa52;
}

.cp-portfolio__closing h2 {
  max-width: 950px;
  margin: 0;
  color: #fff;
  font-size: clamp(31px, 3.7vw, 53px);
  line-height: 1.15;
  letter-spacing: -.045em;
}

.cp-portfolio__closing-accent {
  width: 55px;
  height: 2px;
  margin: 29px 0;
  background: #d8fa52;
}

.cp-portfolio__closing .cp-portfolio__closing-statement {
  max-width: 950px;
  margin: 0;
  color: #d8fa52;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.cp-portfolio__closing-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 55px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.17);
}

.cp-portfolio__closing-copy {
  min-width: 0;
}

.cp-portfolio__closing-copy h3 {
  max-width: 650px;
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.cp-portfolio__closing-copy p {
  max-width: 600px;
  margin: 0;
  color: #b9d1d1;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: normal;
}

/* CTA LIMA */

.cp-portfolio__closing-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 22px;
  min-height: 56px;
  padding: 8px 10px 8px 24px;
  border-radius: 100px;
  background: #d8fa52;
  color: #102f35 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.cp-portfolio__closing-cta > span:first-child {
  position: relative;
  z-index: 1;
  color: #102f35;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.cp-portfolio__closing-cta-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #102f35;
  color: #d8fa52 !important;
  font-size: 22px !important;
  line-height: 1;
  letter-spacing: 0 !important;
  transition: transform .3s ease;
}

.cp-portfolio__closing-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(216,250,82,.2);
}

.cp-portfolio__closing-cta:hover .cp-portfolio__closing-cta-arrow {
  transform: rotate(45deg);
}

.cp-portfolio__closing-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* RESPONSIVE */

@media (max-width: 767px) {

  .cp-portfolio__closing {
    margin-top: 55px;
    padding: 32px 25px;
    border-radius: 22px;
  }

  .cp-portfolio__closing-label {
    margin-bottom: 28px;
    font-size: 9px;
    letter-spacing: .13em;
  }

  .cp-portfolio__closing h2 {
    font-size: clamp(29px, 7vw, 38px);
  }

  .cp-portfolio__closing-accent {
    margin: 24px 0;
  }

  .cp-portfolio__closing .cp-portfolio__closing-statement {
    font-size: clamp(27px, 6.7vw, 37px);
  }

  .cp-portfolio__closing-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    margin-top: 35px;
    padding-top: 27px;
  }

  .cp-portfolio__closing-copy h3 {
    font-size: 18px;
  }

  .cp-portfolio__closing-copy p {
    font-size: 13px;
  }

  .cp-portfolio__closing-cta {
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding-left: 17px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-portfolio__closing-cta,
  .cp-portfolio__closing-cta-arrow {
    transition: none !important;
    transform: none !important;
  }
}


/* ==========================================================
   CREATIVA V2 — AJUSTE FINAL CIERRE PORTAFOLIO
   Tipografía más compacta y proporciones refinadas
   ========================================================== */

.cp-portfolio__closing {
  padding: clamp(30px, 4vw, 52px);
  margin-top: 65px;
}

.cp-portfolio__closing-label {
  margin-bottom: 26px;
}

/* TITULAR PRINCIPAL */

.cp-portfolio__closing h2 {
  font-size: clamp(26px, 2.9vw, 39px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

/* LÍNEA LIMA */

.cp-portfolio__closing-accent {
  margin: 22px 0;
}

/* FRASE DESTACADA */

.cp-portfolio__closing .cp-portfolio__closing-statement {
  font-size: clamp(25px, 2.7vw, 37px);
  line-height: 1.22;
  letter-spacing: -.035em;
}

/* ZONA INFERIOR Y CTA */

.cp-portfolio__closing-bottom {
  margin-top: 38px;
  padding-top: 25px;
}

.cp-portfolio__closing-copy h3 {
  font-size: clamp(17px, 1.45vw, 21px);
}

.cp-portfolio__closing-copy p {
  font-size: 13px;
}

/* MÓVIL */

@media (max-width: 767px) {

  .cp-portfolio__closing {
    padding: 30px 24px;
    margin-top: 48px;
  }

  .cp-portfolio__closing-label {
    margin-bottom: 23px;
  }

  .cp-portfolio__closing h2 {
    font-size: clamp(25px, 6.3vw, 32px);
    line-height: 1.2;
  }

  .cp-portfolio__closing-accent {
    margin: 20px 0;
  }

  .cp-portfolio__closing .cp-portfolio__closing-statement {
    font-size: clamp(24px, 6vw, 31px);
    line-height: 1.25;
  }

  .cp-portfolio__closing-bottom {
    margin-top: 30px;
    padding-top: 24px;
    gap: 22px;
  }

  .cp-portfolio__closing-copy h3 {
    font-size: 17px;
  }

}
