/* Páginas internas: privacidad y blog */
.page { padding: clamp(6.5rem, 14vh, 8.5rem) 0 4rem; position: relative; z-index: 2; }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.crumbs { font-size: .75rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.meta { color: var(--muted); font-size: .78rem; }
.prose { font-size: 1.04rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 2.2rem 0 .2rem; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--muted); }
.prose p b, .prose li b { color: var(--text); }
.prose ul { display: grid; gap: .6rem; padding-left: 1.2rem; list-style: disc; }
.prose li::marker { color: var(--glow); }
.prose a { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="light"] .prose a { color: var(--p2); }
.post-cta { margin-top: 2.5rem; padding: clamp(1.4rem, 4vw, 2.2rem); text-align: center; display: grid; gap: .8rem; justify-items: center; }
.post-cta h2 { margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.post-card { padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; transition: transform .25s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--glow-sh); }
.post-card h2 { font-size: 1.3rem; margin: 0; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: .94rem; }
.post-card .more { margin-top: auto; color: var(--glow); font-weight: 600; font-size: .9rem; }
.more-posts { margin-top: 3rem; }
.more-posts h2 { font-size: 1.5rem; }
.subpage .footer { padding-bottom: 6rem; }

/* ===== Páginas por tema ===== */
.page h1 em { display: inline; }
.page .eyebrow { margin-bottom: .6rem; }
.page .lead { margin-bottom: 1.6rem; }
.page .sub { margin-top: 3.5rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page .services-grid, .page .cases, .page .plans, .page .benefits, .page .proj-grid { margin-top: 2rem; }
.page .proj-grid { display: grid; padding-bottom: 1rem; }
.page .proj-grid .pcard[hidden] { display: none; }
.page .service { min-height: 0; }
.service .from { margin-top: auto; font-size: .78rem; color: var(--muted); }
.service .from a { color: var(--glow); text-decoration: underline; }
[data-theme="light"] .service .from a { color: var(--p2); }
.page .filters { margin-top: 1.2rem; }
.page > .wrap > * { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
.narrow-block { max-width: 820px; }
.metrics-row { margin-top: 2.5rem; }
.page .founder { margin-top: 1rem; }
.page .founder-photo { transform: none; }
.page .lead-box { margin-top: 1rem; }
.page .form { margin: 1.5rem 0 0; }
.page .where { margin-inline: auto; text-align: center; }
.page .socials { margin-top: 1.4rem; }
.center-cta { justify-content: center; display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.page .timeline.static { margin-top: 2rem; }
.page .timeline.static::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--p), var(--glow)); transform: translateX(-50%); }
@media (max-width: 760px) { .page .timeline.static::before { left: 19px; } }

/* Portada: explora */
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 2.5rem; perspective: 1200px; }
.explore-card { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; min-height: 190px; }
.explore-card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(109, 40, 217, .1)); border: 1px solid var(--border); transform: translateZ(30px); }
.explore-card .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--glow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .explore-card .ico svg { stroke: var(--p); }
.explore-card h3 { font-size: 1.2rem; transform: translateZ(20px); }
.explore-card p { color: var(--muted); font-size: .9rem; }
.explore-card .more { margin-top: auto; color: var(--glow); font-weight: 600; font-size: .88rem; }
[data-theme="light"] .explore-card .more { color: var(--p2); }
.seo-line a { text-decoration: underline; }

/* Precios por servicio */
.price-list { display: grid; gap: 2rem; margin-top: 1.6rem; }
.price-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.price-head .ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(109, 40, 217, .1)); border: 1px solid var(--border); }
.price-head .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--glow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .price-head .ico svg { stroke: var(--p); }
.price-head h3 { font-size: 1.35rem; }
.price-head p { color: var(--muted); font-size: .88rem; }
.price-rows { display: grid; gap: .7rem; }
.price-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 1.3rem; }
.price-row p { color: var(--muted); font-size: .88rem; }
.price-val { text-align: right; white-space: nowrap; }
.price-val b { font-family: var(--font-h); font-size: 1.5rem; }
.price-val small { color: var(--muted); font-size: .78rem; }
@media (max-width: 640px) { .price-row { grid-template-columns: 1fr auto; } .price-row .btn { grid-column: 1 / -1; } }

/* Testimonios: anillo 3D */
.empty-proof { padding: clamp(1.6rem, 4vw, 3rem); text-align: center; display: grid; gap: 1rem; justify-items: center; margin-top: 1rem; }
.empty-proof p { color: var(--muted); max-width: 52ch; }
.empty-proof a:not(.btn) { text-decoration: underline; }
.ring-scene { display: none; position: relative; height: 420px; margin-top: 1.5rem; perspective: 1400px; cursor: grab; touch-action: pan-y; user-select: none; }
.ring-scene:active { cursor: grabbing; }
.ring-on .ring-scene { display: block; }
.ring-on .proof-fallback { display: none; }
.ring { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; transform-style: preserve-3d; will-change: transform; }
.ring-item { position: absolute; inset: 0; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r, 340px)); backface-visibility: hidden; display: grid; }
.ring-item .proof-card { height: 100%; justify-content: center; box-shadow: var(--shadow), var(--glow-sh); }
.ring-item .proof-card img { max-height: 100%; object-fit: contain; }
.ring-hint { text-align: center; color: var(--muted); font-size: .72rem; margin-top: .6rem; }
.ring-on .ring-hint { display: block; } .ring-hint { display: none; }
@media (max-width: 640px) { .ring-scene { height: 380px; } .ring { width: 250px; margin-left: -125px; } }

/* ===== Portada tipo catálogo ===== */
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; margin-top: 1.1rem; font-size: .8rem; }
.hero-chips span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.hero-chips a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); transition: .25s; }
.hero-chips a:hover { border-color: var(--p2); box-shadow: var(--glow-sh); }

.cores { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; margin-top: 3rem; perspective: 1200px; }
.core { padding: 1.8rem; display: flex; flex-direction: column; gap: .9rem; }
.core .ico, .industry .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(109, 40, 217, .1)); border: 1px solid var(--border); }
.core .ico svg, .industry .ico svg { width: 26px; height: 26px; fill: none; stroke: var(--glow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .core .ico svg, [data-theme="light"] .industry .ico svg { stroke: var(--p); }
.core h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.core > p { color: var(--muted); font-size: .94rem; }
.core .checks, .industry .checks { gap: .5rem; font-size: .9rem; }
.core .btns, .industry .btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; }
.catalog { margin-top: 2.5rem; }
.catalog h3 { font-size: 1.1rem; margin-bottom: .8rem; color: var(--muted); font-weight: 500; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.cat-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: .9rem; transition: .25s; }
.cat-chip:hover { border-color: var(--p2); box-shadow: var(--glow-sh); transform: translateY(-2px); }
.cat-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--glow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.industry { overflow: hidden; display: flex; flex-direction: column; }
.ind-shot { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg2); }
.ind-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ind-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.ind-body h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.ind-body > p { color: var(--muted); font-size: .92rem; }
.ind-body > p.ind-proj { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.page .industries { grid-template-columns: minmax(0, 1fr); margin-top: 2rem; }
.industry.full { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-width: 0; }
.industry.full .ind-shot { aspect-ratio: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-height: 240px; }
.industry.full .ind-shot img { height: 100%; min-height: 0; }
@media (max-width: 860px) { .industry.full { grid-template-columns: minmax(0, 1fr); } .industry.full .ind-shot { aspect-ratio: 16 / 9; min-height: 0; } .industry.full .ind-shot img:nth-child(n+2) { display: none; } }

.bespoke-sec { padding-block: 2rem; }
.bespoke { padding: clamp(1.6rem, 4vw, 3rem); display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow), 0 0 90px -30px var(--p); }
.bespoke h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.bespoke > div { flex: 1 1 360px; }
.bespoke .btn { white-space: normal; text-align: center; }

.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 2.5rem; counter-reset: s; }
.step-mini { padding: 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.step-mini span { color: var(--glow); font-size: .8rem; }
.step-mini h3 { font-size: 1.15rem; }
.step-mini p { color: var(--muted); font-size: .88rem; }

/* ===== Ajustes móvil ===== */
.industry.full .ind-shot img, .ind-shot img { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .hero { padding-bottom: 6.5rem; }
  .hero-free { font-size: .85rem; margin-top: .8rem; }
  .hero-chips { gap: .4rem; margin-top: .8rem; padding-right: 3.2rem; }
  .hero-chips span { display: none; }
  .hero-chips a { padding: .35rem .7rem; font-size: .76rem; }
  .core, .benefit, .plan, .proof-card { padding: 1.3rem; }
  .core h3 { font-size: 1.2rem; }
  .core .btns .btn, .industry .btns .btn { flex: 1 1 0; min-height: 44px; white-space: normal; text-align: center; }
  .ind-body { padding: 1.2rem; }
  .bespoke { padding: 1.4rem; }
  .bespoke .btn { width: 100%; }
  .page { padding-top: 6rem; }
  .page h1 { font-size: clamp(1.8rem, 8.4vw, 2.3rem); }
  .page .lead { font-size: 1rem; }
  .page .sub { margin-top: 2.5rem; }
  .post-cta { padding: 1.3rem; }
  .post-cta .btn, .center-cta .btn { width: 100%; }
  .center-cta { flex-direction: column; }
  .price-val b { font-size: 1.3rem; }
  .price-row { padding: .9rem 1rem; }
  .plan-price b { font-size: 2.2rem; }
  .explore { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .explore-card { padding: 1rem; min-height: 0; gap: .4rem; }
  .explore-card p { font-size: .8rem; }
  .explore-card h3 { font-size: 1.05rem; }
  .steps-row { grid-template-columns: 1fr; }
  .client-strip li { font-size: .85rem; padding: .45rem .9rem; }
  .cat-chip { font-size: .82rem; padding: .5rem .85rem; }
  .lead-box { padding: 1.2rem; }
  .filters { margin-right: -1rem; }
}
@media (max-width: 380px) {
  .page h1 { font-size: 1.7rem; }
  .explore { grid-template-columns: 1fr; }
  .btn { padding-inline: 1.1rem; }
  .price-row { grid-template-columns: 1fr; }
  .price-val { text-align: left; }
}

/* Teléfonos bajos (360×640): el hero debe caber sin pisar el núcleo 3D */
@media (max-width: 640px) and (max-height: 720px) {
  .hero { padding-bottom: 5.6rem; }
  .hero-copy .lead { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-copy .cta { flex-direction: row; width: 100%; gap: .5rem; }
  .hero-copy .cta .btn { flex: 1 1 0; min-height: 46px; padding-inline: .6rem; font-size: .88rem; }
  .hero-chips { display: none; }
  .hero-free { margin-top: .5rem; }
}

/* ===== Imágenes: marco de navegador con proporción fija ===== */
.shot { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: #0d0618; }
.shot-bar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #150a26; }
.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: #4c1d95; }
.shot-bar i:first-child { background: #f472b6; } .shot-bar i:nth-child(2) { background: #fbbf24; } .shot-bar i:nth-child(3) { background: #34d399; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.pcard .shot { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }
.pcard .shot img { aspect-ratio: 16 / 10; }

/* Caso dentro de cada proyecto */
.case-more { border: 1px solid var(--border); border-radius: 14px; background: rgba(168, 85, 247, .08); }
.case-more summary { cursor: pointer; padding: .7rem 1rem; font-weight: 600; font-size: .9rem; list-style: none; display: flex; justify-content: space-between; gap: .8rem; align-items: center; }
.case-more summary::-webkit-details-marker { display: none; }
.case-more summary::after { content: '+'; color: var(--glow); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); flex: none; }
.case-more[open] summary::after { transform: rotate(135deg); }
.case-more .case-steps { padding: 0 1rem 1rem; }

/* Servicios: ficha del fundador y bloques */
.founder-mini { margin-top: 2.5rem; padding: clamp(1.3rem, 3vw, 2rem); display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.founder-mini > div { flex: 1 1 340px; }
.founder-mini h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.founder-mini p { color: var(--muted); }
.page .cores { margin-top: 2rem; }
.page .industries { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.6rem; }
.page .industry .ind-body { height: 100%; }
.page .steps-row { margin-top: 1.6rem; }
.page .benefits { margin-top: 1.6rem; }
/* sin animación CSS de entrada: ahora la hace GSAP */
.page > .wrap > * { animation: none; }
