/* Mac3D — Detalle de anuncio */
.anu-main { padding: 6.5rem 0 4rem; background: #fafafa; min-height: 100vh; }
.anu-shell { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.anu-banner {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: #8a5300;
  background: #fff4e6;
  padding: .45rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.anu-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
/* Pantallas XL: sidebar un poco más ancho */
@media (min-width: 1280px) {
  .anu-grid { grid-template-columns: 1fr 400px; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .anu-grid { grid-template-columns: 1fr; }
}

.anu-content { min-width: 0; }

/* Galería */
.anu-gallery { margin-bottom: 2rem; }
.anu-gallery-main {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0ede6;
  margin-bottom: .75rem;
}
.anu-gallery-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.anu-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: .4rem;
}
.anu-thumb {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: transparent;
  transition: border-color .15s, transform .15s;
}
.anu-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anu-thumb:hover { transform: translateY(-1px); }
.anu-thumb.is-active { border-color: #D94F1E; }

/* Header del anuncio */
.anu-header { margin-bottom: 1.5rem; }
.anu-empresa {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #D94F1E;
  margin-bottom: .35rem;
}
.anu-titulo {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 .8rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #1d1d1f;
}
.anu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .9rem;
  color: #6e6e73;
  margin-bottom: 1rem;
}
.anu-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.anu-meta-cat {
  background: rgba(217, 79, 30, .1);
  color: #D94F1E;
  padding: .2rem .65rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}
.anu-precio {
  font-size: 1.6rem;
  font-weight: 800;
  color: #D94F1E;
  letter-spacing: -.01em;
}

.anu-corta {
  font-size: 1.05rem;
  color: #1d1d1f;
  font-style: italic;
  line-height: 1.5;
  padding: 1rem 1.2rem;
  background: #fff;
  border-left: 3px solid #D94F1E;
  border-radius: 4px;
  margin: 0 0 1.5rem;
}
.anu-larga {
  color: #1d1d1f;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 2rem;
  white-space: pre-wrap;
}

.anu-video {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.anu-video iframe { width: 100%; height: 100%; border: none; }

.anu-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 2rem;
}
.anu-tags span {
  font-size: .8rem;
  padding: .25rem .7rem;
  background: #fff;
  color: #6e6e73;
  border-radius: 100px;
  font-weight: 500;
}

/* Sidebar contacto */
.anu-sidebar { position: sticky; top: 90px; }
.anu-contact {
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.anu-contact-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #1d1d1f;
}

.anu-btn {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: .55rem;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  box-sizing: border-box;
}
.anu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.anu-btn-wa {
  background: #25d366;
  color: #fff;
}
.anu-btn-email {
  background: #1d1d1f;
  color: #fff;
}
.anu-btn-tel {
  background: #fff;
  color: #1d1d1f;
  border: 1px solid rgba(0,0,0,.15);
}
.anu-btn-link {
  background: #fff;
  color: #1d1d1f;
  border: 1px solid rgba(0,0,0,.15);
}

.anu-redes {
  display: flex;
  gap: .5rem;
  margin: 1rem 0;
  justify-content: center;
}
.anu-redes a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 700;
  transition: background .15s;
}
.anu-redes a:hover { background: #efefef; }

.anu-report {
  margin-top: 1rem;
  padding: .55rem;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 100px;
  font-family: inherit;
  font-size: .8rem;
  color: #6e6e73;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.anu-report:hover { background: #fff0ee; color: #a02020; border-color: rgba(160,32,32,.2); }

/* ─── Videos múltiples ─── */
/* ─── Videos múltiples — layout adaptativo ─── */
.anu-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
/* 2 videos: 2 columnas en desktop */
.anu-videos.has-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .anu-videos.has-2 { grid-template-columns: 1fr 1fr; }
}
/* 3 videos: destacado arriba + 2 thumbnails debajo */
.anu-videos.has-3 {
  grid-template-columns: 1fr;
  grid-template-areas:
    "main"
    "thumb1"
    "thumb2";
  gap: .75rem;
}
@media (min-width: 720px) {
  .anu-videos.has-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "main thumb1"
      "main thumb2";
    gap: .75rem;
  }
}
.anu-videos.has-3 .anu-video:nth-child(1) { grid-area: main; }
.anu-videos.has-3 .anu-video:nth-child(2) { grid-area: thumb1; }
.anu-videos.has-3 .anu-video:nth-child(3) { grid-area: thumb2; }

.anu-videos .anu-video {
  margin-bottom: 0;
  aspect-ratio: 16/9;
}
/* En layout de 3, los thumbnails pueden ser más cuadrados */
@media (min-width: 720px) {
  .anu-videos.has-3 .anu-video:nth-child(2),
  .anu-videos.has-3 .anu-video:nth-child(3) {
    aspect-ratio: 16/9;
  }
}

/* ─── Redes sociales mejoradas ─── */
.anu-redes {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1rem 0;
}
.anu-red {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .9rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.anu-red:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.anu-red-ig {
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}
.anu-red-fb { background: #1877f2; }
.anu-red-tt { background: #000; }

/* ─── Botón reportar mejorado ─── */
.anu-report {
  margin-top: 1.2rem;
  padding: .65rem 1rem;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 100px;
  font-family: inherit;
  font-size: .82rem;
  color: #86868b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .15s;
}
.anu-report:hover {
  background: #fff0ee;
  color: #c8302a;
  border-color: rgba(200,48,42,.25);
}

/* ─── Modal reporte ─── */
.anu-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.anu-modal.is-open { opacity: 1; visibility: visible; }
.anu-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,20,25,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.anu-modal-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  width: min(440px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  animation: anuModalIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes anuModalIn {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.anu-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border: none;
  background: #f5f5f7;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #6e6e73;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anu-modal-close:hover { background: #efefef; color: #1d1d1f; }
.anu-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff4e6;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.anu-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 .4rem;
  color: #1d1d1f;
  letter-spacing: -.01em;
}
.anu-modal-desc {
  text-align: center;
  color: #6e6e73;
  font-size: .9rem;
  margin: 0 0 1.5rem;
}
.anu-report-options {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.anu-report-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 1px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: all .12s;
}
.anu-report-option:hover { background: #fafafa; border-color: #ddd; }
.anu-report-option input[type=radio] { margin: 0; accent-color: #D94F1E; }
.anu-report-option input:checked ~ div { color: #1d1d1f; }
.anu-report-option:has(input:checked) {
  background: rgba(217, 79, 30, .05);
  border-color: rgba(217, 79, 30, .35);
}
.anu-report-option div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.anu-report-option strong { font-size: .87rem; color: #1d1d1f; font-weight: 600; }
.anu-report-option span { font-size: .76rem; color: #86868b; }

.anu-modal-box textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid rgba(0,0,0,.13);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 1rem;
}
.anu-modal-box textarea:focus {
  border-color: #D94F1E;
  box-shadow: 0 0 0 3px rgba(217,79,30,.12);
}

.anu-modal-actions {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
}
.anu-modal-btn {
  padding: .65rem 1.3rem;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all .15s;
}
.anu-modal-cancel {
  background: #fff;
  color: #1d1d1f;
  border: 1px solid rgba(0,0,0,.15);
}
.anu-modal-cancel:hover { background: #f5f5f7; }
.anu-modal-submit {
  background: #D94F1E;
  color: #fff;
}
.anu-modal-submit:hover { background: #b83e13; }
.anu-modal-submit:disabled { opacity: .6; cursor: not-allowed; }

.anu-modal-thanks { text-align: center; }
.anu-modal-thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e8f7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anu-modal-thanks .anu-modal-submit {
  display: inline-block;
  margin-top: 1.5rem;
}

/* ─── Sección comentarios — estilo Threads/Instagram ─── */
.anu-comments-section {
  background: transparent;
  padding: 2rem 0 0;
  margin-top: 3rem;
  border-top: 1px solid #e8e8eb;
  box-shadow: none;
  border-radius: 0;
}
.anu-comments-header {
  margin-bottom: 1.5rem;
}
.anu-comments-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .15rem;
  color: #1d1d1f;
  letter-spacing: -.01em;
}
.anu-comments-title svg { color: #86868b; opacity: .7; }
.anu-comments-count {
  background: transparent;
  color: #86868b;
  font-size: .82rem;
  padding: 0;
  font-weight: 600;
  margin-left: .15rem;
}
.anu-comments-count::before { content: '· '; }
.anu-comments-sub {
  color: #86868b;
  font-size: .85rem;
  margin: 0;
}

/* Form de comentario — minimalista */
.anu-comment-form {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e8e8eb;
  border-radius: 0;
  padding: 1.2rem 0;
  margin-bottom: 0;
  transition: none;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.anu-comment-form:focus-within { box-shadow: none; }

/* La estructura: avatar a la izquierda, contenido a la derecha */
.anu-comment-form .anu-comment-user {
  display: contents; /* hack para que avatar quede fuera */
}
.anu-comment-user .anu-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D94F1E 0%, #ff7841 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none;
}
.anu-comment-user .anu-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Wrap del contenido del form */
.anu-comment-form-body {
  flex: 1;
  min-width: 0;
}
.anu-comment-form-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.anu-comment-user-name {
  font-weight: 700;
  font-size: .9rem;
  color: #1d1d1f;
  letter-spacing: -.01em;
}
.anu-comment-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #D94F1E;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-transform: none;
}
.anu-comment-author-badge::before {
  content: '·';
  margin-right: 1px;
  font-weight: 700;
  font-size: 1.1em;
  line-height: 0;
  vertical-align: middle;
}

.anu-comment-form textarea {
  width: 100%;
  padding: .25rem 0;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  resize: none;
  box-sizing: border-box;
  background: transparent;
  color: #1d1d1f;
  line-height: 1.45;
  min-height: 24px;
  transition: none;
  overflow: hidden;
}
.anu-comment-form textarea:focus { box-shadow: none; }
.anu-comment-form textarea::placeholder { color: #86868b; }

.anu-comment-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .8rem;
  gap: 1rem;
}
.anu-comment-bottom small {
  color: #86868b;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}
.anu-comment-submit {
  padding: .45rem 1.15rem;
  background: #1d1d1f;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  box-shadow: none;
  letter-spacing: -.01em;
}
.anu-comment-submit:hover:not(:disabled) {
  background: #000;
  transform: none;
  box-shadow: none;
}
.anu-comment-submit:disabled {
  opacity: .35;
  cursor: not-allowed;
  background: #1d1d1f;
}

/* Lista de comentarios */
.anu-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.anu-comments-loading,
.anu-comments-empty,
.anu-comments-error {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #86868b;
  font-size: .9rem;
}
.anu-comments-empty::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto .5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0c0c5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
  background-repeat: no-repeat;
}

/* Cada comentario - tipo Threads/IG */
.anu-comment {
  padding: 1.1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f0f0f3;
  border-radius: 0;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  transition: none;
}
.anu-comment:hover { background: transparent; border-color: #f0f0f3; }
.anu-comment:last-child { border-bottom: none; }
.anu-comment.is-author {
  background: transparent;
  border-color: #f0f0f3;
  box-shadow: none;
}

.anu-comment .anu-comment-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #D94F1E 0%, #ff7841 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  overflow: hidden;
  box-shadow: none;
}
.anu-comment .anu-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.anu-comment-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .15rem;
  flex-wrap: wrap;
}
.anu-comment-meta {
  flex: 1;
  min-width: 0;
}
.anu-comment-name {
  font-weight: 700;
  font-size: .9rem;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  letter-spacing: -.01em;
}
.anu-comment-time {
  font-size: .78rem;
  color: #86868b;
  font-weight: 400;
}
.anu-comment-time::before {
  content: '·';
  margin-right: 5px;
  color: #c0c0c5;
}
.anu-comment-body {
  font-size: .94rem;
  color: #1d1d1f;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 2px;
}

/* Login prompt */
.anu-comments-login {
  background: transparent;
  border-bottom: 1px solid #e8e8eb;
  border-radius: 0;
  padding: 1rem 0 1.2rem;
  text-align: left;
  margin-bottom: 0;
}
.anu-comments-login p { margin: 0; color: #86868b; font-size: .9rem; }
.anu-comments-login a { color: #D94F1E; font-weight: 600; text-decoration: none; }
.anu-comments-login a:hover { text-decoration: underline; }