:root {
  --pz-deep: #001F3F;
  --pz-blue: #1B4B85;
  --pz-sky: #3FA9E0;
  --pz-sky-soft: #EAF4FB;
  --pz-orange: #E05414;
  --pz-orange-2: #FF8A3D;
  --pz-purple: #6C4FB3;
  --pz-ink: #122B44;
  --pz-muted: #5A6B7B;
  --pz-line: #E2EAF1;
  --pz-bg: #F5F9FD;
  --pz-white: #ffffff;
  --pz-radius: 20px;
  --pz-max: 1180px;
  --pz-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pz-font);
  color: var(--pz-ink);
  background: var(--pz-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.pz-container { max-width: var(--pz-max); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.pz-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pz-line);
}
.pz-header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.pz-logo img { height: 44px; width: auto; display: block; }
.pz-nav { display: flex; gap: 22px; margin-left: 10px; }
.pz-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--pz-muted); }
.pz-nav a:hover { color: var(--pz-blue); }
.pz-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pz-lang { display: inline-flex; background: var(--pz-sky-soft); border-radius: 999px; padding: 3px; }
.pz-lang a { text-decoration: none; font-size: 0.78rem; font-weight: 700; color: var(--pz-muted); padding: 5px 11px; border-radius: 999px; }
.pz-lang a.on { background: var(--pz-blue); color: #fff; }

.pz-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.92rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pz-btn-orange { background: linear-gradient(135deg, var(--pz-orange), var(--pz-orange-2)); color: #fff; box-shadow: 0 8px 20px rgba(242,109,33,.25); }
.pz-btn-orange:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242,109,33,.32); }
.pz-btn-lg { padding: 15px 30px; font-size: 1rem; }
.pz-btn-ghost { background: #fff; color: var(--pz-blue); border: 1.5px solid var(--pz-line); }
.pz-btn-ghost:hover { border-color: var(--pz-sky); }

/* ---- Hero ---- */
.pz-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #FFFFFF;
  color: var(--pz-ink);
}
.pz-hero-art { position: relative; z-index: 0; }
.pz-hero-art img { display: block; width: 100%; height: auto; }
.pz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(240,247,252,0.62) 0%, rgba(240,247,252,0.18) 30%, rgba(240,247,252,0) 46%);
}
.pz-hero-copy-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
.pz-hero-copy {
  margin-left: 3vw;
  max-width: min(430px, 30vw);
}
.pz-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(23,50,77,0.14);
  color: var(--pz-blue);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .2px;
}
.pz-hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--pz-deep);
}
.pz-lead { margin: 0 0 24px; font-size: clamp(0.95rem, 1.1vw, 1.05rem); font-weight: 400; line-height: 1.65; color: #46596C; max-width: 100%; }

.pz-mascots { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; min-height: 250px; min-width: 0; }
.pz-mascots img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.28)); }
.pz-mascots img.m1 { height: 220px; z-index: 2; }
.pz-mascots img.m2 { height: 190px; margin-left: -50px; margin-bottom: 4px; z-index: 1; }
.pz-mascots img.m3 { height: 175px; margin-left: -50px; z-index: 3; }

.pz-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; pointer-events: none; }
.pz-wave svg { display: block; width: 100%; height: 90px; }

/* ---- Sections ---- */
.pz-section { padding: 70px 0; }
.pz-section.alt { background: var(--pz-bg); }
.pz-eyebrow { color: var(--pz-orange); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin: 0 0 10px; }
.pz-h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--pz-ink); letter-spacing: -0.3px; }
.pz-sub { margin: 0 0 34px; color: var(--pz-muted); max-width: 640px; }

.pz-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.pz-card {
  background: #fff;
  border: 1px solid var(--pz-line);
  border-radius: var(--pz-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.pz-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18,43,68,.12); }
.pz-card .pz-card-img { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.pz-card .pz-card-img img { height: 150px; width: auto; filter: drop-shadow(0 10px 18px rgba(18,43,68,.14)); }
.pz-card h3 { margin: 6px 0 8px; font-size: 1.18rem; color: var(--pz-ink); }
.pz-card p { margin: 0; color: var(--pz-muted); font-size: .96rem; }
.pz-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; }
.pz-card.tutoria::after { background: var(--pz-sky); }
.pz-card.laboratorio::after { background: var(--pz-purple); }
.pz-card.asesoria::after { background: var(--pz-orange); }

/* Beneficios */
.pz-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.pz-benefits li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--pz-line); border-radius: 14px; padding: 16px 18px; font-weight: 500; }
.pz-check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--pz-orange), var(--pz-orange-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }

.pz-benefits-wrap { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 30px; align-items: center; }
.pz-books { display: flex; justify-content: center; }
.pz-books img { max-height: 250px; width: auto; filter: drop-shadow(0 14px 24px rgba(18,43,68,.12)); }

/* Demo */
.pz-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.pz-demo {
  border-radius: var(--pz-radius);
  padding: 24px;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pz-demo.a { background: linear-gradient(150deg, #1E5A96, #3FA9E0); }
.pz-demo.b { background: linear-gradient(150deg, #4A3390, #6C4FB3); }
.pz-demo.c { background: linear-gradient(150deg, #E2560F, #FF8A3D); }
.pz-demo h3 { margin: 0 0 6px; font-size: 1.12rem; }
.pz-demo p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.88); }
.pz-soon { align-self: flex-start; margin-top: 16px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 6px 14px; font-size: .78rem; font-weight: 700; }

/* Blocks (resto de la presentación) */
.pz-blocks { display: grid; gap: 34px; }
.pz-block { border-bottom: 1px solid var(--pz-line); padding-bottom: 30px; }
.pz-block:last-child { border-bottom: 0; padding-bottom: 0; }
.pz-block h2 { margin: 0 0 12px; font-size: 1.5rem; color: var(--pz-ink); }
.pz-block p { margin: 0 0 12px; color: var(--pz-ink); }
.pz-list { margin: 8px 0 0; padding-left: 20px; }
.pz-list li { margin: 0 0 8px; }
.pz-list li::marker { color: var(--pz-orange); }

/* Footer */
.pz-footer { background: var(--pz-deep); color: rgba(255,255,255,.72); padding: 34px 0; }
.pz-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .82rem; }
.pz-footer a { color: #fff; text-decoration: none; font-weight: 600; }

/* Labs grid */
.pz-labs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.pz-lab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--pz-line);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--pz-ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.pz-lab:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,43,68,.10); border-color: var(--pz-sky); }
.pz-lab-subject { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pz-orange); }
.pz-lab-name { font-size: 1.02rem; font-weight: 700; }
.pz-lab-open { margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--pz-blue); }

/* Chat buttons (pendientes) */
.pz-chat-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 18px;
}
.pz-chat-btn > span {
  background: #fff;
  border: 1.5px solid var(--pz-line);
  color: var(--pz-blue);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
  text-align: center;
}
.pz-chat-btn em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  color: var(--pz-orange);
  text-align: center;
}

/* Labs: tabs + tarjetas */
.pz-labs-about { margin: -14px 0 24px; color: var(--pz-muted); max-width: 760px; font-size: .95rem; }
.pz-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pz-tab {
  background: #fff;
  border: 1.5px solid var(--pz-line);
  color: var(--pz-muted);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--pz-font);
  transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}
.pz-tab:hover { border-color: var(--pz-sky); color: var(--pz-blue); }
.pz-tab.active { background: var(--pz-blue); border-color: var(--pz-blue); color: #fff; box-shadow: 0 8px 18px rgba(27,75,133,.22); }
.pz-labs-panel { display: none; }
.pz-labs-panel.active { display: block; }
.pz-group-img { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 0 22px; border-radius: 16px; border: 1px solid var(--pz-line); background: #fff; }
.pz-lab-desc { font-size: .88rem; color: var(--pz-muted); margin-top: 2px; }

/* ===== Fichero de laboratorios: pestañas + fichas compactas ===== */
.pz-labs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.pz-lab {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--pz-line);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--pz-ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.pz-lab:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,43,68,.10); border-color: var(--pz-sky); }
.pz-group-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; border: 1px solid var(--pz-line); margin: 0 0 20px; }
.pz-lab-body { display: flex; flex-direction: column; gap: 2px; }
.pz-lab-name { font-size: .98rem; font-weight: 700; }
.pz-lab-desc { font-size: .84rem; color: var(--pz-muted); margin-top: 2px; }
.pz-lab-open { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--pz-orange); }
.pz-tabs { display: flex; gap: 10px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pz-tab { flex: 0 0 auto; }
.pz-tab.active { background: var(--pz-deep); border-color: var(--pz-deep); color: #fff; }
@media (max-width: 1100px) { .pz-labs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .pz-labs { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .pz-hero { overflow: visible; }
  .pz-hero-copy-wrap { position: static; display: block; padding: 30px 24px 40px; background: #F5F9FD; }
  .pz-hero-copy { margin-left: 0; max-width: none; }
  .pz-hero::before { display: none; }
  .pz-grid-3, .pz-demo-grid, .pz-labs { grid-template-columns: 1fr; }
  .pz-benefits { grid-template-columns: 1fr; }
  .pz-benefits-wrap { grid-template-columns: 1fr; }
  .pz-books { display: none; }
  .pz-nav { display: none; }
}
@media (max-width: 560px) {
  .pz-header-inner { height: 64px; gap: 12px; }
  .pz-logo img { height: 36px; }
  .pz-actions .pz-btn { display: none; }
}

/* FICHAS-RESPONSIVE */
@media (max-width: 1100px) { .pz-labs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .pz-labs { grid-template-columns: 1fr; } }
