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

:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --accent: #fbbf24;
  --accent-soft: #fef3c7;
  --accent-strong: #d97706;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --card-bg: #020617;
  --border-subtle: #1f2933;
  --danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.9);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.8);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.24s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
  color: var(--text-main);
  font-family: var(--font-main);
}

body {
  display: block;
}

#app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background: url("fondo-textura-almacapital.png") center/cover fixed,
    radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
  padding: 32px 32px 48px;
}

/* HEADER */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, #facc15, #f97316 55%, #7c2d12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.brand-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
}

.brand-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #facc15, #f97316);
  transition: width var(--transition-fast);
}

.site-nav a:hover {
  color: var(--accent-soft);
}

.site-nav a:hover::after {
  width: 100%;
}

/* MAIN SECTIONS */

main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* HERO */

.section-inicio {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.hero-subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-badges span {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent-soft);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

/* PILLS */

.pill-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-strip::-webkit-scrollbar {
  height: 4px;
}

.pill-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.pill {
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #020617, #0b1120);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.pill h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.pill p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SECTION HEADER */

.section {
  scroll-margin-top: 80px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.section-header p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* PROGRAMAS */

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

.card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.8);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card-tag {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--accent-soft);
}

.card-list {
  margin: 0 0 12px;
  padding-left: 18px;
}

.card-list li {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-detail {
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  padding-top: 10px;
  margin-top: 6px;
}

.card-detail h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.card-detail p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.card-detail ul {
  margin: 0;
  padding-left: 18px;
}

.card-detail li {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

/* RECURSOS */

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resource-item {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.resource-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.resource-item p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.resource-item ul {
  margin: 0 0 6px;
  padding-left: 18px;
}

.resource-item li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.resource-note {
  font-size: 0.88rem;
  color: var(--accent-soft);
}

/* SOBRE NOSOTROS */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
}

.about-text {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.about-text p {
  margin-top: 0;
  margin-bottom: 10px;
}

.about-text ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.about-text li {
  margin-bottom: 4px;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coach-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  gap: 12px;
  align-items: center;
}

.coach-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.coach-card h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.coach-card p {
  margin: 1px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.coach-bio {
  font-size: 0.86rem;
}

.testimonial {
  margin-top: auto;
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.08), #020617);
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.testimonial-text {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--accent-soft);
}

.testimonial-author {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* CONTACTO */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 24px;
}

.contact-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.contact-text p,
.contact-text ol {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.contact-text ol {
  margin: 8px 0 10px;
  padding-left: 20px;
}

.contact-text li {
  margin-bottom: 4px;
}

.contact-text a {
  color: var(--accent-soft);
  text-decoration: none;
}

.contact-text a:hover {
  text-decoration: underline;
}

.contact-info {
  font-size: 0.94rem;
  color: var(--text-muted);
  background: linear-gradient(145deg, #020617, #020617 40%, #111827 100%);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: var(--text-main);
}

.contact-info ol {
  margin: 0;
  padding-left: 20px;
}

.contact-info li {
  margin-bottom: 4px;
}

.contact-highlight {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--accent-soft);
}

.form-note {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  #app {
    padding: 24px 18px 32px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  #app {
    padding: 18px 14px 28px;
  }

  .program-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
}