/* Página Digital Advanced (/advance).
   Misma línea del home y del bootcamp: títulos con una palabra en turquesa o morado,
   foto con la esquina redondeada del home, tarjetas negras con brillo y secciones claras
   y oscuras alternadas. Los dibujos de las tarjetas de curso son los del home, cada uno
   en su propio panel para que nunca tape el texto. Todo lo propio vive dentro de .dav. */

.dav .c-turquesa { color: var(--rd-turquesa); }
.dav .c-morado { color: var(--rd-morado); }
/* En fondo claro el turquesa y el morado puros no se leen bien: versión oscura. */
.dav-porque .c-morado, .dav-cursos .c-morado, .dav-beneficios .c-morado, .dav-metodo .c-morado { color: var(--rd-morado-texto); }
.dav-porque .c-turquesa, .dav-cursos .c-turquesa, .dav-beneficios .c-turquesa, .dav-metodo .c-turquesa { color: var(--rd-turquesa-texto); }

.dav h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.dav-cabecera { display: grid; gap: 14px; max-width: 720px; margin: 0 auto 48px; text-align: center; }
.dav-cabecera p { color: var(--rd-texto-suave); font-size: 17px; line-height: 1.6; }
.dav-boton-grande { min-height: 56px; padding-inline: 34px; border-radius: 16px; font-size: 16px; box-shadow: 0 8px 18px rgb(18 18 18 / 16%); }
.dav-centro-boton { display: flex; justify-content: center; margin-top: 40px; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.dav-hero { padding-block: clamp(110px, 11vw, 140px) clamp(56px, 7vw, 88px); }
.dav-hero__fila { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.dav-sello { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 16px 7px 12px; border: 1px solid var(--rd-borde); border-radius: 999px; font-size: 13px; font-weight: 600; }
.dav-sello__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--rd-morado); box-shadow: 0 0 0 4px rgb(172 100 253 / 28%); }
.dav-hero h1 { margin-bottom: 20px; font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.dav-hero__lema { max-width: 540px; margin-bottom: 32px; color: var(--rd-texto-suave); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; }
.dav-hero__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.dav-enlace { padding-bottom: 2px; border-bottom: 2px solid var(--rd-morado); font-weight: 700; text-decoration: none; }
.dav-hero__foto { position: relative; }
.dav-hero__foto img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 40% center; border-radius: 48px 112px 18px 18px; box-shadow: -14px 12px 34px rgb(95 254 221 / 30%); }
.dav-hero__tarjeta { position: absolute; left: -24px; bottom: 32px; display: grid; gap: 2px; padding: 14px 20px; border-radius: 16px; background: rgb(250 250 253 / 94%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 26px rgb(18 18 18 / 18%); }
.dav-hero__tarjeta b { font-size: 20px; line-height: 1.2; }
.dav-hero__tarjeta small { color: var(--rd-morado-texto); font-size: 12px; font-weight: 600; }

/* ==========================================================================
   2. DATOS CLAVE
   ========================================================================== */
.dav-datos { padding-block: 32px; background: var(--rd-tinta); color: var(--rd-blanco); }
.dav-datos__fila { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-block: 0; list-style: none; }
.dav-datos__fila li { display: grid; align-content: center; gap: 2px; padding: 6px 12px; border-left: 1px solid rgb(255 255 255 / 16%); text-align: center; }
.dav-datos__fila li:first-child { border-left: 0; }
.dav-datos b { font-size: 17px; line-height: 1.3; }
.dav-datos li:nth-child(odd) b { color: var(--rd-turquesa); }
.dav-datos li:nth-child(even) b { color: var(--rd-morado); }
.dav-datos span { color: rgb(255 255 255 / 72%); font-size: 13.5px; line-height: 1.4; }

/* ==========================================================================
   3. POR QUÉ
   ========================================================================== */
.dav-porque { padding-block: clamp(72px, 9vw, 112px); background: var(--rd-papel); }
.dav-porque__fila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dav-pilar { display: grid; align-content: start; gap: 12px; padding: 36px 30px; border-radius: 28px; background: var(--rd-tinta); color: var(--rd-blanco); text-align: center; box-shadow: 0 0 40px rgb(95 254 221 / 22%); transition: transform .25s; }
.dav-pilar:nth-child(2) { box-shadow: 0 0 40px rgb(172 100 253 / 26%); }
.dav-pilar h3 { font-size: 19px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.dav-pilar p { color: rgb(255 255 255 / 78%); font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   4. LOS 5 CURSOS — 3 arriba y 2 centrados abajo
   ========================================================================== */
.dav-cursos { padding-block: clamp(72px, 9vw, 112px); }
.dav-cursos__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
/* 4 cursos: dos por fila. */
.dav-curso { display: flex; flex-direction: column; flex: 0 1 calc((100% - 24px) / 2); overflow: hidden; border: 1px solid var(--rd-borde); border-radius: 28px; background: var(--rd-blanco); transition: transform .3s, box-shadow .3s; }

.dav-curso__arte { position: relative; display: grid; place-items: center; height: 200px; padding: 20px; }
.dav-curso__svg { width: auto; max-width: 78%; height: 100%; max-height: 160px; overflow: visible; }
/* Fondo de cada panel: alterna menta y lila, como las tarjetas del home. */
.dav-curso--prog .dav-curso__arte, .dav-curso--social .dav-curso__arte, .dav-curso--data .dav-curso__arte { background: radial-gradient(70% 80% at 50% 60%, rgb(95 254 221 / 28%), transparent 70%), linear-gradient(160deg, #f4fffb, #e9f5f9); }
.dav-curso--retail .dav-curso__arte, .dav-curso--sem .dav-curso__arte { background: radial-gradient(70% 80% at 50% 60%, rgb(172 100 253 / 22%), transparent 70%), linear-gradient(160deg, #faf6ff, #efe9fb); }

.dav-curso__cuerpo { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.dav-curso__etiqueta { align-self: flex-start; padding: 4px 12px; border: 1.5px solid var(--rd-turquesa-texto); border-radius: 999px; color: var(--rd-turquesa-texto); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dav-curso--retail .dav-curso__etiqueta, .dav-curso--sem .dav-curso__etiqueta { border-color: var(--rd-morado-texto); color: var(--rd-morado-texto); }
.dav-curso h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.dav-curso__desc { flex: 1; color: var(--rd-texto-suave); font-size: 15px; line-height: 1.55; }
.dav-curso__prof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding-top: 14px; border-top: 1px dashed var(--rd-borde); font-size: 14px; }
.dav-curso__prof span { width: 100%; color: var(--rd-texto-suave); font-size: 12px; }
.dav-curso__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.dav-curso__cta { min-height: 46px; padding-inline: 22px; border-radius: 14px; font-size: 15px; }
.dav-curso__temario { padding-bottom: 2px; border-bottom: 2px solid var(--rd-morado); font-size: 14px; font-weight: 700; text-decoration: none; }

/* ==========================================================================
   5. MENTORES
   ========================================================================== */
.dav-mentores { padding-block: clamp(72px, 9vw, 112px); background: var(--rd-tinta); color: var(--rd-blanco); }
.dav-mentores .dav-cabecera p { color: rgb(255 255 255 / 75%); }
/* Flex en vez de grid: si una fila queda incompleta, sus fotos quedan centradas. */
.dav-mentores__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.dav-mentores__grid li { display: grid; flex: 0 1 calc((100% - 96px) / 5); justify-items: center; gap: 4px; }
.dav-mentores__grid img { width: 100%; max-width: 180px; aspect-ratio: 1; margin-bottom: 10px; border-radius: 50%; object-fit: cover; background: rgb(255 255 255 / 10%); transition: transform .3s, box-shadow .3s; }
.dav-mentores__grid b { font-size: 15px; line-height: 1.3; }
.dav-mentores__grid span { color: rgb(255 255 255 / 65%); font-size: 13px; }

/* ==========================================================================
   6. BENEFICIOS
   ========================================================================== */
.dav-beneficios { padding-block: clamp(72px, 9vw, 112px); background: var(--rd-papel); }
.dav-beneficios__fila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dav-beneficio { display: grid; align-content: start; justify-items: center; gap: 10px; padding: 34px 28px; border: 1px solid var(--rd-borde); border-radius: 24px; background: var(--rd-blanco); text-align: center; }
.dav-beneficio__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background: var(--rd-menta); color: var(--rd-turquesa-texto); font-size: 14px; font-weight: 700; }
.dav-beneficio:nth-child(2) .dav-beneficio__num { background: var(--rd-lila); color: var(--rd-morado-texto); }
.dav-beneficio h3 { font-size: 20px; font-weight: 700; }
.dav-beneficio p { color: var(--rd-texto-suave); font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   7. CÓMO FUNCIONA (claro, para alternar con mentores y cierre)
   ========================================================================== */
.dav-metodo { padding-block: clamp(72px, 9vw, 112px); }
.dav-metodo__lista { max-width: 760px; margin: 0 auto; padding: 0; border-top: 1px solid var(--rd-borde); list-style: none; }
.dav-metodo__lista > li { border-bottom: 1px solid var(--rd-borde); }
.dav-metodo__lista summary { position: relative; display: grid; gap: 2px; padding: 22px 48px 22px 0; list-style: none; cursor: pointer; }
.dav-metodo__lista summary::-webkit-details-marker { display: none; }
.dav-metodo__lista summary::after { content: "+"; position: absolute; right: 6px; top: 50%; color: var(--rd-morado-texto); font-size: 26px; font-weight: 400; line-height: 1; transform: translateY(-50%); transition: transform .2s; }
.dav-metodo__lista details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.dav-metodo__num { color: var(--rd-turquesa-texto); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.dav-metodo__lista > li:nth-child(even) .dav-metodo__num { color: var(--rd-morado-texto); }
.dav-metodo__lista summary b { font-size: clamp(18px, 1.6vw, 20px); font-weight: 600; line-height: 1.35; }
.dav-metodo__lista details p { max-width: 620px; padding-bottom: 22px; color: var(--rd-texto-suave); font-size: 15.5px; line-height: 1.6; }

/* ==========================================================================
   8. CIERRE
   ========================================================================== */
.dav-cierre { position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 136px); background: var(--rd-tinta); color: var(--rd-blanco); text-align: center; }
.dav-cierre::before { content: ""; position: absolute; inset: -20%; background:
  radial-gradient(30% 40% at 30% 50%, rgb(95 254 221 / 20%), transparent 70%),
  radial-gradient(30% 40% at 70% 50%, rgb(172 100 253 / 24%), transparent 70%); }
.dav-cierre__caja { position: relative; display: grid; justify-items: center; gap: 22px; }
.dav-cierre__fecha { color: rgb(255 255 255 / 70%); font-size: 15px; font-weight: 600; }
.dav .dav-cierre h2 { max-width: 860px; font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.06; letter-spacing: -.02em; }
.dav-cierre p:not(.dav-cierre__fecha) { max-width: 620px; color: rgb(255 255 255 / 80%); font-size: 17px; line-height: 1.6; }
.dav-cierre__cta { min-height: 60px; padding-inline: 40px; border-radius: 18px; font-size: 17px; }

@media (hover: hover) {
  .dav-pilar:hover { transform: translateY(-4px); }
  .dav-curso:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgb(18 18 18 / 12%); }
  .dav-mentores__grid li:hover img { transform: translateY(-4px); box-shadow: 0 16px 30px rgb(172 100 253 / 30%); }
  .dav-enlace:hover, .dav-curso__temario:hover { color: var(--rd-morado-texto); }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1100px) {
  .dav-curso { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 991.98px) {
  .dav-hero__fila { grid-template-columns: 1fr; }
  .dav-hero__foto { max-width: 560px; }
  .dav-hero__tarjeta { left: 16px; bottom: 16px; }
  .dav-datos__fila { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .dav-datos__fila li:nth-child(4) { border-left: 0; }
  .dav-porque__fila, .dav-beneficios__fila { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .dav-mentores__grid li { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 640px) {
  .rd-lienzo { padding-inline: 16px; }
  .dav-hero__acciones .rd-boton, .dav-cierre .rd-boton, .dav-centro-boton .rd-boton { width: 100%; }
  .dav-hero__foto img { border-radius: 32px 80px 16px 16px; }
  .dav-datos__fila { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dav-datos__fila li:nth-child(odd) { border-left: 0; }
  .dav-datos__fila li:nth-child(4) { border-left: 1px solid rgb(255 255 255 / 16%); }
  .dav-curso { flex-basis: 100%; }
  .dav-curso__arte { height: 170px; }
  .dav-curso__cuerpo { padding: 22px 20px 24px; }
  .dav-curso__cta { flex: 1; }
  .dav-mentores__grid li { flex-basis: calc((100% - 24px) / 2); }
}

/* Curso aún sin inscripciones: en lugar del botón, una etiqueta. */
.dav-curso__proximamente { display: inline-flex; align-items: center; min-height: 46px; padding-inline: 22px; border-radius: 14px; background: var(--rd-lila); color: var(--rd-morado-texto); font-size: 15px; font-weight: 700; }
