/*
Theme Name: Profitable Engineer Theme
Theme URI: https://profitable-engineer.com
Author: Erikson Murrugarra Sifuentes
Author URI: https://profitable-engineer.com
Description: Landing page del libro El Ingeniero Junior Rentable.
Version: 2.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profitable-engineer-theme
*/

:root {
  --pe-bg: #0b0f14;
  --pe-black: #f3f5f7;
  --pe-dark: #121820;
  --pe-gold: #d4af37;
  --pe-gold-soft: #edd28a;
  --pe-light: #151c26;
  --pe-text: #e8ecf1;
  --pe-muted: #a8b2c1;
  --pe-border: #2a3342;
  --pe-radius: 14px;
  --pe-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Roboto", sans-serif;
  color: var(--pe-text);
  background: linear-gradient(180deg, #0a0f14 0%, #0b1017 100%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

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

.pe-container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.pe-section {
  padding: 88px 0;
}

.pe-kicker {
  display: inline-block;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--pe-muted);
  margin-bottom: 12px;
  font-weight: 700;
  font-family: "Trebuchet MS", "Inter", "Segoe UI", "Roboto", sans-serif;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.15;
  color: var(--pe-black);
  font-family: "Bebas Neue", "Inter", "Segoe UI", "Roboto", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.9rem, 4.1vw, 3.4rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

p {
  margin: 0 0 20px;
}

.pe-muted {
  color: var(--pe-muted);
}

.pe-highlight {
  color: var(--pe-gold);
}

.pe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pe-btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

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

.pe-btn--primary {
  background: linear-gradient(135deg, var(--pe-gold) 0%, #b9932f 100%);
  color: var(--pe-black);
  box-shadow: 0 10px 24px rgba(180, 145, 45, 0.35);
}

.pe-btn--secondary {
  color: var(--pe-text);
  border-color: rgba(210, 218, 229, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.pe-btn--market {
  gap: 9px;
  min-height: 48px;
  border: 1px solid transparent;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 15, 15, 0.18);
}

.pe-market-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pe-market-label {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pe-market-amazon {
  background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
  border-color: #10151d;
}

.pe-market-amazon .pe-market-icon {
  color: #232f3e;
  background: #ff9900;
}

.pe-market-leanpub {
  background: linear-gradient(135deg, #111111 0%, #000000 100%);
  border-color: #000000;
}

.pe-market-leanpub .pe-market-icon {
  color: #111111;
  background: #ffffff;
}

.pe-market-hotmart {
  background: linear-gradient(135deg, #f14c00 0%, #d33b00 100%);
  border-color: #a62f02;
}

.pe-market-hotmart .pe-market-icon {
  color: #d94400;
  background: #ffffff;
}

.pe-market-gumroad {
  background: linear-gradient(135deg, #111111 0%, #000000 100%);
  border-color: #000000;
  color: #ffffff;
}

.pe-market-gumroad .pe-market-icon {
  color: #111111;
  background: #ff5cbf;
}

.pe-hero {
  padding: 116px 0 90px;
}

.pe-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 42px;
  position: fixed;
  top: 14px;
  left: 50%;
  width: min(1120px, 92%);
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  z-index: 1000;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(13, 18, 27, 0.9);
  border: 1px solid var(--pe-border);
  backdrop-filter: blur(6px);
}

body.pe-scrolled .pe-nav {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.pe-brand {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-family: "Trebuchet MS", "Inter", "Segoe UI", "Roboto", sans-serif;
}

.pe-nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pe-hero-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 28px;
  align-items: center;
}

.pe-hero-copy p {
  max-width: 52ch;
  font-size: 1.08rem;
}

.pe-hero-copy ul {
  font-size: 1.05rem;
  padding-left: 22px;
}

.pe-hero-copy li + li {
  margin-top: 6px;
}

.pe-hero-copy strong {
  color: var(--pe-black);
}

.pe-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pe-metric-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pe-metric {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--pe-border);
  background: rgba(255, 255, 255, 0.03);
}

.pe-metric strong {
  display: block;
  font-size: 1.2rem;
  color: var(--pe-black);
}

.pe-metrics-section {
  padding-top: 20px;
  padding-bottom: 48px;
}

.pe-metrics-section .pe-metric-row {
  margin-top: 0;
}

.pe-cover-wrap {
  background: radial-gradient(circle at top, #1a2330 0%, #121922 100%);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--pe-shadow);
}

.pe-cover-wrap img {
  border-radius: 8px;
}

.pe-side-reference {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--pe-border);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.pe-side-reference h3 {
  font-size: 1.2rem;
}

.pe-side-reference p {
  margin-bottom: 0;
}

.pe-side-reference a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.pe-card {
  border: 1px solid var(--pe-border);
  background: var(--pe-light);
  border-radius: var(--pe-radius);
  padding: 24px;
}

.pe-card h3 {
  font-size: 1.35rem;
}

.pe-roadmap {
  background: var(--pe-dark);
  color: #eff1f5;
}

.pe-roadmap h2,
.pe-roadmap h3 {
  color: #ffffff;
}

.pe-roadmap .pe-muted {
  color: #c8cfda;
}

.pe-timeline {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pe-stage {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.pe-stage::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pe-black);
  background: var(--pe-gold);
}

.pe-stage h3 {
  margin-bottom: 6px;
}

.pe-author {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: stretch;
}

.pe-author-bio-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: stretch;
}

.pe-author-photo-card {
  padding: 14px;
  background: linear-gradient(145deg, #1b2533 0%, #121a24 100%);
}

.pe-author-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

.pe-author .pe-card:first-child {
  background: linear-gradient(145deg, #1b2533 0%, #121a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-author-claim {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pe-black);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pe-final-cta {
  background: linear-gradient(135deg, #12161b, #2a3038);
  color: #e9edf4;
}

.pe-final-cta h2 {
  color: #ffffff;
}

.pe-form {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}

.pe-form input {
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f8fa;
}

.pe-form input::placeholder {
  color: #c7ced8;
}

.pe-form button {
  cursor: pointer;
}

.pe-footer {
  text-align: center;
  padding: 26px 0 40px;
  font-size: 0.88rem;
  color: #9aa5b4;
}

.pe-footer p {
  margin: 0;
}

.pe-footer p + p {
  margin-top: 8px;
}

.pe-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1024px) {
  .pe-hero-grid,
  .pe-author-bio-grid,
  .pe-author {
    grid-template-columns: 1fr;
  }

  .pe-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pe-section {
    padding: 70px 0;
  }

  .pe-problem-grid,
  .pe-form,
  .pe-metric-row,
  .pe-timeline {
    grid-template-columns: 1fr;
  }

  .pe-nav {
    margin-bottom: 28px;
  }
}
