/* =========================================================
   INDEX.CSS — ESTILOS EXCLUSIVOS DE LA PÁGINA DE INICIO
   ========================================================= */

/* ==== SECCIÓN DE NOTICIAS DESTACADAS ==== */
.featured-news {
  color: #fff;
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid var(--color-border);
  /*background-color: var(--color-bg);*/
}

.news-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  width: 100%;
}

/* --- Noticia principal --- */
.main-news {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--color-dark);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.main-news:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.main-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-news:hover img {
  transform: scale(1.05);
}

.main-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  box-sizing: border-box;
}

.main-news-content h2 {
  font-size: 1.5rem;
  color: var(--color-highlight);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.main-news-content p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 0.8rem;
}

/* --- Noticia secundaria amplia --- */
.single-side-news {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: #111;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  min-height: 100%;
}

.single-side-news:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.single-side-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-side-news-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 70%, transparent 100%);
}

.single-side-news-content h4 {
  font-size: 1.1rem;
  color: var(--color-highlight);
  margin: 0.4rem 0 0.3rem;
}

.single-side-news-content p {
  margin: 0;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==== BLOQUE DE NOTICIAS 2 (TRES COLUMNAS) ==== */
.news-section-2 {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.news-grid-3 {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 36px;
  justify-content: center;
  align-items: stretch;
}

.news-large, .news-small {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  cursor: pointer;
  height: 420px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-large:hover, .news-small:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6);
}

.news-large img, .news-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.news-large:hover img, .news-small:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* --- Información superpuesta --- */
.news-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,0.85) 90%);
  color: #fff;
}

.news-info h2, .news-info h3 {
  margin: 8px 0 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.3em;
}

.news-info p {
  text-align: center;
}

/* --- Etiquetas --- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.03em;
}
.tag-featured { background: #ff0066; }
.tag-analysis { background: #0066ff; }
.tag-need { background: #00c896; }

/* ==== Animación scroll ==== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== Responsivo ==== */
@media (max-width: 900px) {
  .news-container {
    grid-template-columns: 1fr;
  }
  .news-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .news-large, .news-small {
    height: 260px;
  }
}

/* =========================================================
   HERO / CARRUSEL PRINCIPAL (CORREGIDO)
   ========================================================= */

#inicio.hero-carousel {
  position: relative;
  overflow: hidden;
  background: none; /* 🔹 Elimina fondo gris */
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Contenedor de slides */
.carousel-track {
  display: flex;
  transition: transform var(--transition);
  will-change: transform;
  width: 100%;
}

/* Cada slide ocupa todo el ancho */
.carousel-slide {
  min-width: 100%;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Imagen de slide: sin bordes, sin márgenes, ocupa todo */
.carousel-slide picture,
.carousel-slide img {
  display: block;
  width: 100%;
  height: 40vh; /* 🔹 altura moderada */
  object-fit: cover;
  border: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .carousel-slide img {
    height: 48vh;
  }
}

/* ---- Overlay de texto ---- */
.slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.0) 20%,
    rgba(0, 0, 0, 0.55) 85%
  ); /* 🔹 ajustado y centrado */
  padding: 2rem;
  box-sizing: border-box;
}

.slide-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
}

.slide-text h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-guitar-wood, #b38a5a);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.slide-text p {
  margin: 0.3rem 0 0;
  color: #ddd;
  font-size: 1rem;
}

/* ---- Botón CTA ---- */
.btn-cta {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--accent, #d1a470);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* ---- Controles de navegación ---- */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  color: #fff;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(2px);
}
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

/* ---- Indicadores ---- */
.carousel-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 200;
}
.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.carousel-indicators button[aria-selected="true"] {
  background: var(--accent, #b38a5a);
  transform: scale(1.25);
}

/* ---- Contador de visitas (discreto) ---- */
.visit-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto 0;
  padding: 10px 0 4px;
  color: #6e6e6e;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  opacity: 0.85;
}
.visit-counter svg {
  color: var(--color-highlight, #d1a470);
  opacity: 0.7;
  flex-shrink: 0;
}
.visit-counter #visit-count {
  font-weight: 600;
  color: #8c8c8c;
}

