/* Páginas interiores: Casos de éxito y Noticiero */
.inner main { position: relative; z-index: 1; padding-top: clamp(120px, 18vh, 190px); min-height: 100vh; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(rgba(120, 255, 192, .07) 1.2px, transparent 1.7px) 0 0 / 22px 22px, linear-gradient(180deg, rgba(0, 15, 19, .8), rgba(0, 28, 34, .72)); }
[hidden] { display: none !important; }

.phead { padding-bottom: clamp(26px, 5vh, 54px); }
.phead .title { margin-bottom: .3em; }
.phead .lead { max-width: 62ch; font-size: 1.05em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.chip { font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s; }
.chip i { font-style: normal; font-size: .78em; opacity: .7; margin-left: 4px; }
.chip:hover { transform: translateY(-3px); border-color: var(--cyan); }
.chip.is-on { background: var(--cyan); color: var(--abyss); border-color: var(--cyan); font-weight: 500; box-shadow: 0 0 26px rgba(120, 255, 192, .4); }
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 1.2em; }
.search { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(120, 255, 192, .2); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; height: 50px; background: none; border: 0; outline: 0; color: #fff; font: inherit; }
.search input::placeholder { color: rgba(223, 229, 234, .55); }

/* Tarjetas */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--casos, .grid--noticias { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 36px; text-decoration: none; color: var(--ink);
  background: linear-gradient(170deg, rgba(16, 102, 108, .78), rgba(10, 74, 84, .8) 55%, rgba(3, 50, 58, .9)); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .9s var(--ease) var(--rd, 0ms), filter .9s var(--ease) var(--rd, 0ms), transform .5s var(--ease), box-shadow .5s; }
.pcard.is-in:hover { transform: translateY(-10px); box-shadow: 0 34px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(120, 255, 192, .6), 0 0 60px rgba(120, 255, 192, .16); }
.pcard figure { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: #012a31; }
.pcard figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.08); transition: transform .9s var(--ease); }
.pcard:hover figure img { transform: scale(1.18); }
.pcard__ph { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(120, 255, 192, .3), transparent 60%), linear-gradient(140deg, #0a4a54, #00242b); }
.tag { position: absolute; left: 16px; top: 16px; padding: 5px 14px; border-radius: 99px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--abyss); background: var(--cyan); font-weight: 500; }
.tag--solid { position: static; display: inline-block; }
.pcard__body { display: grid; gap: 8px; align-content: start; padding: clamp(18px, 2vw, 26px); flex: 1; }
.pcard__meta { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.pcard h2 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 800; line-height: 1.18; color: #fff; }
.pcard p { font-size: .92rem; line-height: 1.5; }
.more { margin-top: 6px; font-size: .85rem; font-weight: 500; color: var(--cyan); }
.more::after { content: ' →'; display: inline-block; transition: transform .4s var(--ease); }
.pcard:hover .more::after { transform: translateX(6px); }
.empty { padding: 40px 0; text-align: center; color: var(--ink); opacity: .8; }

.metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 clamp(20px, 4vh, 40px); }
.metrics li { display: grid; padding: 16px 24px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.metrics b { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.1; color: var(--cyan); }
.metrics span { font-size: .88rem; }
.metrics li:last-child:not(:first-child) { background: linear-gradient(150deg, #f25a64, var(--red) 55%, #b82a36); border-color: transparent; }
.metrics li:last-child:not(:first-child) b { color: #fff; }
.metrics--sm { gap: 6px; margin: 4px 0 0; }
.metrics--sm li, .metrics--sm li:last-child:not(:first-child) { display: block; padding: 4px 12px; border-radius: 99px; font-size: .78rem; background: rgba(0, 15, 19, .45); border: 1px solid var(--line); }
.metrics--sm b, .metrics--sm li:last-child:not(:first-child) b { font-size: 1em; color: var(--cyan); }

/* Noticias */
.pcard--post figure { aspect-ratio: 16 / 9.5; }
.pcard--feature { margin-bottom: clamp(16px, 2vw, 28px); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: .9rem; line-height: 1.4; }
.byline b { color: #fff; }
.byline--sm { font-size: .8rem; margin-top: auto; padding-top: 8px; }
.avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; font-size: .95rem; color: var(--abyss);
  background: linear-gradient(140deg, var(--cyan), #35c79a); box-shadow: 0 0 0 3px rgba(120, 255, 192, .2); }
.byline--sm .avatar { width: 36px; height: 36px; font-size: .78rem; }

/* Detalle */
.back { display: inline-block; margin-bottom: 22px; text-decoration: none; color: var(--cyan); font-size: .92rem; transition: transform .3s var(--ease); }
.back:hover { transform: translateX(-5px); }
.detail__head { margin-bottom: clamp(18px, 3vh, 34px); }
.detail__head .title { margin: .25em 0 .15em; }
.detail__client { font-family: var(--brand); font-size: clamp(1.1rem, 2.2vw, 1.8rem); color: var(--cyan); }
.detail__lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 62ch; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 60px); align-items: start; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: #012a31; cursor: zoom-in; overflow: hidden; border-radius: 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot--cover { border-radius: 40px; }
.gallery { columns: 3 240px; column-gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(22px, 4vw, 50px); }
.gallery .shot { margin-bottom: clamp(12px, 1.6vw, 22px); break-inside: avoid; }
.detail__more { margin: clamp(60px, 10vh, 110px) 0 22px; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; color: #fff; }

.prose { font-size: 1.02em; line-height: 1.75; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3, .prose h4 { color: #fff; font-weight: 800; line-height: 1.2; margin-top: 1.6em; }
.prose h2 { font-size: 1.7em; } .prose h3 { font-size: 1.35em; } .prose h4 { font-size: 1.12em; }
.prose strong { color: var(--cyan); font-weight: 500; }
.prose a { color: var(--cyan); text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--red); }
.prose ol { list-style: decimal; }
.prose blockquote { margin-inline: 0; padding: 16px 24px; border-left: 3px solid var(--cyan); border-radius: 0 20px 20px 0; background: rgba(120, 255, 192, .07); font-family: var(--brand); font-size: 1.25em; color: #fff; }
.prose img { border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.detail--post { max-width: 900px; }
.post__cover { margin: 0 0 clamp(24px, 4vh, 44px); border-radius: 40px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.post__cover img { width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 25%; }
.prose--post { padding: clamp(22px, 3.4vw, 46px); border-radius: 36px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; font-size: .9rem; }
.share span { color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; margin-right: 6px; }
.share a, .share button { font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); transition: background .3s, color .3s; }
.share a:hover, .share button:hover { background: var(--cyan); color: var(--abyss); }

/* Llamada final y envío de noticias */
.cta, .submit { padding: clamp(70px, 12vh, 140px) 0 clamp(120px, 20vh, 220px); }
.cta__box { text-align: center; padding: clamp(34px, 6vw, 80px) clamp(20px, 4vw, 60px); border-radius: 48px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.submit__box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 70px); align-items: start; padding: clamp(24px, 4vw, 60px); border-radius: 48px;
  background: linear-gradient(160deg, rgba(10, 74, 84, .7), rgba(0, 26, 32, .82)); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.steps { display: grid; gap: 12px; margin-top: 1.6em; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.steps b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: var(--abyss); }
.submit__team { margin-top: 1.8em; font-size: .88rem; opacity: .85; }
.submit__team a { color: var(--cyan); }

/* Visor de imágenes */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(0, 10, 13, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 20px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--cyan); color: var(--abyss); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; margin-top: -26px; }
.lightbox__nav--next { right: 18px; top: 50%; margin-top: -26px; }

/* Textos legales */
.legal { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; padding-bottom: clamp(120px, 20vh, 220px); }
.legal__date { font-size: .95rem; opacity: .85; }
.legal__toc { position: sticky; top: 100px; padding: 22px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .88rem; }
.legal__toc p { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.legal__toc ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 7px; }
.legal__toc li::marker { color: var(--cyan); }
.legal__toc a { text-decoration: none; color: var(--ink); transition: color .3s; }
.legal__toc a:hover { color: var(--cyan); }
.legal__body { min-width: 0; overflow-wrap: break-word; }
.legal__body a { overflow-wrap: anywhere; }
.legal__body section { scroll-margin-top: 110px; }
.legal__body section > * + * { margin-top: 1.05em; }
.legal__body section > h3 { margin-top: 1.6em; }
.legal__body section + section { margin-top: 2.4em; padding-top: 2.2em; border-top: 1px solid rgba(255, 255, 255, .1); }
.legal__body h2 { margin-top: 0; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.legal__body h3 { font-size: 1.1em; color: var(--cyan); font-weight: 500; }
.legal__body strong { color: #fff; }
.legal__body ol li::marker { color: var(--cyan); font-weight: 700; }
.legal__card { display: grid; gap: 6px; font-style: normal; padding: 20px 24px; border-radius: 22px; border: 1px solid var(--line); background: rgba(120, 255, 192, .06); }
.legal__card b { color: #fff; font-size: 1.1em; }

@media (max-width: 859px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; }
  .detail__grid, .submit__box { grid-template-columns: 1fr; }
  .pcard--feature { flex-direction: column; }
}
@media (min-width: 860px) {
  .pcard--feature { flex-direction: row; }
  .pcard--feature figure { flex: 1.25; aspect-ratio: auto; min-height: 380px; }
  .pcard--feature .pcard__body { flex: 1; align-content: center; padding: clamp(26px, 3.4vw, 54px); }
  .pcard--feature h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
  .pcard--feature p { font-size: 1.02rem; }
}
