/* ===================== GENERAL ===================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

body {
    font-family: 'Sora', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

/* ===================== HEADER ===================== */
header {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.header-left {
    font-weight: 700;
    font-size: 1.5rem;
}

.header-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.header-right a:hover {
    opacity: 0.8;
}

/* ===================== DASHBOARD ===================== */
h1 {
    font-size: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-item {
    background-color: #000;
    color: #fff;
    text-decoration: none;
    padding: 2rem;
    border-radius: 6px;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin: 20px;
    box-shadow: 0px 2px 8px 0px #00000082;
}

.card-item:hover {
    background-color: #5d5d5d;
}

.g-recaptcha {
    margin-bottom: 20px;
}

/* ===================== FOOTER ===================== */
footer {
    background-color: #000;
    color: #fff;
    padding: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top:250px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logos img {
    height: 50px;
}

.footer-direccion p {
    margin: 0;
    font-weight: 400;
}

.footer-divider {
    margin: 2rem 0 1rem;
    border: none;
    border-top: 1px solid #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.footer-bottom p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* ===================== LOGIN / SOLICITUD FORMULARIOS ===================== */
.formulario-login {
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
    height: auto;
}

.formulario-login .container1 {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 350px;
    padding: 30px;
    margin: 10px;
}

.formulario-login .container2 {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 560px;
    padding: 30px;
    margin: 10px;
}

.formulario-login h2 {
    text-align: center;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.formulario-login label {
    display: block;
    margin: 10px 0 4px;
    font-size: 0.95rem;
    color: #555;
}

.formulario-login input,
.formulario-login textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
}

.formulario-login button {
    width: 100%;
    padding: 12px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#login-form button:hover, #btnEnviar:hover{
    background-color: #333;
}

#btnEnviar {width:30%;}

.formulario-login .mensaje {
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.formulario-login .exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.formulario-login .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.formulario-login .container p {
    text-align: center;
    margin: 10px 0;
    font-size: 0.9rem;
}

.formulario-login .regresar-btn {
    background: none;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: left;
    padding: 0;
    border: none;
    cursor: pointer;
}

.formulario-login .regresar-btn:hover {
    text-decoration: underline;
}

/* ===================== FORMULARIO DE SOLICITUD EN DOS COLUMNAS ===================== */
.formulario-login .formulario-solicitud-columns {
      display: flex;
    flex-direction: column;
    align-items: stretch;
}

.formulario-login .columna-izquierda,
.formulario-login .columna-derecha {
    flex: 1 1 45%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.solicitud-form form {width: 780px;}

/* ===================== DESCARGAR APP ===================== */
body.descargar-app {
    background-color: #f9f9f9;
    font-family: 'Sora', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

.descargar-app .container {
    max-width: 800px;
    background-color: #fff;
    border-radius: 10px;
    margin: 3rem auto;
    padding: 2.5rem;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.descargar-app h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #111;
}

.descargar-app p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.descargar-app strong {
    font-weight: 600;
}

.descargar-app ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.descargar-app li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.descargar-app code {
    background-color: #eee;
    padding: 2px 6px;
    font-size: 0.9rem;
    border-radius: 4px;
    font-family: monospace;
}

.descargar-app .button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.descargar-app .button:hover {
    background-color: #333;
}

/* Botón de regresar en páginas internas */
.regresar-btn2 {
    background: none;
    border: none;
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 1rem 2rem;
    font-weight: 500;
}

.regresar-btn2:hover {
    text-decoration: underline;
}

/* ===================== IMÁGENES SIMILARES ===================== */
.pagina-imagenes-similares {
    font-family: 'Sora', sans-serif;
    background-color: #fff;
    padding: 2rem;
    color: #333;
}

.similares-container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #000;
    text-decoration: none;
}

.back-button:hover {
    text-decoration: underline;
}

.directorio-form {
    margin-bottom: 2rem;
}

.directorio-form select,
.directorio-form input[type="submit"] {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.bloque-imagen {
    margin-bottom: 2rem;
}

.bloque-imagen img {
    max-width: 300px;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.imagen-form {
    display: inline-block;
    margin-right: 10px;
}

.imagen-form input[type="submit"] {
    background-color: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.imagen-form input[type="submit"]:hover {
    background-color: #444;
}

/* ===================== IMÁGENES SIMILARES ===================== */
.pagina-similares {
    font-family: 'Sora', sans-serif;
    background-color: #f9f9f9;
}

.regresar-link {
    display: inline-block;
    margin: 1rem 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.regresar-link:hover {
    text-decoration: underline;
}

.selector-directorio {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.grid-imagenes {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.imagen-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 220px;
    text-align: left;
}

.imagen-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}


.imagen-card p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #333;
}
.imagen-card input[type="submit"] {
    width: 100%;
    padding: 8px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 5px;
}

.imagen-card input[type="submit"]:hover {
    background-color: #444;
}

.similares-contenido{padding-right: 2rem;padding-left: 2rem; margin-bottom: 2rem;text-align: center;}

.imagen-card input[name="delete"] {
    background-color: #d9534f;
    color: #fff;
}

.imagen-card input[name="delete"]:hover {
    background-color: #c9302c;
}

.imagen-card input[name="ignore"] {
    background-color: #666;
    color: #fff;
}

.imagen-card input[name="ignore"]:hover {
    background-color: #444;
}
/* ===================== ESTILO DE SELECTOR Y BOTÓN DE FORMULARIO ===================== */
.selector-directorio select {
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Sora', sans-serif;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.selector-directorio input[type="submit"] {
    padding: 0.6rem 1rem;
    background-color: #000;
    color: #fff;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
}

.selector-directorio input[type="submit"]:hover {
    background-color: #444;
}

/* ===================== ESTILO DE CARDS ===================== */
.imagen-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===================== CONTENEDOR DE BOTONES ===================== */
.acciones-botones {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.acciones-botones form,
.acciones-botones a {
    flex: 1;
}

.descargar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* ===================== BOTONES (ESTILO GENERAL) ===================== */
.acciones-botones input[type="submit"],
.btn-descargar {
    color: #000000;
    display: inline-block;
    margin-top: 10px;
        text-decoration: none;
}

/* ===================== BOTÓN BORRAR ===================== */
.acciones-botones .btn-rojo {
    background-color: #d9534f;
    color: #fff;
}

.acciones-botones .btn-rojo:hover {
    background-color: #c9302c;
}

/* ===================== EDITOR DE TABLA ===================== */
.editor-tabla{
    font-family: 'Sora', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.editor-tabla h2 {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.editor-tabla .container-fluid {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
}

.editor-tabla .form-select,
.editor-tabla .btn {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
}

.editor-tabla .btn-primary {
    background-color: #000;
    border: none;
}

.editor-tabla .btn-primary:hover {
    background-color: #333;
}

.editor-tabla .btn-light {
    background-color: #eee;
    color: #000;
    border: none;
}

.editor-tabla .btn-light:hover {
    background-color: #ccc;
}

.editor-tabla #hot {
    margin-top: 2rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.editor-tabla .header-left {
    font-weight: 700;
    font-size: 1.5rem;
}

.editor-tabla .header-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.editor-tabla .header-right a:hover {
    opacity: 0.8;
}

.editor-tabla footer {
    background-color: #000;
    color: #fff;
    padding: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 120px;
}

.editor-tabla .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.editor-tabla .footer-logos img {
    height: 50px;
}

.editor-tabla .footer-divider {
    margin: 2rem 0 1rem;
    border: none;
    border-top: 1px solid #fff;
}

.editor-tabla .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.editor-tabla .footer-bottom p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* ===================== VISUALIZADOR DE TABLAS ===================== */
.visualizador-tabla {
    font-family: 'Sora', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding-bottom: 2rem;
}

.visualizador-tabla h2 {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.visualizador-tabla .container-fluid {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
}

.visualizador-tabla .form-select,
.visualizador-tabla .btn {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
}

.visualizador-tabla .btn-primary {
    background-color: #000;
    border: none;
}

.visualizador-tabla .btn-primary:hover {
    background-color: #333;
}

.visualizador-tabla #hot {
    margin-top: 2rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

/* Reutilización de header y footer */
.visualizador-tabla header {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.visualizador-tabla .header-left {
    font-weight: 700;
    font-size: 1.5rem;
}

.visualizador-tabla .header-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.visualizador-tabla .header-right a:hover {
    opacity: 0.8;
}

.visualizador-tabla footer {
    background-color: #000;
    color: #fff;
    padding: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 120px;
}

.visualizador-tabla .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.visualizador-tabla .footer-logos img {
    height: 50px;
}

.visualizador-tabla .footer-divider {
    margin: 2rem 0 1rem;
    border: none;
    border-top: 1px solid #fff;
}

.visualizador-tabla .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.visualizador-tabla .footer-bottom p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* ===================== INVENTARIO VISUAL ===================== */
body.inventario-mapi {
    font-family: 'Sora', sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}

.inventario-mapi h1, .editarBody h1 {
    font-size: 45px;
    text-align: left;
    margin-top: 10px;
    margin-left: 80px;
    margin-bottom: 0px;
}
.inventario-galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    padding-right: 80px;
    padding-left: 40px;
}

.inventario-item {
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: left;
    transition: transform 0.2s;
    border-radius: 0;
    flex: 1 1 calc(20% - 2rem);
}

.inventario-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.inventario-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* relación más rectangular */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.inventario-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.inventario-nombre {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.5rem 0 0.25rem;
}

.inventario-ampliar {
    display: inline-block;
    font-size: 0.9rem;
    color: #000;
    text-decoration: none;
    margin-top: 0.25rem;
}

.filtros-inventario {
    display: flex;
    flex-direction: column;
    padding-left: 80px;
    align-items: flex-start;
}

.inventario-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 30px;
}

.filtros-inventario select {
      max-width: 300px;
    padding: 10px;
    font-family: 'Sora', sans-serif;
    border: none;
    background-color: #ebebeb;
}

.filtros-inventario label {
    margin-bottom: 5px;
    margin-top: 20px;
}
/* ----- MODAL INVENTARIO MAPI - HORIZONTAL ----- */

/* FONDO DEL MODAL */
#modal-ampliado {
  position: fixed; z-index: 9999; inset: 0;
  display: none; align-items: center; justify-content: center;
}
#modal-ampliado2 {
  position: fixed; z-index: 9999; inset: 0;
  display: none; align-items: center; justify-content: center;
}
.modal-fondo {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7); cursor: pointer;
}

.inventario-mapi h5, .editarBody h5{font-weight: 300; margin-bottom: 0px; text-align: left; margin-left: 80px; margin-top:60px;font-size: 16px;}

/* CONTENEDOR DEL MODAL */
.modal-contenido {
position: relative;
   position: relative;
    background: #fff;
    color: #111;
    min-width: 80%;
    max-width: 80%;
    max-height: 92vh;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    padding: 45px 25px 45px 25px;
    justify-content: flex-start;
    border-radius: 15px;
}

/* BOTÓN CERRAR MODAL */
.modal-close-btn {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #222;
  cursor: pointer;
  z-index: 10;
}

/* HEADER DEL MODAL */
.ampliado-header h2 {
  text-align: left;
  margin: 0 0 1.2rem 0;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: -1px;
}

/* ESTRUCTURA HORIZONTAL: TEXTO A LA IZQUIERDA, IMAGEN A LA DERECHA */
.ampliado-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.3rem;
    width: 100%;
    min-height: 320px;
}
.ampliado-texto {
 font-size: 15px;
    color: #222;
    line-height: 1.4;
    width: 80%;
    text-align: left;
    padding-right: 2%;
}

.ampliado-flex2 {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.ampliado-img {
    min-width: 230px;
    max-width: 60%;
}

.ampliado-img img {
  max-width: 320px;
  min-width: 170px;
  max-height: 340px;
  width: 100%;
  height: auto;
  background: #f3f3f3;
  object-fit: contain;
  box-shadow: 0 2px 15px rgba(0,0,0,0.13);
}

/* BOTONES EN UNA SOLA LÍNEA, CON FLECHAS Y VISUALES MODERNOS */


@media (max-width: 700px) {
  .btn-flecha {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .btn-flecha.flecha-izq { left: -10px; }
  .btn-flecha.flecha-der { right: -10px; }
}

.fa-solid, .fas {
    font-weight: 900;
    color: #121212;
    font-size: 1.7rem;
}

.button-container {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  justify-content: space-around;
  align-items: center;
}
.button-container .btn,
.button-container a.btn {
  background: #008CBA;
  color: #fff !important;
  border: none;
  border-radius: 7px;
  padding: 11px 22px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.11s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.button-container .btn:active { transform: scale(0.96); }
.button-container .btn:hover { background: #005f73; }

.button-container .btn svg {
  display: inline-block;
  vertical-align: middle;
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
}

/* FONDO OSCURECIDO DETRÁS DEL MODAL */
#modal-ampliado[style*="display: flex"] .modal-fondo {
  animation: fondoIn 0.25s;
}
@keyframes fondoIn { from { opacity: 0; } to { opacity: 1; } }



/* ===================== ENCABEZADO MAPI ===================== */
.encabezado-mapi {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4.5rem;
    font-family: 'Sora', sans-serif;
}

.encabezado-mapi .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.encabezado-mapi nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.encabezado-mapi nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.encabezado-mapi nav a:hover {
    opacity: 0.75;
}

body.detalle-inventario {
  background-color: #fff;
  color: #333;
  font-family: 'Sora', sans-serif;
  margin: 0;
  padding: 0;
}

.contenedor-detalle {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.detalle-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.detalle-info {
  flex: 1 1 55%;
  font-size: 0.95rem;
  line-height: 1.6;
}

.detalle-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.detalle-imagen {
  flex: 1 1 35%;
  text-align: center;
}

.detalle-imagen img {
  max-width: 100%;
  height: auto;
  border: 4px solid #eee;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.detalle-botones {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-detalle {
  background-color: #008CBA;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

.btn-detalle:hover {
  background-color: #005f73;
}

.btn-detalle.salir {
  background-color: #666;
}

#sabanForm input, select{padding: 5px;}

.form-label {
    font-weight: 600;
    margin-right: 5px;
}
.form-field, .form-visibilidad {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

/* Responsive: dos columnas en tablets */
@media (max-width: 900px) {
    .form-fields {
        grid-template-columns: 1fr 1fr;
    }
}
/* Una sola columna en móviles */
@media (max-width: 600px) {
    .form-fields {
        grid-template-columns: 1fr;
    }
}

.ampliado-img-panel {
    position: relative;
    width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    box-shadow: 0 6px 28px #0000005e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    margin: 0 auto;
    padding: 0;
}

/* Área de imagen cuadrada con fondo negro */
.ampliado-img-panel .img-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ampliadoLabel {
    padding-bottom: 10px;
}

/* Imagen SIEMPRE con padding interno, nunca toca el borde */
.ampliado-img-panel .img-main {
    width: 88%;
    height: 88%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 10px;
    box-shadow: none;
    display: block;
    margin: auto;
}

/* Flechas navegación */
.ampliado-img-panel .btn-nav-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    z-index: 10;
    border: none;
    font-size: 2.2rem;
    color: #eee;
    background: rgba(20,20,20,0.70);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.ampliado-img-panel .btn-nav-img.right {
    left: auto;
    right: 12px;
}
.ampliado-img-panel .btn-nav-img:hover {
    color: #fff;
    background: #292929;
}

/* Botón eliminar (tacho basura) */
.ampliado-img-panel .btn-delete-img {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 12;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 38px;
    height: 38px;
    cursor: pointer;
    background: #f44;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px #0004;
    transition: background .16s, color .16s;
}
.ampliado-img-panel .btn-delete-img:hover {
    background: #b00;
    color: #fff;
}
.ampliado-img-panel .btn-edit-img:hover {
    background: #2851a7;
    color: #fff;
}

/* Responsive para móvil */
@media (max-width: 600px) {
    .ampliado-img-panel {
        width: 96vw;
        max-width: 370px;
        border-radius: 13px;
    }
    .ampliado-img-panel .img-area {
        border-radius: 13px 13px 0 0;
    }
    .ampliado-img-panel .ampliado-label {
        border-radius: 0 0 13px 13px;
        font-size: 1rem;
        min-height: 38px;
        padding: 0.5em 0;
    }
}

.campo-nombre {
    font-weight: bold;
}

.campo-valor {
    color: #363636;
  margin-left: 0.2rem;
}
.editarPieza {
      margin-left: 80px;
    margin-bottom: 20px;
    padding-left: 0px;
    padding-top: 0px;
}

.editarBody h3 {margin-bottom: 0px; font-size: 1.5rem; margin-top: 0px;}
.editarBody ul {margin-top: 0px;}

#ampliadoContenedor{margin-left: 80px;
    margin-right: 80px;
    margin-bottom: 60px;}
    
    .fa-circle-chevron-right, .fa-circle-chevron-left {
    color: white;
}

#btnAgregarPieza {background-color: black; color: white; padding: 15px; font-family: 'Sora'; border: none; margin-bottom: 20px;}

#btnAgregarPieza:hover {background-color: gray; cursor: pointer;}

#agregarForm div {
    margin-bottom: 20px;
}

#agregarForm label {
    margin-right: 10px;
}

#agregarForm input {
    padding: 5px 10px 5px 10px;
}

.formImgs {
    display: flex
;
    flex-direction: column;
}

#editarBtn {
    background-color: black;
    padding: 15px;
    text-decoration: none;
    color: white;
}

#editarBtn:hover {background-color: gray;}

.fa-pen-to-square {
    margin-right: 10px;
    font-size: 1.rem;
}

.menu-editar-piezas {
    display: flex;
    align-items: center;
    justify-content: space-between;
        margin-bottom: 20px;
}

.fa-circle-plus {
    color: white;
    font-size: 1rem;
    margin-right: 10px;
}

.categoria-bloque {
      margin-bottom: 40px;
    background-color: #f3f3f3;
    padding: 30px;
    max-width: 800px;
}

.form-row {
display: flex;
    flex-direction: row;
    align-items: baseline;
    margin-bottom: 15px;
}

.form-checkbox {
    margin-left: 5px;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.img-area {
    position: relative;
    display: inline-block;
}

/* Imagen por defecto */
#ampliadoImg {
    transition: opacity 0.3s ease; /* Suaviza el cambio de opacidad */
}

/* Ícono oculto inicialmente */
#editarImagenHover {
    position: absolute;
    font-size: 7rem;
    background: none;
    top: 30%;
    left: 35%;
    border: none;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none!important; /* No capta clicks mientras está oculto */
    color: black; /* Mejor visibilidad sobre la imagen */
}

/* Hover en el contenedor */
.img-area:hover #ampliadoImg {
    opacity: 0.5;       /* Imagen se atenúa */
    cursor: pointer;     /* Cursor pointer sobre la imagen */
}

.img-area:hover #editarImagenHover {
    opacity: 1;          /* Ícono aparece */
    transform: scale(1.1); /* Efecto leve de zoom al aparecer */
    pointer-events: auto; /* Activa interacción */
    cursor: pointer;      /* Cursor pointer sobre el ícono */
}

.titulo-categoria {
margin-bottom: 20px;
    font-size: 1.5rem;
}
#sabanForm input[type="checkbox"]:hover, #sabanForm select:hover{
    cursor: pointer;
}

.ficha-detalle {
    margin-top: 0px;
}


.ampliado-texto h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.ampliado-texto h3 {
    font-size: 1.4rem;
    margin: 0;
}
.ampliado-texto p {margin-top: 0;}

.saban-form-container {
    margin: 0px 80px;
}

.filtros-inventario .filtro-bloque {
    margin-bottom: 5px;
    display: grid;
    gap: 5px;
}

input[type="number"] {
    width: 30%;
}

textarea {
    min-height: 130px;
    min-width: 500px;
}



button {
    background: black;
    border: none;
    color: white;
    padding: 10px;
    font-family: 'Sora';
}

input#observaciones, input#decoraci_n {
    padding: 10px;
    width: 100%;
}

button:hover, input[type="checkbox"]:hover {cursor:pointer!important;}

button[type="submit"]:hover {background-color: gray;}

#inputAnterior, #inputPrincipal {
    margin-bottom: 15px;
}

#cancelarAgregar {
    padding-left: 0px;
}

#eliminarBtn {
    background-color: #cd2525;
}

#regresarBtn {
    padding: 0;
}

#eliminarBtn:hover {
    background-color: #631b1b;
}

.form-actions {
    display: flex
;
    align-items: center;
    margin-bottom: 80px;
    width: 860px;
    justify-content: space-between;
}

.btn3 {
    padding-left: 0px;
}

.ficha-brand__img-mobile {display: none;}
.ficha-brand__img {display: block;}

@media screen and (max-width: 768px){
    
    .inventario-item {flex: 1 1 calc(40% - 2rem);
}

.inventario-container {align-items: stretch;flex-direction: column;
        flex-wrap: nowrap;}

    .inventario-galeria {
        padding: 0px;
        width: 90%;
        margin: auto;
        margin-top: 40px;
    }
    
    .filtros-inventario select {
    max-width: 100%;
}

.filtros-inventario {
        display: flex;
        flex-direction: column;
        padding-left: 0;
        width: 90%;
        padding-right: 0;
        align-items: stretch;
        margin: auto;
}
.encabezado-mapi nav{display: none;}
.encabezado-mapi{padding: 5% 5%;}

    .inventario-mapi h1, .inventario-mapi h5 {width: 90%; margin: auto;}
    .inventario-mapi h5 {margin-top: 60px;}
    
    .ampliado-flex2 {    flex-direction: column-reverse;}
  
.ampliado-texto {width: 100%;}

    .ampliado-img img {
        max-height: 150px;
    }
    .descargar-container {margin-bottom: 30px;}
     
     .ampliado-img {max-width: 100%;}
     
     .modal-contenido {min-width: 90%; max-width: 90%;}
     
     .ampliado-flex {gap: 0;    flex-direction: column;align-items: flex-start;}
     
}

/* Por defecto, oculto el contenedor móvil */
.nav-mobile-arrows {
  display: none;
}

/* Solo en <768px: muestro el contenedor móvil y oculto las flechas laterales */
@media (max-width: 768px) {
  /* oculta flechas sueltas a los lados */
  .ampliado-flex > .btn-flecha {
    display: none;
  }

  /* muestra el bloque de flechas arriba del contenido */
  .nav-mobile-arrows {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 12px;
  }

  /* si querés que ocupen ancho cómodo */
  .nav-mobile-arrows .btn-flecha {
    font-size: 1.4rem; /* opcional */
  }
  
  .ficha-brand__img {display: none;}
     .ficha-brand__img-mobile {display: block;}
}

.fa-file-pdf{font-size: 1.8rem;}

.ficha-brand__img, .ficha-brand__img-mobile {
    width: 200px;
    margin-bottom: 20px;
}

.btnSolicitarAcceso {
    margin-left: 80px;
    margin-bottom: 20px;
}

.btnSolicitarAcceso:hover {background-color: gray!important; cursor: pointer;}

@media screen and (max-width: 768px) {
    
   .btnSolicitarAcceso {
    margin-left: 5%;
}
}

.fa-arrow-right-to-bracket {
    color: white;
    font-size: 1.2em;
    margin-right: 5px;
}