: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);
  line-height: 1.5;
}

/* Contenedor genérico */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAVBAR */

.nav-df {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.82);
}

.nav-df-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}

.nav-df-brand {
  font-weight: 700;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 1rem;
}

.nav-df-links {
  display: flex;
  gap: 1.2rem;
}

.nav-df-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.93rem;
}

.nav-df-links a:hover {
  color: #ffffff;
}

.nav-df-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.nav-df-cta:hover {
  filter: brightness(1.05);
}

/* Navbar responsive */

@media (max-width: 720px) {
  .nav-df-inner {
    gap: 0.6rem;
  }
  .nav-df-links {
    display: none;
  }
}

/* HERO */

.hero-df {
  background: var(--bg-hero-gradient);
  color: var(--text-light);
  padding: 4.5rem 0 5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Badge en el hero */

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

.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: #facc15;
  color: #111827;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
}

.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;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.section-df h2 {
  font-size: 1.9rem;
  margin: 0 0 0.75rem;
  text-align: left;
  position: relative;
  display: inline-block;
}

.section-df h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, #6366f1, #facc15);
}

.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);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.df-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
}

.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: 2rem;
  padding: 1.5rem;
  border-radius: 22px;
  background: radial-gradient(circle at top left, #eef2ff, #e5e7eb);
}

/* Imagen principal grande */

.ejemplo-main-img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Miniaturas */

.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: 16px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.35);
}

/* 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;
}

/* FAQ */

.faq-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

/* CONTACTO */

.section-contacto {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.contacto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-contacto h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.section-contacto p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.contacto-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contacto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.contacto-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.contacto-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-df {
    padding: 3.5rem 0 4rem;
    min-height: auto;
  }

  .df-grid-3 {
    grid-template-columns: 1fr;
  }

  .ejemplo-panel {
    grid-template-columns: 1fr;
  }

  .cta-final-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-df-content h1 {
    font-size: 2.1rem;
  }

  .hero-df-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-df {
    padding: 3rem 0;
  }

  .contacto-item {
    width: 100%;
    max-width: 280px;
  }
}
