:root {
  --bg: #f6f3ef;
  --paper: #fffdfb;
  --ink: #1e1f24;
  --muted: #5a5e66;
  --line: #ddd5cb;
  --accent: #e0532d;
  --accent-2: #0f766e;
  --accent-soft: #ffe2d9;
  --shadow: 0 16px 40px rgba(35, 26, 21, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 10%, #fff1eb 0%, transparent 35%),
    radial-gradient(circle at 80% 0%, #d9f3ee 0%, transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Trebuchet MS", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(255, 253, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f57f3a);
  color: #fff;
}

.btn-soft {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero {
  width: min(1200px, 100% - 36px);
  margin: 24px auto;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(140deg, #fff7f4, #eaf8f5);
  border: 1px solid #f0ded8;
}

.hero h1 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 800px;
}

.layout {
  width: min(1200px, 100% - 36px);
  margin: 0 auto 30px;
  display: grid;
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  font-size: 1.1rem;
}

.carousel-wrap {
  overflow: hidden;
  position: relative;
  padding: 16px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: glide 36s linear infinite;
}

.ad-card {
  width: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ece6de;
}

.ad-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.ad-info {
  padding: 10px;
}

.ad-info h4 {
  margin: 0;
  font-size: 0.95rem;
}

.ad-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  padding: 16px;
}

.latest-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ece6de;
  background: #fff;
}

.latest-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.latest-body {
  padding: 10px;
}

.latest-body h4,
.latest-body p {
  margin: 0;
}

.latest-body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty {
  padding: 22px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 17, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 90;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #efe2d8;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.public-preview-topbar {
  padding: 10px 16px;
  background: linear-gradient(90deg, #fff7fb 0%, #ffeaf4 100%);
  border-bottom: 1px solid #f2d5e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: inset 0 -1px 0 rgba(255, 64, 125, 0.06);
}

.public-preview-topbar-status {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7a4565;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 150, 200, 0.24);
  box-shadow: 0 2px 8px rgba(74, 26, 60, 0.04);
}

.public-preview-topbar-status-left {
  text-align: left;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
}

.public-preview-heart-icon {
  width: 22px;
  height: 22px;
  display: block;
  color: #262626;
}

.public-preview-topbar-status-center {
  text-align: center;
  flex: 1;
  border-radius: 30px 40px 30px 40px / 40px 30px 40px 30px; /* Orgánico y esponjoso estilo nube */
  background: linear-gradient(135deg, #ffffff 0%, #fff6fb 100%);
  border: 1.5px solid rgba(255, 105, 180, 0.35);
  color: #9d3b6c;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.public-preview-topbar-status-center::before {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 24px;
  width: 8px;
  height: 8px;
  background: #fff6fb;
  border: 1.5px solid rgba(255, 105, 180, 0.35);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(255, 105, 180, 0.08);
}

.public-preview-topbar-status-center::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 18px;
  width: 5px;
  height: 5px;
  background: #fff6fb;
  border: 1.5px solid rgba(255, 105, 180, 0.35);
  border-radius: 50%;
}

.public-preview-topbar-status-right {
  text-align: right;
  flex: 0 0 auto;
}

#publicClosePreviewBtn {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(255, 150, 200, 0.24);
  color: #7a4565;
  box-shadow: 0 2px 8px rgba(74, 26, 60, 0.04);
}

.form-wrap {
  padding: 14px 16px 22px;
}

.accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  border: 0;
  text-align: left;
  padding: 12px 14px;
  background: #fffaf6;
  font-weight: 700;
  cursor: pointer;
}

.acc-content {
  display: none;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.accordion.open .acc-content {
  display: block;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #d7cec2;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
}

.rate-list,
.video-links {
  display: grid;
  gap: 8px;
}

.public-preview-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.public-preview-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff5f7;
  border: 1px solid #f5d5e1;
  color: #4a1a3c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(255, 64, 125, 0.06);
}
.public-preview-detail-pill span {
  color: #7a4565;
  font-weight: 600;
}
.public-preview-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.public-preview-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f8d6;
  border: 1px solid #c1e4a9;
  color: #386a16;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.photo-item {
  border: 1px solid #dfd4c8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.photo-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.photo-item label {
  display: block;
  padding: 6px;
  font-size: 0.8rem;
}

.notice {
  background: #fff0ea;
  border: 1px solid #ffd7c9;
  color: #8f3b21;
  padding: 9px 10px;
  border-radius: 10px;
  margin-top: 10px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.preview-box {
  border: 1px solid #dbcfc3;
  border-radius: 14px;
  padding: 10px;
  background: #fffcfa;
  margin-top: 10px;
}

.preview-box h3 {
  margin: 0;
}

@keyframes glide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 780px) {
  .site-header {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .ad-card {
    width: 190px;
  }

  .ad-card img {
    height: 240px;
  }

  .public-preview-topbar-status-center {
    white-space: normal;
    word-break: break-word;
    font-size: 0.76rem;
  }
}

@media (max-width: 580px) {
  .public-preview-topbar-status-right {
    display: none;
  }
}

/* ── AGE SLIDER ──────────────────────────────────── */
.age-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #ff96c8 0%, #ff407d 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.age-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff407d;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 64, 125, 0.3);
  transition: all 0.15s;
}

.age-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 64, 125, 0.5);
}

.age-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff407d;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 64, 125, 0.3);
  transition: all 0.15s;
}

.age-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 64, 125, 0.5);
}

.age-slider::-moz-range-track { background: none; border: none; }

/* ── BARRA DE CONTACTO PEGAJOSA (PREMIUM) ── */
.modal-sticky-contact-bar, .sticky-contact-bar {
  position: sticky;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--sticky-contact-bg, rgba(255, 255, 255, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 64, 125, 0.15);
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(74, 26, 60, 0.08);
  border-radius: 0 0 18px 18px;
}

.sticky-contact-btn {
  flex: 1;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff !important;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.sticky-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.sticky-contact-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sticky-contact-btn.btn-phone {
  background: #e02424;
}
.sticky-contact-btn.btn-phone:hover {
  background: #c81e1e;
}

.sticky-contact-btn.btn-telegram {
  background: #3f83f8;
}
.sticky-contact-btn.btn-telegram:hover {
  background: #1c64f2;
}

.sticky-contact-btn.btn-whatsapp {
  background: #0e9f6e;
}
.sticky-contact-btn.btn-whatsapp:hover {
  background: #057a55;
}

