/* ===== Estilos generales ===== */

body {
  font-family: Arial, sans-serif;
  padding: 20px;
  /* background: #e0e0e0; */
}

h2 {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f0f0f0;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  td {
    border: none;
    position: relative;
    padding-left: 50%;
    margin-bottom: 10px;
  }

  td:before {
    position: absolute;
    left: 10px;
    top: 10px;
    white-space: nowrap;
    font-weight: bold;
  }

  td:nth-of-type(1):before { content: "Nombre"; }
  td:nth-of-type(2):before { content: "Categoría"; }
  td:nth-of-type(3):before { content: "Stock"; }
  td:nth-of-type(4):before { content: "Acciones"; }

}

.login-logo {
    width: 100%;  /* ocupar el ancho del col-md-4 */
    height: auto;
    padding: 10px 0;
}

/* ===== Landing page ===== */

.landing-bg {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url('../img/fondo/fondo-index.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  color: #fff;
  font-family: 'Arial', sans-serif;
}

.landing-overlay {
    position: fixed;
    top: 0;           /* Asegura que empiece desde arriba */
    left: 0;
    width: 100%;
    height: 100vh;    /* Cubre toda la altura visible */
    background: rgba(0, 0, 0, 0.4); /* Ajustá opacidad a gusto */
    z-index: 1;
    margin: 0;
    padding: 0;
}

.landing-content {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}

.landing-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom:4px;
}

.landing-subtitle {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.landing-text {
  font-size: 1.2rem;
  opacity: 0.9;
}

.landing-image {
    margin-top: 20px;
}

.map-image {
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ===== Acceso login ===== */

.login-access {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.login-access a {
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
}

.login-access a:hover {
  color: #fbc02d;
}

/* ===== Mapa landing page ===== */

.landing-map-container {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    z-index: 2;
}

.landing-map-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff; /* o el color que combine con tu fondo */
    font-weight: 500;
}

.landing-map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* LAYOUT: texto + mapa alineados horizontalmente en desktop, apilan en móvil */

.landing-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 20px; /* separación superior/inferior */
}

.landing-text-col {
    flex: 1 1 52%;
    text-align: left;
}

.landing-map-col {
    flex: 0 0 48%;
    max-width: 48%;
    text-align: center;
}

/* ajustar título y subtítulo en mobile si es necesario */

@media (max-width: 900px) {
    .landing-inner {
        flex-direction: column;
        padding: 30px 16px;
        top: auto;
        transform: none;
    }
    .landing-text-col {
        text-align: center;
    }
    .landing-map-col {
        max-width: 100%;
        width: 100%;
    }
}