/* === AULA CRÍTICA — Revista Pedagógica === */

:root {
  --yellow: #F5C000;
  --yellow-light: #FFF8E1;
  --yellow-mid: #FFE082;
  --red: #CC0000;
  --red-light: #FFF0F0;
  --black: #111111;
  --dark: #222222;
  --white: #ffffff;
  --bg: #F7F8FA;
  --bg-alt: #ffffff;
  --border: #E8E8E8;
  --gray: #777777;
  --gray-dark: #444444;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 14px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo { height: 38px; }

.navbar-link {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dark);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.navbar-link:hover {
  color: var(--black);
  border-color: var(--yellow);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-top: 64px;
}

/* diagonal yellow accent */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 560px;
  height: 560px;
  background: var(--yellow-light);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: 80px;
  width: 220px;
  height: 220px;
  background: rgba(245,192,0,0.12);
  border-radius: 50%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 28px;
}

.hero-text {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow-light);
  border: 1px solid var(--yellow-mid);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a5e00;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--yellow);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-head);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title .accent { color: var(--yellow); }
.hero-title .accent-red { color: var(--red); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-desc strong { color: var(--dark); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245,192,0,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gray-dark);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--black);
  color: var(--black);
  background: var(--bg);
}

/* Hero visual panel */
.hero-visual {
  position: relative;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-stack {
  position: relative;
  height: 420px;
}

.hero-card-back,
.hero-card-mid,
.hero-card-front {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-card-back {
  width: 220px; height: 290px;
  bottom: 0; left: 10px;
  transform: rotate(-8deg);
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  opacity: 0.5;
}

.hero-card-mid {
  width: 240px; height: 310px;
  bottom: 20px; left: 60px;
  transform: rotate(-3deg);
  background: linear-gradient(135deg, #3d0000 0%, #700000 100%);
  opacity: 0.75;
}

.hero-card-front {
  width: 260px; height: 330px;
  bottom: 40px; right: 0;
  transform: rotate(2deg);
  background: linear-gradient(135deg, #1a1200 0%, #3d2e00 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hcf-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hcf-num {
  font-family: var(--font-head);
  font-size: 5.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  position: absolute;
  bottom: 8px; right: 14px;
}
.hcf-stripe {
  width: 48px; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.hcf-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.hcf-brand span { color: var(--yellow); }

/* Floating badge */
.hero-badge {
  position: absolute;
  top: 24px; right: -16px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 50%;
  width: 88px; height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 8px 24px rgba(245,192,0,0.4);
  animation: pulse 3s ease-in-out infinite;
  z-index: 10;
}
.badge-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.badge-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50%       { transform: scale(1.06) rotate(-5deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   EDITIONS SECTION
   ============================================================ */
.editions {
  padding: 110px 0 120px;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--yellow-light);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--yellow-mid);
}

.section-title {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(36px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition), border-color var(--transition);
}

.card:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
  transform: translateY(-6px);
}

/* Card Cover */
.card-cover {
  height: 210px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-cover--1 { background: linear-gradient(145deg, #1a1200, #4a3800); }
.card-cover--2 { background: linear-gradient(145deg, #1a0000, #4a0000); }
.card-cover--3 { background: linear-gradient(145deg, #0d1f2d, #1a3a52); }

.card-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 28px,
    rgba(255,255,255,0.02) 28px, rgba(255,255,255,0.02) 56px
  );
}

.cover-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cover-vol-tag {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.cover-stripe {
  width: 44px; height: 3px;
  border-radius: 2px;
  margin: 4px 0;
}
.card-cover--1 .cover-stripe { background: var(--yellow); }
.card-cover--2 .cover-stripe { background: #ff4444; box-shadow: 0 0 10px rgba(255,60,60,0.6); }
.card-cover--3 .cover-stripe { background: #5bbce4; }

.cover-brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.card-cover--1 .cover-brand span { color: var(--yellow); }
.card-cover--2 .cover-brand span { color: #ff6666; }
.card-cover--3 .cover-brand span { color: #5bbce4; }

.cover-vol-num {
  position: absolute;
  bottom: 8px; right: 14px;
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 0;
}

/* Card Body */
.card-body {
  padding: 22px 24px 28px;
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a5e00;
  background: var(--yellow-light);
  border: 1px solid var(--yellow-mid);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.card-tag--red {
  color: #8B0000;
  background: var(--red-light);
  border-color: #ffb3b3;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 10px;
}
.card-title em {
  font-style: normal;
  color: var(--gray);
  font-size: 0.95rem;
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 22px;
}

/* Card Button */
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 7px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.card-btn svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
}
.card-btn:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(245,192,0,0.4);
}

.card-btn--red:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(204,0,0,0.3);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--white);
  padding: 110px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.about-text.visible h2 { opacity: 1; transform: translateX(0); }
.about-text h2 span { color: var(--yellow); }

.about-text p {
  font-size: 0.97rem;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-text p strong { color: var(--dark); }

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--bg);
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-top: 4px;
}

/* About visual */
.about-visual {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s 0.15s ease, transform 0.7s 0.15s ease;
}
.about-visual.visible { opacity: 1; transform: translateX(0); }

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  border-radius: 20px 20px 0 0;
}

.about-card-icon {
  width: 56px; height: 56px;
  background: var(--yellow-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--yellow-mid);
}
.about-card-icon svg { width: 28px; height: 28px; }

.about-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}
.about-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--gray-dark);
}
.pillar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pillar-dot--y { background: var(--yellow); }
.pillar-dot--r { background: var(--red); }
.pillar-dot--b { background: #5bbce4; }
.pillar-dot--g { background: #4caf50; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-img {
  height: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-link:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 28px 60px;
  }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 3rem; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 700px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .section-title { font-size: 2rem; }
  .about-stats { gap: 24px; }
  .navbar-link { display: none; }
}
