/* ——— Gutenberg esenciales ——— */
.is-style-text-subtitle {
  font-family: "Nexa", sans-serif;
  font-weight: 900 !important;
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: center; /* mantiene el alineado según WP */
  color: #5f4191; /* color por defecto */
  position: relative;
  display: inline-block; /* para que el ::before se posicione relativo al texto */
}

.is-style-text-subtitle::before {
  content: none !important;
}

/* Subtítulo con colores de Gutenberg */
.is-style-text-subtitle.has-accent-1-color {
  color: #00a657 !important; /* verde */
}
.is-style-text-subtitle.has-accent-2-color {
  color: #f57e25 !important; /* naranja */
}
.is-style-text-subtitle.has-accent-3-color {
  color: #5f4191 !important; /* morado */
}
.is-style-text-subtitle.has-accent-4-color {
  color: #0bb89b !important; /* turquesa */
}
.is-style-text-subtitle.has-accent-5-color {
  color: #5263a4 !important; /* azul */
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}
.wp-block-column {
  flex: 1;
  min-width: 0;
}
@media (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column;
  }
}

.wp-block-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 0.5rem;
}

.wp-block-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.wp-block-quote {
  border-left: 4px solid #5f4191;
  padding-left: 1rem;
  font-style: italic;
  color: #555;
  margin: 1.5rem 0;
}

.wp-block-heading {
  font-weight: 700;
  font-size: 2rem;
  margin: 1.5rem 0 1rem;
}
.wp-block-paragraph {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.has-small-font-size {
  font-size: 0.875rem !important;
  line-height: 1.4;
}
.has-medium-font-size {
  font-size: 1rem !important;
  line-height: 1.5;
}
.has-large-font-size {
  font-size: 1.25rem !important;
  line-height: 1.6;
}
.has-x-large-font-size {
  font-size: 1.5rem !important;
  line-height: 1.6;
}
.has-xx-large-font-size {
  font-size: 2rem !important;
  line-height: 1.2;
}
.has-huge-font-size {
  font-size: 3rem !important;
  line-height: 1.1;
}

.wp-block-video,
.wp-block-embed {
  margin: 1.5rem auto;
  max-width: 800px;
}
.wp-block-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
.wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 56.25%;
  height: 0;
}
.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper embed,
.wp-block-embed__wrapper object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.5rem;
}
@supports (aspect-ratio: 16/9) {
  .wp-block-embed__wrapper {
    padding-bottom: 0;
    height: auto;
  }
  .wp-block-embed__wrapper iframe,
  .wp-block-embed__wrapper embed,
  .wp-block-embed__wrapper object {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

.wp-element-caption {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.wp-content-render {
  --wp-mobile-scale: 0.9;
  --wp-mobile-scale-lg: 0.85;
}
.wp-content-render h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
}
.wp-content-render h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
}
.wp-content-render h3 {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.3;
}
.wp-content-render h4 {
  font-size: clamp(1.125rem, 2.8vw, 1.5rem);
  line-height: 1.35;
}
.wp-content-render h5 {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.4;
}
.wp-content-render h6 {
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  line-height: 1.45;
}
.wp-content-render p,
.wp-content-render li,
.wp-content-render .wp-block-paragraph {
  font-size: clamp(0.95rem, 2.4vw, 1.125rem);
  line-height: 1.7;
}
@media (max-width: 640px) {
  .wp-content-render p,
  .wp-content-render li,
  .wp-content-render .wp-block-paragraph {
    font-size: calc(1em * var(--wp-mobile-scale));
  }
  .wp-content-render .has-x-large-font-size,
  .wp-content-render .has-xx-large-font-size,
  .wp-content-render .has-huge-font-size {
    font-size: calc(1em * var(--wp-mobile-scale-lg)) !important;
  }
}

/* ——— Rail en fila (2 visibles), sin botones ——— */
.img-rail {
  width: 100%;
}
.rail-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow: hidden;
}
.rail-item {
  flex: 0 0 calc(50% - 0.25rem);
  aspect-ratio: 4/3;
  display: block;
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}
.rail-dots {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}
.rail-dots .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #e5e7eb;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.rail-dots .dot.active {
  background: #00a657;
  transform: scale(1.1);
}

/* ================================
     Botones
     ================================ */
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #fff;
  border-radius: 9999px; /* 👈 súper redondeado */
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer; /* 👈 cursor de mano */
}

/* Centrar todos los botones dentro de contenedores WP */
.wp-block-buttons {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  margin-top: 1.5rem;
}

/* accent-1 (verde #00A657) */
.has-accent-1-background-color {
  background-color: #00a657 !important;
}
.has-accent-1-background-color:hover {
  background-color: #5f4191 !important; /* hover → morado */
}

/* accent-2 (naranja #F57E25) */
.has-accent-2-background-color {
  background-color: #f57e25 !important;
}
.has-accent-2-background-color:hover {
  filter: brightness(90%);
}

/* accent-3 (morado #5F4191) */
.has-accent-3-background-color {
  background-color: #5f4191 !important;
}
.has-accent-3-background-color:hover {
  background-color: #00a657 !important; /* hover → verde */
}
