/* Contenedor general */
#fp-form-post {

    margin: 20px auto;
    background: #f9f9f9;
    padding: 10px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: sans-serif;
}

#fp-form-post input[type="text"],
#fp-form-post textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 10px;
}

#fp-form-post button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

#fp-form-post button:hover {
    background: #005f8c;
}

#fp-insertar-iframe{
  color:white !important;
}


/* Mensaje de resultado */
#fp-mensaje p {
  margin-top: 1rem;
  font-weight: bold;
}

/* Estilo para el label de imagen */
#fp-form-post label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

/* Responsivo */
@media (max-width: 768px) {
  #fp-form-post {
    padding: 1.5rem;
  }

  #fp-form-post button[type="submit"] {
    width: 100%;
  }
}

/* Fondo modal */
#fp-modal-fondo {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start; /* para top */
  justify-content: center;
  padding-top: 10vh; /* top aprox 25% */
  overflow-y: auto;
}

/* Contenido modal */
#fp-modal-contenido {
  background-color: #fff;
  /*padding: 2rem 2.5rem 5rem; /* más espacio inferior para botón */
  width: 95%;
  max-width: 960px;
  max-height: 81vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Interior con scroll */
#fp-modal-formulario-interno {
 /* padding: 1.5rem;*/
  overflow-y: auto;
  flex-grow: 1;
  min-height: 200px;
}

/* Botón cerrar */
#fp-modal-cerrar {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

/* Botón guardar al pie */
#fp-form-post button[type="submit"] {
   position: sticky;
  bottom: 20px;
  background: #0073aa;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  z-index: 10;
  display: block;
  margin: 2rem auto 0;
}
.mce-menubar .mce-menubtn button span{
  color:white !important;
}

i.mce-caret{
border-top: 6px solid white !important;
}

#fp_contenido-tmce, #fp_contenido-html{
 color:#595959 !important;
 background-color: transparent !important;
  
}
/* Estilos generales del form */
#fp-form-post input[type="text"],
#fp-form-post textarea,
#fp-form-post input[type="file"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 1rem;
  font-size: 14px;
}

#fp-form-post label {
  font-weight: bold;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    #fp-modal-contenido {
    max-width: 95%;
    padding: 1.5rem 1.5rem 5rem;
  }

  #fp-form-post input[type="text"],
  #fp-form-post textarea {
    font-size: 16px;
  }

  #fp-form-post button[type="submit"] {
    width: 100%;
  }
}

.fp-post-contenido iframe {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .fp-post-contenido iframe {
    max-width: 100%;
  }
}

.fp-post-contenido img {
  max-width: 200px !important;
  height: auto;
  cursor: zoom-in;
  transition: 0.2s ease;
  border-radius: 6px;
  margin: 0.5rem 0;
}

/* CSS Modal*/

#fp-img-modal {
  position: fixed;
  top: 0; /* margen superior para que no quede debajo del menú */
  left: 0;
  width: 100%;
  height: 100%; /* resta el espacio superior */
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 20px;
}

#fp-img-modal img {
  max-width: 90%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  object-fit: contain;
}

#fp-img-cerrar {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 32px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  z-index: 100000;
}




/* Contenedor de cada post */
.fp-post-item {
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.3s ease;
}

.fp-post-item:hover {
  box-shadow: 0 8px 16px rgb(0 0 0 / 0.1);
}

/* Título del post */
.fp-post-item h3 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 12px;
}

/* Contenido del post */
.fp-post-contenido {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 15px;
}

/* Botones: Editar y Nuevo Post */
button#fp-abrir-nuevo-post,
.fp-editar-post {
  background: #2d89ef;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgb(45 137 239 / 0.5);
  user-select: none;
  margin-top: 8px;
  display: inline-block;
}

button#fp-abrir-nuevo-post{
    margin-bottom: 26px;
}
button#fp-abrir-nuevo-post:hover,
.fp-editar-post:hover {
  background-color: #1763c6;
  box-shadow: 0 4px 10px rgb(23 99 198 / 0.7);
}

/* Alineación botón editar a la derecha del post */
.fp-editar-post {
  float: right;
}

/* Limpieza de floats */
.fp-post-item::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .fp-post-item {
    padding: 15px;
  }

  .fp-post-item h3 {
    font-size: 1.3rem;
  }

  button#fp-abrir-nuevo-post,
  .fp-editar-post {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}


/* Paneles principales */

/* Contenedor principal en fila */
.fp-panel-contenedor {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
    flex-wrap: nowrap;
}

/* Panel del editor (ahora a la izquierda) */
.fp-panel-izquierdo {
    flex: 1;
    min-width: 300px;
}

/* Panel de herramientas (ahora a la derecha) */
.fp-panel-derecho {
    flex: 0 0 240px;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    background: #f5f5f5;
    padding: 154px 15px 15px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 2;
    margin-top: 34px;
    height: 458px;
    display: inline-table;
}

/* Estilo general del input de título */
.fp-panel-izquierdo input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Tabs 
.fp-tabs-principales {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
}

.fp-tab-principal {
    padding: 10px 20px;
    cursor: pointer;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
}

.fp-tab-principal.active {
    background: white;
    font-weight: bold;
    border-bottom: 2px solid white;
}

.fp-tab-panel {
    display: none;
    padding: 0 15px 15px 15px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
}

.fp-tab-panel.active {
    display: block;
}*/


/* TABS - ESTILO GENERAL */
.fp-tabs-principales {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
    scrollbar-width: none; /* Oculta scroll en Firefox */
}

.fp-tabs-principales::-webkit-scrollbar {
    display: none; /* Oculta scroll en Chrome/Safari */
}

.fp-tab-principal {
    padding: 10px 15px;
    white-space: nowrap;
    cursor: pointer;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    flex-shrink: 0;
    font-size: 14px;
    transition: background 0.2s;
}

.fp-tab-principal:hover {
    background: #e8e8e8;
}

.fp-tab-principal.active {
    background: white;
    font-weight: bold;
    border-bottom: 2px solid white;
}

.fp-tab-panel {
    display: none;
    padding: 0 15px 15px 15px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
}

.fp-tab-panel.active {
    display: block;
}

/* RESPONSIVE AJUSTES */
@media (max-width: 600px) {
    .fp-tab-principal {
        padding: 8px 12px;
        font-size: 13px;
    }
}




/* Preview de imágenes */
#fp-preview-imagenes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

#fp-preview-imagenes img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Título separado del panel de contenido */
.fp-titulo-wrapper {
    margin-bottom: 15px;
}

.fp-titulo-wrapper input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#fp-insertar-imagenes{
  color:white !important;
}


/* Select con filtro con año */
#fp-filtro-anio {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: sans-serif;
}

#fp-filtro-anio label {
  font-weight: bold;
  color: #333;
}

#fp-filtro-anio select {
  padding: 0.4rem 0.8rem;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  background-color: #fffef2;
  color: #333;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#fp-filtro-anio select:hover {
  background-color: #fff9d6;
  border-color: #e6b800;
}

.mce-toolbar.mce-last{
display: none;
}

/*Pestaña mapa*/
.fp-mapa-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
    flex-wrap: wrap;
}

.fp-formulario-punto {
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-leaflet-mapa {
    flex: 2 1 500px;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#fp_adjunto_agregar{
  color: white !important;
}



.fp-paginacion {
  text-align: center;
  margin-top: 20px;
}

.fp-pagina-btn {
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  color: #333;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.fp-pagina-btn:hover {
  background-color: #e0e0e0;
}

.fp-pagina-btn.activo {
  background-color: #2b5fc0;
  color: #fff;
  border-color: #2b5fc0;
  font-weight: bold;
}



