:root {
  --bg: #0d0b0a;
  --bg-alt: #161210;
  --ink: #f5efe6;
  --ink-muted: #b9afa2;
  --flame-1: #f7a52c;
  --flame-2: #e0532c;
  --border: #2b2521;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-nav a {
  color: var(--ink-muted);
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--flame-1);
}

.site-nav a.nav-cta {
  background: linear-gradient(120deg, var(--flame-1), var(--flame-2));
  color: #1a0f04;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  border-bottom: none;
}

.site-nav a.nav-cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--flame-1), var(--flame-2));
  color: #1a0f04;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-outline {
  border: 2px solid var(--flame-1);
  color: var(--ink);
}

.btn-outline:hover { background: rgba(247, 165, 44, 0.12); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(224, 83, 44, 0.18), transparent 60%),
    var(--bg);
}

.hero-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  max-width: 640px;
  margin: 1rem auto 2rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0.8rem auto 0;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-cta { text-align: center; margin-top: 2.5rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card,
.curso-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.feature-card .flame {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.curso-edades {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--flame-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.curso-card p, .feature-card p {
  color: var(--ink-muted);
  margin: 0;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, rgba(224, 83, 44, 0.18), rgba(247, 165, 44, 0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner-inner {
  text-align: center;
  padding: 3.5rem 0;
}

.cta-banner-inner p {
  color: var(--ink-muted);
  margin: 0.8rem 0 1.8rem;
}

/* About page */
.about-grid { max-width: 760px; margin: 0 auto; }
.about-text p { color: var(--ink-muted); }

.values-list {
  color: var(--ink-muted);
  padding-left: 1.2rem;
}

.values-list li { margin-bottom: 0.5rem; }
.values-list strong { color: var(--ink); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info p { color: var(--ink-muted); }
.contact-info strong { color: var(--ink); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-weight: 500; font-size: 0.9rem; color: var(--ink-muted); }

.form-control {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--flame-1);
}

.field-error { color: var(--flame-2); font-size: 0.85rem; }

/* Messages */
.messages { padding-top: 1.5rem; }
.alert {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-weight: 500;
}
.alert-success {
  background: rgba(247, 165, 44, 0.14);
  border: 1px solid var(--flame-1);
  color: var(--ink);
}
.alert-error {
  background: rgba(224, 83, 44, 0.14);
  border: 1px solid var(--flame-2);
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-logo { height: 44px; margin-bottom: 0.8rem; border-radius: 6px; }
.footer-brand p { color: var(--ink-muted); max-width: 260px; }

.footer-col h4 { margin: 0 0 0.8rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--flame-1); }
.footer-col a, .footer-col p { display: block; color: var(--ink-muted); margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }

  .site-nav.open { display: flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
