/* ==========================================================================
   OFPIC — Photo Detail & Purchase Cards
   Extracted from fotos/detallar.phtml + pasarelapago.phtml
   ========================================================================== */

/* ── Purchase Cards (Digital / Print) ───────────────────────────────────── */

.purchase-card {
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: box-shadow var(--duration-fast, 150ms) var(--ease-out, ease),
              border-color var(--duration-fast, 150ms) var(--ease-out, ease);
}
.purchase-card:hover {
  box-shadow: var(--shadow-md);
}

/* ── Digital variant ── */
.purchase-card--digital { border-color: rgba(184, 154, 91, 0.15); background: #fff; }
.purchase-card--digital:hover { border-color: #B89A5B; }
.purchase-card__header--digital {
  background: linear-gradient(135deg, #8B7340, #B89A5B);
}

/* ── Print variant ── */
.purchase-card--print { border-color: rgba(184, 154, 91, 0.12); background: #fff; }
.purchase-card--print:hover { border-color: #A07D3F; }
.purchase-card__header--print {
  background: linear-gradient(135deg, #A07D3F, #C4A96B);
}

/* ── Card header ── */
.purchase-card__header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  color: #fff;
}
.purchase-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-right: 15px;
  flex-shrink: 0;
}
.purchase-card__title h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.purchase-card__subtitle {
  font-size: 0.8125rem;
  opacity: 0.85;
  display: block;
  margin-top: 2px;
}

/* ── Card body ── */
.purchase-card__body { padding: 1.25rem; }

/* ── Format rows (digital pricing table) ── */
.format-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f4;
}
.format-row:last-of-type { border-bottom: none; }
.format-row__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.format-row__name {
  font-size: 0.9375rem;
  color: var(--color-text, #1c1917);
  font-weight: 500;
}
.format-row__help {
  color: #a8a29e;
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--duration-fast, 150ms);
}
.format-row__help:hover { color: #B89A5B; }
.format-row__qty { width: 100px; text-align: center; }
.format-row__price { width: 120px; text-align: right; }
.format-row__amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: #8B7340;
}
.format-row__unit {
  font-size: 0.6875rem;
  color: #a8a29e;
  display: block;
}

/* ── Legal note ── */
.purchase-card__legal {
  font-size: 0.75rem;
  color: #a8a29e;
  margin: 0.75rem 0 0;
  padding-top: 0.625rem;
  border-top: 1px solid #f5f5f4;
}
.purchase-card__legal i { margin-right: 4px; }

/* ── Purchase buttons ── */
.purchase-card__btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius-md, 8px);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast, 150ms) var(--ease-out, ease);
  margin-top: 1rem;
  text-decoration: none;
}
.purchase-card__btn--digital {
  background: linear-gradient(135deg, #8B7340, #B89A5B);
  color: #fff;
}
.purchase-card__btn--digital:hover {
  background: linear-gradient(135deg, #6B5830, #8B7340);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 154, 91, 0.35);
}
.purchase-card__btn--print {
  background: linear-gradient(135deg, #A07D3F, #C4A96B);
  color: #fff;
}
.purchase-card__btn--print:hover {
  background: linear-gradient(135deg, #7A6435, #A07D3F);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 154, 91, 0.35);
}

/* ── Print features checklist ── */
.print-features { margin-bottom: 0.35rem; }
.print-features__item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #57534e;
}
.print-features__item i {
  color: #B89A5B;
  margin-right: 0.625rem;
  font-size: 1rem;
}

/* ── Number input inside purchase cards ── */
.purchase-card .number-input {
  display: flex;
  align-items: center;
  justify-content: center;
}
.purchase-card .number-input .number {
  width: 50px;
  text-align: center;
  border: 1px solid #d6d3d1;
  border-radius: var(--radius-sm, 4px);
  padding: 6px;
  font-size: 0.875rem;
}

/* ── Photo detail image polish ── */
.left-featured-image .fancybox img {
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.left-featured-image .photo-hint {
  margin-top: 0.75rem;
  color: #a8a29e;
  font-size: 0.8125rem;
  text-align: right;
}

/* ── Pasarela de pago (payment summary) ─────────────────────────────────── */

.payment-discount-banner {
  border: none;
  border-radius: var(--radius-lg, 12px);
  color: #fff;
  padding: 1.25rem;
}
.payment-discount-banner--active {
  background: linear-gradient(135deg, var(--brand-500, #B89A5B) 0%, #ff6b7a 100%);
}
.payment-discount-banner--suggest {
  background: linear-gradient(135deg, #303030 0%, #505050 100%);
}
.payment-discount-banner h4 {
  margin: 0;
  font-weight: 700;
}
.payment-discount-banner p {
  margin: 0.625rem 0 0;
  font-size: 1.125rem;
}
.payment-discount-banner .discount-big {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.payment-discount-banner hr {
  border-color: rgba(255, 255, 255, 0.3);
  margin: 0.9375rem 0;
}
.payment-discount-banner .btn-light {
  font-size: 1rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md, 8px);
  transition: background var(--duration-fast, 150ms);
}
.payment-discount-banner .btn-light:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
}

/* Progress bar in payment */
.payment-progress {
  height: 25px;
  border-radius: var(--radius-pill, 15px);
  background: #e7e5e4;
  overflow: hidden;
}
.payment-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500, #B89A5B), #ff6b7a);
  border-radius: var(--radius-pill, 15px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: width 0.4s ease;
}

/* ── POD badge in payment page ── */
.payment-pod-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill, 10px);
  margin-bottom: 5px;
}

/* ── Order summary ── */
.rowresumen {
  background: var(--color-surface-soft, #f5f5f4);
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem;
}
.rowresumen .col1resumen p,
.rowresumen .col2resumen p {
  margin-bottom: 0.5rem;
}
.discount-line {
  color: var(--brand-500, #B89A5B);
  font-weight: 700;
}
.saving-line {
  color: var(--brand-500, #B89A5B);
  font-size: 0.75rem;
}
.total-line {
  font-size: 1.125rem;
  font-weight: 700;
}

/* ── Payment buttons ── */
.btn-pagar {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 1.5rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md, 8px);
  transition: all var(--duration-fast, 150ms);
}
.btn-pagar:hover { transform: translateY(-1px); }

/* ── Content pages (contacto, legal, FAQ) ───────────────────────────────── */

.content-page {
  padding: 2rem 0;
}
.content-page .left-menu-section .menu-item a {
  transition: color var(--duration-fast, 150ms);
}
.content-page .right-content-section form {
  margin-top: 2rem;
}
.content-page .right-content-section .btn-primary {
  max-width: 100%;
}

/* ── Photographer search bar ────────────────────────────────────────────── */

.filter-bar {
  background: var(--color-surface-soft, #f5f5f4);
  padding: 1.25rem 0 1.5rem;
}
.filter-bar .inline-form .form-heading {
  font-weight: 600;
  color: var(--brand-500, #B89A5B);
}
.filter-bar .inline-form select,
.filter-bar .inline-form input[type="text"] {
  border: 1px solid var(--color-border, #e7e5e4);
  border-radius: var(--radius-md, 8px);
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  transition: border-color var(--duration-fast, 150ms);
}
.filter-bar .inline-form select:focus,
.filter-bar .inline-form input[type="text"]:focus {
  border-color: var(--brand-400, #C9AD6F);
  box-shadow: 0 0 0 3px rgba(184, 154, 91, 0.1);
  outline: none;
}
.filter-bar .btn-primary {
  border-radius: var(--radius-pill, 999px);
  min-height: 42px;
  padding: 0.5rem 1.25rem;
}
.filter-bar .busquedaavanzada {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--brand-500, #B89A5B);
  font-weight: 600;
}

/* ── Status / message pages ─────────────────────────────────────────────── */

.status-page {
  text-align: center;
  padding: 4rem 0;
}
.status-page .section-heading {
  margin-bottom: 1.5rem;
}
.status-page .section-heading .lnr {
  font-size: 3rem;
  color: var(--brand-500, #B89A5B);
}

/* ── BEM discount banner elements ── */
.payment-discount-banner__title {
  margin: 0;
  font-weight: 700;
}
.payment-discount-banner__text {
  margin: 0.625rem 0 0;
  font-size: 1.125rem;
}
.payment-discount-banner__big {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.payment-discount-banner__hr {
  border-color: rgba(255, 255, 255, 0.3);
  margin: 0.9375rem 0;
}
.payment-discount-banner__next {
  margin: 0;
}
.payment-discount-banner__cta {
  font-size: 1rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md, 8px);
  transition: background var(--duration-fast, 150ms);
}
.payment-discount-banner__cta:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
}

/* Progress bar inner (BEM alias) */
.payment-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500, #B89A5B), #ff6b7a);
  border-radius: var(--radius-pill, 15px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: width 0.4s ease;
}

/* ── Summary text helpers ── */
.text-discount {
  color: var(--brand-500, #B89A5B);
  font-weight: 700;
}
.text-discount.text-sm {
  font-size: 0.75rem;
}
.text-total {
  font-size: 1.125rem;
  font-weight: 700;
}

/* ── Content-page actions ── */
.content-page__actions {
  margin-top: 1.25rem;
}

/* ── Photo detail image helper ── */
.photo-detail-img {
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ── Responsive ── */

@media (max-width: 767px) {
  .format-row {
    flex-wrap: wrap;
  }
  .format-row__info {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .format-row__qty { width: 50%; }
  .format-row__price { width: 50%; }
  .purchase-card__header { padding: 0.875rem 1rem; }
  .purchase-card__body { padding: 1rem; }
  .payment-discount-banner__big {
    font-size: 2rem;
    margin-top: 0.5rem;
  }
}

/* ================================================
   UPLOAD PAGE (subirfotos)
   ================================================ */

.upload-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.upload-container h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.upload-container h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}

.upload-container .dropzone {
  border: 3px dashed var(--brand-400);
  border-radius: var(--radius-xl);
  background: var(--color-surface-soft);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  min-height: 250px;
  transition: all var(--duration-fast);
}

.upload-container .dropzone:hover {
  border-color: var(--brand-500);
  background: rgba(184, 154, 91, .03);
}

.upload-container .dz-message i {
  font-size: 3rem;
  color: var(--brand-500);
  display: block;
  margin-bottom: 1rem;
}

.upload-container .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.upload-container .photo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast);
}

.upload-container .photo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.upload-container .photo-preview {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.upload-container .photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-container .btn-save {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: none;
  padding: .85rem 2rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast);
  box-shadow: 0 6px 16px rgba(22,163,74,.25);
}

.upload-container .btn-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22,163,74,.32);
}

.upload-container .btn-save:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.upload-container .btn-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  background: var(--brand-500);
  color: #fff;
  border: none;
  padding: .5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: .75rem;
  transition: all var(--duration-fast);
}

.upload-container .btn-delete:hover {
  background: var(--brand-600);
}

/* ================================================
   GALLERY MANAGEMENT (galeriamisfotos)
   ================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem 0;
}

.gallery-grid .photo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast);
}

.gallery-grid .photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(184, 154, 91, .15);
  border-color: var(--brand-400);
}

.gallery-grid .photo-card .image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-surface-soft);
}

.gallery-grid .photo-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gallery-grid .photo-card:hover .image-container img {
  transform: scale(1.05);
}

.gallery-grid .photo-card .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.6) 100%);
  opacity: 0;
  transition: opacity var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-grid .photo-card:hover .photo-overlay {
  opacity: 1;
}

.gallery-grid .photo-card .photo-overlay i {
  color: var(--brand-500);
  font-size: 2rem;
}

.gallery-grid .photo-card .photo-info {
  padding: 1rem;
}

.gallery-grid .photo-card input.nombrefotografia {
  width: 100%;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .6rem .75rem;
  color: var(--color-text);
  font-size: var(--text-sm);
  margin-bottom: .75rem;
  transition: all var(--duration-fast);
}

.gallery-grid .photo-card input.nombrefotografia:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(184, 154, 91, .1);
  outline: none;
}

.gallery-grid .photo-card .eliminarfotografia {
  display: block;
  text-align: center;
  text-decoration: none;
}

.gallery-grid .photo-card .title-red {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
  padding: .6rem;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  transition: all var(--duration-fast);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.gallery-grid .photo-card .eliminarfotografia:hover .title-red {
  box-shadow: 0 4px 12px rgba(184, 154, 91, .3);
  transform: translateY(-1px);
}

.no-photos-message {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-surface-soft);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-muted);
}

.no-photos-message h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  margin: .75rem 0 .5rem;
}

.no-photos-message i {
  font-size: 3rem;
  color: var(--brand-500);
  display: block;
}

/* Photo count badge */
#photoCountBadge {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}

#photoCountBadge i {
  color: var(--brand-500);
  font-size: 1.25rem;
}

#photoCountBadge span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

#photoCountNumber {
  color: var(--brand-500);
  font-size: var(--text-base);
  font-weight: 700;
}

/* ================================================
   RESPONSIVE (upload/gallery)
   ================================================ */

@media (max-width: 767px) {
  .upload-container .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
  }

  .gallery-grid .photo-card .image-container {
    height: 150px;
  }
}

/* -- Upload (subirfotos.phtml) -- */
.upload-container { max-width: 1200px; margin: 40px auto; padding: 20px; }
.dropzone { border: 3px dashed #0087F7; border-radius: 10px; background: #f8f9fa; padding: 40px; text-align: center; cursor: pointer; min-height: 250px; }
.dropzone:hover { border-color: #0066cc; background: #e9f5ff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.photo-card { background: white; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; }
.photo-preview { width: 100%; height: 200px; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.btn-save { background: #28a745; color: white; border: none; padding: 15px 40px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.btn-delete { background: #dc3545; color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; width: 100%; margin-top: 10px; }

/* -- Gallery Management (galeriamisfotos.phtml) -- */
/* Ocultar notificaciones/modales molestos */
.notie-container,
.notie-alert,
.sweet-alert,
.swal-overlay,
[class*="notification-"],
[class*="toast-"],
.modal-backdrop.show {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.photo-card {
    background: linear-gradient(135deg, #2a2d30 0%, #1f2124 100%);
    border: 1px solid #3a3d40;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 154, 91, 0.3);
    border-color: #B89A5B;
}

.photo-card .image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1c1e;
}

.photo-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .image-container img {
    transform: scale(1.05);
}

.photo-card .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: #B89A5B;
    font-size: 32px;
}

.photo-card .photo-info {
    padding: 15px;
}

.photo-card input.nombrefotografia {
    width: 100%;
    background: #1a1c1e;
    border: 1px solid #3a3d40;
    border-radius: 6px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.photo-card input.nombrefotografia:focus {
    outline: none;
    border-color: #B89A5B;
    background: #242628;
    box-shadow: 0 0 0 3px rgba(184, 154, 91, 0.1);
}

.photo-card .eliminarfotografia {
    display: block;
    text-align: center;
    text-decoration: none;
}

.photo-card .title-red {
    background: linear-gradient(135deg, #B89A5B 0%, #A07D3F 100%);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photo-card .eliminarfotografia:hover .title-red {
    background: linear-gradient(135deg, #ff5566 0%, #B89A5B 100%);
    box-shadow: 0 4px 15px rgba(184, 154, 91, 0.4);
    transform: translateY(-2px);
}

.no-photos-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2a2d30 0%, #1f2124 100%);
    border: 2px dashed #3a3d40;
    border-radius: 12px;
    color: #999;
}

.no-photos-message h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.no-photos-message i {
    font-size: 48px;
    color: #B89A5B;
    margin-bottom: 15px;
    display: block;
}

/* -- Upload (subirfotos) -- */
.upload-container { max-width: 1200px; margin: 40px auto; padding: 20px; }
.dropzone { border: 3px dashed #0087F7; border-radius: 10px; background: #f8f9fa; padding: 40px; text-align: center; cursor: pointer; min-height: 250px; }
.dropzone:hover { border-color: #0066cc; background: #e9f5ff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.photo-card { background: white; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; }
.photo-preview { width: 100%; height: 200px; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.btn-save { background: #28a745; color: white; border: none; padding: 15px 40px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.btn-delete { background: #dc3545; color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; width: 100%; margin-top: 10px; }

/* -- Gallery Mgmt (galeriamisfotos) -- */
/* Ocultar notificaciones/modales molestos */
.notie-container,
.notie-alert,
.sweet-alert,
.swal-overlay,
[class*="notification-"],
[class*="toast-"],
.modal-backdrop.show {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.photo-card {
    background: linear-gradient(135deg, #2a2d30 0%, #1f2124 100%);
    border: 1px solid #3a3d40;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 154, 91, 0.3);
    border-color: #B89A5B;
}

.photo-card .image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1c1e;
}

.photo-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .image-container img {
    transform: scale(1.05);
}

.photo-card .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: #B89A5B;
    font-size: 32px;
}

.photo-card .photo-info {
    padding: 15px;
}

.photo-card input.nombrefotografia {
    width: 100%;
    background: #1a1c1e;
    border: 1px solid #3a3d40;
    border-radius: 6px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.photo-card input.nombrefotografia:focus {
    outline: none;
    border-color: #B89A5B;
    background: #242628;
    box-shadow: 0 0 0 3px rgba(184, 154, 91, 0.1);
}

.photo-card .eliminarfotografia {
    display: block;
    text-align: center;
    text-decoration: none;
}

.photo-card .title-red {
    background: linear-gradient(135deg, #B89A5B 0%, #A07D3F 100%);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photo-card .eliminarfotografia:hover .title-red {
    background: linear-gradient(135deg, #ff5566 0%, #B89A5B 100%);
    box-shadow: 0 4px 15px rgba(184, 154, 91, 0.4);
    transform: translateY(-2px);
}

.no-photos-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2a2d30 0%, #1f2124 100%);
    border: 2px dashed #3a3d40;
    border-radius: 12px;
    color: #999;
}

.no-photos-message h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.no-photos-message i {
    font-size: 48px;
    color: #B89A5B;
    margin-bottom: 15px;
    display: block;
}
