/* Estilos base */
:root{
  --step--1: clamp(0.9rem, 0.7rem + 0.6vw, 1rem);
  --step-0:  clamp(1rem, 0.8rem + 0.9vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1rem + 1.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.2rem + 2vw, 2rem);
  --step-3:  clamp(2rem, 1.4rem + 3vw, 3rem);
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.5;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Barra superior */
.top-bar {
  background-color: #2c2c2c;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar .controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.top-bar button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.top-bar button:hover { background-color: #3c3c3c; }

/* Encabezado principal */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.brand { display: flex; align-items: center; }
.logo-symbol { width: 40px; height: 40px; margin-right: 8px; }
.nav { display: flex; gap: 20px; }
.nav a { text-decoration: none; color: inherit; font-size: var(--step--1); }
.burger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }
.mobile { display: none; }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 3rem 0;
  text-align: center;
}
.hero h1 { font-size: var(--step-3); line-height: 1.2; margin-bottom: 0.5em; }
.hero p { font-size: var(--step-0); }

/* Botones CTA */
.btn {
  display: inline-block;
  background: #f3ba2f;
  color: #000;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: #d4a017; }

/* Grid y Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  text-align: center;
  padding: 1.25rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

/* Testimonios */
.testimonials .wrap {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.testimonials .item {
  flex: 0 0 80%;
  scroll-snap-align: center;
}

/* CTA strip */
.cta-strip {
  background: #f3ba2f;
  padding: 1.5rem 0;
  text-align: center;
}
.cta-strip h3 { margin: 0 0 .5rem; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 1.25rem 0;
  font-size: var(--step--1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: block; }
  .mobile:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  .hero { text-align: center; }
  .hero-card img { max-width: 90%; margin-inline: auto; }
}

/* Dark mode */
body.light { background-color: #ffffff; color: #333333; }
body.dark { background-color: #1a1a1a; color: #ffffff; }
body.dark .card { background-color: #333333; border-color: #555555; }
body.dark .cta-strip { background-color: #d4a017; }
body.dark a { color: #f3ba2f; }
