/* =========================
   FOTOS DORO · SITE.CSS
   CASA · Premium UI
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0b0b0b;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* =========================
   LAYOUT
========================= */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2,
h3 {
  letter-spacing: -0.025em;
}

p {
  color: rgba(255, 255, 255, 0.72);
}

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

.site-header {
  width: 100%;
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-logo {
  font-weight: 700;
  font-size: 18px;
  color: #f5f5f5;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.main-nav a:hover {
  color: #fff;
}

/* =========================
   BUTTONS
========================= */

button,
.btn-primary,
.btn-secondary {
  font-family: inherit;
}

.btn-primary,
button[type="submit"] {
  background: linear-gradient(to bottom, #ffffff, #d9d9d9);
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover,
button[type="submit"]:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  color: #111;
}

.btn-primary:disabled,
button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.btn-qty {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(to bottom, #ffffff, #d9d9d9);
  color: #111;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn-qty:hover {
  transform: translateY(-1px);
}

.btn-qty:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   HOME HERO / ROLLER
========================= */

.home-hero {
  position: relative !important;
  min-height: 560px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
}

.home-hero__media {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
}

.home-hero__img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  opacity: 0 !important;
  transition: opacity 1.2s ease !important;
  border: none !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.home-hero__img.is-active {
  opacity: 1 !important;
}

.home-hero__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.35) !important;
  z-index: 1 !important;
}

.home-hero__content {
  position: relative !important;
  z-index: 2 !important;
  text-align: center !important;
  color: #fff !important;
}

.home-hero__cta {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 24px !important;
}

/* =========================
   CLIENT GALLERY
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.gallery-item {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.gallery-item--owned {
  border-color: rgba(52, 211, 153, 0.35);
}

.gallery-item__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  background: #1a1a1a;
  cursor: zoom-in;
}

.gallery-item__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.gallery-qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.gallery-owned-label {
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: #34d399;
}

.gallery-actions {
  margin-top: 32px;
  text-align: center;
}

/* =========================
   UNLOCK OVERLAY
========================= */

.unlock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.unlock-modal {
  width: 100%;
  max-width: 380px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 34px 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.unlock-modal h2 {
  margin: 0 0 10px;
}

.unlock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.unlock-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 16px;
  text-align: center;
  outline: none;
}

.unlock-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.unlock-form input:focus {
  border-color: rgba(255, 255, 255, 0.38);
}

.unlock-form button {
  width: 100%;
}

.unlock-error {
  min-height: 20px;
  margin-top: 12px;
  color: #ff8b8b;
  font-size: 14px;
}

/* =========================
   LIGHTBOX
========================= */

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 1;
  transition:
    opacity .25s ease,
    backdrop-filter .25s ease;
}

.gallery-lightbox__img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: scale(.96);
  transition:
    transform .25s ease,
    opacity .25s ease;
}

.gallery-lightbox:not([hidden]) .gallery-lightbox__img {
  transform: scale(1);
}

.gallery-lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

/* =========================
   ADMIN PANEL
========================= */

.admin-panel {
  padding-top: 32px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.admin-create-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 28px;
  color: #f5f5f5;
}

.admin-create-card h2,
.admin-create-card label {
  color: #f5f5f5;
}

.admin-create-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-create-form select {
  min-width: 240px;
  padding: 10px 12px;
  border-radius: 10px;
}

.gallery-admin-grid {
  display: grid;
  gap: 18px;
}

.gallery-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  color: #f5f5f5;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.gallery-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.gallery-id {
  margin: 0 0 4px;
  font-size: 13px;
  opacity: 0.65;
}

.gallery-card h3 {
  margin: 0;
  font-size: 18px;
}

.gallery-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.gallery-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-meta strong {
  color: rgba(255, 255, 255, 0.95);
}

.gallery-meta a {
  color: #f5f5f5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-active {
  background: rgba(0, 200, 120, 0.12);
  color: #34d399;
}

.status-draft {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.status-disabled {
  background: rgba(255, 180, 80, 0.12);
  color: #fbbf24;
}

.status-expired {
  background: rgba(255, 80, 80, 0.12);
  color: #f87171;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #fff;
}

.admin-pin-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-pin-form input {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
  color: #fff;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.admin-photo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
}

.admin-photo-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.admin-photo-card p {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 760px) {
  .container {
    padding: 24px;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .admin-header,
  .gallery-card-header {
    flex-direction: column;
  }

  .admin-create-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-create-form select {
    min-width: 100%;
  }
}

/* =========================
   FAVORITES
========================= */


.favorite-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition:
    transform .25s ease,
    background .25s ease;
}

.favorite-btn:hover {
  transform: scale(1.08);
}

.favorite-btn.is-favorite {
  background: rgba(255, 60, 90, .18);
}

.gallery-item {
  position: relative;
}

.checkout-btn {
  background: linear-gradient(to bottom, #ffffff, #d9d9d9) !important;
  color: #111 !important;
  border: none !important;
}

.checkout-btn:hover {
  background: linear-gradient(to bottom, #ffffff, #cfcfcf) !important;
  color: #111 !important;
  opacity: 1 !important;
}

.checkout-btn:disabled {
  background: #333 !important;
  color: rgba(255,255,255,.45) !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* =========================
   FAVORITES BAR PREMIUM
========================= */

.favorites-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 28px 0 10px;
}

.favorites-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.favorites-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.favorites-filter-btn {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: .25s ease;
}

.favorites-filter-btn:hover {
  background: rgba(255,255,255,.08);
}

.favorites-filter-btn.active {
  background: #fff;
  color: #111;
  font-weight: 600;
}

.favorites-counter {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 500;
}

.favorites-add-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(
    135deg,
    #ff4f7a,
    #ff2d55
  );
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform .25s ease,
    opacity .25s ease,
    box-shadow .25s ease;
  box-shadow:
    0 10px 30px rgba(255,45,85,.25);
}

.favorites-add-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px rgba(255,45,85,.35);
}

.favorites-add-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 768px) {

  .favorites-bar {
    align-items: stretch;
  }

  .favorites-left {
    width: 100%;
    justify-content: space-between;
  }

  .favorites-add-btn {
    width: 100%;
  }

}

/* =========================
   MOBILE PREMIUM BAR
========================= */

.mobile-action-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 520px;

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px;

  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;

  box-shadow:
    0 18px 50px rgba(0,0,0,.45);

  z-index: 9998;
}

.mobile-action-btn,
.mobile-pay-btn {
  border: 0;
  border-radius: 16px;

  min-height: 54px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform .18s ease,
    opacity .18s ease,
    background .18s ease;
}

.mobile-action-btn {
  flex: 1;

  background: rgba(255,255,255,.08);
  color: #fff;
}

.mobile-pay-btn {
  flex: 1.4;

  background: #fff;
  color: #111;
}

.mobile-action-btn:hover,
.mobile-pay-btn:hover {
  transform: translateY(-2px);
}

.mobile-action-btn:active,
.mobile-pay-btn:active {
  transform: scale(.97);
}

@media (max-width: 768px) {

  .mobile-action-bar {
    display: flex;
  }

  .gallery-actions {
    padding-bottom: 120px;
  }

}

.gallery-item__img.is-missing {
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px dashed rgba(255,255,255,.12);
  min-height: 260px;
  object-fit: contain;
}

.gallery-item.has-missing-preview::before {
  content: "Preview pendiente";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color: rgba(255,255,255,.55);
  font-size: 14px;
  letter-spacing: .04em;
}

/* =========================
   GLOBAL DARK OVERRIDE
========================= */

html,
body {
  background: #0b0b0b !important;
  color: #f5f5f5 !important;
}

main,
.site-main {
  background: #0b0b0b;
}

/* =========================
   ADMIN · BOOKING CALENDAR
========================= */

.calendar-booking {
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;

  background: rgba(255,255,255,.04);

  border-left: 6px solid rgba(255,255,255,.18);

  transition:
    transform .25s ease,
    background .25s ease;
}

.calendar-booking:hover {
  transform: translateY(-2px);

  background:
    rgba(255,255,255,.06);
}

.calendar-family {
  border-left-color:#4dabf7;
}

.calendar-baby {
  border-left-color:#ff8cc8;
}

.calendar-wedding {
  border-left-color:#ffd43b;
}

.calendar-event {
  border-left-color:#9775fa;
}

.calendar-branding {
  border-left-color:#63e6be;
}

.calendar-golf {
  border-left-color:#69db7c;
}

.calendar-couple {
  border-left-color:#ff922b;
}

.calendar-communion {
  border-left-color:#74c0fc;
}

.calendar-default {
  border-left-color:
  rgba(255,255,255,.25);
}

.calendar-conflict {
  background:
  rgba(255,80,80,.08);

  box-shadow:
  0 0 0 1px rgba(255,80,80,.18);
}

.calendar-conflict-label {
  display:inline-block;

  margin-top:6px;

  color:#ff8787;

  font-size:12px;

  font-weight:700;
}

.btn-danger {
  background: rgba(255, 80, 80, .12);
  color: #ff8787;
  border: 1px solid rgba(255, 80, 80, .35);
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger:hover {
  background: rgba(255, 80, 80, .2);
}

.client-premium-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}

.client-premium-card {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
}

.client-premium-card strong {
  display: block;
  margin-bottom: 6px;
}

.premium-number {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.premium-status {
  font-size: 13px;
  opacity: .75;
}

@media (max-width: 900px) {
  .client-premium-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .client-premium-panel {
    grid-template-columns: 1fr;
  }
}

/* Services detail media */
.container--service {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--service .media {
  margin: 28px 0;
  text-align: center;
}

.container--service .media__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

}