/* Familias gratis (r7-descarga v1). Se apoya en home.css (tokens, botones, secciones) y curso.css (hero, portada 3D, FAQ). */

/* Datos del archivo bajo los botones del hero */
.dl-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.dl-facts li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(24, 26, 34, .6); color: var(--fg-muted); font-size: .88rem; }
.dl-facts strong { color: var(--fg); margin-right: 4px; }
.cs-chip--price { gap: 6px; }

/* Descarga + formulario */
.dl-get { position: relative; overflow: hidden; scroll-margin-top: 72px; }
.dl-get__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.dl-card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.dl-card h3 { font-size: 1.35rem; margin: 14px 0 8px; }
.dl-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--green); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); }
.dl-card__ic--blue { color: #60a5fa; background: var(--accent-soft); border-color: rgba(47, 111, 237, .45); }
.dl-card__ic .i { width: 24px; height: 24px; }
.dl-card__price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 18px; }
.dl-card__price strong { font-size: 2.6rem; letter-spacing: -.03em; color: #fff; line-height: 1; }
.dl-card__price span { color: var(--fg-muted); font-size: .92rem; }
.dl-card__btn { justify-content: center; margin-top: auto; }
.dl-card__note { display: flex; gap: 8px; margin: 14px 0 0; color: var(--fg-muted); font-size: .85rem; line-height: 1.45; }
.dl-card__note .i { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 1px; }
.dl-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.dl-list li { display: flex; gap: 10px; align-items: flex-start; }
.dl-list .i { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
.dl-list--row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0 28px; }

/* Formulario */
.dl-form { display: grid; gap: 14px; margin-top: 8px; }
.dl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dl-field { display: grid; gap: 6px; }
.dl-field label { font-size: .85rem; color: var(--fg-muted); }
.dl-field input, .dl-field select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--fg); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.dl-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%), linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.dl-field input:focus, .dl-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 237, .3); }
.dl-field [aria-invalid="true"] { border-color: var(--accent-orange); }
.dl-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--fg-muted); cursor: pointer; }
.dl-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.dl-check a { color: #93c5fd; }
.dl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl-form__btn { justify-content: center; }
.dl-form__btn[disabled] { opacity: .6; cursor: progress; }
.dl-form__msg { margin: 0; min-height: 1.2em; font-size: .9rem; color: var(--accent-orange); }
.dl-done { text-align: center; padding: 18px 0 4px; animation: dl-pop .5s var(--ease, ease) both; }
.dl-done > .i { width: 56px; height: 56px; padding: 12px; border-radius: 50%; color: #0b1a12; background: var(--green); box-shadow: 0 0 0 10px rgba(52, 211, 153, .15); }
.dl-done p { color: var(--fg-muted); margin: 0 0 20px; }
@keyframes dl-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Comunidad */
.dl-community { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin: 32px auto 0; }
.dl-community p { margin: 0 6px 0 0; color: var(--fg-muted); font-size: .92rem; }
.dl-community a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--fg); text-decoration: none; font-size: .92rem; transition: border-color .2s, transform .2s; }
.dl-community a:hover { border-color: var(--green); transform: translateY(-2px); }
.dl-community .i { width: 20px; height: 20px; color: var(--green); }

/* Academia */
.dl-acad { max-width: 920px; margin: 0 auto; text-align: center; }
.dl-acad h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 10px 0 0; }
.dl-acad .dl-list { text-align: left; max-width: 680px; margin-left: auto; margin-right: auto; }

/* Más familias */
.dl-more { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dl-more__card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--fg); text-decoration: none; transition: transform .3s var(--ease, ease), border-color .3s, box-shadow .3s; }
.dl-more__card:hover { transform: translateY(-4px); border-color: rgba(47, 111, 237, .6); box-shadow: 0 24px 50px -24px rgba(47, 111, 237, .6); }
.dl-more__card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.dl-more__tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(13, 14, 18, .8); color: var(--green); }
.dl-more__t { padding: 14px 16px 4px; font-weight: 600; line-height: 1.3; }
.dl-more__m { padding: 0 16px 16px; color: var(--fg-muted); font-size: .85rem; margin-top: auto; }

@media (max-width: 1000px) { .dl-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dl-get__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .dl-row, .dl-list--row { grid-template-columns: minmax(0, 1fr); }
  .dl-more { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dl-facts li { font-size: .82rem; padding: 6px 12px; }
  .dl-card__price strong { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { .dl-done { animation: none; } .dl-more__card, .dl-community a { transition: none; } }
