/* Memoral 2.0 — case study + service pages. Builds on styles.css tokens; classes map to Elementor templates (Theme Builder: single "Caso" and "Servicio"). */
.page-sub main { background: var(--white); }

/* hero */
.chero { position: relative; color: var(--white); padding: clamp(130px, 14vw, 190px) 0 clamp(40px, 5vw, 70px); overflow: hidden; overflow: clip;
  background: radial-gradient(55% 70% at 100% 0%, rgba(197,248,42,.16) 0%, rgba(197,248,42,0) 65%), linear-gradient(170deg, var(--tint, #0E4A2E) 0%, #062619 100%); background-color: #0B3D26; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--on-green-2); margin-bottom: 28px; }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(181,222,195,.4); }
.crumbs a:hover { color: var(--lime); border-color: var(--lime); }
.chero .h2__sub { color: var(--on-green-2); }
.chero .h2__big { font-size: clamp(38px, 4.4vw, 74px); }
.chero__lead { margin: 24px 0 0; max-width: 34ch; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.22; letter-spacing: -.015em; font-weight: 480; font-variation-settings: "wdth" 106; color: #E7F2EA; }
.chero__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(40px, 5vw, 64px) 0 0; padding-top: 26px; border-top: 1px solid rgba(197,248,42,.2); }
.chero__meta dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.chero__meta dd { margin: 0; font-size: 15.5px; color: #E7F2EA; line-height: 1.45; }
.chero__meta a { color: var(--lime); }
.chero__media { margin-top: clamp(40px, 5vw, 70px); border-radius: 28px; overflow: hidden; box-shadow: 0 60px 120px -60px rgba(0,0,0,.8), 0 0 0 1px rgba(197,248,42,.16); }
.chero__media img { width: 100%; height: auto; display: block; }

/* story */
.cstory { padding: clamp(80px, 9vw, 130px) 0 clamp(40px, 5vw, 70px); }
.cstory__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.cstep { position: relative; padding: 30px 28px 32px; border-radius: 26px; background: var(--mint); }
.cstep:nth-child(3) { background: linear-gradient(135deg, #C5F82A 0%, #E6FF96 100%); }
.cstep__n { display: block; font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 18px; }
.cstep h2 { margin: 0 0 12px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 560; font-variation-settings: "wdth" 114; letter-spacing: -.025em; color: var(--green); }
.cstep p { margin: 0; color: var(--ink-2); }
.cstep:nth-child(3) p, .cstep:nth-child(3) h2, .cstep:nth-child(3) .cstep__n { color: var(--green-deep); }
.pending { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; margin-top: 12px; border-radius: 999px; border: 1.5px dashed rgba(6,38,25,.4); font-size: 12.5px; font-weight: 600; color: var(--green-deep); }
.cdeliver { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: clamp(36px, 4vw, 54px); }
.cdeliver > span { font-size: 14px; color: var(--ink-2); margin-right: 6px; }
.credit { margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }

/* gallery */
.cgallery { padding: clamp(30px, 4vw, 60px) 0 clamp(80px, 9vw, 130px); }
.cgallery .wrap { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.cg { margin: 0; }
.cg img { display: block; width: 100%; height: auto; border-radius: 22px; }
.cg__cap { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.cg--duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.2vw, 30px); }
.cg--posts { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.cg--posts img { aspect-ratio: var(--ar, 4 / 5); object-fit: cover; border-radius: 18px; box-shadow: 0 24px 50px -36px rgba(6,38,25,.6); }
.cg--site { position: relative; padding: clamp(22px, 3.4vw, 54px) 14% clamp(22px, 3.4vw, 54px) clamp(22px, 3.4vw, 54px); border-radius: 30px; overflow: hidden;
  background: radial-gradient(60% 80% at 100% 0%, rgba(197,248,42,.28) 0%, rgba(197,248,42,0) 60%), var(--mint); }
.cg--site .browser__view { aspect-ratio: 16 / 9; }
.cg--site .phone { right: 4%; bottom: 9%; width: 17%; }
.cg--reels { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); padding: clamp(18px, 2.4vw, 36px); border-radius: 30px;
  background: radial-gradient(60% 80% at 100% 0%, rgba(197,248,42,.16) 0%, rgba(197,248,42,0) 60%), linear-gradient(170deg, #0B3D26, #062619); }
.cg--films { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); padding: clamp(18px, 2.4vw, 36px); border-radius: 30px; background: linear-gradient(170deg, #0B3D26, #062619); }
.cg__label { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #fff; font-weight: 560; font-size: 18px; }
.cg__label small { font-size: 13.5px; font-weight: 450; color: var(--on-green-2); }

/* quote */
.cquote { padding: clamp(70px, 8vw, 120px) 0; background: linear-gradient(115deg, #C5F82A 0%, #DDFF7A 48%, #BDF020 100%); background-color: #C5F82A; color: var(--green-deep); }
.cquote blockquote { margin: 0; max-width: 30ch; font-size: clamp(28px, 3vw, 46px); line-height: 1.18; letter-spacing: -.02em; font-weight: 500; font-variation-settings: "wdth" 108; }
.cquote figcaption { margin-top: 28px; font-size: 16px; } .cquote figcaption b { font-weight: 650; }

/* next + cta */
.cnext { padding: clamp(80px, 9vw, 130px) 0; background: var(--mint); }
.cnext__card { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(24px, 4vw, 60px); text-decoration: none; color: inherit; }
.cnext__card small { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.cnext__card b { display: block; font-size: clamp(40px, 5vw, 84px); font-weight: 560; font-variation-settings: "wdth" 120; letter-spacing: -.04em; line-height: .95; color: var(--green); }
.cnext__card span.link-arrow { margin-top: 24px; color: var(--green); }
.cnext__img { border-radius: 26px; overflow: hidden; } .cnext__img img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.cnext__card:hover .cnext__img img { transform: scale(1.04); }
.ccta { padding: clamp(80px, 9vw, 130px) 0; color: #fff; text-align: center;
  background: radial-gradient(50% 60% at 50% 0%, rgba(197,248,42,.2) 0%, rgba(197,248,42,0) 60%), linear-gradient(170deg, #0E4A2E 0%, #062619 100%); background-color: #0B3D26; }
.ccta .h2__sub { color: var(--on-green-2); }
.ccta .h2 { margin-bottom: 34px; }
.ccta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.sfoot { background: #062619; color: var(--on-green-2); padding: 34px 0; font-size: 13.5px; }
.sfoot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sfoot img { height: 22px; width: auto; }

/* service page */
.shero__grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(30px, 4vw, 70px); align-items: center; }
.shero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.shero__media { position: relative; padding: 0 12% 8% 0; }
.feats { padding: clamp(90px, 10vw, 150px) 0; }
.feats__head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 90px); align-items: end; margin-bottom: clamp(40px, 5vw, 70px); }
.feats__head .h2__big { color: var(--green); } .feats__head .lead { margin: 0; color: var(--ink-2); }
.feats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.feat { padding: 26px 24px 28px; border-radius: 24px; background: var(--mint); display: flex; flex-direction: column; gap: 10px; }
.feat i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--green-deep); background: linear-gradient(135deg, #C5F82A, #ECFFB0); margin-bottom: 8px; }
.feat i svg { width: 22px; height: 22px; }
.feat h3 { margin: 0; font-size: 20px; font-weight: 560; font-variation-settings: "wdth" 110; letter-spacing: -.015em; color: var(--green); }
.feat p { margin: 0; font-size: 15px; color: var(--ink-2); }
.feat small { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--green); }
.sproc { padding: clamp(90px, 10vw, 150px) 0; color: #fff; background: linear-gradient(180deg, #062619 0%, #072B1C 100%); background-color: #062619; }
.sproc .h2__sub { color: var(--on-green-2); }
.sproc__steps { list-style: none; margin: clamp(40px, 5vw, 70px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.sproc__steps li { padding-top: 22px; border-top: 2px solid rgba(197,248,42,.35); }
.sproc__steps b { display: block; font-size: 44px; font-weight: 600; font-variation-settings: "wdth" 122; color: var(--lime); letter-spacing: -.04em; line-height: 1; }
.sproc__steps h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 560; font-variation-settings: "wdth" 112; }
.sproc__steps p { margin: 0; color: var(--on-green-2); font-size: 15.5px; }
.sextra { padding: clamp(90px, 10vw, 150px) 0 0; }
.sextra__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.sextra__grid figure { margin: 0; } .sextra__grid img, .sextra__grid video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.sextra__grid figcaption { margin-top: 12px; } .sextra__grid figcaption b { display: block; font-size: 18px; font-weight: 560; } .sextra__grid figcaption span { font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 1024px) {
  .chero__meta { grid-template-columns: 1fr 1fr; }
  .cstory__grid, .feats__grid { grid-template-columns: 1fr 1fr; }
  .shero__grid, .feats__head, .cnext__card { grid-template-columns: 1fr; }
  .sproc__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cstory__grid, .feats__grid, .sextra__grid { grid-template-columns: 1fr; }
  .cg--duo, .cg--films { grid-template-columns: 1fr; }
  .cg--posts { --cols: 2 !important; }
  .cg--reels { --cols: 2 !important; }
  .cg--site { padding: 14px 16% 14px 14px; border-radius: 20px; }
  .chero__media, .cg img { border-radius: 16px; }
  .sproc__steps { grid-template-columns: 1fr; }
}

/* generic service template */
.shero__visual { position: relative; }
.shero__visual > img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 60px 110px -50px rgba(0,0,0,.85), 0 0 0 1px rgba(197,248,42,.16); }
.svc-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: center; }
.svc-trio .rcard:nth-child(1) { transform: rotate(-3deg) translateY(16px); }
.svc-trio .rcard:nth-child(3) { transform: rotate(3deg) translateY(16px); }
.svc-trio .rcard figcaption { font-size: 12px; padding: 8px 10px; }
.sproof { padding: clamp(20px, 3vw, 40px) 0 clamp(90px, 10vw, 150px); }
.sproof .h2__big { color: var(--green); }
.sproof__body { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.sproof__more { margin: 6px 0 0; text-align: center; color: var(--green); }
.usecases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.cnext__txt { margin: 16px 0 0; max-width: 38ch; color: var(--ink-2); }
.srel { padding: clamp(60px, 7vw, 100px) 0; background: var(--mint); border-top: 1px solid var(--line-light); }
.srel h2 { margin: 0 0 22px; font-size: clamp(22px, 2vw, 30px); font-weight: 560; font-variation-settings: "wdth" 112; letter-spacing: -.02em; color: var(--green); }
.srel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.srel a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--white); color: var(--green); text-decoration: none; font-weight: 560; box-shadow: inset 0 0 0 1px var(--line-light); transition: background-color .3s, color .3s; }
.srel a:hover { background: var(--green); color: var(--white); }
.faq + .srel { border-top: 0; }
@media (max-width: 1024px) {
  .usecases { grid-template-columns: 1fr 1fr; }
  .cg--posts { --cols: 3 !important; }
}
@media (max-width: 720px) {
  .usecases { grid-template-columns: 1fr; }
  .cg--posts { --cols: 2 !important; }
  .svc-trio { gap: 8px; }
}

/* portfolio system */
.rcard--post { aspect-ratio: 4 / 5; }
.ccats { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.ccats a { color: var(--green); font-weight: 560; }
.cnext__all { margin: 40px 0 0; text-align: center; color: var(--green); }
.chero--archive { padding-bottom: clamp(60px, 7vw, 100px); }
.pgrid-wrap { padding: clamp(40px, 5vw, 70px) 0 clamp(90px, 10vw, 150px); }
.pfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(30px, 4vw, 54px); position: sticky; top: 86px; z-index: 5; padding: 12px 0; background: var(--white); box-shadow: 0 12px 20px -18px rgba(6,38,25,.35); }
.pfilter__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 18px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 560; color: var(--green); background: var(--mint); box-shadow: inset 0 0 0 1px var(--line-light); transition: background-color .3s, color .3s; }
.pfilter__btn span { font-size: 12px; font-weight: 600; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--white); color: var(--ink-2); }
.pfilter__btn:hover { background: #E6EEE3; }
.pfilter__btn.is-active { background: var(--green); color: var(--white); box-shadow: none; }
.pfilter__btn.is-active span { background: var(--lime); color: var(--green-deep); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 4vw, 60px) clamp(20px, 2.6vw, 40px); }
.pcard { display: block; text-decoration: none; color: inherit; }
.pcard__img { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--mint); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 18px; }
.pcard__meta b { font-size: clamp(22px, 2vw, 30px); font-weight: 560; font-variation-settings: "wdth" 112; letter-spacing: -.02em; }
.pcard__meta span { font-size: 14px; color: var(--ink-2); text-align: right; }
.pcard__lead { margin: 6px 0 0; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 720px) { .pgrid { grid-template-columns: 1fr; } .pfilter { top: 74px; flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; } .pfilter__btn { flex: none; } .pcard__meta { flex-direction: column; gap: 2px; } .pcard__meta span { text-align: left; } }
.pcard[hidden] { display: none; }

/* services hub, legal, thanks */
.feats__grid--hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat--link { text-decoration: none; color: inherit; transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s; }
.feat--link:hover { transform: translateY(-4px); background: #E8F0E4; box-shadow: 0 30px 50px -36px rgba(6,38,25,.5); }
.legal { padding: clamp(60px, 7vw, 100px) 0 clamp(80px, 9vw, 130px); }
.legal__body { max-width: 820px; }
.legal__body h2 { margin: 44px 0 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 560; font-variation-settings: "wdth" 110; letter-spacing: -.015em; color: var(--green); }
.legal__body p { color: var(--ink-2); margin: 0 0 14px; }
.legal__body b { color: var(--green-ink); }
.legal__date { font-size: 14px; }
.chero--thanks { min-height: 80vh; display: flex; align-items: center; }
@media (max-width: 1024px) { .feats__grid--hub { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .feats__grid--hub { grid-template-columns: 1fr; } }
.sfoot a { color: inherit; } .footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.ccta__phone { margin: 22px 0 0; text-align: center; color: var(--on-green-2, rgba(255,255,255,.7)); font-size: 15px; }
.ccta__phone a { color: var(--lime); font-weight: 600; text-decoration: none; }
@media (max-width: 720px) { .sfoot { padding-bottom: 96px; } }
