/* ================= RESET BASE ================= */

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

/* Fondo general del sitio (CATÁLOGO, HOME, etc) */
body {
    background: #C2C0BC; /* beige grisáceo elegante */
    font-family: Arial, sans-serif;
    color: #111;
}

/* Contenedor principal */
.container {
    max-width: 1400px;
    margin: 140px auto 80px; /* espacio por snapbar */
    padding: 0 60px;
    background: transparent; /* IMPORTANTE */
}


/* ================= SNAP BAR ================= */

.snap-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    background: rgba(15,17,21,0.7);
    backdrop-filter: blur(14px) saturate(120%);
    padding: 10px 24px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Links snapbar */
.snap-bar a,
.dropbtn {
    color: #ffffff;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
}

.snap-bar a:hover,
.dropbtn:hover {
    color: #7DA88E;
}

/* ================= DROPDOWN ================= */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;

    background: rgba(25,28,35,0.95);
    backdrop-filter: blur(12px);

    min-width: 170px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 12px;
    color: #ffffff;
    transition: 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.08);
    color: #7DA88E;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* ================= ADMIN DARK MODE ================= */

body.admin-dark {
    background: #0f1115;
    color: #ffffff;
}

body.admin-dark .container {
    background: transparent;
}

body.admin-dark table {
    background: rgba(255,255,255,0.05);
    color: white;
}

body.admin-dark th {
    color: #cfcfcf;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

  /* Contenedor principal */
  .container {
    padding: 0 20px;
    margin: 100px auto 60px; /* espacio para snapbar */
  }

  /* Snap-bar principal */
  .snap-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  /* Logo */
  .snap-bar-logo a {
    font-size: 1.2rem;
    text-align: center;
  }

  /* Links */
  .snap-bar-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .snap-bar-links a {
    font-size: 16px;
    text-align: center;
    width: 100%;
  }

  /* Acciones */
  .snap-bar-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .snap-bar-actions button {
    width: 80%;
    max-width: 220px;
  }

  /* Botón menú móvil */
  .menu-btn {
    display: block;
    margin-top: 8px;
  }

  /* Menú móvil */
  .mobile-menu {
    top: calc(var(--nav-height) + 10px);
    left: 0;
    right: 0;
    padding: 12px 0;
    flex-direction: column;
    align-items: center;
  }

  .mobile-menu a {
    text-align: center;
    padding: 12px 20px;
    width: 100%;
  }
}
