:root {
  --Primario-400: #A42D1D;
}

.contenido {
  max-width: 1400px;  /* ancho máximo del contenedor */
  margin: 0 auto;     /* centra horizontalmente */
  padding: 0 20px;
}
/* Contenedor fullwidth para el h1 */
.titulo-fullwidth {
  width: 100%;                 /* ocupa todo el ancho de la pantalla */
  background: none;
  padding: 40px 0;             /* separación arriba y abajo del h1 */
  text-align: center;           /* centra el h1 horizontalmente */
}

.titulo-fullwidth h1 {
  color: var(--Primario-400);
  font-size: 45px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
}

/* Contenedor centrado para todo lo demás */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Contenedor con texto y botón */
.contenedor-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

/* Texto del contenedor */
.contenedor-flex .texto {
  color: #000;
  font-size: 30px;
  font-weight: 400;
  line-height: normal;
  max-width: calc(100% - 272px);
}

/* Botón del carrito */
.boton-carrito {
  display: flex;
  width: 252px;
  height: 54px;
  padding: 17.333px 34.667px 19.5px 34.667px;
  justify-content: center;
  align-items: center;
  gap: 10.833px;
  flex-shrink: 0;
  border-radius: 107.25px;
  background: var(--Primario-400);
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

/* Imagen principal */
.imagen-principal {
  width: 100%;
  max-width: 1297px;
  height: 671px;
  margin: 20px auto;
  display: block;
  object-fit: cover;
}

/* Separador vertical */
.separador-vertical {
  margin-top: 195px;
  margin-bottom: 20px;
}

/* Título del set */
.titulo-set {
  color: var(--Primario-400);
  text-align: justify;
  font-size: 45px;
  font-weight: 600;
  line-height: normal;
  margin: 0 0 20px 0;
}

/* Contenedor detalle + botón */
.detalle-set {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.detalle-set .texto-detalle {
  color: #000;
  font-size: 30px;
  font-weight: 400;
  line-height: normal;
  max-width: calc(100% - 272px);
}

/* Contenedor de imágenes finales */
.imagenes-finales {
  display: flex;
  justify-content: space-between;
  margin-bottom: 120px;
}

.imagen-izquierda {
  width: 830px;
  height: 671px;
  object-fit: cover;
}

.imagen-derecha {
  width: 424px;
  height: 671px;
  object-fit: cover;
}

@media (max-width: 750px) {

  .titulo-fullwidth {
      width: 100%;
      background: none;
      padding: 10px 0;
      text-align: center;
  }

  /* Título principal */
  .titulo-fullwidth h1 {
    color: var(--Primario-400, #A42D1D);
    text-align: justify;
    font-family: Inter, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 20px 5px 20px; /* poco espacio vertical */
  }

  /* Contenedor-flex en columna para que el botón quede debajo del texto */
  .contenedor-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* texto al inicio */
    margin-bottom: 10px; /* poco espacio inferior */
  }
  
  /* Texto introductorio ocupando todo el ancho */
  .contenedor-flex .texto {
    width: 100%;
    max-width: none; /* elimina cualquier restricción de ancho */
    color: #000;
    text-align: justify;
    font-family: Inter, sans-serif;
    font-size: 10px; 
    font-weight: 400;
    line-height: 1.2;
  }
  
  /* Botón debajo del texto, alineado a la derecha */
  .contenedor-flex .boton-carrito {
    display: flex;
    width: auto; 
    min-width: 100px;
    height: 25px;
    padding: 5px 10px;
    font-size: 10px; 
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin: 0 20px 10px auto; /* alineado a la derecha con separación */
  }

  /* Separador vertical eliminado en mobile */
  .separador-vertical {
    margin: 0;
    height: 0;
  }

  /* Título del set reducido con margen superior mínimo */
  .titulo-set {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    font-family: Inter, sans-serif;
    color: var(--Primario-400, #A42D1D);
    text-align: left;
  }

  /* Texto detalle del set ocupando todo el ancho */
  .detalle-set .texto-detalle {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    width: 100%;
    max-width: none; 
  }

  /* Segundo botón debajo del texto del set, alineado a la derecha */
  .detalle-set .boton-carrito {
    display: flex;
    width: auto; 
    min-width: 100px;
    height: 25px;
    padding: 5px 10px;
    font-size: 10px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin: 0 20px 10px auto; 
  }

  /* Contenedor detalle-set en columna */
  .detalle-set {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px; 
  }

  /* Imágenes finales adaptadas al ancho de la pantalla */
  .imagenes-finales {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px; 
    margin-bottom: 10px; 
  }

  .imagen-izquierda, .imagen-derecha {
    width: 48%;
    height: auto;
  }
}
