/* 🎓 Estilos para Tutoriales Felix Place */

.hero-tutoriales {
  position: relative;
  text-align: center;
  height: 320px;
  overflow: hidden;
}
.hero-tutoriales .hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.hero-tutoriales .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.hero-tutoriales .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}
.hero-tutoriales h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero-tutoriales p {
  font-size: 1.1rem;
}

/* 🧭 Buscador */
.buscador {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px auto;
}
.buscador input {
  width: 300px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.buscador button {
  background: #004080;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.buscador button:hover {
  background: #0066cc;
}

/* 🎬 Tarjetas de tutoriales */
.tutoriales-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px 60px;
}
.tutorial-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}
.tutorial-card:hover {
  transform: translateY(-5px);
}
.tutorial-thumb {
  position: relative;
}
.tutorial-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.tutorial-thumb .btn-ver {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: red;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
}
.tutorial-info {
  padding: 15px;
  text-align: left;
}
.tutorial-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.tutorial-info p {
  font-size: 0.95rem;
  color: #444;
}
.tutorial-info .categoria {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #004080;
}

/* 🔢 Paginación */
.paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
  gap: 10px;
}
.paginacion button {
  background: #004080;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.paginacion button:disabled {
  background: #aaa;
}
.paginacion span {
  font-weight: bold;
}

/* 🔘 Botón Ver Completo */
.btn-vercompleto {
  display: inline-block;
  margin-top: 10px;
  background: #004080;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}
.btn-vercompleto:hover {
  background: #007bff;
}

/* 🎥 Detalle del tutorial */
.detalle-contenido {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}
.video-container {
  margin: 25px 0;
  border-radius: 10px;
  overflow: hidden;
}
.btn-volver {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 14px;
  background: #004080;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}
.btn-volver:hover {
  background: #007bff;
}

/* ================================
   🔹 Encabezado del detalle tutorial
   ================================ */
.encabezado-detalle-tutorial {
  background: linear-gradient(90deg, #004466, #005580);
  color: #eaf8ff;
  padding: 30px 10%;
  text-align: center;
  border-bottom: 2px solid #00ffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.encabezado-detalle-tutorial .contenedor-detalle h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #00ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.encabezado-detalle-tutorial .contenedor-detalle i {
  font-size: 1.5rem;
  color: #00ffff;
  animation: brillo-icono 2s infinite ease-in-out;
}

.encabezado-detalle-tutorial .contenedor-detalle p {
  font-size: 1rem;
  font-style: italic;
  color: #cfe7ff;
}

/* 🔹 Detalle del tutorial */
.detalle-tutorial {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  max-width: 900px;
  margin: 60px auto;
  box-shadow: 0 4px 15px rgba(0, 31, 63, 0.1);
  text-align: center;
}

.detalle-tutorial h2 {
  font-size: 2rem;
  color: #001f3f;
  margin-bottom: 15px;
}

.detalle-tutorial .categoria {
  color: #00ffff;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.video-container {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(0, 31, 63, 0.2);
}

.descripcion {
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.7;
}

.meta {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.btn-volver {
  background: #001f3f;
  color: #00ffff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}
.btn-volver:hover {
  background: #00ffff;
  color: #001f3f;
}

/* ==============================
   🔹 BANNER DETALLE TUTORIAL (PANORÁMICO)
   ============================== */
.banner-detalle-tutorial {
  position: relative;
  width: 100%;
  height: 25vh; /* 🔹 igual que el de detalle de noticia */
  background: url("../assets/banner_tutorial.jpg") center top / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 🔹 Oscurecimiento leve */
.banner-detalle-tutorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 10, 25, 0.3), rgba(0, 10, 25, 0.6));
  z-index: 1;
}

/* 🔹 Contenido centrado */
.banner-detalle-tutorial .banner-contenido {
  position: relative;
  z-index: 2;
  text-align: center;
}

.banner-detalle-tutorial .banner-contenido h1 {
  font-size: 2rem;
  color: #00ffff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
}

.banner-detalle-tutorial .banner-contenido p {
  font-size: 1rem;
  font-style: italic;
  color: #d3ebff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* 🔹 Responsive */
@media (max-width: 768px) {
  .banner-detalle-tutorial {
    height: 18vh;
    background-size: cover; /* evita franjas laterales en móviles */
  }

  .banner-detalle-tutorial .banner-contenido h1 {
    font-size: 1.6rem;
  }

  .banner-detalle-tutorial .banner-contenido p {
    font-size: 0.9rem;
  }
}

.detalle-texto {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  line-height: 1.8;
  font-size: 1rem;
  color: #333;
}

.detalle-texto p {
  margin-bottom: 12px;
}

.fecha-publicacion {
  margin-top: 20px;
  font-style: italic;
  color: #666;
}
