 /* COVER PEQUEÑO DEL SCROLL */
 
.relatos-cover-wrapper {
  padding: 20px 10px;
}



.relatos-slider p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    font-size: clamp(1.1rem, 1.1vw, 1.1rem);
}



.relatos-slide active p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    font-size: clamp(1.1rem, 1.1vw, 1.1rem);
}


.relatos-modal-content {
    max-width: 95%;
    margin: 0 auto;
}


.relatos-cover-card {
  width: 160px;
  height: 220px;
  background: #ffffff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  padding-bottom: 0;
 
}

.relatos-cover-card h3 {
  font-family: "Baskerville", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.3vw, 1.3rem);
  color: #0A3161;
  padding: 0;
 
}

.relatos-cover-card img {
  width: 100%;
  height: 130px;
  margin-bottom: 0;
  padding-bottom: 0;
  position: relative;
  

  
}

/* MODAL FULL SCREEN */
.relatos-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  padding: 16px;
}

.relatos-modal.active {
  display: flex;
}

.relatos-modal-content {
  background: #ffffff;
  border-radius: 28px;
  max-width: 600px;
  width: 100%;
  height: 92vh;
  padding: 18px 18px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

/* Botón cerrar (X) */
.relatos-close {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* SLIDER */
.relatos-slider {
  margin-top: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Slides */
.relatos-slide {
  display: none;
  flex-direction: column;
  align-items: center;
}

.relatos-slide.active {
  display: flex;
}

.relatos-slide img {
  width: 100%;
  height: 350px;
  margin-top: 10px;
  
  object-fit: cover;
}

.relatos-slide h2 {
  font-family: "Baskerville", "Times New Roman", serif;
  font-size: 1.3rem;
  color: #0A3161;
  text-align: center;
  margin: 18px 12px 8px;
}

.relatos-slide p {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  margin: 0 12px 12px;
  text-align: left;
}


/* Botón leer más */
.relatos-toggle {
  margin-top: 10px;
  padding: 6px 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #0A3161;
  cursor: pointer;
  border: 1px solid #333;
  padding: 5px 20px;
  border-radius: 6px;
}

/* Área desplegable */
.relatos-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  margin-top: 8px;
  color: #333;
}

/* Cuando está abierto */
.relatos-extra.open {
  max-height: 400px; /* suficiente para buen texto */
}




/* Flechas laterales */
.relatos-arrow {
  position: absolute;
  top: 30%;              /* Altura aproximada centro de la imagen */
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #0A3161;
  color: #ff0000;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.relatos-prev {
  left: 8px;
}

.relatos-next {
  right: 8px;
}

/* Dots */
.relatos-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 12px;
}

.relatos-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d7dde4;
  cursor: pointer;
  
}

.relatos-dot.active {
  background: #0A3161;
}

/* Botón final */
.relatos-cta {
  display: block;
  margin: 80px auto 0;
  padding: 12px 30px;
  border-radius: 999px;
  background: #0A3161;
  color: #ffffff;
  border: none;
  text-decoration: none;
  font-family: "Baskerville", "Times New Roman", serif;
  font-size: 1rem;
  text-align: center;
  
  
}


    
    /*boton menu 3 puntos */
    
    /* Botón de tres puntos (arriba derecha del modal) */
.relatos-menu-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(10, 49, 97, 0.85); /* Azul marca con transparencia */
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 50;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.relatos-menu-toggle:hover,
.relatos-menu-toggle:focus {
    outline: none;
    background: #0A3161;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

/* Menú flotante de opciones */
.relatos-menu {
    position: absolute;
    top: 52px;      /* un poco debajo de los tres puntos */
    right: 16px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    padding: 6px 0;
    min-width: 180px;
    display: none;  /* oculto por defecto */
    flex-direction: column;
    z-index: 60;
}

/* Clase que muestra el menú */
.relatos-menu.is-active {
    display: flex;
}

/* Botones internos del menú */
.relatos-menu button {
    background: transparent;
    border: none;
    padding: 9px 14px;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #0A3161;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.relatos-menu button:hover {
    background: #f0f3f8;
    color: #062040;
}

/* En pantallas pequeñas asegúrate de que el menú no se salga */
@media (max-width: 600px) {
    
    
    .relatos-cover-card{
        
        width: 150px;
        gap: 0;
        padding-left: 0;
        margin-left: 0;
        padding-bottom: 0 ;
    }
    
    
    
    
    
    .relatos-menu {
        right: 10px;
        min-width: 160px;
    }

    .relatos-menu-toggle {
        top: 8px;
        right: 8px;
    }

  .relatos-modal-content {
    height: 90vh;
    width: 100%;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }
  
  
  .relatos-modal-content img {
    width: 100%;
    height: auto;
    margin-top: 30px;

}

  
  

  .relatos-slide img {
    height: 250px;
    margin-top: 10px;
  }
  
  
  .relatos-cover-card h3{
      line-height: 1.7;
  }
  
  
}
   
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    