/* Páginas propias de las extensiones (/programas/extension-*), generadas por
   src/layouts/Extension.astro. Sin clases de Nicepage: header, footer y modales siguen
   saliendo de nicepage.css y de los CSS compartidos. Colores y tipografía como las
   tarjetas de la portada (.vv-* en css/estilo-personalizado.css). */

.ext {
  font-family: Montserrat, sans-serif;
  color: #111;
  line-height: 1.6;
}

.ext h1,
.ext h2,
.ext h3 {
  font-family: Montserrat, sans-serif;
  line-height: 1.25;
}

.ext a {
  color: #018daa;
}

.ext-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.ext-bloque {
  padding: 70px 0;
  background: #fff;
}

.ext-bloque--gris {
  background: #f4f7f8;
}

.ext .ext-titulo-centro {
  margin: 0 0 40px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #00a2c3;
}

/* Botón (como .pq-boton de la portada) */
.ext .ext-boton {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  background: #00a2c3;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ext .ext-boton:hover {
  background: #018daa;
  color: #fff;
}

/* Portada: foto a pantalla completa con el texto encima */
.ext-portada {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  overflow: hidden;
  background: #1d2b30;
}

.ext-portada__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ext-portada__capa {
  position: relative;
  width: 100%;
  padding: 140px 0 56px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}

.ext-portada__capa .ext-contenedor {
  max-width: 1200px;
}

.ext-migas {
  margin-bottom: 18px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.ext .ext-migas a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ext-etiqueta {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #00a2c3;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ext-portada h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ext-portada__lead {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 1.125rem;
}

.ext-precio {
  margin: 0 0 24px;
  font-size: 1.0625rem;
}

.ext-precio strong {
  font-size: 1.5rem;
}

.ext-precio span {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Presentación + puntos fuertes */
.ext-presentacion {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 56px;
  align-items: start;
}

.ext-texto h2 {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #00a2c3;
}

.ext-texto p {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  text-align: justify;
}

.ext-fuertes {
  padding: 28px 30px;
  border-radius: 12px;
  background: #f4f7f8;
  box-shadow: inset 4px 0 0 #00a2c3;
}

.ext-fuertes h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
}

.ext-fuertes ul,
.ext-infos ul,
.ext-incluye {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ext-fuertes li,
.ext-infos li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
}

.ext-fuertes li::before,
.ext-infos li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00a2c3;
}

/* Programa día a día: foto y texto alternando de lado */
.ext-dias {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ext-dia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 36px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.ext-dia:last-child {
  margin-bottom: 0;
}

.ext-dia__foto {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.ext-dia:nth-child(even) .ext-dia__foto {
  order: 2;
}

.ext-dia__cuerpo {
  padding: 34px 38px;
}

.ext-dia h3 {
  margin: 0 0 14px;
  font-size: 1.375rem;
  font-weight: 700;
}

.ext-dia h3 span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00a2c3;
}

.ext-dia__cuerpo > p {
  margin: 0 0 16px;
  text-align: justify;
}

.ext-dia .ext-incluye-titulo {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  font-style: italic;
  color: #6f6f6f;
}

.ext-incluye li {
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  color: #6f6f6f;
}

/* Infos pratiques */
.ext-infos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ext-infos > div {
  padding: 28px;
  border-radius: 12px;
  background: #f4f7f8;
}

.ext-infos h3 {
  margin: 0 0 12px;
  font-size: 1.1875rem;
  font-weight: 700;
}

.ext-infos p {
  margin: 0;
}

/* Llamada al formulario */
.ext-llamada {
  padding: 64px 0;
  background: #00a2c3;
  color: #fff;
  text-align: center;
}

.ext-llamada h2 {
  margin: 0 0 14px;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.ext-llamada p {
  max-width: 680px;
  margin: 0 auto 26px;
  font-size: 1.0625rem;
}

.ext .ext-llamada .ext-boton {
  background: #fff;
  color: #018daa;
}

.ext .ext-llamada .ext-boton:hover {
  background: #e6f6f9;
  color: #018daa;
}

/* Las otras extensiones */
.ext-tarjetas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ext-tarjetas li {
  display: flex;
}

.ext .ext-tarjeta {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  color: #111;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ext .ext-tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.ext-tarjeta img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.ext-tarjeta__cuerpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.ext-tarjeta__cuerpo strong {
  font-size: 1.125rem;
}

.ext-tarjeta__cuerpo span {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.ext-tarjeta__cuerpo .ext-tarjeta__datos {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #555;
}

.ext-tarjeta__cuerpo .ext-tarjeta__mas {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  color: #00a2c3;
}

.ext-tarjeta:hover .ext-tarjeta__mas {
  text-decoration: underline;
}

.ext-todas {
  margin: 32px 0 0;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 991px) {
  .ext-contenedor {
    padding: 0 24px;
  }
  .ext-presentacion {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ext-infos {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ext-tarjetas {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .ext-dia {
    grid-template-columns: 1fr;
  }
  .ext-dia:nth-child(even) .ext-dia__foto {
    order: 0;
  }
  .ext-dia__foto {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .ext-dia__cuerpo {
    padding: 24px 22px;
  }
}

@media (max-width: 575px) {
  .ext-contenedor {
    padding: 0 16px;
  }
  .ext-bloque {
    padding: 48px 0;
  }
  .ext-portada {
    min-height: 560px;
  }
  .ext-portada__capa {
    padding: 100px 0 36px;
  }
  .ext-portada h1 {
    font-size: 1.75rem;
  }
  .ext-portada__lead {
    font-size: 1rem;
  }
  .ext .ext-titulo-centro,
  .ext-texto h2,
  .ext-llamada h2 {
    font-size: 1.5rem;
  }
  .ext-texto p,
  .ext-dia__cuerpo > p {
    text-align: left;
  }
  .ext-tarjetas {
    grid-template-columns: 1fr;
  }
  .ext .ext-tarjeta:hover {
    transform: none;
  }
}
