:root {
  --bg-body: #f3f4f6;
  --bg-hero: #4f46e5;
  --bg-hero-gradient: radial-gradient(circle at top left, #8b5cf6, #4f46e5);
  --text-main: #0f172a;
  --text-soft: #6b7280;
  --text-light: #e5e7eb;
  --primary: #4f46e5;
  --primary-soft: #6366f1;
  --accent: #facc15;
  --card-bg: #ffffff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.25);
}

/* Reset básico */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--bg-body);
}

/* Contenedor genérico */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO */

.hero-df {
  background: var(--bg-hero-gradient);
  color: var(--text-light);
  padding: 4.5rem 0 5rem;
}

.hero-df-content h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin: 0 0 1rem;
}

.hero-df-subtitle {
  max-width: 640px;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hero-df-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Botones */

.btn-primary-df,
.btn-secondary-df {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary-df {
  background: var(--accent);
  color: #1f2933;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.4);
}

.btn-primary-df:hover {
  filter: brightness(1.05);
}

.btn-secondary-df {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(229, 231, 235, 0.6);
}

.btn-secondary-df:hover {
  background: rgba(15, 23, 42, 0.15);
}

/* Secciones genéricas */

.section-df {
  padding: 4rem 0;
}

.section-df.alt-df {
  background: #e5e7eb;
}

.section-df h2 {
  font-size: 1.9rem;
  margin: 0 0 0.75rem;
  text-align: left;
}

.section-df-subtitle {
  margin: 0 0 2rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 640px;
}

/* Grid de 3 tarjetas */

.df-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.df-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.df-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.df-card p {
  margin: 0;
  line-height: 1.5;
  color: var(--text-soft);
}

/* === EJEMPLO DE PANEL (con capturas) === */

.ejemplo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.ejemplo-texto .ejemplo-btn {
  margin-top: 1.75rem;
}

.ejemplo-lista {
  padding-left: 1.1rem;
  margin: 1.5rem 0 0;
  color: var(--text-main);
}

.ejemplo-lista li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* Contenedor de imágenes */

.ejemplo-imagen {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Imagen principal grande */

.ejemplo-main-img {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.35);
}

/* Miniaturas inferiores */

.ejemplo-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ejemplo-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* CTA final */

.cta-final-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer (si lo añades después) */
/*
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}
*/

/* Responsive */

@media (max-width: 900px) {
  .hero-df {
    padding: 3.5rem 0 4rem;
  }

  .df-grid-3 {
    grid-template-columns: 1fr;
  }

  .ejemplo-panel {
    grid-template-columns: 1fr;
  }

  .cta-final-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-df-content h1 {
    font-size: 2.1rem;
  }

  .hero-df-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
