/* CIENPasiones Theme — paleta Old (styles1 / loginn)
   Blanco + magenta #ec195d + lila #522c52. Texto siempre legible.
*/

@font-face {
  font-family: 'AdobeClean';
  src: url('/assets/fonts/AdobeCleanRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AdobeClean';
  src: url('/assets/fonts/AdobeCleanBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cp-bg: #ffffff;
  --cp-bg-soft: #f7f4f7;
  --cp-surface: #ffffff;
  --cp-surface-2: #f0f0f0;
  --cp-search-bg: #f8f1f7;
  --cp-border: #e0d4de;
  --cp-border-strong: #522c52;

  --cp-primary: #ec195d;
  --cp-primary-hover: #a40035;
  --cp-lila: #522c52;
  --cp-lila-soft: #552c50;
  --cp-header-bg: #f2e3f2;

  --cp-text: #333333;
  --cp-muted: #666666;
  --cp-title: #522c52;

  --cp-good: #2fbf71;
  --cp-danger: #d93645;

  --cp-shadow-sm: 0 2px 8px rgba(82, 44, 82, 0.08);
  --cp-radius-sm: 5px;
  --cp-radius-md: 8px;
  --cp-radius-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'AdobeClean', Arial, Helvetica, sans-serif;
  color: var(--cp-text);
  background: #ffffff;
  line-height: 1.55;
  font-size: 15px;
  font-weight: 400;
}

a { color: var(--cp-lila); }
img { max-width: 100%; height: auto; }

.cp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.cp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.cp-main {
  flex: 1;
  padding: 16px 0 32px;
  background: #ffffff;
}

/* ========== Header (estilo Old menú) ========== */
.cp-header {
  background: #f2e3f2;
  border-bottom: 1px solid #e5cfe3;
}

.cp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.cp-brand { display: flex; align-items: center; }

.cp-logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  display: block;
}

.cp-top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cp-nav-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #522c52;
  padding: 7px 10px;
  border-radius: 8px;
}

.cp-nav-link:hover { background: rgba(255,255,255,0.55); }

.cp-nav-link--user {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--cp-border);
  max-width: 160px;
}

.cp-nav-link--user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 110px;
  vertical-align: bottom;
}

.cp-btn-pon {
  background: var(--cp-primary);
  color: #fff !important;
  border-radius: 15px;
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cp-btn-pon:hover {
  background: var(--cp-primary-hover);
  color: #fff !important;
}

.cp-btn-login {
  background: #fff;
  color: #333 !important;
  border: 1px solid #d9c4d6;
  border-radius: 15px;
  padding: 7px 14px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cp-btn-login:hover {
  background: #fffafc;
  color: var(--cp-lila) !important;
}

/* ========== Buscador estilo Old minibuscador ========== */
.cp-search-bar {
  background: var(--cp-search-bg);
  border: 1px solid #f0dced;
  padding: 10px;
  margin: 0 0 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cp-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.cp-search-field {
  flex: 1 1 160px;
  max-width: 220px;
  border: 1px solid #522c52;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.cp-search-field select,
.cp-search-field input {
  width: 100%;
  border: none;
  background: #fff;
  color: #522c52;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  padding: 9px 12px;
  height: 40px;
  outline: none;
}

.cp-search-field--grow {
  flex: 1 1 200px;
  max-width: 280px;
}

.cp-search-submit {
  background: #ec195d;
  color: #fff;
  border: none;
  border-radius: 4px;
  height: 40px;
  min-width: 48px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-search-submit:hover { background: #d4154f; }

/* Forms genéricos */
.cp-form-label {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--cp-lila);
}

.cp-form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cp-form-label-row .cp-form-label {
  margin: 0;
}

.cp-char-counter {
  font-size: 12px;
  color: #a40035;
  font-weight: 600;
}

.cp-char-counter.is-ok {
  color: #1f8a4c;
}

.cp-textarea {
  height: auto !important;
  min-height: 120px;
  padding: 12px !important;
  resize: vertical;
  line-height: 1.5;
}

.cp-select,
.cp-input {
  width: 100%;
  height: 42px;
  border-radius: 5px;
  border: 1px solid #522c52;
  background: #fff;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--cp-text);
  outline: none;
}

.cp-select:focus,
.cp-input:focus {
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 3px rgba(236, 25, 93, 0.12);
}

.cp-btn-search,
.cp-btn-primary {
  height: 42px;
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background: var(--cp-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cp-btn-search:hover,
.cp-btn-primary:hover {
  background: var(--cp-primary-hover);
  color: #fff;
}

.cp-btn-block {
  width: 100%;
  justify-content: center;
}

/* ========== Home layout ========== */
.cp-home-intro {
  margin: 0 0 14px;
  color: var(--cp-title);
}

.cp-home-intro h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-title);
}

.cp-home-intro p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 15px;
  font-weight: 400;
}

.cp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}

.cp-panel {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: 16px;
}

.cp-panel h2 {
  margin: 0 0 10px;
  color: var(--cp-title);
  font-size: 17px;
  font-weight: 700;
}

.cp-panel p {
  margin: 0 0 10px;
  color: var(--cp-muted);
  font-weight: 400;
}

.cp-sidebar {
  background: #f2e3f2;
  border-radius: var(--cp-radius-lg);
  padding: 14px;
}

.cp-sidebar-title {
  font-weight: 700;
  color: #391334;
  margin: 0 0 4px;
  font-size: 14px;
  text-transform: uppercase;
}

.cp-sidebar-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--cp-muted);
  font-weight: 400;
}

.cp-sidebar-subtitle {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #391334;
  text-transform: uppercase;
}

.cp-spain-map {
  width: 100%;
  min-height: 280px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--cp-border);
  overflow: hidden;
  padding: 4px 4px 0;
  box-sizing: border-box;
}

.cp-spain-map svg {
  width: 100% !important;
  height: auto !important;
  min-height: 260px;
  max-width: 100%;
  display: block;
  cursor: pointer;
  transform: none !important;
}

.cp-spain-map path[data-pid] {
  stroke: #522c52 !important;
  stroke-width: 1.15px !important;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cp-spain-map-tip {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-primary);
  min-height: 1.2em;
}

.cp-top-provinces {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-top-provinces a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  color: var(--cp-lila);
  font-size: 13px;
  font-weight: 600;
}

.cp-top-provinces a:hover {
  border: 1px solid var(--cp-primary);
  color: var(--cp-primary);
}

.cp-top-provinces strong {
  color: var(--cp-primary);
  font-size: 12px;
}

.cp-pasion-day {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--cp-border);
  color: var(--cp-title);
}

.cp-pasion-day i {
  color: var(--cp-primary);
  margin-top: 2px;
}

.cp-pasion-day strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.cp-pasion-day small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
}

.cp-sidebar-map {
  width: 100%;
  display: block;
  border-radius: 6px;
  margin: 0 0 12px;
  border: 1px solid var(--cp-border);
  background: #fff;
}

.cp-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-category-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  color: var(--cp-lila);
  border: 1px solid transparent;
}

.cp-category-btn:hover {
  border-color: var(--cp-primary);
}

.cp-category-btn--active {
  background: #fff;
  border-color: #b491af;
}

/* Bloques de categoría (estilo Old category-section) */
.cp-cat-block {
  background: #f2e3f2;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 10px;
}

.cp-cat-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #391334;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.cp-cat-block-title a {
  color: #391334;
  text-decoration: none;
}

.cp-cat-block-title a:hover {
  text-decoration: underline;
}

.cp-cat-provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.cp-cat-provinces a {
  font-size: 0.9rem;
  color: #b491af;
  text-decoration: none;
  font-weight: 400;
}

.cp-cat-provinces a:hover {
  color: #391334;
}

/* ========== Cards listado ========== */
.cp-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-ad-card {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-md);
  box-shadow: var(--cp-shadow-sm);
  overflow: hidden;
}

.cp-ad-card-inner {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 12px;
  padding: 14px;
  align-items: center;
}

.cp-ad-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cp-ad-ref {
  font-size: 12px;
  font-weight: 600;
  color: var(--cp-muted);
  background: #f2e3f2;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}

.cp-ad-view-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cp-ad-view-link:hover {
  text-decoration: underline;
}

.cp-ad-title {
  font-weight: 700;
  font-size: 16px;
  margin: 6px 0 4px;
  color: var(--cp-title);
}

.cp-ad-title a,
.cp-ad-excerpt a {
  color: inherit;
  text-decoration: none;
}

.cp-ad-title a:hover {
  color: var(--cp-primary);
}

.cp-ad-excerpt {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
  font-weight: 400;
}

.cp-ad-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--cp-muted);
  font-weight: 400;
}

.cp-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cp-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--cp-border);
  background: #fff;
  color: var(--cp-lila);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.cp-icon-btn:hover { background: #f2e3f2; }
.cp-icon-btn--whatsapp { color: #1fa855; border-color: #b7ebc9; }
.cp-icon-btn--danger { color: #a31928; border-color: #f0c2c7; }

.cp-ad-card-image {
  width: 170px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2e3f2;
}

.cp-ad-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== Detail / listing panels ========== */
.cp-detail {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  overflow: hidden;
}

.cp-detail-header {
  padding: 14px 16px 10px;
  background: #f8f1f7;
  border-bottom: 1px solid var(--cp-border);
}

.cp-detail-breadcrumb {
  font-weight: 600;
  color: var(--cp-muted);
  font-size: 12px;
  margin: 0 0 6px;
}

.cp-detail-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--cp-title);
}

.cp-detail-body { padding: 16px; }

.cp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}

.cp-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-detail-description {
  margin: 0;
  color: var(--cp-text);
  line-height: 1.65;
  white-space: pre-wrap;
  font-weight: 400;
  border-left: 3px solid var(--cp-primary);
  padding-left: 12px;
}

.cp-detail-image {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  background: #f2e3f2;
}

.cp-detail-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.cp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.cp-detail-actions--toolbar {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cp-border);
}

.cp-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cp-detail-header--ad .cp-detail-title {
  flex: 1;
  min-width: 200px;
}

.cp-icon-btn--onlyfans {
  color: #00aff0;
  border-color: #b3e7f8;
}

.cp-account-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cp-account-subnav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-lila);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.cp-account-subnav a:hover,
.cp-account-subnav a.is-active {
  background: #fff;
  border-color: var(--cp-border);
  color: var(--cp-primary);
}

.cp-modal-dialog--wide {
  width: min(640px, calc(100% - 32px));
}

.cp-photo-manage {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f2e3f2;
  aspect-ratio: 1;
}

.cp-photo-manage.is-primary {
  border-color: var(--cp-primary);
}

.cp-photo-manage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-photo-manage-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}

.cp-photo-manage-actions button,
.cp-photo-badge {
  font-size: 11px;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  background: #fff;
  color: #522c52;
  font-family: inherit;
}

.cp-photo-manage-actions button.is-danger {
  color: #a31928;
}

.cp-photo-badge {
  background: var(--cp-primary);
  color: #fff;
  cursor: default;
}

.cp-myad-chart {
  margin-top: 10px;
  height: 140px;
}

.cp-myad-chart-toggle {
  margin-top: 8px;
}

.cp-icon-btn.is-active {
  background: #fff5f8;
  border-color: var(--cp-primary);
  color: var(--cp-primary);
}

.cp-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-detail-image {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
}

.cp-detail-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--cp-muted);
  font-weight: 700;
  cursor: default;
}

.cp-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cp-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #f2e3f2;
  cursor: pointer;
  aspect-ratio: 1;
}

.cp-gallery-thumb.is-active,
.cp-gallery-thumb:hover {
  border-color: var(--cp-primary);
}

.cp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-modal[hidden],
.cp-lightbox[hidden] {
  display: none !important;
}

.cp-modal,
.cp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-modal-backdrop,
.cp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 20, 0.72);
}

.cp-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.cp-modal-dialog h2 {
  margin: 0 0 10px;
  color: var(--cp-title);
  font-size: 18px;
}

.cp-modal-close,
.cp-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.cp-modal-email {
  font-size: 16px;
  font-weight: 700;
  color: var(--cp-lila);
  word-break: break-all;
  margin: 0 0 14px;
}

.cp-lightbox img {
  position: relative;
  z-index: 1;
  max-width: min(920px, calc(100% - 48px));
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.cp-lightbox-close {
  z-index: 2;
  color: #fff;
  top: 16px;
  right: 18px;
}

.cp-lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: #522c52;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.cp-lightbox-prev { left: 16px; }
.cp-lightbox-next { right: 16px; }

/* Mis anuncios panel */
.cp-myads-empty {
  text-align: center;
  padding: 48px 20px;
  max-width: 420px;
  margin: 0 auto;
}

.cp-myads-empty i {
  font-size: 42px;
  color: var(--cp-primary);
  margin-bottom: 14px;
}

.cp-myads-empty h2 {
  margin: 0 0 8px;
  color: var(--cp-title);
  font-size: 20px;
}

.cp-myads-empty p {
  margin: 0 0 18px;
  color: var(--cp-muted);
  font-weight: 400;
}

.cp-myad {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
}

.cp-myad-photo {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2e3f2;
}

.cp-myad-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-myad-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.cp-myad-metric {
  background: #f8f1f7;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.cp-myad-metric strong {
  display: block;
  color: var(--cp-title);
  font-size: 15px;
}

.cp-myad-metric span {
  font-size: 11px;
  color: var(--cp-muted);
  font-weight: 400;
}

.cp-myad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cp-myad-chart {
  margin-top: 10px;
  height: 140px;
}

@media (max-width: 720px) {
  .cp-myad {
    grid-template-columns: 1fr;
  }
  .cp-myad-photo {
    width: 100%;
    height: 180px;
  }
  .cp-myad-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cp-meta {
  color: var(--cp-muted);
  font-size: 14px;
  font-weight: 400;
}

.cp-meta strong {
  color: var(--cp-title);
  font-weight: 700;
}

/* ========== Auth ========== */
.cp-auth {
  max-width: 560px;
  margin: 0 auto;
}

.cp-auth-alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 400;
}

.cp-auth-alert--error {
  background: #ffecec;
  color: #8a1f11;
  border: 1px solid #f5c2c7;
}

.cp-auth-alert--ok {
  background: #e8fff0;
  color: #0b6b2a;
  border: 1px solid #bfe8cb;
}

/* Registro card (Old registronew) */
.registro-card {
  max-width: 520px;
  margin: 0 auto;
  background: #f0f0f0;
  padding: 28px 24px;
  border-radius: 10px;
}

.registro-card .titulo-registro {
  color: #522c52;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
}

.registro-card label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  color: #522c52;
  font-size: 14px;
}

.registro-card input[type="text"],
.registro-card input[type="email"],
.registro-card input[type="password"],
.registro-card input[type="date"],
.registro-card select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #522c52;
  margin-bottom: 14px;
  font-family: inherit;
  background: #fff;
  color: #333;
}

.registro-card .msg-pro {
  font-size: 12px;
  color: #a40035;
  margin-top: -8px;
  margin-bottom: 12px;
  font-weight: 400;
}

.registro-card .error { color: #a40035; }

.registro-card .acepto-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 16px;
}

.registro-card .acepto-wrap label {
  display: inline;
  margin: 0;
  font-weight: 400;
  color: #333;
  font-size: 14px;
}

.registro-card .acepto-wrap a {
  color: #ec195d;
  font-weight: 600;
  text-decoration: none;
}

.registro-card .btn-registro {
  width: 100%;
  background: #ec195d;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.registro-card .btn-registro:hover { background: #a40035; }

.registro-card .login-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: #522c52;
  font-size: 14px;
  font-weight: 400;
}

/* Google OAuth button */
.cp-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  background: #ffffff;
  color: #3c4043 !important;
  border: 1px solid #dadce0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  box-sizing: border-box;
}

.cp-btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60,64,67,.2);
  color: #3c4043 !important;
}

.cp-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #888;
  font-size: 13px;
  font-weight: 400;
}

.cp-auth-divider::before,
.cp-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d9c4d6;
}

.cp-auth-divider span { white-space: nowrap; }

/* ========== Footer (exacto Old styles1) ========== */
.footer {
  background-color: #ffffff;
  color: #552c50;
  padding: 20px;
  margin-top: 20px;
  border-top: 1px solid #ccc;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  width: 100%;
  font-weight: 400;
}

.footer p {
  margin: 10px auto;
  font-weight: 400;
  color: #552c50;
  max-width: 1200px;
}

.footer a {
  color: #552c50;
  text-decoration: none;
  font-weight: 400;
}

.footer a:hover {
  text-decoration: underline;
}

/* Compat: antiguo nombre */
.cp-footer { display: none; }

/* ========== Pagination ========== */
.cp-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cp-pager a,
.cp-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--cp-border);
  text-decoration: none;
  color: var(--cp-lila);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}

.cp-pager .is-active {
  background: var(--cp-primary);
  color: #fff;
  border-color: var(--cp-primary);
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-detail-grid { grid-template-columns: 1fr; }
  .cp-ad-card-inner { grid-template-columns: 1fr; }
  .cp-ad-card-image { width: 100%; height: 180px; }
  .cp-logo { height: 42px; }
  .cp-search-field,
  .cp-search-field--grow {
    max-width: none;
    flex: 1 1 100%;
  }
  .cp-search-submit { width: 100%; height: 42px; }
}
