body {
  background-color: #0a0a0a;
  font-family: 'Arial', sans-serif;
  max-width: 500px;
  margin: auto;
  padding: 20px;
  color: #f5f5f5;
}

/* ===== HEADER ===== */

.presentacion {
  height: 220px;
  border-radius: 16px;
  margin-bottom: 25px;
  overflow: hidden;

  background: linear-gradient(135deg, #000000, #1a1a1a);
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 10px;
}

#tatuadorNombre {
  font-size: 34px;
  margin: 0;
  letter-spacing: 2px;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0,255,136,0.4);
}

.marca {
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
  letter-spacing: 2px;
}

/* ===== FORMULARIOS ===== */

.formulario {
  margin: 0 25px;
  background-color: #121212;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #222;
  box-shadow: 0 0 15px rgba(0,255,136,0.05);
}

/* ===== INPUTS ===== */

input, textarea {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #222;
  background-color: #1c1c1c;
  color: #fff;
  transition: 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border: 1px solid #00ff88;
  box-shadow: 0 0 5px #00ff88;
}

input::placeholder,
textarea::placeholder {
  color: #777;
}

/* ===== BOTONES ===== */

button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #00ff88, #00cc66);
  color: black;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px #00ff88;
}

li button {
  width: auto;
  padding: 8px 12px;
  margin-top: 8px;
  margin-right: 5px;
  font-size: 13px;
}

/* ===== MENSAJES ===== */

.status-msg {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}

/* ===== TURNOS ===== */

ul {
  list-style: none;
  padding: 0;
  margin: 0 25px;
}

li {
  background-color: #121212;
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border-left: 3px solid #00ff88;
}

/* ===== GRID ===== */

.gallery,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

/* ===== IMÁGENES ===== */

.gallery-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  animation: fadeIn 0.4s ease-in-out;
}

.gallery-img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== PREVIEW ADMIN ===== */

#previewContainer img {
  opacity: 0.8;
  border: 2px dashed #00ff88;
}

/* ===== WORK ITEM (delete btn) ===== */

.work-item {
  position: relative;
}

/* ===== BOTÓN ELIMINAR ===== */

.delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 0, 0, 0.85);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
}

.delete-btn:hover {
  background: red;
  transform: scale(1.1);
}

/* ===== MODAL GALERÍA ===== */

.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-color: rgba(0,0,0,0.95);
  z-index: 999;

  justify-content: center;
  align-items: flex-start;

  padding: 80px 20px;
  overflow-y: auto;
}

/* 🔥 IMPORTANTE: cuando lo abrís con JS */
.gallery-modal[style*="flex"] {
  display: flex !important;
}

/* ===== BOTÓN CERRAR (TODOS) ===== */

.close-btn,
#closeGallery,
#closeWorks {
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

/* ===== IMAGE VIEWER ===== */

.image-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: black;
  justify-content: center;
  align-items: center;

  z-index: 2000; /* 🔥 MÁS ALTO QUE EL MODAL */
}

.image-viewer img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
}

/* 🔥 BOTÓN CERRAR VIEWER */
#closeViewer {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 3000;
}

/* ===== FOOTER ===== */

footer {
  text-align: center;
  margin-top: 50px;
  color: #555;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.work-days {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  align-items: flex-start;
}

.work-day {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 !important;
}

.work-day input[type="checkbox"] {
  margin: 0 !important;
  width: auto !important;
}

.work-day span {
  margin: 0 !important;
  width: auto !important;
}

/* =========================================
   🎨 COLORES PERSONALIZADOS - BOOKING
   ========================================= */

.booking-page {
  background-color: var(--booking-bg, #080a09);
  color: var(--booking-text, #ffffff);
}

.booking-page button {
  background: var(--booking-primary, #00e887) !important;
}

.booking-page #tatuadorNombre {
  color: var(--booking-primary, #00e887);
  text-shadow: none;
}

/* =========================================
   📅 CALENDARIO DE AGENDA
========================================= */

.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;

  background: rgba(0, 0, 0, 0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  box-sizing: border-box;
}

.calendar-container {
  position: relative;

  width: min(1100px, 95vw);
  height: min(850px, 92vh);

  background: #111;
  color: #fff;

  border-radius: 16px;

  padding: 25px;
  box-sizing: border-box;

  overflow: auto;
}

.calendar-close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 40px;
  height: 40px;

  padding: 0;

  font-size: 20px;
  cursor: pointer;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 25px;

  margin-bottom: 25px;
  padding-right: 45px;
}

.calendar-header h2 {
  margin: 0;

  min-width: 220px;

  text-align: center;
}

#calendarGrid {
  width: 100%;
}


/* =========================================
   📱 CALENDARIO - CELULAR
========================================= */

@media (max-width: 600px) {

  .calendar-modal {
    padding: 0;
  }

  .calendar-container {
    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    border-radius: 0;

    padding: 15px;
  }

  .calendar-header {
    gap: 10px;

    padding-right: 35px;
  }

  .calendar-header h2 {
    min-width: 0;

    flex: 1;

    font-size: 20px;
  }
}

#calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  font-weight: bold;
  padding: 10px 5px;
}

.calendar-day {
  min-height: 100px;

  border: 1px solid #333;
  border-radius: 8px;

  padding: 8px;
  box-sizing: border-box;

  position: relative;
}

.calendar-day-number {
  display: block;
  text-align: center;

  font-weight: bold;
  font-size: 16px;
}

.calendar-day-empty {
  border-color: transparent;
}


/* CELULAR */

@media (max-width: 600px) {

  #calendarGrid {
    gap: 3px;
  }

  .calendar-day {
    min-height: 65px;
    padding: 5px;
  }

  .calendar-day-number {
    font-size: 14px;
  }

  .calendar-weekday {
    font-size: 12px;
    padding: 8px 2px;
  }
}

.calendar-work-time {
  position: absolute;

  right: 7px;
  bottom: 7px;

  font-size: 13px;
  font-weight: bold;

  opacity: 0.9;
}

@media (max-width: 600px) {

  .calendar-work-time {
    right: 4px;
    bottom: 4px;

    font-size: 10px;
  }
}

/* TURNOS PENDIENTES */
.calendar-pending-count {
  position: absolute;
  top: 7px;
  left: 7px;

  min-width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #e53935;
  color: white;

  font-size: 12px;
  font-weight: bold;
}


/* TURNOS ACEPTADOS */
.calendar-accepted-count {
  position: absolute;
  top: 7px;
  right: 7px;

  min-width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #00a86b;
  color: white;

  font-size: 12px;
  font-weight: bold;
}

.calendar-day-with-appointments {
  cursor: pointer;
}

.calendar-day-with-appointments:hover {
  border-color: #00e887;
}

/* =========================================
   🕐 AGENDA DIARIA
========================================= */

#calendarDaySchedule {
  display: flex;
  flex-direction: column;
  gap: 6px;

  margin-top: 20px;
}

.calendar-schedule-slot {
  display: flex;
  align-items: center;

  min-height: 52px;

  padding: 10px 15px;

  border: 1px solid #333;
  border-radius: 8px;

  box-sizing: border-box;
}

.calendar-slot-time {
  width: 75px;

  font-weight: bold;
  flex-shrink: 0;
}

.calendar-slot-info {
  flex: 1;
}


/* LIBRE */

.calendar-slot-free {
  opacity: 0.55;
}


/* PENDIENTE */

.calendar-slot-pending {
  border-left: 4px solid #e53935;
}


/* ACEPTADO */

.calendar-slot-accepted {
  border-left: 4px solid #00a86b;
}


/* CONTINUACIÓN */

.calendar-slot-continuation {
  border-left: 4px solid #00a86b;
  opacity: 0.7;
}


/* BLOQUEO MANUAL */

.calendar-slot-manual-block {
  border-left: 4px solid #777;
  opacity: 0.8;
}

.calendar-release-slot-btn {
  width: auto;
  min-width: 0;
  margin: 0 0 0 10px;
  padding: 3px 8px;

  background: transparent;
  border: 1px solid #555;
  border-radius: 6px;

  color: #aaa;
  font-size: 12px;
  font-weight: 500;

  cursor: pointer;
}

.calendar-release-slot-btn:hover {
  background: #222;
  border-color: #777;
  color: #fff;
}

.calendar-slot-manual-block {
  display: flex;
  align-items: center;
}

.calendar-slot-manual-block .calendar-slot-info {
  flex: 0 0 auto;
}

/* =========================================
   DETALLE DEL TURNO SOBRE EL CALENDARIO
========================================= */

#appointmentDetailModal {
  z-index: 4000;
}

/* =========================================
   IMAGEN DE REFERENCIA SOBRE TODO
========================================= */

#referenceImageViewer {
  z-index: 5000;
}

.calendar-manual-block-icon {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font-size: 13px;
  line-height: 1;
}

#rejectModal {
  z-index: 4500;
}