/* ================================================================
   Mobile First 
   
   - Los estilos base están diseñados para dispositivos móviles.
   - Al final de cada bloque de estilos se encuentran las Media Queries para tablet y escritorio.

   ÍNDICE MARCAS.CSS:

   1.  Estilos marcas.html
   2.  Estilos componentes de tarjetas de marcas 
        -Se inyecta desde un script en marcas.html
================================================================ */
.marcas-header {
  background-color: #09231D;
  color: #ffffff;
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.marcas-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* Texto en móvil: al frente de la marca de agua */
.marcas-header__content {
  position: relative;
  z-index: 2;
  max-width: 90%;
}

.marcas-header__content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #ffffff;
  margin-top: 3rem;
  margin-bottom: 0.1rem;
}

.marcas-header__content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Imagen en móvil: MARCA DE AGUA */
.marcas-header__image {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 290px; /* ⚙️ Ancho en Móvil */
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18; /* 🌟 Marca de agua sutil */
}

.marcas-header__image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  
  /* ⚙️ CONTROLES MÓVIL (< 650px): translate(X, Y) */
  transform: translate(0px, 100px);
}

/* Grilla de Tarjetas en Móvil (1 columna) */
.marcas-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
  margin-top: 2rem;
}


/* ============================================================
   PANTALLAS MEDIANAS / TABLET (A PARTIR DE 650px)
   ============================================================ */
@media (min-width: 650px) {

  .marcas-header {
    padding: 2rem 0;
  }

  .marcas-header__content {
    max-width: 55%;
  }

  .marcas-header__content h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 0.1rem;
  }

  /* Imagen recupera presencia normal */
  .marcas-header__image {
    width: 360px; /* ⚙️ Ancho en Tablet */
    right: 0;
    opacity: 1; /* 🌟 Pasa de marca de agua a imagen visible */
  }

  .marcas-header__image img {
    /* ⚙️ CONTROLES TABLET (650px a 992px) */
    transform: translate(0px, 140px) scale(1);
  }

  /* Grilla de Tarjetas en Tablet (2 columnas) */
  .marcas-lista {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ============================================================
   DESKTOP / PANTALLAS GRANDES (A PARTIR DE 993px)
   ============================================================ */
@media (min-width: 993px) {

  .marcas-header__content {
    max-width: 450px;
  }

  .marcas-header__content h1 {
    font-size: 3rem;
    margin-top: 2rem;
    margin-bottom: 0.1rem;
  }

  .marcas-header__content p {
    font-size: 1.05rem;
  }

  /* Imagen en Desktop con aire al borde derecho */
  .marcas-header__image {
    top: 0;
    right: var(--sp-6, 2rem);
    width: 50%;
    max-width: 550px; /* ⚙️ Ancho en PC */
    height: 100%;
  }

  .marcas-header__image img {
    /* ⚙️ CONTROLES DESKTOP (>= 993px) */
    transform: translate(0px, 0px) scale(1);
    transform-origin: bottom right;
  }

  /* Grilla de Tarjetas en PC (3 columnas) */
  .marcas-lista {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

}


/* ============================================================
   ESTILOS COMPONENTES DE TARJETA DE MARCAS

    -Se inyecta desde un script en marcas.html
   ============================================================ */

.marca-card-full {
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #ffffff);
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 16px);
  padding: var(--sp-4, 1rem);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--ease, 0.3s), box-shadow var(--ease, 0.3s);
}

.marca-card-full:hover {
  border-color: var(--color-primary, #09231D);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.marca-card-full__img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #09231D;
  border-radius: 8px;
}

.marca-card-full__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.70);
  transition: transform 0.4s ease;
}

.marca-card-full:hover .marca-card-full__img {
  transform: scale(1.04);
}

.marca-card-full__body {
  padding-top: var(--sp-4, 1rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2, 0.5rem);
}

.marca-card-full__nombre {
  font-family: var(--font-serif, serif);
  font-size: var(--text-lg, 1.25rem);
  font-weight: 700;
  color: var(--color-text, #111827);
  margin: 0;
}

.marca-card-full__desc {
  font-size: var(--text-sm, 0.9rem);
  color: var(--color-text-muted, #6b7280);
  line-height: 1.55;
  margin: 0;
}

.marca-card-full__link {
  font-size: var(--text-sm, 0.9rem);
  font-weight: 600;
  color: var(--color-primary, #09231D);
  margin-top: var(--sp-2, 0.5rem);
  display: inline-block;
}