.page-gradient,
.login-page,
.recovery-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  max-width: 400px;
  width: 100%;
  padding: 20px;
}

.login-card {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.recovery-container {
  max-width: 450px;
  width: 100%;
  padding: 20px;
}

.recovery-card {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.recovery-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.admin-mensajes-page .mensaje-card {
  margin-bottom: 15px;
  transition: transform 0.2s;
}

.admin-mensajes-page .mensaje-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admin-mensajes-page .mensaje-texto {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.admin-mensajes-page .fecha-mensaje,
.admin-mensajes-page .info-likes {
  font-size: 0.9em;
  color: #6c757d;
}

.mensaje-foto-thumb {
  max-width: 80px;
  max-height: 80px;
}

.mensaje-foto-preview {
  max-width: 120px;
  max-height: 120px;
}

.btn-frase1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 18px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.btn-group-acciones {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-accion {
  padding: 0.55rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-width: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-accion i {
  margin-right: 0.4rem;
  font-size: 1.1em;
}

.btn-mensajes {
  position: relative;
  overflow: visible;
}

.btn-frase1 .badge-unread {
  position: absolute;
  top: -14px;
  right: -14px;
  min-width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background-color: #dc3545;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
  z-index: 2;
  pointer-events: none;
}

.btn-frase1 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.colFrase {
  display: flex;
  align-items: stretch;
}

.colFrase > a.btn-frase1,
.colFrase form {
  display: flex;
  flex: 1 1 auto;
}

.colFrase form .btn-frase1 {
  flex: 1 1 auto;
}

.autor-con-icono {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sombra-suave {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.bienvenida-avatar img {
  max-width: 150px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.bienvenida-avatar-placeholder {
  width: 150px;
  height: 120px;
  border-radius: 20px;
  border: 2px dashed #cbd5f5;
  color: #6c7dd6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.rounded-xl {
  border-radius: 20px !important;
}

.avatar-preview-admin {
  max-width: 150px;
  max-height: 120px;
  border-radius: 12px;
}

.badge-reaccion {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
}

.badge-reaccion .emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.badge-reaccion i {
  font-size: 1.6rem;
}

.paginacion-panel {
  gap: 0.5rem;
}

.paginacion-panel .page-link {
  border-radius: 30px;
  margin: 0 0.25rem;
  background-color: #ffcc33;
  color: #1d1d1d;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border: 3px solid #e6b800;
  min-width: 3.2rem;
  text-align: center;
}

.paginacion-panel .page-link:hover,
.paginacion-panel .page-link:focus {
  background-color: #ffd84d;
  color: #000;
  border-color: #e0b100;
}

.paginacion-panel .page-item.active .page-link,
.paginacion-panel .page-link.dia-activo {
  background-color: #667eea;
  border-color: #5568d3;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.paginacion-panel .page-item.disabled .page-link {
  background-color: #ffeaa0;
  color: #777;
  border-color: #f7d770;
  cursor: not-allowed;
  opacity: 0.8;
}

.paginacion-panel .paginacion-nav {
  padding: 0.65rem 1.35rem;
  min-width: 3.2rem;
}

.paginacion-panel .triangulo-nav {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  color: #1d1d1d;
  font-weight: 700;
  background: none !important;
  border: none !important;
}

.badge-estado {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.badge-estado i {
  font-size: 1.5rem;
}

.btn-frase1 i {
  font-size: 2.4rem;
  margin-right: 0.75rem;
}

.edit-fotos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mensaje-foto-item {
  text-align: center;
}

.admin-usuarios-page .badge-rol-administrador {
  background-color: #dc3545;
  color: #fff;
}

.admin-usuarios-page .badge-rol-editor {
  background-color: #17a2b8;
  color: #fff;
}

.admin-dispositivos-page .badge-android {
  font-family: monospace;
  font-size: 0.85rem;
}

.leer-mensajes-page {
  background: #f5f7fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
}

.leer-mensajes-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.leer-mensajes-header {
  text-align: center;
  margin-bottom: 2rem;
}

.btn-galeria-flotante {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.btn-galeria-flotante i {
  font-size: 2.2rem;
}

.btn-galeria-flotante:hover {
  transform: translateY(-2px);
}
.btn-galeria-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-galeria-contenido small {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.leer-mensajes-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.volver-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.nav-botones-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.nav-botones-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.nav-boton-col {
  display: flex;
}

.btn-nav-dia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 18px;
}

.btn-nav-dia i:last-child {
  margin-right: 0;
  margin-left: 0.75rem;
}

.nav-botones-horizontal.solo-home {
  margin-bottom: 0.75rem;
}

.day-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-day {
  background: #667eea;
  border: none;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-day:hover,
.btn-day:focus {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3);
}

.day-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
}

.numero-pagina-lista {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  align-items: center;
}

.numero-pagina-lista .page-link {
  border-radius: 36px;
  margin: 0 0.4rem;
  background-color: #ffcc33;
  color: #1d1d1d;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border: 3px solid #e6b800;
  min-width: 4rem;
  text-align: center;
}

.numero-pagina-lista .page-link:hover,
.numero-pagina-lista .page-link:focus {
  background-color: #ffd84d;
  color: #000;
  border-color: #e0b100;
}

.numero-pagina-lista .active .page-link,
.numero-pagina-lista .page-link.dia-activo {
  background-color: #667eea;
  border-color: #5568d3;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.numero-pagina-lista .page-item.disabled .page-link {
  background-color: #ffeaa0;
  color: #777;
  border-color: #f7d770;
  cursor: not-allowed;
  opacity: 0.8;
}

.numero-pagina-lista .paginacion-nav {
  padding: 0.9rem 1.8rem;
  min-width: 4rem;
  background-color: #ffcc33;
  color: #1d1d1d;
  border: 3px solid #e6b800;
}

.numero-pagina-lista .paginacion-nav:hover,
.numero-pagina-lista .paginacion-nav:focus {
  background-color: #ffd84d;
  color: #000;
  border-color: #e0b100;
}

.numero-pagina-lista .triangulo-nav {
  font-size: 1.8rem;
  line-height: 1;
  display: inline-block;
  color: #1d1d1d;
  font-weight: 700;
  background: none !important;
  border: none !important;
}

.mensaje-lectura {
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px rgba(10, 31, 68, 0.08);
}

.mensaje-lectura header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.4rem;
  color: #495057;
}

.autor-avatar {
  width: auto;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 14px rgba(28, 31, 39, 0.25);
  flex-shrink: 0;
}

.autor-avatar img {
  display: block;
}

.mensaje-autor-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.mensaje-lectura header .autor {
  font-weight: 700;
  font-size: 1.4rem;
  color: #e70ae0;
  text-transform: uppercase;
}

.mensaje-lectura header .hora {
  font-size: 1.1rem;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
}

.mensaje-lectura-texto {
  font-size: 1.8rem;
  line-height: 1.5;
  color: #1c1f27;
  margin-bottom: 1.4rem;
}

.mensaje-lectura-fotos img {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 0 auto 1rem;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.mensaje-lectura-fotos img + img {
  margin-top: 1rem;
}

.btn-like-large {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  border: 2px solid transparent;
  background: #f4f4f5;
  color: #1f232d;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.reacciones-grupo {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.2rem;
}

.btn-like-large .emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.btn-like-large.reaccion-corazon {
  border-color: #54b26c;
  background: #e9f7ec;
  color: #1f5131;
}

.btn-like-large.reaccion-corazon.liked {
  background: #54b26c;
  color: #fff;
  box-shadow: 0 10px 24px rgba(84, 178, 108, 0.4);
}

.btn-like-large.reaccion-beso {
  border-color: #fa5b7d;
  background: #ffe9ef;
  color: #7f132b;
}

.btn-like-large.reaccion-beso.liked {
  background: #fa5b7d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(250, 91, 125, 0.4);
}

.btn-like-large.reaccion-risa {
  border-color: #ffca2c;
  background: #fff8df;
  color: #6a4b00;
}

.btn-like-large.reaccion-risa.liked {
  background: #ffca2c;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 202, 44, 0.4);
}

.btn-like-large:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(84, 178, 108, 0.3);
}

.btn-like-large:hover {
  transform: translateY(-1px);
}

.like-count {
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
}

.leer-mensajes-footer {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  color: #6c757d;
  font-size: 1.1rem;
}

.youtube-embed {
  max-width: 800px;      /* límite en pantallas grandes */
  margin: 20px auto;     /* centrado horizontal */
}

.youtube-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;  /* magia moderna ✨ */
  border: 0;
  display: block;
  min-height: 550px;
}

.boton-rtve{
  display:flex;
  align-items:center;
  justify-content:center;

  width:50%;
  min-height:100px;

  margin:20px auto;
  padding:15px 25px;

  background:#155724;
  color:#fff;

  text-decoration:none;
  font-size:22px;
  font-weight:bold;

  border-radius:12px;

  transition:background 0.2s ease;
}

/* Hover */
.boton-rtve:hover{
  background:#b9151b;
  color:#fff;
  text-decoration:none;
}

@media (max-width: 768px) {
  .nav-botones-index {
    margin-bottom: 1rem;
  }

  .nav-boton-col {
    width: 100%;
  }

  .leer-mensajes-container {
    padding: 1.5rem 1rem 3rem;
  }

  .leer-mensajes-header h1 {
    font-size: 2rem;
  }

  .volver-home {
    width: 100%;
  }

  .nav-botones-horizontal {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .btn-nav-dia {
    width: 100%;
  }

  .nav-botones-horizontal.solo-home {
    margin-bottom: 1rem;
  }

  .btn-group-acciones {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-accion {
    width: 100%;
    font-size: 1.1rem;
  }

  .mensaje-lectura {
    padding: 1.4rem;
  }

  .autor-avatar {
    width: auto;
    height: auto;
  }

  .mensaje-lectura-texto {
    font-size: 1.6rem;
  }

  .btn-like-large {
    width: 100%;
    justify-content: center;
  }

  .btn-galeria-flotante {
    top: auto;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 5rem;
    height: 5rem;
  }

  .btn-galeria-contenido small {
    font-size: 0.8rem;
  }

  .leer-mensajes-footer {
    padding: 2rem 0 1rem;
  }
}
@media (max-width: 768px) {
  .admin-mensajes-page .table-responsive {
    overflow-x: visible;
  }

  .admin-mensajes-page table.table {
    border: 0;
  }

  .admin-mensajes-page table.table thead {
    display: none;
  }

  .admin-mensajes-page table.table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 0.9rem;
    background: #fff;
  }

  .admin-mensajes-page table.table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none !important;
    padding: 0.35rem 0;
  }

  .admin-mensajes-page table.table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 0.75rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #6c757d;
  }

  .admin-mensajes-page table.table tbody td[data-label="Foto"] {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-mensajes-page table.table tbody td[data-label="Acciones"] {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .admin-mensajes-page table.table tbody td[data-label="Acciones"]::before {
    display: none;
  }

  .admin-mensajes-page table.table tbody td[data-label="Autor"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .admin-mensajes-page table.table tbody td[data-label="Autor"]::before {
    margin-right: 0;
  }

  .admin-mensajes-page table.table tbody td[data-label="Autor"] i {
    margin-right: 0.4rem;
  }

  .admin-mensajes-page .btn-group {
    display: inline-flex;
    width: 100%;
  }

  .admin-mensajes-page .btn-group .btn-accion {
    flex: 1 1 auto;
  }
}

#selectsFrase {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

