/* styles-promociones.css */

/* Variables básicas */
:root {
    --color-principal: #405D72;
    --color-secundario: #405D72;
    --color-texto: #333;
    --color-fondo: #f9fafb;
    --fuente-principal: 'Poppins', sans-serif;
  }
  
  /* Reset y tipografía base */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--fuente-principal);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
    padding-top: 130px;
  }
  
  /* Hero Section */
  .hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 140px 20px 80px;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #405D72;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-text p {
    font-size: 1.2rem;
  }
  
  /* Contenedor principal de promociones */
  .promociones-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .titulo-container h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-principal);
    margin-bottom: 2rem;
  }
  
  /* Tarjetas */
  .tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 2rem;
  }
  
  .tarjeta-promocion {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .tarjeta-promocion:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .tarjeta-imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .tarjeta-contenido {
    padding: 1rem;
    color: var(--color-texto);
  }
  
  .tarjeta-contenido h3 {
    font-size: 1.25rem;
    color: var(--color-principal);
    margin-bottom: 0.5rem;
  }
  
  .tarjeta-contenido p {
    font-size: 1rem;
    color: #555;
  }

  .estado-promocion {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    z-index: 2;
    background-color: #555;
}

.estado-promocion.en-venta {
    background-color: #28a745; /* Verde */
}

.estado-promocion.vendida {
    background-color: #dc3545; /* Rojo */
}

.tarjeta-imagen {
    position: relative; /* Necesario para posicionar el estado */
}

  
  /* Responsive - texto y paddings */
  @media (max-width: 768px) {
    .hero-text h1 {
      font-size: 2rem;
    }
  
    .hero-text p {
      font-size: 1rem;
    }
  
    .tarjeta-imagen img {
      height: 180px;
    }
  }
  
  @media (max-width: 480px) {
    .hero-container {
      height: 40vh;
    }
  
    .tarjeta-contenido h3 {
      font-size: 1.1rem;
    }
  
    .tarjeta-contenido p {
      font-size: 0.95rem;
    }
  }

  /* Estilos para el banner de cookies */
  .cookie-banner {
      position: fixed; /* Fija el banner en la pantalla */
      bottom: 0; /* Lo coloca en la parte inferior */
      left: 0;
      right: 0;
      background: #333; /* Color de fondo */
      color: #fff; /* Color del texto */
      padding: 15px;
      text-align: center;
      z-index: 1000; /* Asegura que esté por encima de otros elementos */
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
  }
  
  .cookie-banner p {
      margin: 0;
      flex: 1;
      font-size: 14px;
  }
  
  .cookie-banner button {
      margin: 5px;
      padding: 8px 15px;
      border: none;
      background: #4CAF50; /* Color del botón Aceptar */
      color: white;
      cursor: pointer;
      font-size: 14px;
  }
  
  .cookie-banner button.reject {
      background: #f44336; /* Color del botón Rechazar */
  }