/* ================================
   VARIABLES & RESET
================================ */
:root {
  --red:       #C8102E;
  --red-dark:  #9B0B22;
  --red-light: #F5D0D7;
  --yellow:    #F5C400;
  --yellow-dk: #C9A000;
  --black:     #0F0F0F;
  --dark:      #1A1A1A;
  --dark2:     #2A2A2A;
  --white:     #FFFFFF;
  --offwhite:  #FAF8F4;
  --gray:      #6B6B6B;
  --gray-light:#E8E5DF;
  --wp-green:  #25D366;
  --wp-dark:   #128C7E;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-cond:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', Arial, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--offwhite);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================
   TYPOGRAPHY
================================ */
h1 {
  font-family: var(--font-cond);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--yellow);
  text-transform: none;
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-cond);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-cond);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-wp {
  background: var(--wp-green);
  color: var(--white);
}
.btn-wp:hover { background: var(--wp-dark); }

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-dark); }

.btn-dark {
  background: var(--black);
  color: var(--yellow);
}
.btn-dark:hover { background: var(--dark2); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2.5px solid var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-sm { font-size: 0.95rem; padding: 0.75rem 1.4rem; }

.w-full { width: 100%; }

.wp-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ================================
   NAVBAR
================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--black);
  border-bottom: 3px solid var(--red);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow-lg); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.nav-logo em {
  font-style: normal;
  color: var(--yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.55rem 1.2rem;
}
.nav-links .nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ================================
   HERO
================================ */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

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

.hero-bg-text {
  position: absolute;
  bottom: -0.1em;
  right: -0.05em;
  font-family: var(--font-cond);
  font-size: clamp(10rem, 25vw, 22rem);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.65);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.stat-box {
  background: rgba(255,255,255,0.04);
  padding: 2rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-cond);
  font-size: 4rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ================================
   SECTION HEADERS
================================ */
.section-header {
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}
.section-header.light .section-tag {
  color: var(--yellow);
  background: rgba(245,196,0,0.15);
}
.section-header.light h2 { color: var(--white); }

/* ================================
   ABOUT
================================ */
.about {
  padding: 7rem 0;
  background: var(--offwhite);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.credential {
  border-left: 4px solid var(--yellow);
  padding-left: 1.2rem;
}
.cred-year {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.2rem;
}
.cred-title {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
}
.cred-place {
  font-size: 0.95rem;
  color: var(--gray);
}

.about-text blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--dark);
  border-left: 4px solid var(--red);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.about-text p strong { color: var(--dark); }
.about-text .btn { margin-top: 1rem; }

/* ================================
   SUBJECTS
================================ */
.subjects {
  padding: 7rem 0;
  background: var(--dark);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.subject-card {
  background: var(--dark2);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  position: relative;
}
.subject-card:hover { background: #333; }

.subject-card.featured-card {
  background: var(--red);
}
.subject-card.featured-card:hover { background: var(--red-dark); }
.subject-card.featured-card .subject-era { color: rgba(255,255,255,0.7); }
.subject-card.featured-card h3 { color: var(--white); }
.subject-card.featured-card p { color: rgba(255,255,255,0.75); }
.subject-card.featured-card .subject-num { color: rgba(255,255,255,0.25); }

.subject-num {
  font-family: var(--font-cond);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.subject-era {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

.subject-card h3 { color: var(--white); }

.subject-card p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.subject-card-cbc {
  background: var(--yellow);
  grid-column: span 1;
}
.subject-card-cbc:hover { background: var(--yellow-dk); }
.subject-card-cbc .subject-era { color: rgba(0,0,0,0.55); }
.subject-card-cbc h3 { color: var(--black); }
.subject-card-cbc p { color: rgba(0,0,0,0.65); }
.subject-card-cbc .subject-num { color: rgba(0,0,0,0.08); }

/* ================================
   TESTIMONIALS
================================ */
.testimonials {
  padding: 7rem 0;
  background: var(--offwhite);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.test-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 2px solid var(--gray-light);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.test-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.test-stars {
  font-size: 1.3rem;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.test-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.test-author strong {
  display: block;
  font-family: var(--font-cond);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
}
.test-author span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ================================
   PRICING
================================ */
.pricing {
  padding: 7rem 0;
  background: var(--black);
}
.pricing .section-tag {
  color: var(--yellow);
  background: rgba(245,196,0,0.12);
}
.pricing h2 { color: var(--white); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.plan {
  background: var(--dark2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.plan-featured {
  border-color: var(--yellow);
  background: var(--dark);
}

.plan-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--black);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.plan-name {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-family: var(--font-cond);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.plan-unit {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.8rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}
.plan-features li {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.plan-features li::before {
  content: '✓';
  color: var(--yellow);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ================================
   CONTACT
================================ */
.contact {
  padding: 7rem 0;
  background: var(--offwhite);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-intro {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-light);
  margin-bottom: 1rem;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  background: var(--white);
}
.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-link-wp:hover { border-color: var(--wp-green); }
.contact-link-mail:hover { border-color: var(--red); }

.contact-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-link-icon svg { width: 28px; height: 28px; }
.wp-bg { background: var(--wp-green); color: var(--white); }
.mail-bg { background: var(--red); color: var(--white); }

.contact-link strong {
  display: block;
  font-family: var(--font-cond);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: 0.03em;
}
.contact-link span {
  font-size: 0.92rem;
  color: var(--gray);
}

.contact-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
}
.detail-value {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

/* FORM */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 2px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--offwhite);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-success {
  display: none;
  background: #e6f7ec;
  color: #1a7a3a;
  border: 2px solid #a3d9b1;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 1rem;
}
.form-success.visible { display: block; }

/* ================================
   WHATSAPP FLOATING BUTTON
================================ */
.wp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  width: 60px;
  height: 60px;
  background: var(--wp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.wp-float svg {
  width: 34px;
  height: 34px;
  color: var(--white);
}

.wp-float-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wp-float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--dark);
}
.wp-float:hover .wp-float-tooltip { opacity: 1; }

/* ================================
   FOOTER
================================ */
footer {
  background: var(--black);
  border-top: 4px solid var(--red);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.footer-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 3px solid var(--red);
    gap: 0.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; width: 100%; }
  .nav-toggle { display: flex; }

  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-box { padding: 1.2rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .subjects-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .container { padding: 0 1.2rem; }
  section { padding: 5rem 0 !important; }

  .wp-float { bottom: 1.2rem; right: 1.2rem; }
}

/* Plan único centrado */
.pricing-grid-single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}

/* Dos planes lado a lado */
.pricing-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .pricing-grid-two { grid-template-columns: 1fr; }
}
