/* CSS Document — noticias2 */

/* ── Corrección conflicto servidor ──────────────────────────────────────────
   La barra del servidor ocupa el top del viewport. Ponemos nuestra navbar en
   flujo normal (position:relative) para que sea visible debajo de ella.
   El pie necesita fondo oscuro explícito porque el servidor sobreescribe los
   estilos de Mobirise basados en cid-* con menor especificidad.
─────────────────────────────────────────────────────────────────────────── */
section.menu nav.navbar,
section.menu nav.navbar-dropdown {
  position: relative !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e6e6e6 !important;
  min-height: 60px !important;
}

section.footer3 {
  background-color: #232323 !important;
  padding: 2rem 0 !important;
}

section.footer3,
section.footer3 p,
section.footer3 span {
  color: #ffffff !important;
}

section.footer3 a.text-primary {
  color: #6592e6 !important;
}

/* ── Override display-* sizes (el servidor sobreescribe mbr-additional.css) */
.display-1 { font-size: 4.6rem   !important; font-family: 'Jost', sans-serif; }
.display-2 { font-size: 3rem     !important; font-family: 'Jost', sans-serif; }
.display-4 { font-size: 1.1rem   !important; font-family: 'Jost', sans-serif; }
.display-5 { font-size: 2.2rem   !important; font-family: 'Jost', sans-serif; }
.display-7 { font-size: 1.2rem   !important; font-family: 'Jost', sans-serif; }

/* ── Colores de texto */
.text-black  { color: #232323 !important; }
.text-primary { color: #6592e6 !important; }


/* ── Estilos propios ─────────────────────────────────────────────────────── */

input[type="text"], input[type="password"] {
    font-family: Consolas, "Andale Mono", "Lucida Console", Monaco, "Courier New", monospace;
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 4px 8px;
    border: 1px solid #ccc;
}

select {
    font-family: Consolas, "Andale Mono", "Lucida Console", Monaco, "Courier New", monospace;
    border-radius: 6px;
    font-size: 0.85rem;
}

#submit, .btn-naranja {
    font-family: Cambria, "Hoefler Text", Times, "Times New Roman", serif;
    color: #FFFFFF;
    padding: 7px 14px;
    background: #E84D20;
    border-radius: 10px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

#submit:hover, .btn-naranja:hover {
    background: #fff;
    color: #E84D20;
    border: 1px solid #E84D20;
    text-decoration: none;
}

.btn-gris {
    font-family: Cambria, "Hoefler Text", Times, "Times New Roman", serif;
    color: #FFFFFF;
    padding: 7px 14px;
    background: #666;
    border-radius: 10px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-gris:hover {
    background: #fff;
    color: #666;
    border: 1px solid #666;
    text-decoration: none;
}

/* ── Necesarios para Mobirise ─────────────────────────────────────────────── */
.mbr-text  { font-style: normal; line-height: 1.7; }
.mbr-white { color: #ffffff; }
.align-center { text-align: center; }

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-4, .display-5, .display-7,
span, p, a {
  line-height: 1;
  word-break: break-word;
  word-wrap: break-word;
  font-weight: 400;
}

/* ── Tabla de lista (gestion.php) ────────────────────────────────────────── */
table.avisos {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  border-radius: 6px;
  overflow: hidden;
}

table.avisos thead th {
  background: #f0f0f0;
  color: #444;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 2px solid #ddd;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.avisos td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  vertical-align: middle;
}

table.avisos tbody tr:last-child td { border-bottom: none; }
table.avisos tbody tr:hover td { background: #fafafa; }

/* ── Tabla de ficha (edicion.php) ────────────────────────────────────────── */
table.form-ficha {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

table.form-ficha th,
table.form-ficha td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #ececec;
  vertical-align: top;
  color: #333;
}

table.form-ficha th {
  width: 18%;
  font-weight: 600;
  color: #777;
  text-align: right;
  white-space: nowrap;
  padding-right: 1rem;
  border-right: 2px solid #E84D20;
  background: transparent;
}

table.form-ficha tr:last-child th,
table.form-ficha tr:last-child td { border-bottom: none; }

table.form-ficha input[type="text"],
table.form-ficha input[type="date"] { width: 100%; box-sizing: border-box; }

.thumb-sm  { width: 160px; height: 100px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; display: block; }
.link-ruta { font-size: 0.75rem; color: #888; text-decoration: none; word-break: break-all; }
.link-ruta:hover { color: #E84D20; text-decoration: underline; }

/* ── Tarjetas de formulario ──────────────────────────────────────────────── */
.aviso-panel {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.aviso-panel h4 {
  color: #E84D20;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.aviso-panel label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  display: block;
  margin-top: 0.5rem;
}

.aviso-panel input[type="text"],
.aviso-panel input[type="file"] {
  width: 100%;
  margin-top: 2px;
}

.fecha-campo {
  display: inline-block;
  margin-right: 0.5rem;
}
