/* ========== VARIABLES ========== */
:root {
  --bg: #ffffff;
  --text: #111111;
  --card: #fffdf5;
  --border: #111111;
  --muted-border: rgba(17, 17, 17, 0.18);
  --accent: #e6002e;
}

body.dark {
  --bg: #0e0e0e;
  --text: #f5f5f5;
  --card: #181818;
  --border: #3a3a3a;
  --muted-border: rgba(255, 255, 255, 0.18);
  --accent: #ffffff;
}

body.dark .toggle:hover,
body.dark .secondary-nav-btn:hover,
body.dark .video-watch-btn {
  color: #111111;
}

/* ========== BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: var(--bg);
}

body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* ========== BANNER ========== */
.banner {
  background: black;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 2rem;
  letter-spacing: 2px;
  font-weight: bold;
}

/* ========== BOTÓN DARK MODE ========== */
.toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fde047;
  color: #111111;
  border: 2px solid #111111;
  padding: 7px 14px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.toggle:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ========== LAYOUT ========== */
.layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== MAIN CONTENT ========== */
#mainNews {
  width: 70%;
  padding: 25px 40px 40px 40px;
}

.main-heading {
  font-family: inherit;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: 30%;
  background: #fde047;
  color: #111111;
  border-left: 2px solid #111111;
  padding: 25px;
  height: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--card);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #ff1a47;
}

.sidebar h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111111;
}

/* ========== HERO (noticia principal) ========== */
.hero {
  margin-bottom: 36px;
  cursor: pointer;
  animation: pageIn 0.7s ease;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--border);
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 18px 22px 8px 22px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.82;
  margin: 0 22px 20px 22px;
}

/* ========== GRID Y CARRUSEL DE 3 NOTICIAS SECUNDARIAS ========== */
.secondary-news-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.secondary-news-row .grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.secondary-news-row .grid.slide-next {
  animation: modalSlideNext 0.3s ease;
}

.secondary-news-row .grid.slide-prev {
  animation: modalSlidePrev 0.3s ease;
}

.secondary-nav-btn {
  flex-shrink: 0;
  width: 44px;
  height: 54px;
  background: #fde047;
  color: #111111;
  border: 2px solid #111111;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.secondary-nav-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateX(2px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ========== CARD ========== */
.card {
  background: var(--card);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: pageIn 0.7s ease;
  border-radius: 6px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--border);
}

.card h2 {
  padding: 14px 16px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ========== SIDEBAR ITEMS ========== */
.side-item {
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border-radius: 6px;
  background: #fffdf0;
  color: #111111;
  border: 2px solid #111111;
  font-weight: 700;
  font-size: 0.94rem;
}

.side-item:hover {
  background: #111111;
  border-color: #111111;
  color: #fde047;
  transform: translateX(4px);
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg);
  border: 2px solid var(--border);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  animation: scaleIn 0.3s ease;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}

/* Scroll personalizado */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--card);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* ========== MODAL BODY ========== */
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  flex: 1;
}

/* ========== TEXTO DEL MODAL (ARRIBA EN MÓVIL) ========== */
.modal-text {
  padding: 35px 35px 20px 35px;
  order: 1;
}

.modal-text h1 {
  font-size: 2rem;
  margin: 0 0 12px 0;
  color: var(--text);
}

.modal-text h3 {
  font-size: 1.2rem;
  margin: 0 0 20px 0;
  opacity: 0.8;
  font-weight: normal;
}

.modal-text p {
  line-height: 1.7;
  font-size: 1rem;
}

/* ========== MEDIA DEL MODAL (ABAJO EN MÓVIL) ========== */
.modal-media {
  padding: 0 35px 35px 35px;
  order: 2;
}

.modal-media img {
  width: 100%;
  border-radius: 12px;
  display: block;
  max-height: 450px;
  object-fit: contain;
  background: #000;
  cursor: pointer;
  touch-action: none;
}

/* ========== VIDEO - CORREGIDO (SIN ACHATAMIENTO) ========== */
.modal-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  display: block;
  background: #000;
}

.video-local-fallback {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.video-watch-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: 0.2s;
}

.video-watch-btn:hover {
  transform: scale(1.04);
}

/* ========== FLECHAS DE NAVEGACIÓN ========== */
.nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: 0.3s;
}

.nav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.nav.prev {
  left: 25px;
}

.nav.next {
  right: 25px;
}

/* ========== PUNTITOS ESTILO TIKTOK EN MODAL ========== */
.modal-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 20px 20px;
  flex-wrap: wrap;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.45);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, transform 0.25s ease, opacity 0.3s ease;
  opacity: 0.65;
}

body.dark .modal-dot {
  background: rgba(255, 255, 255, 0.35);
}

.modal-dot:hover {
  opacity: 0.9;
  transform: scale(1.15);
}

.modal-dot.active {
  width: 24px;
  background: var(--text);
  opacity: 1;
  animation: dotPop 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes dotPop {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.modal-body.slide-next {
  animation: modalSlideNext 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-body.slide-prev {
  animation: modalSlidePrev 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalSlideNext {
  from {
    opacity: 0;
    transform: translateX(35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalSlidePrev {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== ANIMACIONES ========== */
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========== ESCRITORIO (imagen a la derecha - AMBOS SCROLL JUNTOS) ========== */
@media (min-width: 769px) {
  .modal-body {
    flex-direction: row;
    align-items: stretch;
  }
  
  .modal-text {
    flex: 1;
    padding: 40px 30px 40px 40px;
    order: 1;
    overflow-y: auto;
    max-height: 80vh;
  }
  
  .modal-media {
    flex: 1;
    padding: 40px 40px 40px 0;
    order: 2;
    overflow-y: auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .modal-media img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .modal-media iframe {
    width: 100%;
    min-height: 300px;
  }
}

/* ========== TABLET ========== */
@media (max-width: 1024px) and (min-width: 769px) {
  .modal-text h1 {
    font-size: 1.6rem;
  }
  
  .modal-text h3 {
    font-size: 1rem;
  }
  
  .modal-text p {
    font-size: 0.9rem;
  }
}

/* ========== MÓVIL ========== */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  
  #mainNews {
    width: 100%;
    padding: 20px;
  }

  .main-heading {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    margin-top: 20px;
    border-left: none;
    border-top: 2px solid var(--border);
  }
  
  .hero {
    margin-bottom: 28px;
  }

  .hero img {
    height: 250px;
  }
  
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .secondary-news-row {
    flex-direction: column;
    align-items: stretch;
  }

  .secondary-news-row .grid,
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .secondary-nav-btn {
    width: 100%;
    height: 42px;
  }

  .card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 6px;
  }

  .card img {
    width: 115px;
    min-width: 115px;
    height: 85px;
    object-fit: cover;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 2px solid var(--border);
  }

  .card h2 {
    padding: 10px 14px;
    font-size: 0.98rem;
    line-height: 1.3;
  }
  
  .modal-content {
    min-height: 78vh;
    max-height: 88vh;
    justify-content: space-between;
  }
  
  .modal-text {
    padding: 25px 20px 15px 20px;
  }
  
  .modal-text h1 {
    font-size: 1.5rem;
  }
  
  .modal-text h3 {
    font-size: 1rem;
  }
  
  .modal-media {
    padding: 0 20px 25px 20px;
  }
  
  .modal-media img {
    max-height: 300px;
  }
  
  .nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .nav.prev {
    left: 10px;
  }
  
  .nav.next {
    right: 10px;
  }
}

/* ========== MÓVIL PEQUEÑO ========== */
@media (max-width: 480px) {
  .banner {
    font-size: 1.5rem;
    padding: 15px;
  }
  
  .toggle {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .hero img {
    height: 220px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card img {
    width: 100px;
    min-width: 100px;
    height: 78px;
  }

  .card h2 {
    padding: 8px 12px;
    font-size: 0.92rem;
  }
  
  .modal-text {
    padding: 20px 15px 10px 15px;
  }
  
  .modal-text h1 {
    font-size: 1.3rem;
  }
  
  .modal-media {
    padding: 0 15px 20px 15px;
  }
  
  .modal-media img {
    max-height: 250px;
  }
  
  .nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* ========== AJUSTES PARA IMAGEN CON ZOOM ========== */
.modal-media img {
  transition: transform 0.05s linear;
  transform-origin: center center;
}

/* ========== EFECTOS ADICIONALES ========== */
.side-item {
  word-break: break-word;
}

.card h2 {
  word-break: break-word;
}

/* Evitar selección de texto en elementos clickeables */
.hero, .card, .side-item, .nav, .toggle {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ========== LOGO EN EL BANNER ========== */
.banner-logo {
  height: 120px;
  width: auto;
  display: inline-block;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
  .banner-logo {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .banner-logo {
    height: 32px;
  }
}

/* ========== POPUP PUBLICITARIO ESTILO YOUTUBE ========== */
.ad-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
}

.ad-popup.active {
  visibility: visible;
  opacity: 1;
}

.ad-container {
  background: #fde047;
  max-width: 800px;
  width: 90%;
  border: 2px solid #111111;
  border-radius: 6px;
  padding: 12px 12px 0 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.55);
  animation: adSlideIn 0.4s ease;
}

@keyframes adSlideIn {
  from {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Media (video, gif, imagen) */
.ad-media {
  width: 100%;
  background: #000;
  border: 2px solid #111111;
  border-radius: 4px;
  overflow: hidden;
}

.ad-media video,
.ad-media img,
.ad-media iframe {
  width: 100%;
  display: block;
}

.ad-media video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ad-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Barra de temporizador */
.ad-timer-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background: #111111;
  width: 0%;
  transition: width 0.1s linear;
  z-index: 5;
}

/* Contenido del popup */
.ad-content {
  padding: 18px 10px 20px 10px;
  background: #fde047;
  text-align: center;
}

.ad-content h3 {
  color: #111111;
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.ad-content p {
  color: #262626;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 15px;
}

/* Botón de cerrar (deshabilitado al inicio) */
.ad-close-btn {
  background: #111111;
  color: #fde047;
  border: 2px solid #111111;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.5;
  pointer-events: none;
}

.ad-close-btn.enabled {
  opacity: 1;
  pointer-events: auto;
}

.ad-close-btn.enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Contador de segundos */
.ad-countdown {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.9rem;
  color: #fde047;
}

/* Responsive */
@media (max-width: 768px) {
  .ad-container {
    width: 95%;
  }
  
  .ad-content h3 {
    font-size: 1rem;
  }
  
  .ad-content p {
    font-size: 0.8rem;
  }
  
  .ad-close-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* ========== BANNER PUBLICITARIO ROTATIVO ========== */
.sidebar-banner {
  margin: 25px -25px -25px -25px;
  padding: 20px 25px 25px 25px;
  background: #fffbeb;
  border-top: 2px solid #111111;
  text-align: center;
  position: relative;
  flex: 1;
}

.sidebar-banner a {
  display: block;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
}

.sidebar-banner img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #111111;
  display: block;
  transition: all 0.3s ease;
}

/* Efecto hover en escritorio */
@media (min-width: 769px) {
  .sidebar-banner img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
}

/* Efecto touch en móvil */
.sidebar-banner img:active {
  transform: scale(0.98);
  transition: 0.05s;
}

/* Indicador de rotación */
.banner-indicator {
  position: absolute;
  top: 28px;
  right: 34px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Texto de publicidad */
.banner-caption {
  font-size: 11px;
  color: #111111;
  opacity: 0.75;
  font-weight: 700;
  margin-top: 8px;
  text-align: center;
  letter-spacing: 1px;
}

/* Animación de cambio de banner */
@keyframes bannerFade {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.banner-changing {
  animation: bannerFade 0.3s ease;
}

/* Responsive móvil */
@media (max-width: 768px) {
  .sidebar-banner {
    margin: 20px -25px -25px -25px;
    padding: 16px 25px 25px 25px;
  }
  
  .sidebar-banner img {
    border-radius: 6px;
  }
  
  .banner-indicator {
    top: 24px;
    right: 33px;
    font-size: 9px;
    padding: 3px 6px;
  }
  
  .banner-caption {
    font-size: 9px;
    margin-top: 6px;
  }
}

/* Móvil muy pequeño */
@media (max-width: 480px) {
  .sidebar-banner {
    margin: 15px -25px -25px -25px;
    padding: 14px 25px 25px 25px;
  }
}
/* ========== OCULTAR BARRA DE SCROLL EN MODAL ========== */

/* Ocultar barra de scroll en el contenido principal del modal */
.modal-content::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Ocultar barra de scroll en la columna de texto (escritorio) */
.modal-text::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Ocultar barra de scroll en la columna de imagen (escritorio) */
.modal-media::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Para Firefox */
.modal-content,
.modal-text,
.modal-media {
  scrollbar-width: none; /* Oculta la barra en Firefox */
}

/* Para Internet Explorer y Edge */
.modal-content,
.modal-text,
.modal-media {
  -ms-overflow-style: none; /* Oculta la barra en IE/Edge */
}


/* Cursor de clic en el video */
#adVideoContainer {
  cursor: pointer;
  position: relative;
}

#adVideoContainer:hover::after {
  content: "🔗";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  pointer-events: none;
}
/* ========== SIDEBAR CON SCROLL DE NOTICIAS ========== */
.sidebar-news-container {
  display: flex;
  flex-direction: column;
}

.sidebar-news-scroll-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.sidebar-news-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 340px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-news-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.custom-scroll-track {
  width: 6px;
  flex-shrink: 0;
  position: relative;
  background: transparent;
}

.custom-scroll-thumb {
  width: 6px;
  background: #111111;
  border-radius: 999px;
  cursor: grab;
  transition: opacity 0.2s ease;
}

.custom-scroll-thumb:active {
  cursor: grabbing;
}

/* Botones de control */
.sidebar-news-controls {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-scroll-btn {
  background: #111111;
  color: #fde047;
  border: 2px solid #111111;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: 0.3s;
  text-align: center;
}

.sidebar-scroll-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar-news-list {
    max-height: 300px;
  }
  
  .sidebar-scroll-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}
/* Eliminar barra de scroll horizontal de toda la página */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Asegurar que multimedia no cause scroll horizontal sin romper el carrusel */
img, video, iframe {
  max-width: 100%;
}

/* ========== FOOTER (PIE DE PÁGINA) ========== */
.footer {
  background: var(--card);
  color: var(--text);
  margin-top: 60px;
  border-top: 3px solid var(--accent);
}

body.dark .footer {
  border-top-color: #fde047;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

/* Redes Sociales */
.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  background: rgba(0,0,0,0.1);
  color: var(--text);
}

.social-icon:hover {
  transform: translateY(-5px);
}

.social-icon.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-icon.instagram:hover {
  background: radial-gradient(circle at 30% 110%, #ffdb8b, #f06529, #c32aa3, #4f5bd5);
  color: white;
}

.social-icon.tiktok:hover {
  background: #010101;
  color: #00f2ea;
}

/* Directorio */
.director-info p {
  margin: 8px 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.director-info strong {
  color: var(--accent);
}

.footer-mail {
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  transition: opacity 0.2s ease;
}

.footer-mail:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

body.dark .footer-bottom {
  border-top-color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* ========== CARRUSEL DE EMPRESAS ========== */
.companies-carousel {
  margin: 60px 0 0 0;
  padding: 40px 0;
  position: relative;
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.carousel-title {
  text-align: center;
  margin-bottom: 40px;
}

.carousel-title h2 {
  color: var(--accent);
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
}

.carousel-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 40px;
  width: fit-content;
}

.carousel-slide {
  flex-shrink: 0;
  width: 140px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.25s ease;
}

.carousel-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  transition: 0.3s;
  filter: grayscale(100%);
  opacity: 0.78;
}

.carousel-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* El desplazamiento infinito del carrusel se controla desde js/app.js */

/* Modo oscuro: sin fondo, solo silueta blanca/plomo del logo transparente */
body.dark .carousel-slide img {
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

body.dark .carousel-slide img:hover {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-slide {
    width: 100px;
    height: 80px;
  }
  
  .carousel-slide img {
    max-height: 60px;
  }
  
  .carousel-title h2 {
    font-size: 1.4rem;
  }
  
  .carousel-track {
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    width: 80px;
    height: 70px;
  }
  
  .carousel-slide img {
    max-height: 50px;
  }
  
  .carousel-track {
    gap: 15px;
  }
}

/* ========== CLASIFICADOS Y PÁGINAS AMARILLAS (ESTILO EDITORIAL) ========== */
.classifieds-banner {
  max-width: 1400px;
  margin: 30px auto 0 auto;
  padding: 0 40px;
}

.classifieds-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  background: #fde047;
  color: #111111;
  border: 1px solid #eab308;
  border-radius: 6px;
  padding: 28px 32px;
}

.classifieds-intro h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.classifieds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.classifieds-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  background: #fffdf0;
  color: #111111;
  text-decoration: none;
  padding: 20px;
  border-radius: 6px;
  border: 2px solid #111111;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.buzz-card {
  animation: cardBuzz 3.4s ease-in-out infinite;
}

.buzz-card:nth-child(2) {
  animation-delay: 0.45s;
}

.buzz-card:nth-child(3) {
  animation-delay: 0.9s;
}

.classifieds-card:hover {
  animation: cardBuzzHover 0.35s ease-in-out;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  border-color: var(--accent);
}

@keyframes cardBuzz {
  0%, 82%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  85% {
    transform: translate(-1.5px, 0) rotate(-0.6deg);
  }
  88% {
    transform: translate(1.5px, 0) rotate(0.6deg);
  }
  91% {
    transform: translate(-1.5px, 0) rotate(-0.4deg);
  }
  94% {
    transform: translate(1.5px, 0) rotate(0.4deg);
  }
  97% {
    transform: translate(-0.8px, 0) rotate(-0.2deg);
  }
}

@keyframes cardBuzzHover {
  0%, 100% {
    transform: translateY(-2px) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) translateX(-2px) rotate(-0.8deg);
  }
  50% {
    transform: translateY(-2px) translateX(2px) rotate(0.8deg);
  }
  75% {
    transform: translateY(-2px) translateX(-1.5px) rotate(-0.4deg);
  }
}

.classifieds-card-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
  color: #92400e;
}

.classifieds-big-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.12;
  color: #111111;
  margin: 4px 0 14px 0;
  letter-spacing: -0.02em;
}

.classifieds-mid-title {
  font-size: 1.5rem;
  line-height: 1.22;
}

.classifieds-link {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.classifieds-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  color: #fde047;
  text-decoration: none;
  border: none;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.classifieds-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.classifieds-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(128, 128, 128, 0.4);
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* Página dedicada clasificados.html */
.classifieds-hero-band {
  width: 100%;
  background: #fde047;
  color: #111111;
  border-bottom: 2px solid #eab308;
  padding: 20px 20px 28px 20px;
}

.classifieds-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.classifieds-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px 20px;
}

.classifieds-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  margin-bottom: 18px;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  color: #fde047;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-home-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fde047;
}

.classifieds-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.classifieds-page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.classifieds-page-header p {
  color: #262626;
  max-width: 680px;
  font-size: 0.95rem;
}

.classifieds-search {
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.92rem;
}

.classifieds-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.classifieds-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0.75;
  transition: 0.2s;
}

.tab-btn:hover {
  opacity: 1;
  background: var(--card);
}

.tab-btn.active {
  background: #fde047;
  color: #111111;
  opacity: 1;
  font-weight: 700;
}

.classifieds-search {
  min-width: 250px;
}

/* ========== VISTA DIVIDIDA ESTILO INDEED (CLASIFICADOS) ========== */
.yp-split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  gap: 20px;
  align-items: start;
}

.yp-list-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yp-card {
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.dark .yp-card {
  background: #18181b;
  border-color: #2e2e34;
}

.yp-card:hover {
  border-color: #71717a;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.yp-card.is-selected {
  border: 1.5px solid #1d4ed8;
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.12);
}

body.dark .yp-card.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.yp-badge-pill {
  display: inline-block;
  align-self: flex-start;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.yp-badge-pill.is-urgent {
  background: #fef2f2;
  color: #b91c1c;
}

body.dark .yp-badge-pill {
  background: rgba(253, 224, 71, 0.12);
  color: #fde047;
}

body.dark .yp-badge-pill.is-urgent {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

.yp-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: #18181b;
  margin: 0;
}

body.dark .yp-title {
  color: #f4f4f5;
}

.yp-company-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yp-logo-img,
.yp-logo-fallback {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.yp-logo-img {
  object-fit: cover;
  border: 1px solid rgba(128, 128, 128, 0.25);
}

.yp-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.yp-company-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yp-company {
  font-size: 0.92rem;
  font-weight: 600;
  color: #27272a;
}

body.dark .yp-company {
  color: #e4e4e7;
}

.yp-location {
  font-size: 0.86rem;
  color: #52525b;
}

body.dark .yp-location {
  color: #a1a1aa;
}

.yp-salary {
  display: inline-block;
  align-self: flex-start;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
}

body.dark .yp-salary {
  background: #27272a;
  color: #e4e4e7;
}

.yp-highlights {
  list-style: none;
  background: #f4f4f5;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.83rem;
  color: #27272a;
}

.yp-highlights li::before {
  content: "•";
  font-weight: 800;
  margin-right: 8px;
  color: #71717a;
}

body.dark .yp-highlights {
  background: #222226;
  color: #d4d4d8;
}

.yp-time {
  font-size: 0.78rem;
  color: #71717a;
}

body.dark .yp-time {
  color: #8a8a93;
}

/* Panel derecho de detalle */
.yp-detail-col {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.yp-detail-card {
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  overflow: hidden;
}

body.dark .yp-detail-card {
  background: #18181b;
  border-color: #2e2e34;
}

.yp-mobile-back {
  display: none;
  width: 100%;
  text-align: left;
  background: #fde047;
  color: #111111;
  border: none;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.yp-detail-header {
  padding: 24px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.22);
}

.yp-detail-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.yp-detail-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 4px;
}

.yp-detail-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.88;
}

.yp-detail-location {
  font-size: 0.88rem;
  opacity: 0.72;
}

.yp-detail-summary-line {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.yp-detail-contact-box {
  background: #fde047;
  color: #111111;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.yp-detail-section {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}

.yp-detail-section:last-child {
  border-bottom: none;
}

.yp-detail-section h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.yp-detail-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yp-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.yp-fact svg {
  opacity: 0.75;
  flex-shrink: 0;
}

.yp-detail-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #3f3f46;
  margin-bottom: 14px;
}

body.dark .yp-detail-desc {
  color: #d4d4d8;
}

.yp-detail-bullets {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3f3f46;
  margin-bottom: 16px;
}

body.dark .yp-detail-bullets {
  color: #d4d4d8;
}

.yp-detail-empty {
  background: var(--card);
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  opacity: 0.75;
}

/* Galería de fotos en Clasificados (Casas, Departamentos, Carros) */
.yp-card-thumb {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.2);
}

.yp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yp-card-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(17, 17, 17, 0.78);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.yp-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yp-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111111;
  border-radius: 8px;
  overflow: hidden;
}

.yp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 17, 17, 0.72);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.yp-gallery-nav:hover {
  background: #111111;
}

.yp-gallery-nav.prev {
  left: 10px;
}

.yp-gallery-nav.next {
  right: 10px;
}

.yp-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 17, 17, 0.75);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.yp-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.yp-thumb-btn {
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.yp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yp-thumb-btn:hover,
.yp-thumb-btn.active {
  opacity: 1;
  border-color: #fde047;
}

/* ========== PANTALLA PRÓXIMAMENTE (MASCOTA S CON MARTILLO) ========== */
main.classifieds-page.is-coming-soon {
  max-width: 100%;
  padding: 0;
}

main.classifieds-page.is-coming-soon + .footer {
  margin-top: 0;
}

.coming-soon-stage {
  width: 100%;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111111;
  padding: 56px 24px;
}

body.dark .coming-soon-stage {
  background: #fde047;
  color: #111111;
}

.coming-soon-inner {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.coming-soon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.coming-soon-copy {
  text-align: left;
}

.coming-soon-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #111111;
  line-height: 1.05;
  margin-bottom: 10px;
}

.cs-dots {
  display: inline-flex;
}

.cs-dot {
  animation: csDotPulse 1.4s infinite;
  opacity: 0.15;
}

.cs-dot:nth-child(1) {
  animation-delay: 0s;
}

.cs-dot:nth-child(2) {
  animation-delay: 0.25s;
}

.cs-dot:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes csDotPulse {
  0%, 20% { opacity: 0.15; }
  50%, 80% { opacity: 1; }
  100% { opacity: 0.15; }
}

.coming-soon-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: #262626;
  letter-spacing: 0.01em;
}

.coming-soon-mascot {
  flex-shrink: 0;
}

.s-hammer-arm {
  transform-origin: 156px 124px;
  animation: hammerSwing 1.1s ease-in-out infinite;
}

.s-left-arm {
  transform-origin: 74px 110px;
  animation: leftWave 2.2s ease-in-out infinite;
}

@keyframes hammerSwing {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(-16deg); }
  65% { transform: rotate(10deg); }
}

@keyframes leftWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-8deg); }
}

.coming-soon-footer-action {
  margin-top: 4px;
}

@media (max-width: 700px) {
  .coming-soon-copy {
    text-align: center;
  }

  .coming-soon-mascot svg {
    width: 170px;
    height: 162px;
  }
}

@media (max-width: 900px) {
  .yp-split-layout {
    grid-template-columns: 1fr;
  }

  .yp-detail-col {
    display: none;
    position: fixed;
    inset: 0;
    max-height: 100vh;
    z-index: 3000;
    background: var(--bg);
    padding: 0;
    overflow-y: auto;
  }

  .yp-detail-col.mobile-open {
    display: block;
  }

  .yp-detail-col.mobile-open .yp-detail-card {
    border: none;
    border-radius: 0;
    min-height: 100vh;
  }

  .yp-mobile-back {
    display: block;
  }
}

.classifieds-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--card);
  border-radius: 4px;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .classifieds-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .classifieds-banner {
    padding: 0 20px;
  }

  .classifieds-grid {
    grid-template-columns: 1fr;
  }

  .classifieds-search {
    width: 100%;
  }
}

/* ========== RESPETO A PREFERS-REDUCED-MOTION (SIN AFECTAR BARRA DE POPUP NI CARRUSEL) ========== */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .card,
  .modal-content,
  .modal-body.slide-next,
  .modal-body.slide-prev,
  .secondary-news-row .grid.slide-next,
  .secondary-news-row .grid.slide-prev {
    animation: none !important;
  }

  .cs-dot {
    animation: none !important;
    opacity: 1 !important;
  }
}