﻿@font-face {
  font-family: "AncientAd";
  src: url("assets/game-ui/fonts/AncientAd.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "AncientHellenic";
  src: url("assets/game-ui/fonts/AncientHellenic.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #21150f;
  --ink-soft: #564337;
  --paper: #f7f1e8;
  --paper-2: #eee6da;
  --line: rgba(70, 50, 30, 0.2);
  --shadow-soft: 0 14px 28px rgba(15, 23, 42, 0.12);
  /* Global controls for all background-image panels (menu-panel + stone-panel). */
  --asset-panelstone-compress-x: 1.2;
  --asset-panelstone-compress-y: 1.5;
  --asset-panelstone-inset-top: 20%;
  --asset-panelstone-inset-right: 10%;
  --asset-panelstone-inset-bottom: 12%;
  --asset-panelstone-inset-left: 10%;
  --asset-panel-compress-x: 1;
  --asset-panel-compress-y: 1;
  --asset-panel-inset-top: 20%;
  --asset-panel-inset-right: 20%;
  --asset-panel-inset-bottom: 12%;
  --asset-panel-inset-left: 20%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(26, 17, 12, 0.86);
  border-bottom: 1px solid rgba(248, 230, 186, 0.35);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.logo {
  font-family: "AncientHellenic", Georgia, serif;
  font-size: 1.58rem;
  letter-spacing: 0.03em;
  color: #ffdfa3;
}

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  color: #ffe9c4;
  font-weight: 700;
  font-size: 0.95rem;
}

nav a:hover {
  color: #fff;
}

.home-page {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #f8ecd8, #f1dbbd);
}

.home-page::before,
.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Back to front order requested: cielo -> lejano -> medio -> frontal */
.home-page::before {
  background: url("assets/game-ui/fondos/bg-cielo.png") center top / cover no-repeat;
  z-index: -5;
}

.home-page::after {
  background:
    url("assets/game-ui/fondos/bg-frontal.png") center bottom / cover no-repeat,
    url("assets/game-ui/fondos/bg-medio.png") center bottom / cover no-repeat,
    url("assets/game-ui/fondos/bg-lejano.png") center bottom / cover no-repeat;
  z-index: -4;
}

.home-page > * {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 84px 0 62px;
  display: flex;
  justify-content: center;
}

.hero-grid {
  
  align-items: center;
}

.panel {
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.menu-panel {
  aspect-ratio: 1536 / 1024;
  min-height: 660px;
  max-height: 760px;
  background: url("assets/game-ui/ui/panel-menu.png") center / 100% 100% no-repeat;
}

.hero-copy {
  width: min(1410px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
}

.hero-copy > .panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy p {
  max-width: 980px;
}

.hero-copy .hero-actions {
  justify-content: center;
}

.stone-panel {
  aspect-ratio: 1229 / 742;
  min-height: 520px;
  background: url("assets/game-ui/ui/panel-piedra.png") center / 100% 100% no-repeat;
}

.showcase-portrait-panel {
  aspect-ratio: 918 / 1461;
  min-height: 0;
  background: url("assets/game-ui/ui/panel_base_piedra_portrait.png") center / 100% 100% no-repeat;
}

.showcase-portrait-panel > .panel-inner {
  position: absolute;
  inset: 10% 12% 11% 12%;
  width: auto;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.panel-inner {
  width: min(100%, 800px);
  margin: 0 auto;
  padding-block: clamp(30px, 4vw, 54px);
  min-width: 0;
}

.panel-inner > * {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Auto-fit content area in all panels with game image backgrounds. */
.menu-panel > .panel-inner{
  position: absolute;
  inset:
    calc(var(--asset-panel-inset-top) * var(--asset-panel-compress-y))
    calc(var(--asset-panel-inset-right) * var(--asset-panel-compress-x))
    calc(var(--asset-panel-inset-bottom) * var(--asset-panel-compress-y))
    calc(var(--asset-panel-inset-left) * var(--asset-panel-compress-x));
  width: auto;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.stone-panel > .panel-inner {
  position: absolute;
  inset:
    calc(var(--asset-panelstone-inset-top) * var(--asset-panelstone-compress-y))
    calc(var(--asset-panelstone-inset-right) * var(--asset-panelstone-compress-x))
    calc(var(--asset-panelstone-inset-bottom) * var(--asset-panelstone-compress-y))
    calc(var(--asset-panelstone-inset-left) * var(--asset-panelstone-compress-x));
  width: auto;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(95, 71, 40, 0.12);
  border: 1px solid rgba(95, 71, 40, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

.eyebrow::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("assets/game-ui/ui/icono-moneda.png") center / contain no-repeat;
}

h1,
h2 {
  margin-top: 0;
  font-family: "AncientHellenic", Georgia, serif;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 2.9vw, 2.45rem);
}

h3 {
  margin: 0 0 8px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy p,
.story-panel p,
.card p,
.media-card figcaption,
.small-note,
.section-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.button {
  min-height: 48px;
  min-width: 194px;
  padding: 0 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "AncientHellenic", Georgia, serif;
  letter-spacing: 0.03em;
  border: 0;
  color: #2a1a11;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: url("assets/game-ui/ui/boton-oro.png") center / 100% 100% no-repeat;
}

.button.primary:hover {
  background-image: url("assets/game-ui/ui/boton-oro-hover.png");
}

.button.secondary {
  color: #0d2623;
  background: url("assets/game-ui/ui/boton-turquesa.png") center / 100% 100% no-repeat;
}

.button.secondary:hover {
  background-image: url("assets/game-ui/ui/boton-turquesa-hover.png");
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.78), rgba(244, 232, 210, 0.82));
}

.cards,
.media-grid {
  display: grid;
  gap: 40px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.gameplay-grid {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  gap: clamp(28px, 3vw, 48px);
}

#gameplay .container {
  width: min(1640px, calc(100% - 32px));
}

#capturas .container {
  width: min(1640px, calc(100% - 32px));
}

#gameplay h2,
#aprendizaje h2,
#capturas h2,
#capturas .section-intro {
  text-align: center;
}

.gameplay-grid .stone-panel {
  width: min(496px, calc(100vw - 32px));
  min-height: 0;
}

.menu-grid,
.showcase-grid {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
  gap: clamp(28px, 3vw, 48px);
}

.menu-grid {
  grid-template-columns: repeat(3, max-content);
}

.menu-grid .menu-panel {
  width: min(380px, calc(100vw - 32px));
  min-height: 0;
}

.showcase-grid {
  grid-template-columns: repeat(3, max-content);
}

.showcase-grid .showcase-portrait-panel {
  width: min(312px, calc(100vw - 32px));
  min-height: 0;
}

.showcase-grid .media-card .panel-inner,
.showcase-grid .media-card figcaption {
  text-align: center;
}

.showcase-grid .media-card img {
  border-radius: 18px;
  overflow: hidden;
}

.card.menu-panel,
.card.stone-panel {
  min-height: 300px;
}

.card .panel-inner {
  width: auto;
  padding-block: 10;
}

.media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card.stone-panel {
  min-height: 330px;
}

.media-card .panel-inner {
  width: auto;
  padding-block: 0;
}

.site-footer {
  color: #f5e8cf;
  background: linear-gradient(90deg, #20150f, #2f5e59);
  padding: 32px 0;
  margin-top: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.site-footer ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Privacy page: neutral, legible, no game assets */
.privacy-page {
  background: linear-gradient(180deg, #f5f7fb, #edf1f7);
  color: #1f2937;
}

.privacy-page .site-header {
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.privacy-page .logo {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #f8fafc;
}

.privacy-page nav a {
  color: #dbeafe;
}

.privacy-page main,
.privacy-page footer {
  position: relative;
  z-index: 1;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: start;
}

.privacy-sidebar-neutral {
  position: sticky;
  top: 92px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.privacy-sidebar-neutral strong {
  display: block;
  margin-bottom: 10px;
}

.privacy-sidebar-neutral a {
  display: block;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
}

.privacy-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.privacy-card,
.privacy-card * {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.62;
}

.privacy-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #4f46e5;
}

.privacy-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  line-height: 1.22;
  color: #0f172a;
}

.privacy-card h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  line-height: 1.3;
  color: #0f172a;
}

.updated {
  color: #64748b;
}

.privacy-card section + section {
  margin-top: 22px;
}

.notice-box.neutral {
  margin-top: 22px;
  border: 1px solid #c9d4e6;
  background: #f8fbff;
  border-radius: 10px;
  padding: 14px;
}

@media (max-width: 1100px) {
  .cards.three,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gameplay-grid {
    grid-template-columns: repeat(2, max-content);
  }

  .menu-grid {
    grid-template-columns: repeat(2, max-content);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .footer-grid,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-shot,
  .story-panel,
  .card,
  .media-card {
    margin-inline: auto;
    width: min(100%, 760px);
  }

  .menu-panel {
    min-height: 500px;
  }

  .stone-panel {
    min-height: 390px;
  }

  .privacy-sidebar-neutral {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 56px;
  }

  .section {
    padding: 56px 0;
  }

  .menu-panel {
    min-height: 430px;
  }

  .stone-panel {
    min-height: 330px;
  }

  :root {
    --asset-panel-inset-top: 8%;
    --asset-panel-inset-right: 9%;
    --asset-panel-inset-bottom: 11%;
    --asset-panel-inset-left: 9%;
  }

  h1 {
    font-size: clamp(1.72rem, 8vw, 2.4rem);
  }

  .cards.three,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .gameplay-grid {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .menu-grid,
  .showcase-grid {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gameplay-grid .stone-panel {
    width: min(496px, 100%);
  }

  .menu-grid .menu-panel {
    width: min(380px, 100%);
  }

  .showcase-grid .showcase-portrait-panel {
    width: min(312px, 100%);
  }

  .button {
    min-width: 170px;
    font-size: 0.96rem;
  }

  .privacy-card {
    padding: 20px;
  }
}

/* App-aligned redesign: Proyeccion Credito Hipotecario */
:root {
  --credit-purple: #6938d4;
  --credit-purple-dark: #090a3a;
  --credit-purple-deep: #2e176d;
  --credit-mint: #53ddb9;
  --credit-orange: #ffa63d;
  --credit-bg: #fcfaff;
  --credit-lavender: #f3ecff;
  --credit-line: #e8e0f5;
  --credit-muted: #696782;
  --credit-shadow: 0 22px 60px rgba(46, 23, 109, 0.16);
}

.portfolio-page,
.product-page {
  min-height: 100vh;
  color: var(--credit-purple-dark);
  background:
    linear-gradient(180deg, #fcfaff 0%, #fff 48%, #fbf8ff 100%);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.portfolio-page *,
.product-page * {
  letter-spacing: 0;
}

.portfolio-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(232, 224, 245, 0.86);
  background: rgba(252, 250, 255, 0.88);
  backdrop-filter: blur(18px);
}

.portfolio-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portfolio-mark {
  color: var(--credit-purple-dark);
  font-size: 1.18rem;
  font-weight: 950;
}

.portfolio-nav nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portfolio-nav nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #4c4964;
  font-size: 0.94rem;
  font-weight: 850;
}

.portfolio-nav nav a:hover {
  color: var(--credit-purple);
  background: var(--credit-lavender);
}

.portfolio-hero,
.product-hero {
  padding: clamp(42px, 6vw, 74px) 0 clamp(52px, 7vw, 82px);
}

.portfolio-hero-grid,
.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}

.portfolio-copy,
.product-copy {
  position: relative;
  z-index: 1;
}

.portfolio-eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(105, 56, 212, 0.18);
  border-radius: 999px;
  color: var(--credit-purple);
  background: #f0e7ff;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portfolio-hero h1,
.product-hero h1,
.portfolio-section-title h2,
.privacy-strip h2,
.product-details h2 {
  margin: 14px 0;
  color: var(--credit-purple-dark);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 950;
  line-height: 0.98;
}

.portfolio-hero h1,
.product-hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5.2vw, 5.05rem);
}

.portfolio-hero p,
.product-hero p,
.privacy-strip p,
.product-details p,
.portfolio-app-card p {
  color: var(--credit-muted);
  font-size: 1.09rem;
  line-height: 1.72;
}

.portfolio-copy > p:not(.portfolio-eyebrow),
.product-copy > p:not(.portfolio-eyebrow) {
  max-width: 650px;
}

.portfolio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.portfolio-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 900;
}

.portfolio-button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--credit-purple-deep), var(--credit-purple));
  box-shadow: 0 16px 34px rgba(105, 56, 212, 0.24);
}

.portfolio-button.secondary {
  color: var(--credit-purple-dark);
  background: #fff;
  border-color: var(--credit-line);
}

.featured-app,
.product-visual {
  display: block;
  position: relative;
  margin: 0;
}

.app-phone-link {
  width: min(340px, 100%);
  justify-self: center;
  color: inherit;
  text-decoration: none;
}

.featured-app-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  color: #fff;
  background: rgba(46, 23, 109, 0.72);
  backdrop-filter: blur(16px);
}

.featured-app-caption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.featured-app-caption strong {
  font-size: 1.14rem;
}

.phone-frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.3;
  border: 10px solid #17132c;
  border-radius: 42px;
  background: #fff;
  box-shadow:
    0 28px 70px rgba(9, 10, 58, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 24px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #17132c;
}

.phone-frame img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-7%);
}

.phone-frame.small {
  border-width: 9px;
  border-radius: 38px;
}

.portfolio-section,
.product-section,
.screenshot-section {
  padding: clamp(58px, 8vw, 96px) 0;
}

.portfolio-section-title {
  max-width: 720px;
  margin-bottom: 28px;
}

.portfolio-section-title h2,
.privacy-strip h2 {
  font-size: clamp(2rem, 4vw, 3.9rem);
}

.portfolio-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-app-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--credit-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--credit-shadow);
}

.portfolio-app-card span,
.product-details span {
  color: var(--credit-purple);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portfolio-app-card h3 {
  max-width: 560px;
  margin: 12px 0;
  color: var(--credit-purple-dark);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.04;
  font-weight: 950;
}

.app-credit {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 236, 255, 0.92)),
    url("assets/proyeccion-credito/onboarding-hero.png") right bottom / min(48%, 310px) auto no-repeat;
}

.app-math {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 229, 0.92)),
    url("assets/game-ui/fondos/bg-lejano.png") center bottom / cover no-repeat;
}

.app-energy {
  grid-column: 1 / -1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 252, 236, 0.9)),
    url("assets/calculadora-recibo/screenshots/app-01-dashboard.png") right bottom / min(38%, 240px) auto no-repeat;
}

.app-energy .portfolio-card-links a {
  background: #1d7f38;
}

.app-energy .portfolio-card-links a + a {
  color: #126b33;
  background: #f0fbef;
  border-color: rgba(29, 127, 56, 0.18);
}

.portfolio-card-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-card-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 16px;
  color: #fff;
  background: var(--credit-purple);
  font-weight: 900;
}

.portfolio-card-links a + a {
  color: var(--credit-purple-dark);
  background: #fff;
  border: 1px solid var(--credit-line);
}

.privacy-strip {
  padding: clamp(56px, 8vw, 94px) 0;
  background:
    linear-gradient(135deg, #160c37, #32127f 58%, #125d58);
  color: #fff;
}

.privacy-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.privacy-strip .portfolio-eyebrow {
  color: #d9ccff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.privacy-strip h2,
.privacy-strip p {
  color: #fff;
}

.privacy-strip p {
  max-width: 660px;
  opacity: 0.78;
}

.privacy-strip .portfolio-button.primary {
  color: var(--credit-purple-dark);
  background: var(--credit-mint);
  box-shadow: none;
}

.product-page {
  background:
    linear-gradient(180deg, #fbf8ff 0%, #fff 48%, #fcfaff 100%);
}

.energy-page {
  background:
    linear-gradient(180deg, #f7fff6 0%, #fff 48%, #f3fff8 100%);
}

.product-hero {
  overflow: hidden;
  background:
    linear-gradient(135deg, #fbf8ff 0%, #fff 54%, #effffb 100%);
}

.energy-hero,
.energy-privacy-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(88, 201, 84, 0.2), transparent 32%),
    radial-gradient(circle at 16% 18%, rgba(22, 125, 68, 0.14), transparent 30%),
    linear-gradient(135deg, #f7fff6 0%, #fff 58%, #eafaf0 100%);
}

.energy-page .portfolio-eyebrow,
.energy-privacy-page .portfolio-eyebrow {
  color: #1d7f38;
  border-color: rgba(29, 127, 56, 0.18);
  background: #eaf8e7;
}

.energy-page .portfolio-button.primary,
.energy-privacy-page .portfolio-button.primary,
.energy-page .portfolio-card-links a {
  background: linear-gradient(135deg, #126b33, #57c93f);
  box-shadow: 0 16px 34px rgba(29, 127, 56, 0.2);
}

.phone-showcase {
  width: min(330px, 100%);
  justify-self: center;
}

.product-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-details article {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--credit-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(46, 23, 109, 0.1);
}

.product-details h2 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
}

.screenshot-section {
  background: #fff;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.screenshot-grid figure {
  margin: 0;
}

.phone-frame.gallery {
  border-width: 8px;
  border-radius: 34px;
  box-shadow: 0 16px 42px rgba(9, 10, 58, 0.16);
}

.phone-frame.gallery::before {
  width: 68px;
  height: 18px;
}

.screenshot-grid figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--credit-purple-dark);
  font-weight: 950;
}

.portfolio-footer {
  padding: 34px 0;
  color: #f6f2ff;
  background: #090a3a;
}

.portfolio-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.portfolio-footer p {
  margin: 8px 0 0;
  color: rgba(246, 242, 255, 0.72);
}

.portfolio-footer a {
  color: #fff;
}

@media (max-width: 980px) {
  .portfolio-hero-grid,
  .product-hero-grid,
  .portfolio-apps,
  .privacy-strip-inner,
  .product-details,
  .screenshot-grid,
  .portfolio-footer-grid {
    grid-template-columns: 1fr;
  }

  .phone-showcase,
  .app-phone-link {
    width: min(360px, 100%);
  }
}

@media (max-width: 720px) {
  .portfolio-nav {
    flex-direction: column;
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
  }

  .portfolio-nav nav {
    justify-content: flex-start;
  }

  .portfolio-hero,
  .product-hero {
    padding-top: 42px;
  }

  .portfolio-hero h1,
  .product-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .portfolio-button {
    width: 100%;
  }

  .portfolio-app-card {
    min-height: 390px;
  }

  .app-energy {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 252, 236, 0.9)),
      url("assets/calculadora-recibo/screenshots/app-01-dashboard.png") right bottom / 170px auto no-repeat;
  }

  .app-credit {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 236, 255, 0.92)),
      url("assets/proyeccion-credito/onboarding-hero.png") right bottom / 220px auto no-repeat;
  }

  .phone-frame {
    border-width: 7px;
    border-radius: 32px;
  }
}

/* App-aligned privacy notice */
.credit-privacy-page {
  color: var(--credit-purple-dark);
  background:
    linear-gradient(180deg, #fbf8ff 0%, #fff 44%, #fcfaff 100%);
}

.credit-privacy-page main,
.credit-privacy-page footer {
  position: relative;
  z-index: 1;
}

.privacy-hero {
  padding: clamp(42px, 6vw, 78px) 0 clamp(32px, 5vw, 58px);
  background:
    radial-gradient(circle at 84% 16%, rgba(83, 221, 185, 0.24), transparent 34%),
    radial-gradient(circle at 16% 20%, rgba(105, 56, 212, 0.18), transparent 32%),
    linear-gradient(135deg, #fbf8ff 0%, #fff 62%, #effffb 100%);
}

.privacy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.privacy-hero h1 {
  max-width: 850px;
  margin: 14px 0;
  color: var(--credit-purple-dark);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  font-weight: 950;
  line-height: 1;
}

.privacy-hero p {
  max-width: 720px;
  color: var(--credit-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.privacy-date {
  width: fit-content;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid rgba(105, 56, 212, 0.18);
  border-radius: 999px;
  background: #f3ecff;
  color: var(--credit-purple-dark);
  font-weight: 850;
}

.privacy-summary-panel {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--credit-line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 236, 255, 0.88));
  box-shadow: var(--credit-shadow);
}

.privacy-summary-panel span {
  display: inline-flex;
  color: var(--credit-purple);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.privacy-summary-panel strong {
  display: block;
  margin: 12px 0;
  color: var(--credit-purple-dark);
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.08;
}

.privacy-summary-panel p {
  margin: 0;
}

.privacy-content-section {
  padding: clamp(42px, 6vw, 72px) 0 clamp(58px, 8vw, 96px);
}

.credit-privacy-page .privacy-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
}

.credit-privacy-page .privacy-sidebar-neutral {
  top: 104px;
  border-color: var(--credit-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(46, 23, 109, 0.1);
}

.credit-privacy-page .privacy-sidebar-neutral strong {
  color: var(--credit-purple-dark);
  font-size: 1.02rem;
}

.credit-privacy-page .privacy-sidebar-neutral a {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  color: #57526f;
  font-weight: 850;
}

.credit-privacy-page .privacy-sidebar-neutral a:hover {
  padding-left: 10px;
  color: var(--credit-purple);
  background: var(--credit-lavender);
  text-decoration: none;
}

.credit-privacy-page .privacy-card {
  border: 1px solid var(--credit-line);
  border-top: 0;
  border-radius: 30px;
  padding: clamp(24px, 4vw, 40px);
  color: var(--credit-purple-dark);
  background: #fff;
  box-shadow: var(--credit-shadow);
}

.credit-privacy-page .privacy-card::before {
  content: "";
  display: block;
  height: 8px;
  margin: calc(clamp(24px, 4vw, 40px) * -1) calc(clamp(24px, 4vw, 40px) * -1) 28px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(90deg, var(--credit-purple-deep), var(--credit-purple), var(--credit-mint));
}

.credit-privacy-page .privacy-kicker {
  color: var(--credit-purple);
  font-weight: 950;
}

.credit-privacy-page .privacy-card h1,
.credit-privacy-page .privacy-card h2,
.credit-privacy-page .privacy-document-title {
  color: var(--credit-purple-dark);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

.credit-privacy-page .privacy-document-title {
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  font-weight: 950;
}

.credit-privacy-page .privacy-card h2:not(.privacy-document-title) {
  margin-bottom: 10px;
  font-size: 1.32rem;
  font-weight: 950;
}

.credit-privacy-page .privacy-card p,
.credit-privacy-page .privacy-card li {
  color: #58536e;
}

.credit-privacy-page .privacy-card strong {
  color: var(--credit-purple-dark);
}

.credit-privacy-page .privacy-card a {
  color: var(--credit-purple);
  font-weight: 850;
}

.credit-privacy-page .privacy-card code {
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--credit-purple-deep);
  background: var(--credit-lavender);
}

.credit-privacy-page .notice-box.neutral {
  border-color: rgba(105, 56, 212, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(243, 236, 255, 0.86), rgba(239, 255, 251, 0.82));
}

.credit-privacy-page .privacy-card section + section {
  margin-top: 28px;
}

.energy-privacy-page .privacy-card::before {
  background: linear-gradient(90deg, #126b33, #57c93f, #8fe866);
}

.energy-privacy-page .privacy-card a,
.energy-privacy-page .privacy-kicker,
.energy-privacy-page .privacy-sidebar-neutral a:hover {
  color: #1d7f38;
}

.energy-privacy-page .privacy-date,
.energy-privacy-page .privacy-card code {
  background: #eaf8e7;
}

@media (max-width: 980px) {
  .privacy-hero-grid,
  .credit-privacy-page .privacy-layout {
    grid-template-columns: 1fr;
  }

  .credit-privacy-page .privacy-sidebar-neutral {
    position: static;
  }
}

@media (max-width: 720px) {
  .privacy-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.5rem);
  }

  .credit-privacy-page .privacy-card {
    border-radius: 24px;
  }
}

/* Developer portal and finance app pages */
.developer-page,
.credit-page {
  min-height: 100vh;
  color: #17211f;
  background:
    linear-gradient(180deg, rgba(248, 251, 249, 0.96), rgba(237, 244, 242, 0.98)),
    #f6faf8;
}

.developer-header {
  background: rgba(14, 30, 28, 0.92);
  border-bottom: 1px solid rgba(177, 212, 203, 0.28);
}

.developer-logo {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #f6fbf9;
  letter-spacing: 0;
  font-weight: 850;
}

.developer-hero,
.credit-hero {
  padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
}

.developer-hero-grid,
.credit-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.developer-kicker,
.app-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(24, 91, 79, 0.18);
  border-radius: 8px;
  background: #e8f5f1;
  color: #185b4f;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.developer-hero h1,
.credit-hero h1,
.section-heading h2,
.info-band h2,
.feature-grid h2 {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  color: #0f1f1c;
}

.developer-hero h1,
.credit-hero h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1;
}

.developer-hero p,
.credit-hero p,
.info-band p,
.feature-grid p {
  max-width: 720px;
  color: #4c5f5b;
  font-size: 1.08rem;
}

.developer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.developer-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  border: 1px solid transparent;
}

.developer-button.primary {
  color: #fff;
  background: #17695d;
}

.developer-button.secondary {
  color: #17463f;
  background: #fff;
  border-color: #bed6cf;
}

.developer-status,
.credit-panel,
.credit-visual {
  border: 1px solid #d5e3df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(19, 42, 37, 0.12);
}

.developer-status {
  padding: clamp(22px, 4vw, 36px);
}

.developer-status span {
  color: #64736f;
  font-size: 0.9rem;
  font-weight: 800;
}

.developer-status strong {
  display: block;
  margin-top: 10px;
  color: #12231f;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.1;
}

.developer-status code,
.privacy-url {
  color: #114f47;
  background: #edf8f4;
  border-radius: 6px;
  padding: 2px 6px;
}

.developer-section {
  padding: 68px 0;
}

.developer-section.muted {
  background: #eaf3f0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.info-band h2 {
  margin: 10px 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

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

.app-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #d4e1dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 48, 43, 0.09);
}

.app-card h3 {
  margin-top: 16px;
  color: #10211e;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.app-card p {
  color: #53645f;
}

.finance-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 246, 0.96)),
    url("assets/proyeccion-credito/credit-hero.png") right bottom / min(48%, 320px) auto no-repeat;
}

.learning-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 230, 0.92)),
    url("assets/game-ui/fondos/bg-lejano.png") center bottom / cover no-repeat;
}

.app-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: #102d29;
  color: #fff;
  font-weight: 800;
}

.app-links a + a {
  color: #163f39;
  background: #eef7f4;
  border: 1px solid #c5dbd5;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.privacy-url {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.developer-footer {
  background: linear-gradient(90deg, #11211e, #17695d);
}

.credit-page {
  background: #f7faf9;
}

.credit-hero {
  background:
    linear-gradient(90deg, rgba(246, 251, 249, 0.98) 0%, rgba(238, 247, 244, 0.92) 100%);
}

.credit-visual {
  margin: 0;
  overflow: hidden;
}

.credit-visual img {
  aspect-ratio: 3 / 2;
  height: 100%;
  object-fit: cover;
}

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

.feature-grid article {
  padding: 26px;
  border: 1px solid #d8e5e1;
  border-radius: 8px;
  background: #fff;
}

.feature-grid a,
.privacy-card a {
  color: #0f766e;
  font-weight: 750;
}

.credit-privacy-page {
  background: #f4f8f7;
}

.credit-privacy-page .privacy-card {
  border-top: 4px solid #17695d;
}

@media (max-width: 980px) {
  .developer-hero-grid,
  .credit-hero-grid,
  .app-grid,
  .info-band,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .finance-card {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 246, 0.96)),
      url("assets/proyeccion-credito/credit-hero.png") right bottom / 260px auto no-repeat;
  }
}

@media (max-width: 720px) {
  .developer-hero,
  .credit-hero {
    padding-top: 48px;
  }

  .developer-hero h1,
  .credit-hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .app-card {
    min-height: 360px;
  }

  .finance-card {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 246, 0.96)),
      url("assets/proyeccion-credito/credit-hero.png") right bottom / 210px auto no-repeat;
  }
}
