/* ============================================================
   GALERIA.CSS — Página de galería
   Patricia Alonso · patriciaalonso.es
   ============================================================ */

    .galeria-page { max-width: 1200px; margin: 40px auto 80px; padding: 0 20px; }

    .titulo-galeria {
      font-family: 'Cinzel', serif;
      font-size: 2rem; color: #7B5FE0; text-align: center;
      margin-bottom: 10px;
      text-shadow: 0 0 10px #7B5FE0, 0 0 20px #9146FF;
    }

    .separador-neon {
      width: 80%; max-width: 800px; height: 1px;
      background: linear-gradient(to right, transparent, #7B5FE0, #9146FF, transparent);
      margin: 20px auto 40px; opacity: 0.4;
    }

    /* GRID FOTOS */
    .galeria-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .foto-card {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid rgba(123, 95, 224, 0.4);
      box-shadow: 0 0 10px rgba(123, 95, 224, 0.2);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      background: rgba(20, 20, 40, 0.6);
    }

    .foto-card:hover {
      transform: scale(1.03);
      box-shadow: 0 0 20px rgba(123, 95, 224, 0.6);
    }

    .foto-card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
    }

    .foto-info {
      padding: 10px 12px;
      font-family: 'Poppins', sans-serif;
    }

    .foto-titulo {
      font-size: 0.85rem;
      color: #7B5FE0;
      margin-bottom: 4px;
    }

    .foto-desc {
      font-size: 0.75rem;
      color: #aaa;
    }

    .btn-eliminar-foto {
      position: absolute;
      top: 8px; right: 8px;
      background: rgba(0,0,0,0.6);
      border: 1px solid #ff4444;
      color: #ff4444;
      border-radius: 6px;
      padding: 3px 8px;
      font-size: 0.7rem;
      cursor: pointer;
      transition: background 0.2s;
    }

    .btn-eliminar-foto:hover { background: rgba(255, 0, 0, 0.3); }

    /* LIGHTBOX */
    .lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.92);
      z-index: 9999;
      justify-content: center;
      align-items: center;
    }

    .lightbox.activo { display: flex; }

    .lightbox img {
      max-width: 90vw;
      max-height: 90vh;
      border-radius: 10px;
      box-shadow: 0 0 30px #7B5FE0;
    }

    .lightbox-cerrar {
      position: absolute;
      top: 20px; right: 30px;
      color: #fff;
      font-size: 2rem;
      cursor: pointer;
      background: none;
      border: none;
    }

    /* PANEL ADMIN */
    .panel-admin-galeria {
      margin-top: 50px;
      background: rgba(20, 20, 40, 0.85);
      border: 2px solid #7B5FE0;
      border-radius: 14px;
      padding: 28px;
      box-shadow: 0 0 20px rgba(123, 95, 224, 0.3);
    }

    .panel-admin-galeria h3 {
      font-family: 'Cinzel', serif;
      font-size: 1.2rem; color: #7B5FE0;
      text-shadow: 0 0 8px #7B5FE0;
      margin-bottom: 20px; text-align: center;
    }

    .form-subir {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .form-campo { display: flex; flex-direction: column; gap: 6px; }

    .form-campo label {
      font-family: 'Poppins', sans-serif;
      font-size: 0.78rem; color: #ccc;
    }

    .form-campo input, .form-campo textarea {
      background: rgba(0,0,0,0.4);
      border: 1px solid rgba(123, 95, 224, 0.5);
      border-radius: 6px;
      padding: 8px 10px;
      color: #fff;
      font-family: 'Poppins', sans-serif;
      font-size: 0.8rem;
      outline: none;
    }

    .form-campo input:focus, .form-campo textarea:focus {
      border-color: #7B5FE0;
    }

    .btn-subir {
      grid-column: 1 / -1;
      background: linear-gradient(135deg, #7B5FE0, #9146FF);
      color: #fff; border: none; border-radius: 8px;
      padding: 12px 20px;
      font-family: 'Cinzel', serif;
      font-size: 0.9rem; cursor: pointer;
      box-shadow: 0 0 12px rgba(123, 95, 224, 0.5);
      transition: transform 0.2s ease;
    }

    .btn-subir:hover { transform: translateY(-2px); }

    .galeria-vacia {
      text-align: center;
      font-family: 'Poppins', sans-serif;
      color: rgba(255,255,255,0.3);
      padding: 60px 0;
      font-size: 1rem;
    }

    /* ADMIN LINK */
    .admin-link { color: #7B5FE0 !important; }
    .admin-menu-sep {
      height: 1px;
      background: rgba(123, 95, 224, 0.3);
      margin: 10px 16px;
      list-style: none;
    }

    @media (max-width: 900px) { .galeria-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 500px) {
      .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
      .foto-card img { height: 140px; }
      .foto-titulo { font-size: 0.72rem; }
      .foto-desc { font-size: 0.65rem; }
      .form-subir { grid-template-columns: 1fr; }
    }